mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:03:27 +08:00
【修复】修复【三级分类仿叮咚买菜】商品分类样式下,首个商品分类图片为空的情况。
This commit is contained in:
@@ -137,10 +137,9 @@
|
||||
<view class="primary-classification">
|
||||
<scroll-view class="primary-view" scroll-x="true" scroll-with-animation :scroll-left="scrollLeft">
|
||||
<view :class="[{ 'active': index == primaryClassificationIndex }, 'menu-box classification-box']"
|
||||
v-for="(item, index) in menus" :key="index" @click="hanldePrimaryClassificationChange(index)">
|
||||
<image class="img" v-if="index != 0" :src="item.imageUrl"></image>
|
||||
<image class="img" v-else :src="$globalConstVars.apiFilesUrl+'/static/images/empty/noImage.jpg'">
|
||||
</image>
|
||||
v-for="(item, index) in menus" :key="index" @click="hanldePrimaryClassificationChange(index)">
|
||||
<image class="img" v-if="item.imageUrl" :src="item.imageUrl"></image>
|
||||
<image class="img" v-else :src="$globalConstVars.apiFilesUrl+'/static/images/empty/noImage.jpg'"></image>
|
||||
<view class="name">{{ item.name }}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
Reference in New Issue
Block a user