From 909233ae262c37f652af2c092d691230961806b9 Mon Sep 17 00:00:00 2001 From: Eratosici Date: Tue, 1 Jun 2021 16:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=91=E5=AE=9A=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mall4m/pages/binding-phone/binding-phone.js | 2 +- mall4m/utils/constant.js | 28 ------------------- .../pages/binding-phone/binding-phone.vue | 2 -- 3 files changed, 1 insertion(+), 31 deletions(-) delete mode 100644 mall4m/utils/constant.js diff --git a/mall4m/pages/binding-phone/binding-phone.js b/mall4m/pages/binding-phone/binding-phone.js index 2e78a50..5e4dc22 100644 --- a/mall4m/pages/binding-phone/binding-phone.js +++ b/mall4m/pages/binding-phone/binding-phone.js @@ -107,7 +107,7 @@ Page({ url: '/user/registerOrBindUser', method: 'PUT', data: { - appType: AppType.MP, + appType: 1, // 微信小程序 mobile: this.data.phonenum, validCode: this.data.code, validateType: 1, // 验证类型:1验证码验证 , diff --git a/mall4m/utils/constant.js b/mall4m/utils/constant.js deleted file mode 100644 index b77634b..0000000 --- a/mall4m/utils/constant.js +++ /dev/null @@ -1,28 +0,0 @@ -const PayType = { - SCOREPAY: 0, // 积分支付 - WECHATPAY: 1, // 小程序支付 - ALIPAY: 2,// 支付宝支付 - WECHATPAY_SWEEP_CODE: 3,//微信扫码支付 - WECHATPAY_H5: 4, //微信H5支付 - WECHATPAY_MP: 5, //微信公众号支付 - ALIPAY_H5: 6, //支付宝H5支付 - ALIPAY_APP: 7, // 支付宝APP支付 - WECHATPAY_APP: 8, // 微信APP支付 - BALANCEPAY: 9 // 余额支付 -} - -const AppType = { - MINI: 1, // 小程序 - MP: 2,// 微信公众号 - PC: 3,//pc - H5: 4, //h5 - ANDROID: 5, //安卓 - IOS: 6, //苹果 - ALI: 7, //支付宝H5 - ALIMINI: 8, //支付宝小程序 -} - -module.exports = { - PayType, - AppType -}; diff --git a/mall4uni/pages/binding-phone/binding-phone.vue b/mall4uni/pages/binding-phone/binding-phone.vue index 21fff88..cb8ecd2 100644 --- a/mall4uni/pages/binding-phone/binding-phone.vue +++ b/mall4uni/pages/binding-phone/binding-phone.vue @@ -119,11 +119,9 @@ export default { http.request(params); }, onPhoneInput: function (e) { - console.log('e.detail.value:', e.detail.value) this.setData({ phonenum: e.detail.value }); - console.log('phonenum:', this.phonenum) }, onCodeInput: function (e) { this.setData({