zs 2 years ago
parent
commit
b71f00cef9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      pagesMy/order/service.vue

+ 4 - 1
pagesMy/order/service.vue

@@ -21,7 +21,7 @@
 							</view>
 						</view>
 						<view class="r">
-							<view v-if="info.type=='0'" class="price">
+							<view v-if="type=='0'" class="price">
 								¥{{info.sell_money}}
 							</view>
 							<view v-else class="price">
@@ -88,6 +88,8 @@
 		data() {
 			return {
 				id: '',
+				// 订单类型
+				type:'',
 				user: {},
 				// 商品详情
 				info: {},
@@ -281,6 +283,7 @@
 								let arr = await that.$api(`/orderDetail/${that.id}`, 'GET')
 								if (arr.errcode == '0') {
 									that.$set(that, `goodsList`, arr.data.goods)
+									that.$set(that, `type`, arr.data.type)
 								}
 							}
 						}