fix: 🐛 修改在部分手机分辨率下首页文字有误bug
parent
fddceb5f36
commit
dae3e74a60
|
@ -37,7 +37,7 @@
|
||||||
</u-image>
|
</u-image>
|
||||||
</div>
|
</div>
|
||||||
<div class="goods-desc">
|
<div class="goods-desc">
|
||||||
<div class="goods-title">
|
<div class="goods-title" :style="{ height: (proportion * 34) + 'rpx' }">
|
||||||
{{ item.title }}
|
{{ item.title }}
|
||||||
</div>
|
</div>
|
||||||
<div class="goods-bottom">
|
<div class="goods-bottom">
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
</u-image>
|
</u-image>
|
||||||
</div>
|
</div>
|
||||||
<div class="goods-desc">
|
<div class="goods-desc">
|
||||||
<div class="goods-title">
|
<div class="goods-title" :style="{ height: (proportion * 34) + 'rpx' }">
|
||||||
{{ item.goodsName }}
|
{{ item.goodsName }}
|
||||||
</div>
|
</div>
|
||||||
<div class="goods-bottom">
|
<div class="goods-bottom">
|
||||||
|
@ -100,6 +100,7 @@ export default {
|
||||||
},
|
},
|
||||||
goodsData: [], //商品循环内容
|
goodsData: [], //商品循环内容
|
||||||
goodsResult:"", //es总返回内容
|
goodsResult:"", //es总返回内容
|
||||||
|
proportion:0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res","enableBottomLoad"],
|
props: ["res","enableBottomLoad"],
|
||||||
|
@ -119,6 +120,10 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const winWidth = uni.getSystemInfoSync().windowWidth
|
||||||
|
const proportion = 750 / winWidth
|
||||||
|
this.proportion = proportion
|
||||||
|
|
||||||
uni.$on('onReachBottom',()=>{
|
uni.$on('onReachBottom',()=>{
|
||||||
if(this.enableBottomLoad && this.goodsResult.totalElements >= this.params.pageNumber * this.params.pageSize){
|
if(this.enableBottomLoad && this.goodsResult.totalElements >= this.params.pageNumber * this.params.pageSize){
|
||||||
this.params.pageNumber++
|
this.params.pageNumber++
|
||||||
|
|
Loading…
Reference in New Issue