|
...
|
...
|
@@ -17,10 +17,23 @@ Page({ |
|
|
|
inputValue: '', //输入的金额
|
|
|
|
canSolt: {}, //当前时间是哪个餐段、节假日
|
|
|
|
totalPrice: '', //送券的总金额
|
|
|
|
couponSwitch: false, //本单使用优惠券开关
|
|
|
|
consumeSwitch: false, //本单使用消费金开关
|
|
|
|
purePhoneNumber: '', //手机号
|
|
|
|
coexist: '0', //1可以同时使用券和消费金 0不可同时使用
|
|
|
|
ratio: '', //消费金支付占实际消费金额的百分比
|
|
|
|
consumeDiscount: '0.00', //消费金抵扣金额
|
|
|
|
consumePrice: '', //个人消费金余额
|
|
|
|
remainingConsume: '', //抵扣后剩余消费金余额
|
|
|
|
totalConsumePrice: 0, //赠送的消费金金额
|
|
|
|
noConfiguration: '', //配置消费金 0未配置 1已配置
|
|
|
|
returnData: '', //赠送消费金配置
|
|
|
|
isReturn: '', //赠送消费金的开关
|
|
|
|
},
|
|
|
|
sid: '', //扫码进入带的参数商家id
|
|
|
|
couponModal: '',
|
|
|
|
giveCouponModal: '',
|
|
|
|
consumeModal: '',
|
|
|
|
myToast:'',
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
...
|
...
|
@@ -28,11 +41,163 @@ Page({ |
|
|
|
onLoad(options) {
|
|
|
|
this.couponModal = this.selectComponent("#couponModal");
|
|
|
|
this.giveCouponModal = this.selectComponent("#giveCouponModal");
|
|
|
|
this.consumeModal = this.selectComponent("#consumeModal");
|
|
|
|
if (options.sid) {
|
|
|
|
this.sid = options.sid
|
|
|
|
this.getSellerDetailFun(options.sid)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// 检测用户是否绑定手机号
|
|
|
|
getCheckUserHavePhone() {
|
|
|
|
App.Wechat.CheckUserHavePhone({
|
|
|
|
openid: getApp().openid,
|
|
|
|
}).then((json) => {
|
|
|
|
if (json.ret == 200) {
|
|
|
|
let data = json.data;
|
|
|
|
if (data) {
|
|
|
|
this.setData({
|
|
|
|
purePhoneNumber: data.phone,
|
|
|
|
})
|
|
|
|
this.getUserInfo()
|
|
|
|
} else {
|
|
|
|
this.setData({
|
|
|
|
purePhoneNumber: '',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取用户在商家&所有消费金
|
|
|
|
getUserInfo() {
|
|
|
|
App.Activity.GetConsumeBySeller({
|
|
|
|
openid: getApp().openid,
|
|
|
|
sellerid: this.sid,
|
|
|
|
}).then((json) => {
|
|
|
|
if (json.ret == 200) {
|
|
|
|
let data = json.data;
|
|
|
|
if (data && data.length > 0) {
|
|
|
|
let obj = data[0]
|
|
|
|
console.log('获取用户在商家的消费金----', obj);
|
|
|
|
this.setData({
|
|
|
|
consumePrice: obj.balance ? (obj.balance * 1).toFixed(2) : '0.00',
|
|
|
|
remainingConsume: obj.balance ? (obj.balance * 1).toFixed(2) : '0.00',
|
|
|
|
consumeDiscount: '0.00', //消费金抵扣金额
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
this.setData({
|
|
|
|
consumePrice: '0.00',
|
|
|
|
remainingConsume: '0.00',
|
|
|
|
consumeDiscount: '0.00', //消费金抵扣金额
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取商家消费金规则
|
|
|
|
getConsumeConfigFun() {
|
|
|
|
App.Activity.GetConsumeConfig({
|
|
|
|
sellerid: this.sid,
|
|
|
|
}).then(res => {
|
|
|
|
if (res && res.data) {
|
|
|
|
let data = res.data;
|
|
|
|
let together = util.determine(data.together_json);
|
|
|
|
let returnData = util.determine(data.return_json);
|
|
|
|
returnData.ladder_data = returnData.ladder_data ? util.determine(returnData.ladder_data) : {};
|
|
|
|
console.log('111配置---',together);
|
|
|
|
console.log('222顾客支付后返消费金---',returnData);
|
|
|
|
this.setData({
|
|
|
|
noConfiguration: '1', //配置为1 未配置为0
|
|
|
|
coexist: together.is_coexist,
|
|
|
|
ratio: together.ratio_data ? together.ratio_data : '100',
|
|
|
|
couponSwitch: true,
|
|
|
|
consumeSwitch: together.is_coexist == '1' ? true : false,
|
|
|
|
returnData,
|
|
|
|
isReturn: data.is_return,
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
this.setData({
|
|
|
|
noConfiguration: '0', //配置为1 未配置为0
|
|
|
|
couponSwitch: true,
|
|
|
|
consumeSwitch: false,
|
|
|
|
returnData: null,
|
|
|
|
isReturn: '0',
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 使用券或者消费金的开关
|
|
|
|
switchChange(event) {
|
|
|
|
let type = event.currentTarget.dataset.type;
|
|
|
|
if (type == '1') {
|
|
|
|
this.setData({
|
|
|
|
couponSwitch: event.detail.value,
|
|
|
|
})
|
|
|
|
if (this.data.coexist == '0' && event.detail.value) {
|
|
|
|
this.setData({
|
|
|
|
consumeSwitch: false,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (type == '2') {
|
|
|
|
this.setData({
|
|
|
|
consumeSwitch: event.detail.value,
|
|
|
|
})
|
|
|
|
if (this.data.coexist == '0' && event.detail.value) {
|
|
|
|
this.setData({
|
|
|
|
couponSwitch: false,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 开或者关闭使用优惠券
|
|
|
|
if (this.data.couponSwitch) {
|
|
|
|
this.colationData()
|
|
|
|
}
|
|
|
|
if (!this.data.couponSwitch) {
|
|
|
|
this.getCoupon()
|
|
|
|
let val = parseFloat(this.data.inputValue);
|
|
|
|
let discountPrice = 0;
|
|
|
|
let actualPrice = (val - this.data.consumeDiscount - discountPrice).toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
discountPrice: 0,
|
|
|
|
actualPrice: actualPrice > 0 ? actualPrice : '0.01'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 开或者关闭使用消费金
|
|
|
|
if (this.data.consumeSwitch) {
|
|
|
|
let val = parseFloat(this.data.inputValue);
|
|
|
|
if (!val) return
|
|
|
|
let consumeDiscount = this.calculateConsumeGold(val);
|
|
|
|
let discountPrice = this.data.couponSwitch ? this.data.discountPrice : 0
|
|
|
|
let actualPrice = (val - consumeDiscount - discountPrice).toFixed(2)
|
|
|
|
let remainingConsume = (this.data.consumePrice * 1 - consumeDiscount).toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
consumeDiscount,
|
|
|
|
actualPrice: actualPrice > 0 ? actualPrice : '0.01',
|
|
|
|
remainingConsume: remainingConsume
|
|
|
|
})
|
|
|
|
}
|
|
|
|
if (!this.data.consumeSwitch) {
|
|
|
|
let val = parseFloat(this.data.inputValue);
|
|
|
|
if (!val) return
|
|
|
|
let discountPrice = this.data.couponSwitch ? this.data.discountPrice : 0
|
|
|
|
let consumeDiscount = this.data.consumeSwitch ? this.data.consumeDiscount : 0
|
|
|
|
let actualPrice = (val - consumeDiscount - discountPrice).toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
consumeDiscount: '0.00',
|
|
|
|
actualPrice: actualPrice > 0 ? actualPrice : '0.01',
|
|
|
|
remainingConsume: this.data.consumePrice,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// 按比例计算出的最大可用消费金
|
|
|
|
calculateConsumeGold(val) {
|
|
|
|
let ratio = this.data.ratio;
|
|
|
|
let consumePrice = parseFloat(this.data.consumePrice);
|
|
|
|
const maxByRatio = val * (ratio / 100).toFixed(2);
|
|
|
|
let availableConsumeGold = Math.min(val, maxByRatio).toFixed(2) * 1;
|
|
|
|
if (availableConsumeGold > consumePrice) availableConsumeGold = consumePrice
|
|
|
|
return availableConsumeGold;
|
|
|
|
},
|
|
|
|
// 打开优惠券弹框
|
|
|
|
showCouponModal() {
|
|
|
|
this.couponModal.showModal()
|
|
...
|
...
|
@@ -41,14 +206,30 @@ Page({ |
|
|
|
closeCouponModal() {
|
|
|
|
this.couponModal.closeModal()
|
|
|
|
},
|
|
|
|
// 打开优惠券弹框
|
|
|
|
// 打开送券送消费金弹框
|
|
|
|
showgiveCouponModal() {
|
|
|
|
this.giveCouponModal.showModal()
|
|
|
|
},
|
|
|
|
// 打开消费金弹框
|
|
|
|
showConsumeModal() {
|
|
|
|
this.consumeModal.showModal()
|
|
|
|
},
|
|
|
|
// 关闭消费金弹框
|
|
|
|
closeConsumeModal() {
|
|
|
|
this.consumeModal.closeModal()
|
|
|
|
},
|
|
|
|
// 关闭优惠券弹框
|
|
|
|
closegiveCouponModal() {
|
|
|
|
this.giveCouponModal.closeModal()
|
|
|
|
wx.exitMiniProgram({})
|
|
|
|
this.getUserInfo()
|
|
|
|
},
|
|
|
|
// 跳转登录页
|
|
|
|
gotoLogin(event) {
|
|
|
|
wx.navigateTo({
|
|
|
|
url: util.http_build_query({
|
|
|
|
types: event.currentTarget.dataset.types
|
|
|
|
}, '/pages/customer/login')
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取店铺名称
|
|
|
|
getSellerDetailFun(sid) {
|
|
...
|
...
|
@@ -88,9 +269,9 @@ Page({ |
|
|
|
if (fullData.rule == '1') {
|
|
|
|
const price = parseFloat(fullData.price)
|
|
|
|
const amount = parseInt(priceSum / price)
|
|
|
|
if (coupons.length > 0) this.getCouponFun(coupons, '1', amount,orderid)
|
|
|
|
if (coupons.length > 0 && amount > 0) this.getCouponFun(coupons, '1', amount,orderid)
|
|
|
|
} else {
|
|
|
|
if (coupons.length > 0) this.getCouponFun(coupons, '1', 1,orderid)
|
|
|
|
if (coupons.length > 0 && amount > 0) this.getCouponFun(coupons, '1', 1,orderid)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -110,7 +291,6 @@ Page({ |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
...
|
...
|
@@ -160,7 +340,6 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
totalPrice,
|
|
|
|
})
|
|
|
|
this.showgiveCouponModal()
|
|
|
|
this.setcouponFun(ids,orderid)
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -340,9 +519,24 @@ Page({ |
|
|
|
this.setData({
|
|
|
|
discountPrice: '',
|
|
|
|
actualPrice: '',
|
|
|
|
consumeDiscount: '',
|
|
|
|
remainingConsume: this.data.consumePrice
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
this.colationData()
|
|
|
|
} else {
|
|
|
|
if (this.data.couponSwitch) {
|
|
|
|
this.colationData()
|
|
|
|
}
|
|
|
|
if (this.data.consumeSwitch && !this.data.couponSwitch) {
|
|
|
|
let val = parseFloat(this.data.inputValue);
|
|
|
|
let consumeDiscount = this.calculateConsumeGold(val);
|
|
|
|
let actualPrice = (val - consumeDiscount - this.data.discountPrice).toFixed(2)
|
|
|
|
let remainingConsume = (this.data.consumePrice * 1 - consumeDiscount).toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
consumeDiscount,
|
|
|
|
actualPrice: actualPrice > 0 ? actualPrice : '0.01',
|
|
|
|
remainingConsume: remainingConsume
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// 点确认选择
|
|
...
|
...
|
@@ -358,7 +552,7 @@ Page({ |
|
|
|
})
|
|
|
|
console.log('优惠金额----', price);
|
|
|
|
let val = parseFloat(this.data.inputValue);
|
|
|
|
let actualPrice = (val - price).toFixed(2)
|
|
|
|
let actualPrice = (val - price - this.data.consumeDiscount).toFixed(2)
|
|
|
|
price = price.toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
discountPrice: price,
|
|
...
|
...
|
@@ -375,6 +569,19 @@ Page({ |
|
|
|
console.log('处理过后的券数据', list);
|
|
|
|
list.sort((a, b) => b.canCheck - a.canCheck);
|
|
|
|
list.sort((a, b) => b.showCpupon - a.showCpupon);
|
|
|
|
if (this.data.consumeSwitch) {
|
|
|
|
let amount = parseFloat(this.data.inputValue);
|
|
|
|
let num = (amount - this.data.discountPrice).toFixed(2);
|
|
|
|
let val = parseFloat(num);
|
|
|
|
let consumeDiscount = this.calculateConsumeGold(val);
|
|
|
|
let actualPrice = (amount - consumeDiscount - this.data.discountPrice).toFixed(2)
|
|
|
|
let remainingConsume = (this.data.consumePrice * 1 - consumeDiscount).toFixed(2)
|
|
|
|
this.setData({
|
|
|
|
consumeDiscount,
|
|
|
|
actualPrice: actualPrice > 0 ? actualPrice : '0.01',
|
|
|
|
remainingConsume: remainingConsume
|
|
|
|
})
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
couponArr: list,
|
|
|
|
finalList: obj.finalList
|
|
...
|
...
|
@@ -389,11 +596,18 @@ Page({ |
|
|
|
}
|
|
|
|
let str = this.data.finalList.map(item => item.activity_id).join(',');
|
|
|
|
console.log('核销所勾选的券传参', str);
|
|
|
|
App.PayOnline.CombineTransactionsByNewActivity({
|
|
|
|
let params = {
|
|
|
|
sellerid: this.data.seller.sid,
|
|
|
|
price: actualPrice,
|
|
|
|
activity_id:str,
|
|
|
|
}).then(res => {
|
|
|
|
}
|
|
|
|
if (this.data.consumeDiscount) {
|
|
|
|
params.consume = this.data.consumeDiscount;
|
|
|
|
params.phone = this.data.purePhoneNumber;
|
|
|
|
}
|
|
|
|
if (str) {
|
|
|
|
params.activity_id = str;
|
|
|
|
}
|
|
|
|
App.PayOnline.CombineTransactionsByNewActivity(params).then(res => {
|
|
|
|
console.log('付款信息', res.data);
|
|
|
|
if (res.ret != '200') {
|
|
|
|
wx.showToast({
|
|
...
|
...
|
@@ -412,28 +626,106 @@ Page({ |
|
|
|
success(ress) {
|
|
|
|
if (ress.errMsg == 'requestPayment:ok') {
|
|
|
|
that.giftCouponsFun(actualPrice,res.data.orderid) //送券
|
|
|
|
that.setData({
|
|
|
|
inputValue: '',
|
|
|
|
finalList: [],
|
|
|
|
couponArr: [],
|
|
|
|
discountPrice: '0.00',
|
|
|
|
actualPrice: '',
|
|
|
|
})
|
|
|
|
that.getCoupon()
|
|
|
|
that.giftConsumeFun(actualPrice, res.data.orderid) //送消费金
|
|
|
|
setTimeout(() => {
|
|
|
|
console.log('送券金额----', that.data.totalPrice);
|
|
|
|
console.log('送消费金----', that.data.totalConsumePrice);
|
|
|
|
if (that.data.totalPrice > 0 || that.data.totalConsumePrice > 0) {
|
|
|
|
wx.reLaunch({
|
|
|
|
url: util.http_build_query({
|
|
|
|
totalPrice: that.data.totalPrice,
|
|
|
|
totalConsumePrice: that.data.totalConsumePrice,
|
|
|
|
}, '/pack-activity/pack/paySuccess')
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}, 1000);
|
|
|
|
console.log('支付成功', ress);
|
|
|
|
return
|
|
|
|
}
|
|
|
|
console.log('支付失败', ress);
|
|
|
|
that.payFail()
|
|
|
|
console.log('支付失败11', ress);
|
|
|
|
return that.myToast.showToast('支付失败,请重新下单', 2000)
|
|
|
|
},
|
|
|
|
fail(ress) {
|
|
|
|
console.log('支付失败', ress);
|
|
|
|
that.payFail()
|
|
|
|
console.log('支付失败22', ress);
|
|
|
|
return that.myToast.showToast('支付失败,请重新下单', 2000)
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},3000),
|
|
|
|
payFail() {
|
|
|
|
this.setData({
|
|
|
|
inputValue: '',
|
|
|
|
finalList: [],
|
|
|
|
couponArr: [],
|
|
|
|
discountPrice: '0.00',
|
|
|
|
actualPrice: '',
|
|
|
|
consumeDiscount: '0.00', //消费金抵扣金额
|
|
|
|
})
|
|
|
|
this.getCoupon()
|
|
|
|
this.getUserInfo()
|
|
|
|
},
|
|
|
|
giftConsumeFun(priceSum, orderid) {
|
|
|
|
let isReturn = this.data.isReturn;
|
|
|
|
let data = this.data.returnData;
|
|
|
|
const now = Math.floor(Date.now() / 1000);
|
|
|
|
let totalConsumePrice = 0;
|
|
|
|
if (isReturn == '1' && data && now >= parseInt(data.stime) && now <= parseInt(data.etime)) {
|
|
|
|
priceSum = parseFloat(priceSum)
|
|
|
|
// 按百分比 is_ratio 1按比例 0按阶梯 ladder_data
|
|
|
|
if (data.is_ratio == '1' && data.ratio_data) {
|
|
|
|
totalConsumePrice = priceSum * (data.ratio_data / 100).toFixed(2);
|
|
|
|
console.log('送消费金百分比----', totalConsumePrice);
|
|
|
|
}
|
|
|
|
// 阶梯
|
|
|
|
if (data.is_ratio == '0' && data.ladder_data) {
|
|
|
|
totalConsumePrice = this.calculateGiftAmount(priceSum, data.ladder_data)
|
|
|
|
console.log('送消费金阶梯----', totalConsumePrice);
|
|
|
|
}
|
|
|
|
if (totalConsumePrice > 0) this.getConsumeFun(totalConsumePrice)
|
|
|
|
this.setData({
|
|
|
|
totalConsumePrice: (totalConsumePrice * 1).toFixed(2)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// 为用户增加消费金
|
|
|
|
getConsumeFun(amount) {
|
|
|
|
App.Activity.SetConsumeByOpenid({
|
|
|
|
phone: this.data.purePhoneNumber,
|
|
|
|
openid: getApp().openid,
|
|
|
|
amount,
|
|
|
|
sellerid: this.data.seller.sid
|
|
|
|
}).then(res => {
|
|
|
|
if (res.data == '0') {
|
|
|
|
wx.showToast({
|
|
|
|
title: '消费金领取失败!',
|
|
|
|
duration: 1000,
|
|
|
|
icon: 'none',
|
|
|
|
mask: true
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
calculateGiftAmount(priceSum, ladder_data) {
|
|
|
|
if (!ladder_data || ladder_data.length === 0) {
|
|
|
|
return 0; // 没有阶梯数据,返回0
|
|
|
|
}
|
|
|
|
// 将阶梯数据按 give_price 从大到小排序,确保匹配最高阶梯
|
|
|
|
const sortedLadder = [...ladder_data].sort((a, b) =>
|
|
|
|
parseFloat(b.give_price) - parseFloat(a.give_price)
|
|
|
|
);
|
|
|
|
// 遍历排序后的阶梯,找到第一个满足条件的
|
|
|
|
for (let i = 0; i < sortedLadder.length; i++) {
|
|
|
|
const ladder = sortedLadder[i];
|
|
|
|
const threshold = parseFloat(ladder.give_price);
|
|
|
|
if (priceSum >= threshold) {
|
|
|
|
return ladder.back_price;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0; // 不满足任何阶梯条件
|
|
|
|
},
|
|
|
|
// 核销所勾选的券
|
|
|
|
writeOff() {
|
|
|
|
console.log('勾选的券', this.data.finalList);
|
|
...
|
...
|
@@ -519,8 +811,9 @@ Page({ |
|
|
|
// 最优惠的消费券组合(消费要求为无门槛 或者 满足优惠券使用金额 && 勾选最优的、最早到期的)
|
|
|
|
findBestCoupons(arr) {
|
|
|
|
console.log('勾选最优的之前', arr);
|
|
|
|
let consumeDiscount = this.data.consumeDiscount;
|
|
|
|
let inputValue = this.data.inputValue;
|
|
|
|
const amount = parseFloat(inputValue);
|
|
|
|
const amount = parseFloat(inputValue - consumeDiscount);
|
|
|
|
const validCoupons = arr.filter(coupon => (coupon.isOk == '1' && parseFloat(coupon.desc) <= amount) && amount>=parseFloat(coupon.price));
|
|
|
|
// 排序后,优先选择最大优惠的券
|
|
|
|
validCoupons.sort((a, b) => parseFloat(b.price) - parseFloat(a.price));
|
|
...
|
...
|
@@ -642,7 +935,6 @@ Page({ |
|
|
|
},
|
|
|
|
// 计算免费券有效期的起始、结束日期
|
|
|
|
setTimeRange(cdate, startOffset, endOffset) {
|
|
|
|
console.log(cdate, startOffset, endOffset);
|
|
|
|
const startDate = new Date((cdate + startOffset * 86400) * 1000);
|
|
|
|
startDate.setHours(0, 0, 0, 0);
|
|
|
|
let useStime = startDate.getTime() / 1000
|
|
...
|
...
|
@@ -887,6 +1179,12 @@ Page({ |
|
|
|
url: '/pages/me/coupon_news'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 跳转到我的消费金列表
|
|
|
|
gotoConsumeList() {
|
|
|
|
wx.reLaunch({
|
|
|
|
url: '/pages/me/consumeAmount'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
*/
|
|
...
|
...
|
@@ -897,7 +1195,8 @@ Page({ |
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow() {
|
|
|
|
|
|
|
|
this.getCheckUserHavePhone()
|
|
|
|
this.getConsumeConfigFun()
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|