1.优化弹窗提示

2.打包上线
dev
杨杰 1 year ago
parent 578ff3f9df
commit 5d532b6884
  1. 41
      pages/index/index.vue
  2. 6
      pages/welcome/welcome.vue

@ -465,10 +465,11 @@
2)) { 2)) {
storetype = this.storediscountType; storetype = this.storediscountType;
storeprice = this.storediscountPrice; storeprice = this.storediscountPrice;
} else {
storetype = this.storediscountType;
storeprice = this.storediscountPrice;
} }
// else {
// storetype = this.storediscountType;
// storeprice = this.storediscountPrice;
// }
} }
let phone = ''; let phone = '';
if (app.globalData.userInfo) { if (app.globalData.userInfo) {
@ -677,6 +678,9 @@
}, },
// //
createJSAPIOrder(item) { createJSAPIOrder(item) {
uni.showLoading({
title:'请求中'
})
// "WECHAT ALIPAY UQRCODEPAY", // "WECHAT ALIPAY UQRCODEPAY",
let phone = ''; let phone = '';
if (app.globalData.userInfo) { if (app.globalData.userInfo) {
@ -692,6 +696,7 @@
"userPhone": phone "userPhone": phone
} }
createJSAPIOrder(datas).then(res => { createJSAPIOrder(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.jsapiPay(res.return_data.outTradeNo); this.jsapiPay(res.return_data.outTradeNo);
} else { } else {
@ -794,11 +799,11 @@
} }
// //
if (this.plateNumberList1[0] == '.') { if (this.plateNumberList1[0] == '.') {
uni.showToast({ // uni.showToast({
title: '请输入正确的金额', // title: '',
duration: 2000, // duration: 2000,
icon: 'none' // icon: 'none'
}) // })
this.plateNumberList1.pop(); this.plateNumberList1.pop();
return; return;
} }
@ -811,21 +816,21 @@
// } // }
// //
if (strdata1.length == 3 && !strdata2) { if (strdata1.length == 3 && !strdata2) {
uni.showToast({ // uni.showToast({
title: '请输入正确的金额', // title: '',
duration: 2000, // duration: 2000,
icon: 'none' // icon: 'none'
}) // })
this.plateNumberList1.pop(); this.plateNumberList1.pop();
return; return;
} }
// //
if (this.plateNumberList.indexOf('.') != -1 && !strdata2) { if (this.plateNumberList.indexOf('.') != -1 && !strdata2) {
uni.showToast({ // uni.showToast({
title: '请输入正确的金额', // title: '',
duration: 2000, // duration: 2000,
icon: 'none' // icon: 'none'
}) // })
this.plateNumberList1.pop(); this.plateNumberList1.pop();
return; return;
} }

@ -31,11 +31,7 @@
} else { } else {
let that = this; let that = this;
var arr4; var arr4;
if (app.globalData.platformType == 'WECHAT') {
arr4 = arr2[2].split('&'); arr4 = arr2[2].split('&');
} else {
arr4 = arr2[1].split('&');
}
app.globalData.code = arr4[0]; app.globalData.code = arr4[0];
uni.getStorage({ uni.getStorage({
key: 'snNumber', key: 'snNumber',
@ -115,7 +111,7 @@
} }
if (app.globalData.platformType == 'ALIPAY') { if (app.globalData.platformType == 'ALIPAY') {
location.href = location.href =
'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021003176605875&scope=auth_base&redirect_uri=https%3A%2F%2Fpay.dctpay.com%2FscanPay'; 'https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021003176605875&scope=auth_base&redirect_uri=https://pay.dctpay.com/redirect?redirect_uri=https%3A%2F%2Fpay.dctpay.com%2FscanPay%3Fsn%3D1000017476';
} }
}, },
} }

Loading…
Cancel
Save