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
f881bb72
Commit
f881bb72
authored
Sep 10, 2021
by
zhoucong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新版本
parent
f57ec0a0
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
12 deletions
+18
-12
scenicList.vue
pages/vlog/scenicList/scenicList.vue
+1
-2
vlogList.vue
pages/vlog/vlogList/vlogList.vue
+3
-4
vlogface.vue
pages/vlog/vlogface/vlogface.vue
+11
-3
scenicList.js.map
...urcemap/mp-weixin/pages/vlog/scenicList/scenicList.js.map
+1
-1
vlogList.js.map
.../.sourcemap/mp-weixin/pages/vlog/vlogList/vlogList.js.map
+1
-1
vlogface.js.map
.../.sourcemap/mp-weixin/pages/vlog/vlogface/vlogface.js.map
+1
-1
No files found.
pages/vlog/scenicList/scenicList.vue
View file @
f881bb72
...
...
@@ -53,14 +53,13 @@
<
style
lang=
"scss"
scoped
>
.content
{
padding
:
0
20rpx
;
min-height
:
100%
;
width
:
100%
;
background-color
:
#192033
;
.item
{
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,
.12
)
,
0
0
6px
rgba
(
0
,
0
,
0
,
.04
);
padding
:
0
10rpx
;
border-radius
:
10rpx
;
background-color
:
#192033
;
margin-bottom
:
30rpx
;
text-align
:
center
;
.item
{
padding
:
0
10rpx
;
border-radius
:
10rpx
;
background-color
:
#192033
;
margin-bottom
:
30rpx
;
text-align
:
center
;
.video
{
height
:
350rpx
;
border-radius
:
10rpx
;
width
:
100%
;}
.title
{
height
:
60rpx
;
margin-top
:
20rpx
;
text
{
float
:
left
;
height
:
60rpx
;
line-height
:
60rpx
;
color
:
#FFE600
;
font-weight
:
bold
;}
view
{
float
:
right
;
height
:
60rpx
;
line-height
:
60rpx
;
align-items
:
center
;
display
:
flex
;}
}
}
.bottom
{
height
:
150rpx
;
width
:
100%
;
position
:
relative
;
position
:
fixed
;
bottom
:
0
;
right
:
0rpx
;
image
{
width
:
100%
;
height
:
100rpx
;
position
:
relative
;
position
:
fixed
;
bottom
:
0
;}
.paizhao
{
height
:
160rpx
;
width
:
160rpx
;
z-index
:
1
;
position
:
absolute
;
left
:
50%
;
top
:
22%
;
transform
:
translate
(
-50%
,
-50%
);
...
...
pages/vlog/vlogList/vlogList.vue
View file @
f881bb72
...
...
@@ -7,7 +7,7 @@
<view
class=
""
>
<button
v-if=
"item.shareNumber===0"
:data-productUrl=
"item.productUrl"
:data-productId=
"item.productId"
class=
"btnn"
open-type=
"share"
>
分享下载
</button>
<button
v-else
class=
"btnn"
@
click=
"handleDownload"
>
下载视频
</button>
<button
v-else
class=
"btnn"
@
click=
"handleDownload
(item.productUrl)
"
>
下载视频
</button>
<text
class=
"price"
>
¥
<text>
0
</text></text>
</view>
<view
style=
"clear: both;"
></view>
...
...
@@ -83,14 +83,14 @@
}
})
},
handleDownload
()
{
// 下载功能
handleDownload
(
url
)
{
// 下载功能
uni
.
showLoading
({
title
:
"下载中"
,
mask
:
true
})
let
fileName
=
new
Date
().
valueOf
();
//获取时间戳
uni
.
downloadFile
({
//下载文件资源到本地
url
:
'https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/414ef566a39247159965f355043b379b/minio_service/mgc-video-store/mix/2021-08-31/concat/7c4d09c044b84893959cb541e0c48d38.mp4'
,
url
,
filePath
:
wx
.
env
.
USER_DATA_PATH
+
'/'
+
fileName
+
'.mp4'
,
//filePath指定文件下载后存储的路径,wx.env.USER_DATA_PATH,时间戳为文件名
success
:
res
=>
{
//下载到本地成功
...
...
@@ -177,7 +177,6 @@
background-color
:
#192033
;
.item
{
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,
.12
)
,
0
0
6px
rgba
(
0
,
0
,
0
,
.04
);
padding
:
0
10rpx
;
border-radius
:
10rpx
;
background-color
:
#192033
;
...
...
pages/vlog/vlogface/vlogface.vue
View file @
f881bb72
...
...
@@ -44,7 +44,7 @@
text
:
3
,
//倒计时
show
:
false
,
//摄像头倒计时文本
base64
:
""
,
//照片base64
buttonShow
:
tru
e
buttonShow
:
fals
e
}
},
onLoad
()
{
//代替 vue 里面的 created
...
...
@@ -63,13 +63,13 @@
optimalFramesNum
:
3
,
//最优帧数量(默认填3就行)
enableImgBeauty
:
true
//默认填true
}
this
.
$request
(
"distribution/vlog/createVlog"
,
data
).
then
(
res
=>
{
this
.
$request
(
"distribution/vlog/createVlog"
,
data
).
then
(
res
=>
{
//创建任务
uni
.
showLoading
({
title
:
'人脸识别中'
});
if
(
res
.
code
===
"00"
)
{
setTimeout
(()
=>
{
this
.
$request
(
"distribution/vlog/getVlogCreateInfo"
,
{
this
.
$request
(
"distribution/vlog/getVlogCreateInfo"
,
{
//获取结果
userId
:
uni
.
getStorageSync
(
"openid"
)
}).
then
(
res
=>
{
if
(
res
.
code
===
"00"
)
{
...
...
@@ -88,6 +88,14 @@
}
})
},
8000
)
}
else
{
uni
.
hideLoading
()
uni
.
showModal
({
title
:
'提示'
,
content
:
'打卡点未录取足够的素材'
,
showCancel
:
false
});
this
.
buttonShow
=
true
}
})
},
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/vlog/scenicList/scenicList.js.map
View file @
f881bb72
This diff is collapsed.
Click to expand it.
unpackage/dist/dev/.sourcemap/mp-weixin/pages/vlog/vlogList/vlogList.js.map
View file @
f881bb72
This diff is collapsed.
Click to expand it.
unpackage/dist/dev/.sourcemap/mp-weixin/pages/vlog/vlogface/vlogface.js.map
View file @
f881bb72
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