Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 50b4f246
authored
Oct 24, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix;图片下载loading
1 parent
19bf057f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
pages/checkProduct/checkProduct.js
pages/tab/index/components/product/product.js
pages/tab/index/components/product/product.wxml
pages/tab/index/constant/data.js
pages/checkProduct/checkProduct.js
View file @
50b4f24
...
@@ -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()
},
},
});
});
},
},
...
...
pages/tab/index/components/product/product.js
View file @
50b4f24
...
@@ -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
;
...
...
pages/tab/index/components/product/product.wxml
View file @
50b4f24
...
@@ -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>
...
...
pages/tab/index/constant/data.js
View file @
50b4f24
...
@@ -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"
:
"改色膜"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment