根据小程序登录规范调整代码

This commit is contained in:
赵毅 2025-09-30 16:07:03 +08:00
parent 5aa1f18448
commit b8dc69905e
2 changed files with 5 additions and 4 deletions

View File

@ -199,6 +199,7 @@ export default {
const authen = [ const authen = [
"/pages/index/index", "/pages/index/index",
"/pages/user/index", "/pages/user/index",
"/packages/smartDevice/index/index",
]; ];
// ctoken tab访 // ctoken tab访
if (authen.includes(url)) { if (authen.includes(url)) {

View File

@ -355,7 +355,7 @@ export default {
// 广 // 广
toAdvertisingView(itemArry) { toAdvertisingView(itemArry) {
const item = itemArry[0] const item = itemArry[0]
NavgateTo('/packages/advertising/index/index?id=' + item.id) NavgateTo('/packages/advertising/index/index?id=' + item.id, { isLogin: false })
}, },
async goToWuye() { async goToWuye() {
@ -555,7 +555,7 @@ export default {
async headerServerClick2(e) { async headerServerClick2(e) {
if (e.title == '更多') { if (e.title == '更多') {
NavgateTo('/packages/localLife/index/index') NavgateTo('/packages/localLife/index/index', { isLogin: false })
} }
const cate_id = this.categoryList.find(item => item.cate_name == e.title)?.id; const cate_id = this.categoryList.find(item => item.cate_name == e.title)?.id;
if (cate_id) { if (cate_id) {
@ -598,7 +598,7 @@ export default {
} }
}) })
} else { } else {
NavgateTo(e.link_url) NavgateTo(e.link_url, { isLogin: false })
// NavgateTo('/packages/localLife/index/index') // NavgateTo('/packages/localLife/index/index')
} }
// 使web-view // 使web-view