Browse Source

[修改指纹识别的问题]

tags/广东版3.2.1
meo 6 years ago
parent
commit
5e966d4823
4 changed files with 13 additions and 57 deletions
  1. +3
    -3
      config/config.js
  2. +8
    -52
      pages/scanPay/scanPay.js
  3. +1
    -1
      pages/user/index.wxml
  4. +1
    -1
      project.config.json

+ 3
- 3
config/config.js View File

@@ -1,9 +1,9 @@
var extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
var appId = extConfig.appId;
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://ctest.malls.iformall.com/C/api',
// url:'http://10.100.33.68:7000/C/api',
// url: 'http://10.100.30.172:7000/C/api',
api: {
@@ -199,7 +199,7 @@ var config = {
},

weapp: {
AppId: "wxea71200db93d756b"
AppId: "wx649b3be73c1afe47"
},
ErrorCode: {


+ 8
- 52
pages/scanPay/scanPay.js View File

@@ -34,57 +34,6 @@ Page({
},
gotoPayMoney: function (flags) {
let that = this;
// 卡余额充足的时候,才可以付钱
// if(e){
// if(e.currentTarget.dataset.flags == 'check'){
// console.log("frhufr")
// that.setData({
// ids: e.currentTarget.dataset.id,
// cardid: e.currentTarget.dataset.id,
// remainingAmount: e.currentTarget.dataset.remainingamount,
// })
// const startSoterAuthentication = () => {
// wx.startSoterAuthentication({
// requestAuthModes: [AUTH_MODE],
// challenge: 'test',
// authContent: '请验证已有的指纹以继续',
// success: (res) => {
// that.gotoPayMoney()
// },
// fail: (err) => {

// }
// })
// }
// const checkIsEnrolled = () => {
// wx.checkIsSoterEnrolledInDevice({
// checkAuthMode: AUTH_MODE,
// success: (res) => {
// console.log(res)
// if (parseInt(res.isEnrolled) <= 0) {
// that.gotoPayMoney();
// return
// }
// startSoterAuthentication();
// },
// fail: (err) => {
// console.error(err)
// }
// })
// }
// wx.checkIsSupportSoterAuthentication({
// success: (res) => {
// console.log(res)
// checkIsEnrolled()
// },
// fail: (err) => {
// console.error(err);
// that.gotoPayMoney();
// }
// })
// }
// }
const startSoterAuthentication = () => {
wx.startSoterAuthentication({
requestAuthModes: [AUTH_MODE],
@@ -117,13 +66,20 @@ Page({
wx.checkIsSupportSoterAuthentication({
success: (res) => {
console.log(res)
checkIsEnrolled()
if(res.supportMode == []){
that.gotoPay();
}else if(res.supportMode == ['fingerPrint']){
checkIsEnrolled()
}else if(res.supportMode = ['fingerPrint', 'facial'] ){
that.gotoPay();
}
},
fail: (err) => {
console.error(err);
that.gotoPay();
}
})

},
gotoPay: function () {
let that = this;


+ 1
- 1
pages/user/index.wxml View File

@@ -76,7 +76,7 @@
<view class="margin"></view>
<!-- <button bindtap="navigateTo" class="user-out-btn">退出登陆</button> -->
<view bindlongtap='showVersion' class='version'>
<view wx:if="{{flag=='show'}}">版本号:3.2.3</view>
<view wx:if="{{flag=='show'}}">版本号:3.3.0</view>
<view wx:if="{{flag=='hidden'}}"></view>
</view>
</view>


+ 1
- 1
project.config.json View File

@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.0.9",
"appid": "wxea71200db93d756b",
"appid": "wx649b3be73c1afe47",
"projectname": "C",
"isGameTourist": false,
"condition": {


Loading…
Cancel
Save