优化
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<view class='swiper-container'>
|
||||
<swiper class='swiper' :interval='1500' :duration='1000' @change='swiperChange'>
|
||||
<swiper-item v-for='(item,index) in [goodsBean?.images]' :key='index'>
|
||||
<image :src='item' />
|
||||
<image :src='item||defaultImage' />
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class='indicator' style='display: none'>
|
||||
@@ -48,7 +48,7 @@
|
||||
<view style='display: inline-block' v-for='(item, index) in recommendList'
|
||||
:key='index'>
|
||||
<view class='recommend-item c-flex-column'>
|
||||
<image :src='item.images' />
|
||||
<image :src='item.images||defaultImage' />
|
||||
<text>{{ item.goodsName }}</text>
|
||||
<text class='goods-price'>{{ item.price }}</text>
|
||||
</view>
|
||||
@@ -94,7 +94,7 @@
|
||||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
import { assetsUrl } from '@/utils/assets';
|
||||
import { assetsUrl, defaultImage } from '@/utils/assets';
|
||||
import SkuDialog from '@/components/sku-dialog.vue';
|
||||
import { goPath, showToast } from '@/utils';
|
||||
import { getGoodsDetail, getGoodsList } from '@/api/goods';
|
||||
|
Reference in New Issue
Block a user