guhongwei 2 年之前
父節點
當前提交
78230a9bdc
共有 1 個文件被更改,包括 3 次插入6 次删除
  1. 3 6
      pagesHome/order/components/specs_1.vue

+ 3 - 6
pagesHome/order/components/specs_1.vue

@@ -8,7 +8,7 @@
 						<view class="one">
 							<view class="one_1">
 								<view class="l">
-									<image class="image" :src="specfileList.length>0?specfileList[0].url:goodsfileList[0].url" mode="aspectFill" @tap="diaView"></image>
+									<image class="image" :src="specfileList&&specfileList.length>0?specfileList[0].url:goodsfileList&&goodsfileList.length>0?goodsfileList[0].url:''" mode="aspectFill" @tap="diaView"></image>
 								</view>
 								<view class="r">
 									<view class="money">
@@ -223,11 +223,8 @@
 				deep: true,
 				immediate: true,
 				handler(val) {
-					if (val && val.goods && val?.goods.length > 0) {
-						this.$set(this, `goodsInfo`, val?.goods)
-						if (val.goods && val.goods.file && val.goods.file.length > 0) {
-							this.$set(this, `goodsfileList`, val.goods.file)
-						}
+					if (val && val.goods && val.goods.file && val.goods.file.length > 0) {
+						this.$set(this, `goodsfileList`, val.goods.file)
 					}
 					if (val && val.act && val.act.length > 0) this.$set(this, `actList`, val?.act)
 					if (val && val.sets && val.sets.length > 0) this.$set(this, `setList`, val?.sets)