拼团模块新增完善对接接口等

This commit is contained in:
2022-08-24 16:47:25 +08:00
parent aa5c4a2c61
commit bb04fd3439
37 changed files with 11551 additions and 5425 deletions

View File

@@ -25,8 +25,13 @@
<view class="classify-item-title">{{item.name}}</view>
</view>
</view>
</u-scroll-list>
</u-scroll-list>
<!-- 拼团广告图 -->
<view class="collage" v-if="collage_banner!=''">
<image @click="goCollage" :src="collage_banner" mode="widthFix" />
</view>
<!-- 每日上新 -->
<view class="new-box">
<view class="title">上新精选<text class="title-des"> | 精品上新新品推荐</text></view>
@@ -40,11 +45,11 @@
<view class="news-price nowrap">{{item.price.price_min}} <text>DT积分</text></view>
</view>
</view>
</view>
</view>
<!-- VIP换购 -->
<view class="new-box" style="margin-top: 30rpx;" v-if="vips.length>0">
<view class="title">VIP换购 <view class="more"><text class="title-des"> | 款商品任意换购</text> <text
<view class="title">VIP换购 <view class="more"><text class="title-des"> | 款商品任意换购</text> <text
class="more-txt" @click="$Router.push({name: 'VipList'})">更多 ></text></view>
</view>
<view class="news">
@@ -116,7 +121,8 @@
goodsArr: [],
meals: [],
shops: [],
vips:[]
vips:[],
collage_banner:''
};
},
mounted() {
@@ -131,12 +137,17 @@
this.goodTabs = res.categories
this.meals = res.meals
this.shops = res.shops
this.vips = res.vips
this.vips = res.vips
this.collage_banner = res.collage_banner
uni.stopPullDownRefresh()
})
},
goCollage(){
uni.navigateTo({
url:'/pages/group-book/index'
})
},
goBook(item) {
console.log(item)
if (item.url) {
if (item.url.openType === 'navigateTo') {
if (item.url.params != '') {
@@ -302,6 +313,14 @@
&-item:nth-child(2) {
background: #c9ead9;
}
}
// 全民拼团
.collage{
box-sizing: border-box;
image{
width: 100%;
height: 0;
}
}
// 上新精选