Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-uniapp

master
paulGao 2021-12-13 19:33:21 +08:00
commit 85d0671443
1 changed files with 5 additions and 8 deletions

View File

@ -11,8 +11,9 @@
</div> </div>
</u-sticky> </u-sticky>
<div class="goods-list"> <div class="goods-list">
<div v-if="selected.index == item.___index || selected.val == item.type" @click="handleClick(item)" class="goods-item" <div v-if="item.___index != undefined ? (selected.index == item.___index) : ( selected.val == item.type)"
v-for="(item, item_index) in res.list[0].listWay" :key="item_index"> @click="handleClick(item)" class="goods-item" v-for="(item, item_index) in res.list[0].listWay"
:key="item_index">
<div class="goods-img"> <div class="goods-img">
<u-image :src="item.img" height="350rpx" mode="aspectFit" width="100%"> <u-image :src="item.img" height="350rpx" mode="aspectFit" width="100%">
<u-loading slot="loading"></u-loading> <u-loading slot="loading"></u-loading>
@ -53,11 +54,7 @@ export default {
immediate: true, immediate: true,
}, },
}, },
mounted () { mounted() {},
this.$u.getRect('.goods-cell-title').then(res=>{
console.log(res)
})
},
methods: { methods: {
handleClick(item) { handleClick(item) {
uni.navigateTo({ uni.navigateTo({