From e9b910412a5bc5e5e1f54399af101c523523032a Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 10 Jan 2019 14:23:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=AE=A2=E5=8D=95=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=20=E6=89=AB=E4=B8=80=E6=89=AB=E9=9D=A2=E9=83=A8?= =?UTF-8?q?=E8=AF=86=E5=88=AB]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.js | 6 +++--- pages/order/detail/index.wxss | 2 +- pages/scanPay/scanPay.js | 12 +++++++++--- project.config.json | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/config/config.js b/config/config.js index 471ef0a..ec73d1c 100755 --- a/config/config.js +++ b/config/config.js @@ -2,8 +2,8 @@ var extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}; var appId = extConfig.appId; var config = { // url: "https://ciformall.youlane.cn/C/api", - url:"https://c.malls.iformall.com/C/api", - // url:'https://ctest.malls.iformall.com/C/api', + // url:"https://c.malls.iformall.com/C/api", + url:'https://ctest.malls.iformall.com/C/api', // url:'http://10.100.33.68:7000/C/api', // url: 'http://202.165.179.86:4000/C/api', api: { @@ -203,7 +203,7 @@ var config = { }, weapp: { - AppId: "wx30caec1cc16c4634" + AppId: "wx649b3be73c1afe47" }, ErrorCode: { diff --git a/pages/order/detail/index.wxss b/pages/order/detail/index.wxss index 1546101..0b8a613 100644 --- a/pages/order/detail/index.wxss +++ b/pages/order/detail/index.wxss @@ -25,7 +25,7 @@ page { } .merchantName { - color: #999; + color: #666!important; } .tips text:nth-child(2) { diff --git a/pages/scanPay/scanPay.js b/pages/scanPay/scanPay.js index be18dbf..aac5a4d 100644 --- a/pages/scanPay/scanPay.js +++ b/pages/scanPay/scanPay.js @@ -55,13 +55,15 @@ Page({ let that = this; const startSoterAuthentication = () => { wx.startSoterAuthentication({ - requestAuthModes: [AUTH_MODE], + requestAuthModes: ["fingerPrint"], challenge: 'test', authContent: '请验证已有的指纹以继续', success: (res) => { + console.log(res) that.gotoPay() }, fail: (err) => { + console.log(err); wx.hideLoading(); that.setData({ showModel: false, @@ -69,6 +71,10 @@ Page({ ids: "", remainingAmount: that.data.remainingAmounts }) + if(err.errCode==90008||err.errCode == 90009){ + }else{ + that.gotoPay(); + } } }) } @@ -94,9 +100,9 @@ Page({ if (res.supportMode == []) { that.gotoPay(); } else if (res.supportMode == ['fingerPrint']) { - checkIsEnrolled() + checkIsEnrolled(); } else if (res.supportMode = ['fingerPrint', 'facial']) { - checkIsEnrolled() + checkIsEnrolled(); } }, fail: (err) => { diff --git a/project.config.json b/project.config.json index 2ff403f..8a03963 100644 --- a/project.config.json +++ b/project.config.json @@ -13,7 +13,7 @@ }, "compileType": "miniprogram", "libVersion": "2.0.9", - "appid": "wx30caec1cc16c4634", + "appid": "wx649b3be73c1afe47", "projectname": "C", "isGameTourist": false, "condition": {