根据小程序登录规范调整代码
This commit is contained in:
parent
5aa1f18448
commit
b8dc69905e
@ -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)) {
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
<image :src="serverLeft" mode="aspectFill" />
|
<image :src="serverLeft" mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
<view class="serverList1_right">
|
<view class="serverList1_right">
|
||||||
<view :class="['serverItemRight', `serverItemRight${index + 1}`]"
|
<view :class="['serverItemRight', `serverItemRight${index + 1}`]"
|
||||||
@tap="index === 1 ? toAdvertisingView(serverRightList) : headerServerClick(item)"
|
@tap="index === 1 ? toAdvertisingView(serverRightList) : headerServerClick(item)"
|
||||||
v-for="(item, index) in serverRightList" :key="index">
|
v-for="(item, index) in serverRightList" :key="index">
|
||||||
<image :src="item.pic_src" mode="" />
|
<image :src="item.pic_src" mode="" />
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user