feat: 个人中心优化tool方法

This commit is contained in:
Yer
2023-09-28 17:22:19 +08:00
parent 1cc6cc4ac7
commit 1046a1052e
2 changed files with 23 additions and 5 deletions

View File

@@ -376,7 +376,7 @@ export function talkIm (storeId, goodsId, id) {
}
}
export function tipsToLogin () {
export function tipsToLogin (type) {
if (!isLogin("auth")) {
uni.showModal({
title: "提示",
@@ -388,7 +388,10 @@ export function tipsToLogin () {
if (res.confirm) {
navigateToLogin();
} else if (res.cancel) {
uni.navigateBack();
if(type !== 'normal'){
uni.navigateBack();
}
}
},
});