Commit f881bb72 authored by zhoucong's avatar zhoucong

更新版本

parent f57ec0a0
......@@ -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%);
......
......@@ -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;
......
......@@ -44,7 +44,7 @@
text: 3, //倒计时
show: false, //摄像头倒计时文本
base64: "", //照片base64
buttonShow: true
buttonShow: false
}
},
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
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment