Merge pull request '...' (#242) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/242
This commit is contained in:
commit
72fa854e78
@ -14,7 +14,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="scroll-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
<scroll-view scroll-y class="scroll-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
||||||
<view class="goods-container">
|
<view class="goods-container">
|
||||||
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-view" @click="toDetailsPage(goods.goods_id)">
|
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-view">
|
||||||
<goodsItem :info="goods"></goodsItem>
|
<goodsItem :info="goods"></goodsItem>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -128,12 +128,6 @@ export default {
|
|||||||
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * 90 + 'px';
|
this.scrollHeight = res.windowHeight - (res.windowWidth / 750) * 90 + 'px';
|
||||||
// console.log(this.scrollHeight);
|
// console.log(this.scrollHeight);
|
||||||
},
|
},
|
||||||
toDetailsPage(id) {
|
|
||||||
this.$u.route('/pageB/sdetails/index', {
|
|
||||||
id: id,
|
|
||||||
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
|
|
||||||
});
|
|
||||||
},
|
|
||||||
setTitle(title){
|
setTitle(title){
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: title
|
title: title
|
||||||
|
Loading…
Reference in New Issue
Block a user