Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
best_AI
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
常超凡
best_AI
Commits
84ff65cc
提交
84ff65cc
authored
2月 21, 2024
作者:
羊富学
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://124.225.116.118:35236/changchaofan/best_AI
上级
103d0280
e99b8668
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
64 行增加
和
124 行删除
+64
-124
cameraTakePhoto.js
pages/cameraTakePhoto/cameraTakePhoto.js
+12
-18
AICheck.js
pages/fenggu/AICheck/AICheck.js
+9
-67
AICheck.wxml
pages/fenggu/AICheck/AICheck.wxml
+3
-5
upload.js
pages/upload/upload.js
+33
-34
project.private.config.json
project.private.config.json
+7
-0
没有找到文件。
pages/cameraTakePhoto/cameraTakePhoto.js
浏览文件 @
84ff65cc
...
...
@@ -61,16 +61,16 @@ Page({
small_finish
:
false
,
// status_zhi:''
},
onLoad
:
function
()
{
onLoad
:
function
(
options
)
{
const
param
=
options
.
param
;
console
.
log
(
'param1'
,
param
)
wx
.
setStorage
({
key
:
'param'
,
data
:
param
})
var
that
=
this
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'
)
// console.log('dongtaishuju_chuan', dongtaishuju_chuan)
switch
(
dongtaishuju_chuan
)
{
case
1
:
this
.
Countone_Time
();
...
...
@@ -94,7 +94,8 @@ Page({
const
labelCode
=
labelInfo
.
cpid_jm
||
labelInfo
.
cpid
this
.
setData
({
labelCode
,
dongtaishuju_chuan
dongtaishuju_chuan
,
param
,
})
// console.log('labelCode', labelCode)
}
...
...
@@ -764,7 +765,7 @@ Page({
// console.log('setZoom成功', res);
const
takephoto2_state
=
res
.
errMsg
;
this
.
setData
({
takephoto2_state
takephoto2_state
,
});
// console.log('takephoto2_state', takephoto2_state);
setTimeout
(()
=>
{
...
...
@@ -780,20 +781,13 @@ Page({
key
:
'originalImagePath'
,
data
:
res
.
tempImagePath
,
});
// console.log('image', res.tempImagePath);
this
.
setData
({
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
({
url
:
'../upload/upload?path='
+
that
.
data
.
bigfileimage
+
'&char=0'
});
// console.log('传值成功');
// console.log('res.tempImagePath', that.data.bigfileimage);
},
fail
:
err
=>
{
console
.
error
(
'拍照失败'
,
err
);
...
...
@@ -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'
]
if
(
phone_list
.
includes
(
phone_model
)){
// console.log('特殊手机型号')
timeS
=
7
50
timeS
=
8
50
}
else
if
(
benchmarkLevel
>
40
)
{
timeS
=
350
;
...
...
pages/fenggu/AICheck/AICheck.js
浏览文件 @
84ff65cc
// pages/fenggu/AICheck/AICheck.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
showMask
:
true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
takePhoto
:
function
(
e
)
{
const
values
=
'fenggu'
wx
.
navigateTo
({
// url: '../takePhoto/takePhoto'
url
:
'/pages/cameraTakePhoto/cameraTakePhoto?param='
+
values
})
},
// 关闭遮罩层
closeMask
()
{
this
.
setData
({
showMask
:
false
showMask
:
false
})
},
// 联系客服
handleServe
(){
handleServe
()
{
console
.
log
(
999
)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
})
pages/fenggu/AICheck/AICheck.wxml
浏览文件 @
84ff65cc
...
...
@@ -3,12 +3,10 @@
<view class="content-box">
<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/开始认证.png"
mode="widthFix" style="width: 400rpx;"
/>
<image src="/assets/fenggu/AI.png" mode="widthFix" class="ai-img"/>
<image src="/assets/fenggu/开始认证.png"
bindtap="takePhoto" mode="widthFix" style="width: 400rpx;"
/>
</view>
<!-- 验证不同遮罩层 -->
<view wx:if="{{showMask}}" class="mask">
<view wx:if="{{showMask}}" class="mask">
<!-- 未通过 -->
<view class="fali mask-card" wx:if="{{false}}">
<image src="/assets/fenggu/未通过卡片.png" mode="widthFix" />
...
...
pages/upload/upload.js
浏览文件 @
84ff65cc
...
...
@@ -90,6 +90,8 @@ Page({
this
.
onHide
();
const
openid
=
wx
.
getStorageSync
(
'openid'
)
const
extraData
=
wx
.
getStorageSync
(
'extraData'
)
const
param
=
wx
.
getStorageSync
(
'param'
)
console
.
log
(
'param'
,
param
)
let
labelInfo
=
extraData
console
.
log
(
'labelInfo'
,
labelInfo
)
var
userid
=
labelInfo
.
uid
...
...
@@ -98,7 +100,8 @@ Page({
// console.log('cpid', cpid)
this
.
setData
({
userid
,
cpid
cpid
,
param
})
if
(
labelInfo
===
''
)
{
console
.
log
(
'id为空'
)
...
...
@@ -316,31 +319,34 @@ Page({
uploadImg
()
{
console
.
log
(
'this.data.filePath'
,
this
.
data
.
filePath
)
const
base
=
wx
.
getFileSystemManager
().
readFileSync
(
this
.
data
.
filePath
,
'base64'
)
//增加不需要进行码判断
this
.
checkAiResult
(
base
);
// console.log('base', base)
if
(
this
.
data
.
labelCode
)
{
// console.log('开始检查标签相似')
this
.
checkIsSameCode
(
base
,
(
state
)
=>
{
this
.
setData
({
sameCodeState
:
state
})
if
(
state
===
1
)
{
this
.
checkAiResult
(
base
);
}
else
{
this
.
setData
({
isLoading
:
false
,
})
}
})
console
.
log
(
"sameCodeState"
,
this
.
data
.
sameCodeState
)
}
else
{
console
.
log
(
'进入不需要检查标签相似'
)
this
.
setData
({
sameCodeState
:
1
,
userimage
:
false
,
userinfo_name
:
false
})
this
.
checkAiResult
(
base
);
}
//
if (this.data.labelCode) {
//
// console.log('开始检查标签相似')
//
this.checkIsSameCode(base, (state) => {
//
this.setData({
//
sameCodeState: state
//
})
//
if (state === 1) {
//
this.checkAiResult(base);
//
} else {
//
this.setData({
//
isLoading: false,
//
})
//
}
//
})
//
console.log("sameCodeState", this.data.sameCodeState)
//
} else {
//
console.log('进入不需要检查标签相似')
//
this.setData({
//
sameCodeState: 1,
//
userimage: false,
//
userinfo_name: false
//
})
//
this.checkAiResult(base);
//
}
},
//检查标签是否相同
checkIsSameCode
(
base
,
cb
)
{
...
...
@@ -1021,7 +1027,7 @@ Page({
isLoading
:
false
,
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.sameCodeState', this.data.sameCodeState)
clearInterval
(
this
.
data
.
setInter
)
...
...
@@ -1367,11 +1373,6 @@ Page({
return
;
}
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'
)
{
wx
.
request
({
...
...
@@ -1398,9 +1399,7 @@ Page({
},
success
:
(
res
)
=>
{
console
.
log
(
'回调成功'
)
// console.log('labelInfo.success', labelInfo.success);
// console.log('this.data.notice')
}
w
}
})
}
},
...
...
project.private.config.json
浏览文件 @
84ff65cc
...
...
@@ -48,6 +48,13 @@
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"pages/fenggu/AICheck/AICheck"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论