From 12594b1b475a0f4034327ca91c1e6b959b59d73a Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Thu, 27 Mar 2025 14:33:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 57 ++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 67a16bb..4ec88fc 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -12,7 +12,7 @@ - + {{item.title}} @@ -124,22 +124,26 @@ { title: '景点门票', img: 'https://static.ticket.sz-trip.com/changshu/images/index/jdmp.png', - path: '' + path: '', + url: 'https://test.m.cloud.sz-trip.com/AttractionsTickets' }, { title: '非遗手作', img: 'https://static.ticket.sz-trip.com/changshu/images/index/fysz.png', - path: '' + path: '', + }, { title: '文创特产', img: 'https://static.ticket.sz-trip.com/changshu/images/index/wctc.png', - path: '' + path: '', + url: 'https://test.m.cloud.sz-trip.com/CulturalCreation', }, { title: '酒店住宿', img: 'https://static.ticket.sz-trip.com/changshu/images/index/jdzs.png', - path: '' + path: '', + url: 'https://test.m.cloud.sz-trip.com/nightMooring', }, { title: '电影购票', @@ -154,7 +158,7 @@ { title: '一卡游玩', img: 'https://static.ticket.sz-trip.com/changshu/images/index/ykyw.png', - path: '' + path: '', }, { title: '活动日历', @@ -164,7 +168,8 @@ { title: '特色线路', img: 'https://static.ticket.sz-trip.com/changshu/images/index/tsxl.png', - path: '' + path: '', + url: 'https://test.m.cloud.sz-trip.com/OneDayTravelNew', }, { title: '常熟周边', @@ -181,7 +186,7 @@ list: [], url: { jump_type:3, - tdata: 'https://m.cloud.sz-trip.com/AttractionsTickets' + tdata: 'https://test.m.cloud.sz-trip.com/AttractionsTickets' } }, { @@ -191,7 +196,7 @@ list: [], url: { jump_type:3, - tdata: 'https://m.cloud.sz-trip.com/CulturalCreation' + tdata: 'https://test.m.cloud.sz-trip.com/CulturalCreation' } } ], @@ -277,6 +282,20 @@ }, 500); }, methods: { + goPath (item) { + if (item.url) { + let isJDSZ = this.goJDSZMiniProgram(item.url) + if (isJDSZ) return + uni.navigateTo({ + url: '/subPackages/webPage/webPage?url=' + item.url + }); + } + + if(item.path) { + this.gotoPath(item.path) + } + }, + // banner跳转 // 2是各种详情页,3是列表专题页面,4是小程序 gotoUrlNew(item) { @@ -336,19 +355,19 @@ url: '/pages/login/login?needAuth=1' }) },200) - - return true } - + uni.navigateTo({ + url: '/subPackages/webPage/webPage?url=' + encodeURIComponent(`${tpage}?token=2d50b941-e204-4e5d-97c9-868430711459`) + }); // 获取授权code - this.checkIsLoginJdsz().then(res => { - if(res) { - uni.navigateTo({ - url: '/subPackages/webPage/webPage?url=' + encodeURIComponent(`${tpage}?token=` + res + '&isKunshan=1') - }); - } - }) + // this.checkIsLoginJdsz().then(res => { + // if(res) { + // uni.navigateTo({ + // url: '/subPackages/webPage/webPage?url=' + encodeURIComponent(`${tpage}?token=` + res) + // }); + // } + // }) return true } return false