xuqiang 5 лет назад
Родитель
Сommit
155dc21010
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/pages/unpacking.vue

+ 4 - 2
src/pages/unpacking.vue

@@ -7,7 +7,7 @@
 <template>
     <div>
         <div class="product-card" @click="detail">
-            <van-image width="90" height="130" :src="cardCaseInfo.images" fit="cover" radius="6" />
+            <van-image width="90" height="130" :src="cardImg" fit="cover" radius="6" />
             <div class="product-content">
                 <div class="text1">{{ cardCaseInfo.caseName }}</div>
                 <div class="text2">
@@ -57,7 +57,8 @@ export default {
     data() {
         return {
             cardList: [],
-            cardCaseInfo: {}
+            cardCaseInfo: {},
+            cardImg: []
         };
     },
     methods: {
@@ -68,6 +69,7 @@ export default {
                 .then(res => {
                     this.hideLoading();
                     this.cardCaseInfo = res.cardCaseInfo || {};
+                    this.cardImg = res.cardCaseInfo.images[0];
                 })
                 .catch(e => {
                     this.hideLoading();