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