dxz1228 2 年之前
父節點
當前提交
f553fcb39a
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      src/pages/store/product/detail.vue

+ 2 - 2
src/pages/store/product/detail.vue

@@ -170,7 +170,7 @@ function loadProductDetail() {
170
           detail.value.price = detail.value.price * 30
170
           detail.value.price = detail.value.price * 30
171
         }
171
         }
172
       }
172
       }
173
-      state.isRelation = res.isRelation
173
+      state.isRelation = detail.value.isRelation
174
       if (res.merchant_type == 2) {
174
       if (res.merchant_type == 2) {
175
         xcxBanding({
175
         xcxBanding({
176
           mer_id: res.mer_id,
176
           mer_id: res.mer_id,
@@ -355,7 +355,7 @@ function previewImage(index: number) {
355
   //uniapp预览轮播图
355
   //uniapp预览轮播图
356
   uni.previewImage({
356
   uni.previewImage({
357
     current: index, // 预览图片的下标
357
     current: index, // 预览图片的下标
358
-    urls: state.detail.imgUrls // 预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
358
+    urls: detail.value.slider_image // 预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
359
   })
359
   })
360
 }
360
 }
361
 
361