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({