更新
This commit is contained in:
@@ -376,18 +376,23 @@
|
||||
showQr() {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showModal({
|
||||
content: "登录后才能出示付款码哦",
|
||||
confirmText: "去登录",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/BagAuth/pages/login/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
uni.showToast({
|
||||
title:'登录后才能出示付款码哦',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
// uni.showModal({
|
||||
// content: "登录后才能出示付款码哦",
|
||||
// confirmText: "去登录",
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.navigateTo({
|
||||
// url: "/BagAuth/pages/login/login",
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
// return;
|
||||
}
|
||||
this.showThreeSites = true
|
||||
},
|
||||
@@ -395,18 +400,23 @@
|
||||
toCards() {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showModal({
|
||||
content: "登录后才能查看哦",
|
||||
confirmText: "去登录",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/BagAuth/pages/login/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
uni.showToast({
|
||||
title:'登录后才能获取加油卡哦',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
// uni.showModal({
|
||||
// content: "登录后才能获取加油卡哦",
|
||||
// confirmText: "去登录",
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.navigateTo({
|
||||
// url: "/BagAuth/pages/login/login",
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
// return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/BagMoney/pages/oilCards/oilCards'
|
||||
@@ -414,21 +424,21 @@
|
||||
},
|
||||
|
||||
toOrders() {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showModal({
|
||||
content: "登录后才能查看哦",
|
||||
confirmText: "去登录",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/BagAuth/pages/login/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
// let user = uni.getStorageSync("user");
|
||||
// if (!user) {
|
||||
// uni.showModal({
|
||||
// content: "登录后才能查看哦",
|
||||
// confirmText: "去登录",
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.navigateTo({
|
||||
// url: "/BagAuth/pages/login/login",
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
uni.switchTab({
|
||||
url: '/pages/tabbar/order/orderList/orderList'
|
||||
})
|
||||
@@ -466,21 +476,21 @@
|
||||
|
||||
toDetail(item) {
|
||||
// console.log('siteList',this.siteList)
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showModal({
|
||||
content: "登录后才能查看哦",
|
||||
confirmText: "去登录",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/BagAuth/pages/login/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
// let user = uni.getStorageSync("user");
|
||||
// if (!user) {
|
||||
// uni.showModal({
|
||||
// content: "登录后才能查看哦",
|
||||
// confirmText: "去登录",
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.navigateTo({
|
||||
// url: "/BagAuth/pages/login/login",
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// console.log('item',item)
|
||||
let itemS = encodeURIComponent(JSON.stringify(item));
|
||||
uni.navigateTo({
|
||||
@@ -535,18 +545,11 @@
|
||||
openScan() {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showModal({
|
||||
content: "登录后才能使用扫一扫哦",
|
||||
confirmText: "去登录",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/BagAuth/pages/login/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
uni.showToast({
|
||||
title:'登录后才能使用扫一扫哦',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.scanCode({
|
||||
scanType: 'qrCode',
|
||||
|
||||
@@ -461,21 +461,21 @@
|
||||
})
|
||||
},
|
||||
toDetail(item) {
|
||||
let user = uni.getStorageSync("user");
|
||||
if (!user) {
|
||||
uni.showModal({
|
||||
content: "登录后才能查看哦",
|
||||
confirmText: "去登录",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateTo({
|
||||
url: "/BagAuth/pages/login/login",
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
// let user = uni.getStorageSync("user");
|
||||
// if (!user) {
|
||||
// uni.showModal({
|
||||
// content: "登录后才能查看哦",
|
||||
// confirmText: "去登录",
|
||||
// success: function(res) {
|
||||
// if (res.confirm) {
|
||||
// uni.navigateTo({
|
||||
// url: "/BagAuth/pages/login/login",
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
let itemS = encodeURIComponent(JSON.stringify(item));
|
||||
uni.navigateTo({
|
||||
url: `/BagStation/pages/stationDetail/stationDetail?item=${itemS}`,
|
||||
|
||||
Reference in New Issue
Block a user