sn
This commit is contained in:
parent
2e0049712d
commit
f4809f753d
@ -3,7 +3,7 @@
|
||||
onLaunch: function(e) {
|
||||
console.log('App Launch')
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.setStorageSync("appltType","WECHAT")
|
||||
uni.setStorageSync("appltType", "WECHAT")
|
||||
console.log("微信")
|
||||
//检查是否存在新版本
|
||||
uni.getUpdateManager().onCheckForUpdate(function(res) {
|
||||
@ -39,13 +39,13 @@
|
||||
});
|
||||
// #endif
|
||||
// #ifdef MP-ALIPAY
|
||||
uni.setStorageSync("appltType","ALIPAY")
|
||||
uni.setStorageSync("appltType", "ALIPAY")
|
||||
console.log("支付宝")
|
||||
my.canIUse('button.open-type.getAuthorize')
|
||||
//获取关联普通二维码的码值,放到全局变量qrCode中
|
||||
if (e.query && e.query.qrCode) {
|
||||
console.log(JSON.stringify(e)+"1.0")
|
||||
let q = e.query.qrCode;
|
||||
console.log(JSON.stringify(e) + "1.0")
|
||||
let q = e.query.qrCode;
|
||||
if (e.query.qrCode) {
|
||||
let str = q.split("?")[1];
|
||||
let storeId = "";
|
||||
@ -53,7 +53,8 @@
|
||||
let staffId = "";
|
||||
let userId = "";
|
||||
let type = "";
|
||||
if (str.includes("&")){
|
||||
let sn = "";
|
||||
if (str.includes("&")) {
|
||||
let arr = str.split("&");
|
||||
arr.forEach(item => {
|
||||
if (item.includes("storeId")) {
|
||||
@ -64,9 +65,11 @@
|
||||
userId = item.split("=")[1]
|
||||
} else if (item.includes("type")) {
|
||||
type = item.split("=")[1]
|
||||
} else {
|
||||
sn = item.split("=")[1]
|
||||
}
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
if (str.includes("storeId")) {
|
||||
storeId = str.split("=")[1]
|
||||
}
|
||||
@ -79,7 +82,7 @@
|
||||
// title:uni.getStorageSync("storeId") + "staffId" + uni.getStorageSync("inviteStaffId")
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
onShow: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user