dxz1228 2 years ago
parent
commit
f553fcb39a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/pages/store/product/detail.vue

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

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