页面
Some checks are pending
Auto Merge Main to Other Branches / Merge main into i18n (push) Waiting to run
Auto Merge Main to Other Branches / Merge main into base-sard-ui (push) Waiting to run

This commit is contained in:
sjeam 2025-09-09 11:31:20 +08:00
parent d3de1fd0f5
commit 16b25ceb02
2 changed files with 20 additions and 27 deletions

View File

@ -165,25 +165,16 @@ export default defineComponent({
// url: '/pages/columnGoods/goods_list/index?id=38&title=',
async more(item) {
await hasLogin()
// this.islogin = hasLogin()
// if (this.islogin === false) {
// uni.navigateTo({
// url: '/pages/login/login',
// })
// return
// }
// if (this.islogin === true) {
// console.log(item)
if (item.type == 1) {
getUrl(item.url)
} else if (item.type == 2) {
getWebUrl(item.url)
} else if (item.type == 3) {
getShopWebUrl(item.url)
const islogin = await hasLogin()
if (islogin === true) {
if (item.type == 1) {
getUrl(item.url)
} else if (item.type == 2) {
getWebUrl(item.url)
} else if (item.type == 3) {
getShopWebUrl(item.url)
}
}
// }
},
},
})

View File

@ -537,16 +537,18 @@ export default defineComponent({
})
},
async more(item) {
if (item.type == 1) {
getUrl(item.url)
} else if (item.type == 2) {
await hasLogin()
getWebUrl(item.url)
} else if (item.type == 3) {
await hasLogin()
getShopWebUrl(item.url)
const islogin = await hasLogin()
if (islogin === true) {
if (item.type == 1) {
getUrl(item.url)
} else if (item.type == 2) {
// await hasLogin()
getWebUrl(item.url)
} else if (item.type == 3) {
// await hasLogin()
getShopWebUrl(item.url)
}
}
// }
},
},
})