Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
98f77daf
Commit
98f77daf
authored
Sep 11, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化vlog 流程
parent
f881bb72
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
31 deletions
+35
-31
myVlog.vue
pages/vlog/myVlog/myVlog.vue
+15
-1
vlogface.vue
pages/vlog/vlogface/vlogface.vue
+18
-28
myVlog.js.map
.../dev/.sourcemap/mp-weixin/pages/vlog/myVlog/myVlog.js.map
+1
-1
vlogface.js.map
.../.sourcemap/mp-weixin/pages/vlog/vlogface/vlogface.js.map
+1
-1
No files found.
pages/vlog/myVlog/myVlog.vue
View file @
98f77daf
...
...
@@ -34,7 +34,21 @@
},
onReady
()
{},
onLoad
()
{
this
.
getMyVlogList
()
this
.
$request
(
"distribution/vlog/getVlogCreateInfo"
,
{
//获取结果
userId
:
uni
.
getStorageSync
(
"openid"
)
}).
then
(
res
=>
{
if
(
res
.
code
===
"00"
){
setTimeout
(()
=>
{
this
.
getMyVlogList
()
},
1000
)
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'视频合成失败,需要在打卡点重新获取素材'
,
showCancel
:
false
});
}
})
},
methods
:
{
navTo
(
item
){
...
...
pages/vlog/vlogface/vlogface.vue
View file @
98f77daf
...
...
@@ -32,7 +32,7 @@
<view>
不遮挡面部
</view>
</view>
</view>
<
u-button
v-if=
"buttonShow"
type=
"success"
size=
"medium"
@
click=
"takePhoto"
>
开始识别
</u-button
>
<
!--
<u-button
type=
"success"
size=
"medium"
@
click=
"takePhoto"
>
开始识别
</u-button>
--
>
</view>
</
template
>
...
...
@@ -44,7 +44,6 @@
text
:
3
,
//倒计时
show
:
false
,
//摄像头倒计时文本
base64
:
""
,
//照片base64
buttonShow
:
false
}
},
onLoad
()
{
//代替 vue 里面的 created
...
...
@@ -64,38 +63,29 @@
enableImgBeauty
:
true
//默认填true
}
this
.
$request
(
"distribution/vlog/createVlog"
,
data
).
then
(
res
=>
{
//创建任务
uni
.
showLoading
({
title
:
'人脸识别中'
});
if
(
res
.
code
===
"00"
)
{
setTimeout
(()
=>
{
this
.
$request
(
"distribution/vlog/getVlogCreateInfo"
,
{
//获取结果
userId
:
uni
.
getStorageSync
(
"openid"
)
}).
then
(
res
=>
{
if
(
res
.
code
===
"00"
)
{
uni
.
showToast
({
title
:
'识别成功'
,
duration
:
1500
});
this
.
$u
.
route
(
"pages/vlog/myVlog/myVlog"
)
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'识别失败,请重新扫脸'
,
showCancel
:
false
});
this
.
buttonShow
=
true
var
that
=
this
uni
.
showModal
({
title
:
'提示'
,
content
:
'视频合成中,请在1~2分钟后在我的VLOG视频集中查看'
,
showCancel
:
false
,
success
(
res
)
{
if
(
res
.
confirm
)
{
that
.
$u
.
route
(
"pages/vlog/vlogIndex/vlogIndex"
)
}
}
)
}
,
8000
)
}
}
);
}
else
{
uni
.
hideLoading
()
uni
.
showModal
({
title
:
'提示'
,
content
:
'打卡点未录取足够的素材'
,
showCancel
:
false
content
:
'请先在打卡点录制素材'
,
showCancel
:
false
,
success
(
res
)
{
if
(
res
.
confirm
)
{
that
.
$u
.
route
(
"pages/vlog/vlogIndex/vlogIndex"
)
}
}
});
this
.
buttonShow
=
true
}
})
},
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/vlog/myVlog/myVlog.js.map
View file @
98f77daf
This diff is collapsed.
Click to expand it.
unpackage/dist/dev/.sourcemap/mp-weixin/pages/vlog/vlogface/vlogface.js.map
View file @
98f77daf
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment