@@ -2,8 +2,8 @@ var extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}; | |||||
var appId = extConfig.appId; | var appId = extConfig.appId; | ||||
var config = { | var config = { | ||||
// url: "https://ciformall.youlane.cn/C/api", | // 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://10.100.33.68:7000/C/api', | ||||
// url: 'http://202.165.179.86:4000/C/api', | // url: 'http://202.165.179.86:4000/C/api', | ||||
api: { | api: { | ||||
@@ -203,7 +203,7 @@ var config = { | |||||
}, | }, | ||||
weapp: { | weapp: { | ||||
AppId: "wx30caec1cc16c4634" | |||||
AppId: "wx649b3be73c1afe47" | |||||
}, | }, | ||||
ErrorCode: { | ErrorCode: { | ||||
@@ -25,7 +25,7 @@ page { | |||||
} | } | ||||
.merchantName { | .merchantName { | ||||
color: #999; | |||||
color: #666!important; | |||||
} | } | ||||
.tips text:nth-child(2) { | .tips text:nth-child(2) { | ||||
@@ -55,13 +55,15 @@ Page({ | |||||
let that = this; | let that = this; | ||||
const startSoterAuthentication = () => { | const startSoterAuthentication = () => { | ||||
wx.startSoterAuthentication({ | wx.startSoterAuthentication({ | ||||
requestAuthModes: [AUTH_MODE], | |||||
requestAuthModes: ["fingerPrint"], | |||||
challenge: 'test', | challenge: 'test', | ||||
authContent: '请验证已有的指纹以继续', | authContent: '请验证已有的指纹以继续', | ||||
success: (res) => { | success: (res) => { | ||||
console.log(res) | |||||
that.gotoPay() | that.gotoPay() | ||||
}, | }, | ||||
fail: (err) => { | fail: (err) => { | ||||
console.log(err); | |||||
wx.hideLoading(); | wx.hideLoading(); | ||||
that.setData({ | that.setData({ | ||||
showModel: false, | showModel: false, | ||||
@@ -69,6 +71,10 @@ Page({ | |||||
ids: "", | ids: "", | ||||
remainingAmount: that.data.remainingAmounts | remainingAmount: that.data.remainingAmounts | ||||
}) | }) | ||||
if(err.errCode==90008||err.errCode == 90009){ | |||||
}else{ | |||||
that.gotoPay(); | |||||
} | |||||
} | } | ||||
}) | }) | ||||
} | } | ||||
@@ -94,9 +100,9 @@ Page({ | |||||
if (res.supportMode == []) { | if (res.supportMode == []) { | ||||
that.gotoPay(); | that.gotoPay(); | ||||
} else if (res.supportMode == ['fingerPrint']) { | } else if (res.supportMode == ['fingerPrint']) { | ||||
checkIsEnrolled() | |||||
checkIsEnrolled(); | |||||
} else if (res.supportMode = ['fingerPrint', 'facial']) { | } else if (res.supportMode = ['fingerPrint', 'facial']) { | ||||
checkIsEnrolled() | |||||
checkIsEnrolled(); | |||||
} | } | ||||
}, | }, | ||||
fail: (err) => { | fail: (err) => { | ||||
@@ -13,7 +13,7 @@ | |||||
}, | }, | ||||
"compileType": "miniprogram", | "compileType": "miniprogram", | ||||
"libVersion": "2.0.9", | "libVersion": "2.0.9", | ||||
"appid": "wx30caec1cc16c4634", | |||||
"appid": "wx649b3be73c1afe47", | |||||
"projectname": "C", | "projectname": "C", | ||||
"isGameTourist": false, | "isGameTourist": false, | ||||
"condition": { | "condition": { | ||||