Commit 50b4f246 by luyt

fix;图片下载loading

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