Commit f3db45e8 by 姜雷

修改下单请求参数

parent e5343644
...@@ -171,21 +171,33 @@ Component({ ...@@ -171,21 +171,33 @@ Component({
checkBillType(e) { checkBillType(e) {
console.log(e); console.log(e);
const { value } = e.currentTarget.dataset; const { value } = e.currentTarget.dataset;
if (value === this.data.billType) return;
this.setData({ this.setData({
billType: value, billType: value,
}); });
if (this.data.type === 2) {
this.fetchRechargeOrderQRcode();
}
}, },
fetchRechargeOrderQRcode() { fetchRechargeOrderQRcode() {
wx.showLoading({ wx.showLoading({
title: '', title: '',
}); });
if (timer) {
clearInterval(timer);
this.setData({
payQrUrl: '',
countDown: 600,
countDownString: '0秒',
});
}
wx.login({ wx.login({
success: res => { success: res => {
if (res.code) { if (res.code) {
const entity = { const entity = {
billType: this.data.billType, billType: this.data.billType,
isAgree: 1, isAgree: 1,
jsCode: 'string', jsCode: res.code,
operateId: this.data.userInfo.operateId, operateId: this.data.userInfo.operateId,
operateName: this.data.userInfo.operateName, operateName: this.data.userInfo.operateName,
rechargeType: '2', rechargeType: '2',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment