zs 2 years ago
parent
commit
7ee76c4d01
1 changed files with 5 additions and 2 deletions
  1. 5 2
      pagesMy/order/noService.vue

+ 5 - 2
pagesMy/order/noService.vue

@@ -2,7 +2,7 @@
 	<mobile-frame>
 	<mobile-frame>
 		<view class="main">
 		<view class="main">
 			<view class="one">
 			<view class="one">
-				<view class="list" v-for="(item,index) in goodsList" :key="index" >
+				<view class="list" v-for="(item,index) in goodsList" :key="index">
 					<view class="list_1">
 					<view class="list_1">
 						<text>退款商品</text>
 						<text>退款商品</text>
 					</view>
 					</view>
@@ -18,7 +18,7 @@
 							</view>
 							</view>
 						</view>
 						</view>
 						<view class="r">
 						<view class="r">
-							<view v-if="item.type=='0'" class="price">
+							<view v-if="type=='0'" class="price">
 								¥{{item.sell_money}}
 								¥{{item.sell_money}}
 							</view>
 							</view>
 							<view v-else class="price">
 							<view v-else class="price">
@@ -52,6 +52,7 @@
 				id: '',
 				id: '',
 				user: {},
 				user: {},
 				form: {},
 				form: {},
+				type: '',
 				// 退货商品
 				// 退货商品
 				goodsList: [],
 				goodsList: [],
 				icon: [],
 				icon: [],
@@ -107,6 +108,7 @@
 								let arr = await that.$api(`/orderDetail/${that.id}`, 'GET')
 								let arr = await that.$api(`/orderDetail/${that.id}`, 'GET')
 								if (arr.errcode == '0') {
 								if (arr.errcode == '0') {
 									that.$set(that, `goodsList`, arr.data.goods)
 									that.$set(that, `goodsList`, arr.data.goods)
+									that.$set(that, `type`, arr.data.type)
 								}
 								}
 							}
 							}
 						}
 						}
@@ -191,6 +193,7 @@
 
 
 		.two {
 		.two {
 			padding: 2vw;
 			padding: 2vw;
+
 			.btn {
 			.btn {
 				text-align: center;
 				text-align: center;