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

View File

@ -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,21 +39,22 @@
});
// #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 = "";
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() {
@ -99,4 +102,4 @@
.dis {
display: flex;
}
</style>
</style>