|
@@ -30,7 +30,7 @@
|
|
|
|
|
|
<view class="flex" style="margin: 0 10rpx;">
|
|
<view class="flex" style="margin: 0 10rpx;">
|
|
<view class="t-icon t-icon-baocun" @click="saveVideo"></view>
|
|
<view class="t-icon t-icon-baocun" @click="saveVideo"></view>
|
|
- <view class="t-icon t-icon-fenxiang" ></view>
|
|
|
|
|
|
+ <view class="t-icon t-icon-fenxiang" @click="shareVideo"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -67,14 +67,31 @@
|
|
},
|
|
},
|
|
saveVideo(){
|
|
saveVideo(){
|
|
console.log('点击保存');
|
|
console.log('点击保存');
|
|
- let that = this
|
|
|
|
uni.saveVideoToPhotosAlbum({
|
|
uni.saveVideoToPhotosAlbum({
|
|
- filePath: that.videoSrc,
|
|
|
|
|
|
+ filePath: this.videoSrc,
|
|
success: function() {
|
|
success: function() {
|
|
console.log('保存成功')
|
|
console.log('保存成功')
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ shareVideo(){
|
|
|
|
+ uni.share({
|
|
|
|
+ provider: "weixin",
|
|
|
|
+ scene: "WXSceneSession",
|
|
|
|
+ type: 0,
|
|
|
|
+ href: "http://uniapp.dcloud.io/",
|
|
|
|
+ title: "uni-app分享",
|
|
|
|
+ summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
|
|
|
|
+ imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png",
|
|
|
|
+ success: function (res) {
|
|
|
|
+ console.log("success:" + JSON.stringify(res));
|
|
|
|
+ },
|
|
|
|
+ fail: function (err) {
|
|
|
|
+ console.log("fail:" + JSON.stringify(err));
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|