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