修改一个微信版本的流程问题

This commit is contained in:
tsui110 2026-01-21 17:00:54 +08:00
parent ef2ebe754f
commit 6451394764
3 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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' })
}