This commit is contained in:
齐天大圣 2024-03-27 10:12:33 +08:00
parent fa268dc54a
commit 2e0049712d

View File

@ -231,13 +231,16 @@
let storeId = "19"; let storeId = "19";
let staffId = ""; let staffId = "";
let sn = "";
if (str.includes("&")) { if (str.includes("&")) {
let arr = str.split("&"); let arr = str.split("&");
arr.forEach(item => { arr.forEach(item => {
if (item.includes("storeId")) { if (item.includes("storeId")) {
storeId = item.split("=")[1] storeId = item.split("=")[1]
} else { } else if (item.includes("staffId")) {
staffId = item.split("=")[1] staffId = item.split("=")[1]
} else {
sn = item.split("=")[1]
} }
}) })
} else { } else {
@ -360,7 +363,7 @@
method: 'get', method: 'get',
}).then((res) => { }).then((res) => {
_this.oilNumberList = res.data; _this.oilNumberList = res.data;
if (res.data.length>0) { if (res.data.length > 0) {
// _this.getOilGun(res.data[0].numberId); // _this.getOilGun(res.data[0].numberId);
_this.oilPrice = res.data[0].oilPrice _this.oilPrice = res.data[0].oilPrice
_this.oilUnit = res.data[0].unit _this.oilUnit = res.data[0].unit
@ -388,7 +391,7 @@
getStaffList(storeId) { getStaffList(storeId) {
let _this = this; let _this = this;
request({ request({
url: "business/member/staff/queryList1/"+storeId, url: "business/member/staff/queryList1/" + storeId,
method: 'get', method: 'get',
}).then((res) => { }).then((res) => {
_this.staffList = res.data _this.staffList = res.data
@ -484,7 +487,7 @@
} else { } else {
if (this.value != "" && this.qindex != null) { if (this.value != "" && this.qindex != null) {
this.show = false this.show = false
if (uni.getStorageSync("inviteStaffId") || this.staffList.length==0) { if (uni.getStorageSync("inviteStaffId") || this.staffList.length == 0) {
this.toPayment(uni.getStorageSync("inviteStaffId")) this.toPayment(uni.getStorageSync("inviteStaffId"))
} else { } else {
// this.$refs.popup.open('bottom') // this.$refs.popup.open('bottom')
@ -562,7 +565,7 @@
}) })
} }
if (uni.getStorageSync("appltType")== "WECHAT") { if (uni.getStorageSync("appltType") == "WECHAT") {
// code // code
wx.login({ wx.login({
success(res) { success(res) {
@ -588,7 +591,7 @@
}) })
} }
if (uni.getStorageSync("appltType")== "ALIPAY") { if (uni.getStorageSync("appltType") == "ALIPAY") {
my.getAuthCode({ my.getAuthCode({
scopes: 'auth_base', scopes: 'auth_base',
success: res => { success: res => {