Quellcode durchsuchen

商品详情,店铺可返回

guhongwei vor 2 Jahren
Ursprung
Commit
985359d902
1 geänderte Dateien mit 16 neuen und 14 gelöschten Zeilen
  1. 16 14
      pagesHome/order/detail.vue

+ 16 - 14
pagesHome/order/detail.vue

@@ -2,12 +2,10 @@
 	<mobile-frame>
 		<view class="main">
 			<view class="onemain">
-				<scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem"
-					@scroll="handleScroll">
+				<scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem" @scroll="handleScroll">
 					<view class="list-scroll-view" id="top">
 						<view class="one">
-							<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
-								indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
+							<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
 								<swiper-item class="list" v-for="(item,index) in bannerList" :key="index">
 									<image class="image" :src="item.url" mode="">
 									</image>
@@ -70,8 +68,7 @@
 				</scroll-view>
 			</view>
 			<view class="foot">
-				<uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick"
-					@buttonClick="buttonClick" />
+				<uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick" @buttonClick="buttonClick" />
 			</view>
 		</view>
 		<view class="collect">
@@ -110,8 +107,7 @@
 				<view class="two">
 					<view class="two_1">规格</view>
 					<view class="two_2">
-						<text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)"
-							:class="{ 'style': isActive==index}">{{item.name}}</text>
+						<text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}</text>
 					</view>
 				</view>
 				<view class="thr">
@@ -167,10 +163,11 @@
 						icon: 'cart',
 						text: '购物车',
 						route: 'pages/market/index',
-					}, {
-						icon: 'chat',
-						text: '客服',
-					}
+					},
+					// {
+					// 	icon: 'chat',
+					// 	text: '客服',
+					// }
 				],
 				buttonGroup: [{
 						text: '加入购物车',
@@ -222,9 +219,14 @@
 		},
 		onShow: function() {},
 		methods: {
-			//店铺,购物车,客服跳转
+			//店铺,
+			// 购物车,客服跳转
 			onClick(e) {
-				if (e && e.content.route) {
+				if (e.index == '0' && e.content.route) {
+					uni.navigateTo({
+						url: `/${e.content.route}`
+					})
+				} else {
 					uni.reLaunch({
 						url: `/${e.content.route}`
 					})