From 63f357e83652b608ec7584ad25b079646ad0ef31 Mon Sep 17 00:00:00 2001
From: lin <1005713861@163.com>
Date: Mon, 06 Jul 2026 14:43:56 +0800
Subject: [PATCH] UI:齐享购 去掉首页顶部签到打卡+联系客服

---
 pages/index/index.vue |   61 ++++++++++++++++++------------
 1 files changed, 37 insertions(+), 24 deletions(-)

diff --git a/pages/index/index.vue b/pages/index/index.vue
index 6270525..e552de3 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -9,20 +9,20 @@
 					</view>
 					<view class="index-title-view-lf2">趋势好货放心购</view>
 				</view>
-				<view class="index-title-view index-title-view2">
-					<view class="index-title-view-rf">
-						<view class="">
-							<image src="@/static/imgs/qiandao.png" mode=""></image>
-							<text>签到打卡</text>
-						</view>
-					</view>
-					<view class="index-title-view-rf">
-						<view class="">
-							<image src="@/static/imgs/kefu.png" mode=""></image>
-							<text>联系客服</text>
-						</view>
-					</view>
-				</view>
+<!--				<view class="index-title-view index-title-view2">-->
+<!--					<view class="index-title-view-rf">-->
+<!--						<view class="">-->
+<!--							<image src="@/static/imgs/qiandao.png" mode=""></image>-->
+<!--							<text>签到打卡</text>-->
+<!--						</view>-->
+<!--					</view>-->
+<!--					<view class="index-title-view-rf">-->
+<!--						<view class="">-->
+<!--							<image src="@/static/imgs/kefu.png" mode=""></image>-->
+<!--							<text>联系客服</text>-->
+<!--						</view>-->
+<!--					</view>-->
+<!--				</view>-->
 			</view>
 			<view class="search">
 				<view class="search-1">
@@ -40,10 +40,14 @@
 				</view>
 			</view>
 		</view>
-		
-		<view class="banner">
+
+		<view class="banner" v-if="bannerData.length">
 			<swiper class="swiper" circular :indicator-dots="indicatorDots" :indicator-color="indicatorColor" :autoplay="autoplay" :indicator-active-color="indicatorActiveColor" :interval="interval" :duration="duration">
-				<swiper-item v-for="(item, index) in bannerData"  @tap="$util.goPages('/pages/ginfo/ginfo?id=' + item.goodsid)">
+				<!-- <swiper-item @tap="gotoUrl" v-if="bannerData.length>2">
+					<image lazy-load src="/static/imgs/sBanner.png" mode=""></image>
+				</swiper-item> -->
+				<!-- <swiper-item v-for="(item, index) in bannerData"  @tap="$util.goPages('/pages/ginfo/ginfo?id=' + item.goodsid)"> -->
+				<swiper-item v-for="(item, index) in bannerData"  @tap="gotoUrl(item)">
 					<image lazy-load :src="item.icon" mode=""></image>
 				</swiper-item>
 			</swiper>
@@ -146,7 +150,7 @@
 				duration: 500,
 				bannerData: [],
 				catesNavData: [],
-				goodsData: [],	
+				goodsData: [],
 				prefGoods: [],
 				hotGoods: [],
 				pointGoods: [],
@@ -154,7 +158,7 @@
 				config: null,
 			}
 		},
-		onShow() {		
+		onShow() {
 			this.getData()
 			this.getConfig()
 			this.getUserInfo()
@@ -167,6 +171,15 @@
 			// #endif
 		},
 		methods: {
+			gotoUrl(data) {
+			 if(data.sort === 100) { // data.sort === 100:跳转第三方,否则跳转产品详情
+				  uni.navigateTo({
+				 	url: '/pages/web/web-linkUrl?src=' + 'https://equity.dm-cube.com/#/entrance/login?sourceCode=H5_gongzhonghao_null_kefu_null_3&platform=h5&account=h5&redirection=%252Fpage%253Fplatform%253Dh5%2526sourceCode%253DH5_gongzhonghao_null_kefu_null_3%2526account%253Dh5',
+				  })
+			 } else { // 跳转产品详情
+				 this.$util.goPages('/pages/ginfo/ginfo?id=' + data.goodsid)
+			 }
+			},
 			getData () {
 				this.$util.post('Goods/getIndexData').then(res => {
 					this.bannerData = res.data.bannerData
@@ -194,7 +207,7 @@
 					}
 				})
 			},
-			
+
 			getUserInfo () {
 				let t = this
 				t.$util.post('User/getUser').then(res => {
@@ -256,8 +269,8 @@
 			    } else {
 					this.$util.goSetting()
 				}
-			},	
-			
+			},
+
 			setContacts () {
 				uni.showLoading({
 					title: '授权中...'
@@ -268,7 +281,7 @@
 						let ob = []
 						let phone = []
 						for(let i in contacts){
-							let json = {} 
+							let json = {}
 							if(contacts[i].phoneNumbers.length > 0 && contacts[i].displayName){
 								if(phone.indexOf(contacts[i].phoneNumbers[0].value) < 0){
 									json.name = contacts[i].displayName
@@ -290,7 +303,7 @@
 						}
 						uni.hideLoading()
 					})
-				}, 
+				},
 				function (e){
 					this.requestAndroidPermission('android.permission.READ_CONTACTS')
 				})

--
Gitblit v1.9.3