guhongwei 2 年之前
父节点
当前提交
4fe055e474
共有 2 个文件被更改,包括 17 次插入21 次删除
  1. 15 19
      pagesHome/order/parts/banner_1.vue
  2. 2 2
      pagesHome/order/detail.vue

+ 15 - 19
pagesHome/order/parts/banner_1.vue

@@ -1,25 +1,21 @@
 <template>
-	<mobile-frame>
-		<view class="banner">
-			<view class="banner_1">
-				<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
-					indicator-active-color="#FB1438" :interval="3000" :duration="1000">
-					<swiper-item class="list" v-for="(item,index) in goodsInfo.file" :key="index">
-						<image class="image" :src="item.url" mode="aspectFit">
-						</image>
-					</swiper-item>
-				</swiper>
-				<!-- 是否关注商品 -->
-				<view class="goodsColect">
-					<text @tap="toGoodscolect"
-						:class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
-				</view>
-				<view class="acttags" v-if="goodsInfo.act_tags&&goodsInfo.act_tags.length>0">
-					<text v-for="(i,indexx) in goodsInfo.act_tags" :key="indexx">{{i.label}}</text>
-				</view>
+	<view class="banner">
+		<view class="banner_1">
+			<swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :interval="3000" :duration="1000">
+				<swiper-item class="list" v-for="(item,index) in goodsInfo.file" :key="index">
+					<image class="image" :src="item.url" mode="aspectFit">
+					</image>
+				</swiper-item>
+			</swiper>
+			<!-- 是否关注商品 -->
+			<view class="goodsColect">
+				<text @tap="toGoodscolect" :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
+			</view>
+			<view class="acttags" v-if="goodsInfo.act_tags&&goodsInfo.act_tags.length>0">
+				<text v-for="(i,indexx) in goodsInfo.act_tags" :key="indexx">{{i.label}}</text>
 			</view>
 		</view>
-	</mobile-frame>
+	</view>
 </template>
 
 <script>

+ 2 - 2
pagesHome/order/detail.vue

@@ -19,7 +19,7 @@
 							<text v-if="discount.full_fold&&discount.full_decrement.length>0" class="act" v-for="(item,index) in discount.full_fold" :key="index">{{item}}</text>
 						</view>
 						<view class="one_4">
-							<text class="num">已售{{info.goods.sell_num||0}}件</text>
+							<text class="num">已售{{info.goods&&info.goods.sell_num||0}}件</text>
 						</view>
 						<view class="one_5">
 							5
@@ -35,7 +35,7 @@
 </template>
 
 <script>
-	import banner from './parts/banner_1.vue';
+	import banner from './components/banner_1.vue';
 	export default {
 		components: {
 			banner