|
@@ -132,7 +132,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 积分介绍 -->
|
|
<!-- 积分介绍 -->
|
|
|
- <view class="food">
|
|
|
|
|
|
|
+ <view class="food" v-if="isIntegral">
|
|
|
<view class="food_top">
|
|
<view class="food_top">
|
|
|
<view class="">获取积分</view>
|
|
<view class="">获取积分</view>
|
|
|
<view class="">{{ intergral }}</view>
|
|
<view class="">{{ intergral }}</view>
|
|
@@ -364,19 +364,21 @@ export default {
|
|
|
status: null,
|
|
status: null,
|
|
|
showReach: null,
|
|
showReach: null,
|
|
|
// 基础实付满多少
|
|
// 基础实付满多少
|
|
|
- ruleAmount1: '',
|
|
|
|
|
|
|
+ ruleAmount1: 0,
|
|
|
// 基础实付满多少送的积分
|
|
// 基础实付满多少送的积分
|
|
|
- ruleValue1: '',
|
|
|
|
|
|
|
+ ruleValue1: 0,
|
|
|
// 超过多少
|
|
// 超过多少
|
|
|
- ruleMaxAmount: '',
|
|
|
|
|
|
|
+ ruleMaxAmount: 0,
|
|
|
// 第二阶段实付满多少
|
|
// 第二阶段实付满多少
|
|
|
- ruleAmount2: '',
|
|
|
|
|
|
|
+ ruleAmount2: 0,
|
|
|
// 第二阶段实付满多少送的积分
|
|
// 第二阶段实付满多少送的积分
|
|
|
- ruleValue2: '',
|
|
|
|
|
|
|
+ ruleValue2: 0,
|
|
|
// 每笔订单获取的积分上限
|
|
// 每笔订单获取的积分上限
|
|
|
- maxIntegral: '',
|
|
|
|
|
|
|
+ maxIntegral: 0,
|
|
|
// 可获得积分
|
|
// 可获得积分
|
|
|
- intergral: ''
|
|
|
|
|
|
|
+ intergral: 0,
|
|
|
|
|
+ // 是否显示积分模块
|
|
|
|
|
+ isIntegral: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -515,7 +517,7 @@ export default {
|
|
|
money: this.totalPrice1
|
|
money: this.totalPrice1
|
|
|
}
|
|
}
|
|
|
this.$Request.get('/app/userintegral/getIntegralByMoney', data).then((res) => {
|
|
this.$Request.get('/app/userintegral/getIntegralByMoney', data).then((res) => {
|
|
|
- // console.log(res, '999')
|
|
|
|
|
|
|
+ console.log(res, '999')
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
this.intergral = res.data.intergral
|
|
this.intergral = res.data.intergral
|
|
|
this.maxIntegral = res.data.maxIntegral
|
|
this.maxIntegral = res.data.maxIntegral
|
|
@@ -524,6 +526,11 @@ export default {
|
|
|
this.ruleMaxAmount = res.data.ruleMaxAmount
|
|
this.ruleMaxAmount = res.data.ruleMaxAmount
|
|
|
this.ruleValue1 = res.data.ruleValue1
|
|
this.ruleValue1 = res.data.ruleValue1
|
|
|
this.ruleValue2 = res.data.ruleValue2
|
|
this.ruleValue2 = res.data.ruleValue2
|
|
|
|
|
+ if (res.data.flag == 1) {
|
|
|
|
|
+ this.isIntegral = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.isIntegral = false
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -1261,7 +1268,7 @@ export default {
|
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
|
|
|
|
|
|
this.$Request.get('/app/new-pay/enable-new-pay').then((res) => {
|
|
this.$Request.get('/app/new-pay/enable-new-pay').then((res) => {
|
|
|
- // console.log(res, '987')
|
|
|
|
|
|
|
+ console.log(res, '987')
|
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
|
let data = {
|
|
let data = {
|
|
|
userId: uni.getStorageSync('userId'),
|
|
userId: uni.getStorageSync('userId'),
|
|
@@ -1277,11 +1284,13 @@ export default {
|
|
|
type: res.enable ? 1 : 3
|
|
type: res.enable ? 1 : 3
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // console.log(data)
|
|
|
|
|
|
|
+ console.log(data)
|
|
|
|
|
|
|
|
if (res.enable) {
|
|
if (res.enable) {
|
|
|
|
|
+ console.log('xin')
|
|
|
this.newPay(data)
|
|
this.newPay(data)
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ console.log('jiu')
|
|
|
this.oldPay(data)
|
|
this.oldPay(data)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|