[下单微信支付处理及首页隐藏优惠券和更多]

This commit is contained in:
2021-10-27 17:31:29 +08:00
parent e4b1f33c6c
commit 58ec38837a
3 changed files with 159 additions and 169 deletions

View File

@@ -106,11 +106,12 @@
</view>
<!-- 分类 -->
<view class="classify">
<view class="classify-item" v-for="(item, index) in classify" :key="index" @click="onClassify(item.category_id)">
<view class="classify-item" v-for="(item, index) in classify" :key="index"
@click="onClassify(item.category_id)">
<image class="cover" :src="item.cover" mode="aspectFill"></image>
<view class="title">{{item.name}}</view>
</view>
<view class="classify-item" @click="onClassify('')">
<view class="classify-item" @click="onClassify('')">
<image class="cover" src="../../static/icons/equity_nav.png" mode="aspectFill"></image>
<view class="title">查看全部</view>
</view>
@@ -137,13 +138,13 @@
</view>
</view>
<!-- 优惠券 -->
<view class="block-title">
<!-- <view class="block-title">
<view class="title">
限时抢购<text>海量商家优惠券</text>
</view>
<view class="more" @click="onCoupons('more')">查看更多</view>
</view>
<view class="coupons" v-if="coupons.length > 0">
</view> -->
<view class="coupons" v-if="coupons.length < 0">
<view class="coupons-item" v-for="(item, index) in coupons" :key="index">
<view class="content">
<view class="coupons-title">
@@ -169,6 +170,11 @@
@click="onCoupons('get', item.coupon_id, index)">{{item.can.get ? '立即领取' : '已领取'}}</button>
</view>
</view>
<view class="block-title">
<view class="title">
优选商品<text>海量商家商品优选</text>
</view>
</view>
<!-- 优选商品 -->
<goods-list :list="goods" priceType="CNY" @on-goods="onGoods" />
<!-- 分页 -->
@@ -258,7 +264,7 @@
// }
// })
uni.navigateTo({
url:'/pages/equity/search?type='+this.tabIndex +''
url: '/pages/equity/search?type=' + this.tabIndex + ''
})
break
}
@@ -374,7 +380,7 @@
// name: 'goodsList'
// })
uni.navigateTo({
url:`/pages/goods/lists?type=id&id=${id}`
url: `/pages/goods/lists?type=id&id=${id}`
})
},
// 打开微信小程序