Commit 50b4f246 by luyt

fix;图片下载loading

1 parent 19bf057f
......@@ -137,6 +137,7 @@ Page({
onRoute(options) {
console.log("分享options: ", options);
if (!options || utils.isEmptyObj(options)) return;
// if(!Object.keys(options).includes('actNum'))return
//选中场景的index,和产品的index
let {
......@@ -201,6 +202,9 @@ Page({
const { appId } = wx.getAccountInfoSync().miniProgram
// let wx_user_info = wx.$storage.get("wx_user_info");
// console.log('wx_user_info: ', wx_user_info.appId);
wx.showLoading({
title: "下载中",
});
let params = {
actNum,
activeNavIdx,
......@@ -265,6 +269,7 @@ Page({
});
}
_this.modelcloseFn();
wx.hideLoading()
},
});
},
......
......@@ -145,6 +145,17 @@ Component({
if (confirm) this.init();
});
},
// 视频下载
downVideo(e){
let {src} = e.currentTarget.dataset
console.log('src: ', src);
wx.saveVideoToPhotosAlbum({
filePath: src,
success (res) {
console.log('视频下载',res)
}
})
},
saleTextChange(e) {},
changeTab(e) {
let idx = e.detail;
......
......@@ -25,6 +25,9 @@
<image class="icon" src="{{IMGURL}}share.png" />
<text>分享</text>
</view>
<!-- <view class="" bindtap="downVideo" data-src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/video/360_AR.mp4?v=" hover-class="none" hover-stop-propagation="false">
视频下载
</view> -->
</view>
</view>
</view>
......
......@@ -104,7 +104,7 @@ var senceData = [
productType: 'protectMembrane',
path: 'paintProtect',
sale:100, //销量
varType: 1,
varType: 0,
flow:10000,
"productCode":"PC003",
"productName":"漆面保护膜(车衣)",
......@@ -119,7 +119,7 @@ var senceData = [
productType: 'colorMembrane',
path: 'changingFilm',
sale:100, //销量
varType: 1,
varType: 0,
flow:10000,
"productCode":"PC004",
"productName":"改色膜",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!