10.17
@ -865,7 +865,7 @@ public class PayCenterServiceImpl implements PayCenterService {
|
||||
m2.put("storeId", userBalance.getStoreId());
|
||||
MtInvitation invitation = mtInvitationService.getOneByMap(m2);
|
||||
// 当推荐人 不为null时 再去判断推荐人是否有资格参与活动
|
||||
if (invitation != null) {
|
||||
if (invitation != null && ObjectUtil.isNotEmpty(invitation.getInviterId())) {
|
||||
// 根据店铺id 和 邀请人id 查询出 邀请人会员信息
|
||||
UserBalance invitationBalance = userBalanceService.selectUserBalanceByStorId(invitation.getInviterId(), Integer.parseInt(map.get("storeId")));
|
||||
|
||||
|
@ -107,11 +107,18 @@
|
||||
</view>
|
||||
<view class="bsd">
|
||||
<view class="">积分</view>
|
||||
<view class="">+289</view>
|
||||
<view class="">+{{consumeInfo.points || 0}}</view>
|
||||
</view>
|
||||
|
||||
<view class="bsd">
|
||||
<view class="">洗车券</view>
|
||||
<view class="">+3</view>
|
||||
<view class="">成长值</view>
|
||||
<view class="">+{{consumeInfo.growthValue || 0}}</view>
|
||||
</view>
|
||||
<view v-if="consumeInfo.carList">
|
||||
<view class="bsd" v-for="(item,index) in consumeInfo.carList" :key="index">
|
||||
<view class="">{{item.type}}</view>
|
||||
<view class="">+{{item.num || 0}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 支付信息 -->
|
||||
@ -332,18 +339,25 @@
|
||||
<view class="">优惠信息</view>
|
||||
<view class="p_bs">
|
||||
<view class="">优惠券</view>
|
||||
<view class="r-size">-10.00</view>
|
||||
<view class="r-size">-{{oilOrder.discountAmount}}</view>
|
||||
</view>
|
||||
<view class="p_x"></view>
|
||||
<view class="">消费有礼</view>
|
||||
<view class="p_bs">
|
||||
<view class="">积分</view>
|
||||
<view class="r-size">+567</view>
|
||||
<view class="r-size">+{{consumeInfo.points || 0}}</view>
|
||||
</view>
|
||||
<view class="p_bs">
|
||||
<view class="">洗车券</view>
|
||||
<view class="r-size">+6</view>
|
||||
<view class="">成长值</view>
|
||||
<view class="r-size">+{{consumeInfo.growthValue || 0}}</view>
|
||||
</view>
|
||||
<view v-if="consumeInfo.carList">
|
||||
<view class="p_bs" v-for="(item,index) in consumeInfo.carList" :key="index">
|
||||
<view class="">{{item.type}}</view>
|
||||
<view class="r-size">+{{item.num || 0}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="p_x"></view>
|
||||
<view class="p_bs">
|
||||
<view class="">合计待支付</view>
|
||||
@ -450,7 +464,8 @@
|
||||
oilCardList: [],
|
||||
fleetList: [],
|
||||
chooseCard: null,
|
||||
cardPayType: 'card_value'
|
||||
cardPayType: 'card_value',
|
||||
consumeInfo: {}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -518,6 +533,25 @@
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 获取消费有礼信息
|
||||
getConsumeInfo() {
|
||||
request({
|
||||
url: "pay/paycenter/cashRegisterSpendWiselyApp",
|
||||
method: 'post',
|
||||
data: {
|
||||
userId: uni.getStorageSync("userId"),
|
||||
storeId: uni.getStorageSync("storeId"),
|
||||
liters: this.oilOrder.oilNum,
|
||||
goodsMoney: this.oilOrder.orderAmount,
|
||||
payMoney: this.oilOrder.payAmount,
|
||||
payType: this.oilOrder.payType,
|
||||
oils: this.oilOrder.oils
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 531);
|
||||
this.consumeInfo = res.data
|
||||
})
|
||||
},
|
||||
// 选择会员卡
|
||||
chooseUserCard(payType, data) {
|
||||
this.oilOrder.payType = payType
|
||||
@ -543,13 +577,13 @@
|
||||
})
|
||||
},
|
||||
// 获取消费有礼信息
|
||||
getConsume(){
|
||||
getConsume() {
|
||||
request({
|
||||
url: "pay/paycenter/cashRegisterSpendWisely",
|
||||
method: 'post',
|
||||
data:{
|
||||
storeId:this.storeId,
|
||||
userId:uni.getStorageSync("userId"),
|
||||
data: {
|
||||
storeId: this.storeId,
|
||||
userId: uni.getStorageSync("userId"),
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 555);
|
||||
@ -707,6 +741,7 @@
|
||||
this.oilOrder.payAmount = this.oilOrder.orderAmount - this.oilOrder.discountAmount
|
||||
this.oilOrder.oilNum = (this.oilOrder.orderAmount / this.oilPrice).toFixed(2)
|
||||
this.getCouponList()
|
||||
this.getConsumeInfo()
|
||||
}
|
||||
},
|
||||
getCouponList() {
|
||||
@ -719,7 +754,7 @@
|
||||
oilAmount: this.oilOrder.orderAmount,
|
||||
oilLiter: this.oilOrder.oilNum,
|
||||
payWay: this.oilOrder.payType,
|
||||
oilId:this.oilOrder.oils
|
||||
oilId: this.oilOrder.oils
|
||||
},
|
||||
}).then((res) => {
|
||||
console.log(res, 701);
|
||||
@ -727,7 +762,7 @@
|
||||
})
|
||||
},
|
||||
// 选择优惠券
|
||||
chooseCoupon(data){
|
||||
chooseCoupon(data) {
|
||||
this.oilOrder.discountAmount = data.disAmount
|
||||
this.oilOrder.couponId = data.id
|
||||
},
|
||||
|
@ -16,9 +16,9 @@
|
||||
@click="setIndex(index)">{{item.name}}</view>
|
||||
</view>
|
||||
<view class="whit-box" v-if="tindex == 1">
|
||||
<view class="one_h" v-for="(item,index) in 4" :key="index">
|
||||
<view class="">券名称</view>
|
||||
<view class="">2024-8-7</view>
|
||||
<view class="one_h" v-for="(item,index) in rewardList" :key="index">
|
||||
<view class="">{{item.name}}</view>
|
||||
<view class="">{{item.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="whit-box" v-else>
|
||||
@ -93,10 +93,30 @@
|
||||
},
|
||||
onShow() {
|
||||
this.getList()
|
||||
this.getList1()
|
||||
},
|
||||
methods: {
|
||||
getList1(){
|
||||
request({
|
||||
url: 'business/marketingActivity/activeRecommendRecords/selectRecord',
|
||||
method: 'get',
|
||||
params: {
|
||||
storeId: uni.getStorageSync("storeId")
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 106)
|
||||
if (res.code == 200) {
|
||||
this.rewardList = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
setIndex(num) {
|
||||
this.tindex = num
|
||||
if (num==1){
|
||||
this.getList1()
|
||||
}else{
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
//滞空方法
|
||||
resetting() {
|
||||
|
Before Width: | Height: | Size: 877 B After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 722 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 644 B |
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 541 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 942 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 788 B |
Before Width: | Height: | Size: 817 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 856 B After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 896 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 444 B After Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 968 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 676 B |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 599 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 745 B After Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 1003 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 934 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 612 B |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 539 B |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 431 B |
Before Width: | Height: | Size: 862 B After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.1 KiB |