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 cf5365c9
authored
Apr 07, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值,数据
1 parent
0b416b1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
packagesList/pages/videoDetal/videoDetal.js
packagesList/pages/videoDetal/videoDetal.js
View file @
cf5365c
...
@@ -42,7 +42,7 @@ Page({
...
@@ -42,7 +42,7 @@ Page({
videoList
=
item
?.
operationVideoList
videoList
=
item
?.
operationVideoList
videoUrl
=
item
?.
operationVideoList
[
videoIndex
]?.
videoUrl
videoUrl
=
item
?.
operationVideoList
[
videoIndex
]?.
videoUrl
videoObj
=
item
?.
operationVideoList
[
videoIndex
]
videoObj
=
item
?.
operationVideoList
[
videoIndex
]
}
else
{
}
else
{
videoList
=
item
?.
videoList
,
videoList
=
item
?.
videoList
,
videoUrl
=
item
.
videoList
[
videoIndex
]?.
videoUrl
videoUrl
=
item
.
videoList
[
videoIndex
]?.
videoUrl
videoObj
=
item
?.
videoList
[
videoIndex
]
videoObj
=
item
?.
videoList
[
videoIndex
]
...
@@ -78,18 +78,18 @@ Page({
...
@@ -78,18 +78,18 @@ Page({
},
// 分享数据函数
},
// 分享数据函数
shareDataFn
(
options
)
{
shareDataFn
(
options
)
{
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
tabActive
,
videoIndex
}
=
options
let
{
tabActive
,
videoIndex
,
tabsActive
}
=
options
this
.
setData
({
this
.
setData
({
tabsActive
,
tabActive
:
tabActive
,
tabActive
:
tabActive
,
videoIndex
:
videoIndex
,
videoIndex
:
videoIndex
,
});
},
()
=>
{
//分享的数据
//分享的数据
this
.
changeShareData
()
this
.
changeShareData
()
});
},
},
changeShareData
()
{
changeShareData
()
{
let
{
senceData
,
tabActive
,
videoIndex
,
videoObj
,
leftMenuIndex
=
0
}
=
this
.
data
let
{
senceData
,
tabActive
,
videoIndex
,
videoObj
,
leftMenuIndex
=
0
,
tabsActive
}
=
this
.
data
let
{
tabsActive
}
=
this
.
data
.
videoItem
// // 设置转发标题
// // 设置转发标题
// let userInfoObj = wx.$storage.get("userInfo");
// let userInfoObj = wx.$storage.get("userInfo");
// // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
// // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
...
@@ -117,12 +117,12 @@ Page({
...
@@ -117,12 +117,12 @@ Page({
let { videoObj } = this.data
let { videoObj } = this.data
let url = videoObj.videoUrl
let url = videoObj.videoUrl
wx.getSetting({
wx.getSetting({
success: (res)=> {
success: (res)
=> {
if
(res.authSetting['scope.writePhotosAlbum']===false)
{
if
(res.authSetting['scope.writePhotosAlbum'] === false)
{
_this.setData({
_this.setData({
showAuth: true
showAuth: true
})
})
}
else
{
}
else
{
wx.$api.showToast('正在下载视频...')
wx.$api.showToast('正在下载视频...')
wx.downloadFile({
wx.downloadFile({
url: url,
url: url,
...
...
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