积分抵扣、霸王餐、优惠券分享新增

This commit is contained in:
GaoHao
2024-11-07 15:02:44 +08:00
parent bec723cd69
commit 7b81e2ffb0
29 changed files with 2375 additions and 887 deletions

View File

@@ -24,8 +24,13 @@
<view class="price-wrap" style="padding-top: 0;" >
<view class="price">
<text class="i"></text>
<text class="num">{{ item.salePrice }}</text>
<text class="num" v-if="shopUserInfo.isVip ==1 && item.memberPrice>0" style="margin-right: 10rpx;">{{ item.memberPrice }}</text>
<text class="i" v-if="shopUserInfo.isVip ==1 && item.memberPrice>0" :class="{lineThrough: shopUserInfo.isVip ==1 && item.memberPrice>0}"></text>
<text class="num" :class="{lineThrough: shopUserInfo.isVip ==1 && item.memberPrice>0}">{{ item.salePrice }}</text>
</view>
<view class="operation-wrap">
<view class="btn" v-if="item.number" >
<u-icon name="minus-circle-fill" size="50"></u-icon>
@@ -82,7 +87,7 @@
},
data() {
return {
shopUserInfo: uni.cache.get('shopUserInfo')
}
},
@@ -297,6 +302,12 @@
}
.num {}
.lineThrough{
font-weight: normal;
text-decoration:line-through;
color: #999!important;
font-size: 24rpx!important;
}
}
.sku-wrap {

View File

@@ -11,7 +11,8 @@
</view>
<text class="i"></text>
<text class="num">{{cartLists.amount||'0.00'}}</text>
<text class="num" v-if="shopUserInfo.isVip == 1 && cartLists.memberAmount > 0">{{cartLists.memberAmount||'0.00'}}</text>
<text class="num" v-else >{{cartLists.amount||'0.00'}}</text>
</view>
<view class="btn" @tap="$u.debounce(orderdetail, 500)" >
<text class="t">去结算</text>
@@ -26,7 +27,7 @@
data() {
return {
shopUserInfo: uni.cache.get('shopUserInfo')
}
},
props:{

View File

@@ -61,7 +61,14 @@
<view v-if="item.isPauseSale != 0 || item.isSale == 0 " class="flex-between" style="margin-top: 32rpx;margin-bottom: 48rpx;">
<view class="panelfiveitemsex flex-between">
<view class="panelfiveitemsex_oen"><text>¥</text><text>{{item.lowPrice}}</text><text>/{{item.unitSnap}}</text></view>
<view class="panelfiveitemsex_oen">
<text class="tips">¥</text>
<text class="price" v-if="isVip ==1 && item.lowMemberPrice>0" style="margin-right: 10rpx;">{{item.lowMemberPrice}}</text>
<text class="tips" v-if="isVip ==1 && item.lowMemberPrice>0" :class="{lineThrough: isVip ==1 && item.lowMemberPrice>0}">¥</text>
<text class="price" :class="{lineThrough: isVip ==1 && item.lowMemberPrice>0}">{{item.lowPrice}}</text>
<text class="unit" v-if="!(isVip ==1 && item.lowMemberPrice>0)">/{{item.unitSnap}}</text>
</view>
</view>
<view class="panelfiveitemNum" >
@@ -73,8 +80,17 @@
</view>
<view v-else class="flex-between" style="margin-top: 32rpx;margin-bottom: 48rpx;">
<view class="panelfiveitemsex flex-between">
<view class="panelfiveitemsex_oen"><text>¥</text><text>{{item.lowPrice}}</text><text>/{{item.unitSnap}}</text></view>
<view class="panelfiveitemsex_oen">
<text class="tips">¥</text>
<text class="price" v-if="isVip ==1 && item.lowMemberPrice>0" style="margin-right: 10rpx;">{{item.lowMemberPrice}}</text>
<text class="tips" v-if="isVip ==1 && item.lowMemberPrice>0" :class="{lineThrough: isVip ==1 && item.lowMemberPrice>0}">¥</text>
<text class="price" :class="{lineThrough: isVip ==1 && item.lowMemberPrice>0}">{{item.lowPrice}}</text>
<text class="unit" v-if="!(isVip ==1 && item.lowMemberPrice>0)">/{{item.unitSnap}}</text>
</view>
</view>
<view v-if="item.suit > 1">
<view class="panelfiveitemNum">
<view class="sku-wrap flex-center" @click.stop="clickspecifications(item,index,index1)">
@@ -152,7 +168,13 @@
<view v-if="item1.isPauseSale != 0 || item1.isSale == 0 " class="flex-between">
<view class="money"><text class="money_num">{{ item1.lowPrice }}</text>/{{item1.unitSnap}}</view>
<view class="money">
<view></view>
<text class="money_num" v-if="isVip ==1 && item1.lowMemberPrice>0" style="margin-right: 10rpx;">{{ item1.lowMemberPrice }}</text>
<view v-if="isVip ==1 && item1.lowMemberPrice>0" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}"></view>
<text class="money_num" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}">{{ item1.lowPrice }}</text>
<text v-if="!(isVip ==1 && item1.lowMemberPrice>0)">/{{item1.unitSnap}}</text>
</view>
<view class="flex-end" >
<view class="sku-wrap flex-center" style="background-color: #CECECE;">
<text class="t" v-if="item1.isSale == 0" >非可售时间</text>
@@ -161,7 +183,15 @@
</view>
</view>
<view v-else class="flex-between">
<view class="money"><text class="money_num">{{ item1.lowPrice }}</text>/{{item1.unitSnap}}</view>
<view class="money">
<view></view>
<text class="money_num" v-if="isVip ==1 && item1.lowMemberPrice>0" style="margin-right: 10rpx;">{{ item1.lowMemberPrice }}</text>
<view v-if="isVip ==1 && item1.lowMemberPrice>0" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}"></view>
<text class="money_num" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}">{{ item1.lowPrice }}</text>
<text v-if="!(isVip ==1 && item1.lowMemberPrice>0)">/{{item1.unitSnap}}</text>
</view>
<view v-if="item1.suit > 1">
<view class="flex-end" >
<view class="sku-wrap flex-center"
@@ -356,6 +386,8 @@
cartLists: {}, //购物车
cartLists_count: 0,
shopInfo: {}, //店铺信息
shopUserInfo: {},
isVip: null,
shopProductList: {}, //商品信息
specifications: {}, // 规格信息
querySpecList: [],
@@ -584,6 +616,7 @@
})
if (res.code == 0) {
this.shopUserInfo = res.data;
this.isVip = res.data.isVip;
uni.cache.set('shopUserInfo', res.data)
}
},
@@ -1321,33 +1354,27 @@
.panelfiveitemsex {
.panelfiveitemsex_oen {
text:nth-child(1) {
.tips {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 24rpx;
color: #333333;
}
text:nth-child(2) {
.price {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: bold;
font-size: 36rpx;
color: #333333;
}
text:nth-child(3) {
.unit {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 36rpx;
color: #333333;
}
text:nth-child(4) {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 24rpx;
color: #666666;
}
}
}
@@ -1900,7 +1927,8 @@
font-weight: bold;
font-size: 24rpx;
color: #333;
display: flex;
align-items: flex-end;
.money_num {
font-size: 28rpx;
color: #333;
@@ -1977,4 +2005,12 @@
}
}
.lineThrough{
font-weight: normal;
text-decoration:line-through;
color: #999!important;
font-size: 24rpx!important;
}
.money_num.lineThrough{
}
</style>

View File

@@ -37,7 +37,13 @@
<view v-if="item1.isPauseSale != 0 " class="flex-between" >
<view class="money"><text class="money_num">{{ item1.lowPrice }}</text>/{{item1.unitSnap}}</view>
<view class="money">
<view></view>
<text class="money_num" v-if="isVip ==1 && item1.lowMemberPrice>0" style="margin-right: 10rpx;">{{ item1.lowMemberPrice }}</text>
<view v-if="isVip ==1 && item1.lowMemberPrice>0" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}"></view>
<text class="money_num" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}">{{ item1.lowPrice }}</text>
<text v-if="!(isVip ==1 && item1.lowMemberPrice>0)">/{{item1.unitSnap}}</text>
</view>
<view class="flex-end" >
<view class="sku-wrap flex-center" style="background-color: #CECECE;">
<text class="t" v-if="item1.isSale == 0" >非可售时间</text>
@@ -46,7 +52,13 @@
</view>
</view>
<view v-else class="flex-between">
<view class="money"><text class="money_num">{{ item1.lowPrice }}</text>/{{item1.unitSnap}}</view>
<view class="money">
<view></view>
<text class="money_num" v-if="isVip ==1 && item1.lowMemberPrice>0" style="margin-right: 10rpx;">{{ item1.lowMemberPrice }}</text>
<view v-if="isVip ==1 && item1.lowMemberPrice>0" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}"></view>
<text class="money_num" :class="{lineThrough: isVip ==1 && item1.lowMemberPrice>0}">{{ item1.lowPrice }}</text>
<text v-if="!(isVip ==1 && item1.lowMemberPrice>0)">/{{item1.unitSnap}}</text>
</view>
<view v-if="item1.suit > 1">
<view class="flex-end" >
<view class="sku-wrap flex-center"