修改一个微信版本的流程问题
This commit is contained in:
parent
ef2ebe754f
commit
6451394764
@ -121,9 +121,10 @@ async function onRedeem() {
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '请先登录',
|
||||
title: '温馨提示',
|
||||
content: '兑换商品需要先登录哦',
|
||||
confirmText: '去登录',
|
||||
cancelText: '暂不登录',
|
||||
success: (res) => { if (res.confirm) uni.navigateTo({ url: '/pages/login/index' }) }
|
||||
})
|
||||
return
|
||||
|
||||
@ -436,9 +436,10 @@ async function onRedeemTap(item) {
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '请先登录',
|
||||
title: '温馨提示',
|
||||
content: '兑换商品需要先登录哦',
|
||||
confirmText: '去登录',
|
||||
cancelText: '暂不登录',
|
||||
success: (res) => { if (res.confirm) uni.navigateTo({ url: '/pages/login/index' }) }
|
||||
})
|
||||
return
|
||||
|
||||
@ -9,8 +9,12 @@ function handleAuthExpired() {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '账号登录已过期,请重新登录',
|
||||
showCancel: false,
|
||||
success: () => {
|
||||
showCancel: true,
|
||||
success: (res) => {
|
||||
if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
return
|
||||
}
|
||||
authModalShown = false
|
||||
uni.navigateTo({ url: '/pages/login/index' })
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user