comment 7.24

This commit is contained in:
ghusermoon 2020-07-24 20:35:28 +08:00
parent dd71a0f32a
commit 5abb3f2496
5 changed files with 32 additions and 28 deletions

View File

@ -23,14 +23,12 @@ export default {
components:{ components:{
sitem sitem
}, },
props: {
classifyList: Array,
},
data(){ data(){
return { return {
current: -1, current: -1,
swiperCurrent: 0, swiperCurrent: 0,
groupList: [], // groupList: [], //
classifyList: [],
} }
}, },
watch: { watch: {
@ -39,9 +37,18 @@ export default {
} }
}, },
created() { created() {
this.current = 0; this.getGoodsClass();
}, },
methods: { methods: {
//
getGoodsClass() {
this.$u.api.getGoodsClass().then(res => {
if(res.errCode == 0) {
this.classifyList = res.data;
this.current = 0;
}
})
},
// //
getPinTuanList(id) { getPinTuanList(id) {
this.$u.api.getPinTuanList({ this.$u.api.getPinTuanList({
@ -88,7 +95,7 @@ export default {
} }
.list { .list {
box-sizing: border-box; box-sizing: border-box;
padding: 30rpx; padding: 0 30rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }

View File

@ -57,7 +57,7 @@ export default {
page: this.page, page: this.page,
reload: false, reload: false,
}).then(length => { }).then(length => {
console.log(length); // console.log(length);
if(length == 0) { if(length == 0) {
this.page--; this.page--;
this.loadStatus = 'nomore'; this.loadStatus = 'nomore';

View File

@ -35,7 +35,7 @@ export default {
props: ['recommendData', 'type'], props: ['recommendData', 'type'],
created() { created() {
this.info = this.recommendData; this.info = this.recommendData;
console.log(this.recommendData); // console.log(this.recommendData);
}, },
methods: { methods: {
toDetailsPage() { toDetailsPage() {

View File

@ -72,7 +72,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-popup v-model="showGroupUser" mode="center"> <u-popup v-model="showGroupUser" mode="center" z-index="10078">
<view class="launch-container"> <view class="launch-container">
<view class="title u-line-1">正在拼团</view> <view class="title u-line-1">正在拼团</view>
<scroll-view class="launch-view"> <scroll-view class="launch-view">
@ -81,6 +81,7 @@
<image class="avatar" :src="user[0].member_avatar"></image> <image class="avatar" :src="user[0].member_avatar"></image>
<view class="name u-line-1">{{ user[0].member_nickname }}</view> <view class="name u-line-1">{{ user[0].member_nickname }}</view>
</view> </view>
<view class="pintuan-none" v-if="!groupUser.length">暂无拼团</view>
</view> </view>
</scroll-view> </scroll-view>
<image class="close" src="/static/image/common/17.png" @click="showGroupUser=false"></image> <image class="close" src="/static/image/common/17.png" @click="showGroupUser=false"></image>
@ -209,11 +210,6 @@ export default {
this.xuanze(value); this.xuanze(value);
}, },
}, },
onShow() {
this.showSpec = false;
this.showGroupUser = false;
this.showInvolvementUser = false;
},
onLoad(option) { onLoad(option) {
// this.init(); // this.init();
// console.log(option); // console.log(option);
@ -222,6 +218,11 @@ export default {
this.getGoodsDetails(this.id); this.getGoodsDetails(this.id);
this.setTitle(); this.setTitle();
}, },
onShow() {
this.showSpec = false;
this.showGroupUser = false;
this.showInvolvementUser = false;
},
beforeDestroy() { beforeDestroy() {
clearInterval(this.timer); clearInterval(this.timer);
}, },
@ -747,6 +748,11 @@ export default {
margin-right: 80rpx; margin-right: 80rpx;
} }
} }
.pintuan-none {
font-size: 36rpx;
color: #333;
margin: 100rpx auto 0;
}
} }
} }
@ -852,7 +858,7 @@ export default {
display: flex; display: flex;
font-size: 32rpx; font-size: 32rpx;
color: rgba(255,255,255,1); color: rgba(255,255,255,1);
z-index: 99; z-index: 10076;
.launch { .launch {
flex: 1; flex: 1;
background: rgba(253,211,96,1); background: rgba(253,211,96,1);
@ -873,7 +879,7 @@ export default {
width: 100%; width: 100%;
height: 98rpx; height: 98rpx;
display: flex; display: flex;
z-index: 99; z-index: 10076;
.left { .left {
width: 190rpx; width: 190rpx;
display: flex; display: flex;
@ -914,7 +920,7 @@ export default {
width: 100%; width: 100%;
bottom:0; bottom:0;
border-top: 1rpx solid #ececec; border-top: 1rpx solid #ececec;
z-index: 1000000; z-index: 10076;
.navs{ .navs{
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -42,7 +42,7 @@
<!-- 拼团推荐 --> <!-- 拼团推荐 -->
<pintuan v-if="JSON.stringify(pinTuanPush) != '{}'" :recommendData="pinTuanPush"></pintuan> <pintuan v-if="JSON.stringify(pinTuanPush) != '{}'" :recommendData="pinTuanPush"></pintuan>
<!-- 拼团列表 --> <!-- 拼团列表 -->
<group :classifyList="couponGroupList"></group> <group></group>
<image class="lingquan"></image> <image class="lingquan"></image>
<youhq></youhq> <youhq></youhq>
<list ref="recommendGoods"></list> <list ref="recommendGoods"></list>
@ -83,11 +83,11 @@ export default {
keyword: "", keyword: "",
list: [], list: [],
goodsClassify: [], // goodsClassify: [], //
classifyList: [], // classifyList: [],
recommendedSpike: {}, // recommendedSpike: {}, //
spikeList: [], // spikeList: [], //
seckillTime: {}, // seckillTime: {}, //
couponGroupList: [], // // couponGroupList: [], //
pinTuanPush: {}, // pinTuanPush: {}, //
} }
}, },
@ -97,7 +97,6 @@ export default {
onShow() { onShow() {
this.getRecommendedSpike(); this.getRecommendedSpike();
this.getSpikeList(); this.getSpikeList();
this.getGoodsClass();
this.getPinTuanPush(); this.getPinTuanPush();
}, },
methods: { methods: {
@ -137,14 +136,6 @@ export default {
} }
}) })
}, },
//
getGoodsClass() {
this.$u.api.getGoodsClass().then(res => {
if(res.errCode == 0) {
this.couponGroupList = res.data;
}
})
},
// //
getSpikeList() { getSpikeList() {
this.$u.api.getSpikeList({ page: 0 }).then(res => { this.$u.api.getSpikeList({ page: 0 }).then(res => {