提交 84ff65cc authored 作者: 羊富学's avatar 羊富学
...@@ -61,16 +61,16 @@ Page({ ...@@ -61,16 +61,16 @@ Page({
small_finish: false, small_finish: false,
// status_zhi:'' // status_zhi:''
}, },
onLoad: function () { onLoad: function (options) {
const param = options.param;
console.log('param1',param)
wx.setStorage({
key: 'param',
data: param
})
var that = this var that = this
this.Sounds(); this.Sounds();
// const status_zhi = (wx.getStorageSync('status_zhi') || '')
// this.setData({
// status_zhi
// })
// console.log('status_zhi',status_zhi)
const dongtaishuju_chuan = wx.getStorageSync('dongtaishuju') const dongtaishuju_chuan = wx.getStorageSync('dongtaishuju')
// console.log('dongtaishuju_chuan', dongtaishuju_chuan)
switch (dongtaishuju_chuan) { switch (dongtaishuju_chuan) {
case 1: case 1:
this.Countone_Time(); this.Countone_Time();
...@@ -94,7 +94,8 @@ Page({ ...@@ -94,7 +94,8 @@ Page({
const labelCode = labelInfo.cpid_jm || labelInfo.cpid const labelCode = labelInfo.cpid_jm || labelInfo.cpid
this.setData({ this.setData({
labelCode, labelCode,
dongtaishuju_chuan dongtaishuju_chuan,
param,
}) })
// console.log('labelCode', labelCode) // console.log('labelCode', labelCode)
} }
...@@ -764,7 +765,7 @@ Page({ ...@@ -764,7 +765,7 @@ Page({
// console.log('setZoom成功', res); // console.log('setZoom成功', res);
const takephoto2_state = res.errMsg; const takephoto2_state = res.errMsg;
this.setData({ this.setData({
takephoto2_state takephoto2_state,
}); });
// console.log('takephoto2_state', takephoto2_state); // console.log('takephoto2_state', takephoto2_state);
setTimeout(() => { setTimeout(() => {
...@@ -780,20 +781,13 @@ Page({ ...@@ -780,20 +781,13 @@ Page({
key: 'originalImagePath', key: 'originalImagePath',
data: res.tempImagePath, data: res.tempImagePath,
}); });
// console.log('image', res.tempImagePath);
this.setData({ this.setData({
bigfileimage: res.tempImagePath, bigfileimage: res.tempImagePath,
result_zoom: this.data.result_zoom
}); });
// const file = res.tempImagePath;
// const base = wx.getFileSystemManager().readFileSync(file, 'base64');
// console.log('file', file);
// console.log('base', base);
wx.navigateTo({ wx.navigateTo({
url: '../upload/upload?path=' + that.data.bigfileimage + '&char=0' url: '../upload/upload?path=' + that.data.bigfileimage + '&char=0'
}); });
// console.log('传值成功');
// console.log('res.tempImagePath', that.data.bigfileimage);
}, },
fail: err => { fail: err => {
console.error('拍照失败', err); console.error('拍照失败', err);
...@@ -831,7 +825,7 @@ Page({ ...@@ -831,7 +825,7 @@ Page({
let phone_list= ['NOH-AN00','NOH-AN01','OCE-AN10','JAD-AL00','LNA-AL00','NOP-AN00','NOH-AL10','ABR-AL80','MNA-AL00','JAD-AL50','ABR-AL00','ABR-AL90','ABR-AL60','ABR-AL60','NOH-AN50'] let phone_list= ['NOH-AN00','NOH-AN01','OCE-AN10','JAD-AL00','LNA-AL00','NOP-AN00','NOH-AL10','ABR-AL80','MNA-AL00','JAD-AL50','ABR-AL00','ABR-AL90','ABR-AL60','ABR-AL60','NOH-AN50']
if(phone_list.includes(phone_model)){ if(phone_list.includes(phone_model)){
// console.log('特殊手机型号') // console.log('特殊手机型号')
timeS = 750 timeS = 850
} }
else if (benchmarkLevel > 40) { else if (benchmarkLevel > 40) {
timeS = 350; timeS = 350;
......
// pages/fenggu/AICheck/AICheck.js // pages/fenggu/AICheck/AICheck.js
Page({ Page({
takePhoto: function (e) {
/** const values = 'fenggu'
* 页面的初始数据 wx.navigateTo({
*/ // url: '../takePhoto/takePhoto'
data: { url: '/pages/cameraTakePhoto/cameraTakePhoto?param=' + values
showMask:true })
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
}, },
// 关闭遮罩层 // 关闭遮罩层
closeMask() { closeMask() {
this.setData({ this.setData({
showMask:false showMask: false
}) })
}, },
// 联系客服 // 联系客服
handleServe(){ handleServe() {
console.log(999) console.log(999)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
} }
}) })
\ No newline at end of file
...@@ -3,12 +3,10 @@ ...@@ -3,12 +3,10 @@
<view class="content-box"> <view class="content-box">
<image src="/assets/fenggu/logo.png" mode="widthFix" class="logo-img" /> <image src="/assets/fenggu/logo.png" mode="widthFix" class="logo-img" />
<image src="/assets/fenggu/AI.png" mode="widthFix" class="ai-img" /> <image src="/assets/fenggu/AI.png" mode="widthFix" class="ai-img"/>
<image src="/assets/fenggu/开始认证.png" mode="widthFix" style="width: 400rpx;" /> <image src="/assets/fenggu/开始认证.png" bindtap="takePhoto" mode="widthFix" style="width: 400rpx;"/>
</view> </view>
<view wx:if="{{showMask}}" class="mask">
<!-- 验证不同遮罩层 -->
<view wx:if="{{showMask}}" class="mask">
<!-- 未通过 --> <!-- 未通过 -->
<view class="fali mask-card" wx:if="{{false}}"> <view class="fali mask-card" wx:if="{{false}}">
<image src="/assets/fenggu/未通过卡片.png" mode="widthFix" /> <image src="/assets/fenggu/未通过卡片.png" mode="widthFix" />
......
...@@ -90,6 +90,8 @@ Page({ ...@@ -90,6 +90,8 @@ Page({
this.onHide(); this.onHide();
const openid = wx.getStorageSync('openid') const openid = wx.getStorageSync('openid')
const extraData = wx.getStorageSync('extraData') const extraData = wx.getStorageSync('extraData')
const param = wx.getStorageSync('param')
console.log('param',param)
let labelInfo = extraData let labelInfo = extraData
console.log('labelInfo', labelInfo) console.log('labelInfo', labelInfo)
var userid = labelInfo.uid var userid = labelInfo.uid
...@@ -98,7 +100,8 @@ Page({ ...@@ -98,7 +100,8 @@ Page({
// console.log('cpid', cpid) // console.log('cpid', cpid)
this.setData({ this.setData({
userid, userid,
cpid cpid,
param
}) })
if (labelInfo === '') { if (labelInfo === '') {
console.log('id为空') console.log('id为空')
...@@ -316,31 +319,34 @@ Page({ ...@@ -316,31 +319,34 @@ Page({
uploadImg() { uploadImg() {
console.log('this.data.filePath', this.data.filePath) console.log('this.data.filePath', this.data.filePath)
const base = wx.getFileSystemManager().readFileSync(this.data.filePath, 'base64') const base = wx.getFileSystemManager().readFileSync(this.data.filePath, 'base64')
//增加不需要进行码判断
this.checkAiResult(base);
// console.log('base', base) // console.log('base', base)
if (this.data.labelCode) { // if (this.data.labelCode) {
// console.log('开始检查标签相似') // // console.log('开始检查标签相似')
this.checkIsSameCode(base, (state) => { // this.checkIsSameCode(base, (state) => {
this.setData({ // this.setData({
sameCodeState: state // sameCodeState: state
}) // })
if (state === 1) { // if (state === 1) {
this.checkAiResult(base); // this.checkAiResult(base);
} else { // } else {
this.setData({ // this.setData({
isLoading: false, // isLoading: false,
}) // })
} // }
}) // })
console.log("sameCodeState", this.data.sameCodeState) // console.log("sameCodeState", this.data.sameCodeState)
} else { // } else {
console.log('进入不需要检查标签相似') // console.log('进入不需要检查标签相似')
this.setData({ // this.setData({
sameCodeState: 1, // sameCodeState: 1,
userimage: false, // userimage: false,
userinfo_name: false // userinfo_name: false
}) // })
this.checkAiResult(base); // this.checkAiResult(base);
} // }
}, },
//检查标签是否相同 //检查标签是否相同
checkIsSameCode(base, cb) { checkIsSameCode(base, cb) {
...@@ -1021,7 +1027,7 @@ Page({ ...@@ -1021,7 +1027,7 @@ Page({
isLoading: false, isLoading: false,
sameCodeState: 1 sameCodeState: 1
}) })
// console.log('this.data.peo_state', this.data.peo_state) // console.log('this.data.peo_state', this.data.peo_state)1
// console.log('this.data.fail_state', this.data.fail_state) // console.log('this.data.fail_state', this.data.fail_state)
// console.log('this.data.sameCodeState', this.data.sameCodeState) // console.log('this.data.sameCodeState', this.data.sameCodeState)
clearInterval(this.data.setInter) clearInterval(this.data.setInter)
...@@ -1367,11 +1373,6 @@ Page({ ...@@ -1367,11 +1373,6 @@ Page({
return; return;
} }
labelInfo.state = state labelInfo.state = state
// console.log('state', state)
// console.log('labelInfo.state', labelInfo.state)
// const uuid = labelInfo.uuid
// console.log('uuid', uuid)
// console.log('labelInfo.os',labelInfo.os)
//调用云平台接口 //调用云平台接口
if (labelInfo.os === 'davis') { if (labelInfo.os === 'davis') {
wx.request({ wx.request({
...@@ -1398,9 +1399,7 @@ Page({ ...@@ -1398,9 +1399,7 @@ Page({
}, },
success: (res) => { success: (res) => {
console.log('回调成功') console.log('回调成功')
// console.log('labelInfo.success', labelInfo.success); w }
// console.log('this.data.notice')
}
}) })
} }
}, },
......
...@@ -48,6 +48,13 @@ ...@@ -48,6 +48,13 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "",
"pathName": "pages/fenggu/AICheck/AICheck",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论