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 d4d6dff9
authored
Apr 07, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值,数据
1 parent
27891367
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
19 deletions
package-lock.json
package.json
packagesList/pages/videoDetal/videoDetal.js
pages/tab/index/constant/data.js
pages/tab/index/index.js
package-lock.json
View file @
d4d6dff
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
"integrity"
:
"sha512-R2FyCk0mK2xvUX2dMgVZjVG512RKBj7ELMDxjRJjhQWtw4495WBgbl5Yb4v2A6d4vWJe6z9toKgDJTciN0Bo9A=="
"integrity"
:
"sha512-R2FyCk0mK2xvUX2dMgVZjVG512RKBj7ELMDxjRJjhQWtw4495WBgbl5Yb4v2A6d4vWJe6z9toKgDJTciN0Bo9A=="
},
},
"glsx-applet-component"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.1.
1
"
,
"version"
:
"1.1.
2
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.
1
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.
2
.tgz"
,
"integrity"
:
"sha512-
+eDD8gsVs0Tudw9hwwhL8FoXltgw6Z8uz1Ez7naZdumGt9WZXhMHzWIXw3nDLXt7UO8RNBHA8eS0juAKRnHcyA
=="
"integrity"
:
"sha512-
fPuHlfJmybl1auJz65kVa/nlg0PjPL4Nr8LspMyRH+8XvjT269DxpsuZYjXIZeb5050Q/R2Brqc2/A6pTcGXvw
=="
}
}
}
}
}
}
package.json
View file @
d4d6dff
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.7"
,
"@vant/weapp"
:
"^1.10.7"
,
"glsx-applet-component"
:
"^1.1.
1
"
"glsx-applet-component"
:
"^1.1.
2
"
},
},
"devDependencies"
:
{},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
...
...
packagesList/pages/videoDetal/videoDetal.js
View file @
d4d6dff
...
@@ -17,6 +17,7 @@ Page({
...
@@ -17,6 +17,7 @@ Page({
videoList
:
[],
videoList
:
[],
videoUrl
:
''
,
videoUrl
:
''
,
isShare
:
false
,
//是否是被分享出去
isShare
:
false
,
//是否是被分享出去
tabsActive
:
1
},
},
videoObj
:
{},
videoObj
:
{},
showAuth
:
false
showAuth
:
false
...
@@ -32,17 +33,29 @@ Page({
...
@@ -32,17 +33,29 @@ Page({
})
})
})
})
if
(
!
utils
.
isEmptyObj
(
options
))
{
if
(
!
utils
.
isEmptyObj
(
options
))
{
let
{
isShare
,
videoIndex
,
tabActive
,
sceneCode
,
leftMenuIndex
}
=
options
;
let
{
isShare
,
videoIndex
,
tabActive
,
sceneCode
,
leftMenuIndex
=
0
,
tabsActive
}
=
options
;
let
item
=
this
.
data
.
productData
[
tabActive
].
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
let
item
=
this
.
data
.
productData
[
tabActive
].
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
let
videoList
=
[]
let
videoUrl
=
''
let
videoObj
=
{}
if
(
tabsActive
===
'3'
)
{
videoList
=
item
?.
operationVideoList
videoUrl
=
item
?.
operationVideoList
[
videoIndex
]?.
videoUrl
videoObj
=
item
?.
operationVideoList
[
videoIndex
]
}
else
{
videoList
=
item
?.
videoList
,
videoUrl
=
item
.
videoList
[
videoIndex
]?.
videoUrl
videoObj
=
item
?.
videoList
[
videoIndex
]
}
let
videoItem
=
{
let
videoItem
=
{
index
:
videoIndex
,
index
:
videoIndex
,
videoList
:
item
?.
videoList
,
videoList
:
videoList
,
videoUrl
:
item
?.
videoList
[
videoIndex
]?.
videoUrl
videoUrl
:
videoUrl
}
}
this
.
setData
({
this
.
setData
({
videoItem
:
videoItem
,
videoItem
:
videoItem
,
isShare
:
isShare
,
isShare
:
isShare
,
videoObj
:
item
?.
videoList
[
videoIndex
]
,
videoObj
:
videoObj
,
leftMenuIndex
:
leftMenuIndex
leftMenuIndex
:
leftMenuIndex
})
})
this
.
setpagesTitle
()
this
.
setpagesTitle
()
...
@@ -52,7 +65,7 @@ Page({
...
@@ -52,7 +65,7 @@ Page({
//接受跳转的路由参数(小程序页面跳转)
//接受跳转的路由参数(小程序页面跳转)
onRoute
(
options
)
{
onRoute
(
options
)
{
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
scenIndex
,
videoList
,
index
,
leftMenuIndex
}
=
options
let
{
scenIndex
,
videoList
,
index
,
leftMenuIndex
=
0
}
=
options
options
.
videoIndex
=
index
options
.
videoIndex
=
index
options
.
tabActive
=
scenIndex
options
.
tabActive
=
scenIndex
this
.
setData
({
this
.
setData
({
...
@@ -74,16 +87,16 @@ Page({
...
@@ -74,16 +87,16 @@ Page({
this
.
changeShareData
()
this
.
changeShareData
()
},
},
changeShareData
()
{
changeShareData
()
{
let
{
senceData
,
tabActive
,
videoIndex
,
videoObj
,
leftMenuIndex
}
=
this
.
data
let
{
senceData
,
tabActive
,
videoIndex
,
videoObj
,
leftMenuIndex
=
0
}
=
this
.
data
let
{
tabsActive
}
=
this
.
data
.
videoItem
// // 设置转发标题
// // 设置转发标题
// let userInfoObj = wx.$storage.get("userInfo");
// let userInfoObj = wx.$storage.get("userInfo");
// // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
// // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
// let name = userInfoObj.merchantName;
// let name = userInfoObj.merchantName;
this
.
shareTitle
=
`给您分享一个
${
videoObj
.
name
}
视频`
;
this
.
shareTitle
=
`给您分享一个
${
videoObj
.
name
}
视频`
;
//分享的数据
//分享的数据
let
senceItem
=
productData
[
tabActive
][
leftMenuIndex
]
let
senceItem
=
productData
[
tabActive
][
leftMenuIndex
]
this
.
shareQuery
=
`sceneCode=
${
senceItem
?.
sceneCode
}
&
isShare
=
$
{
true
}
&
tabActive
=
$
{
tabActive
}
&
videoIndex
=
$
{
videoIndex
}
&
leftMenuIndex
=
$
{
leftMenuIndex
}
`
this
.
shareQuery
=
`sceneCode=
${
senceItem
?.
sceneCode
}
&
isShare
=
$
{
true
}
&
tabActive
=
$
{
tabActive
}
&
videoIndex
=
$
{
videoIndex
}
&
leftMenuIndex
=
$
{
leftMenuIndex
}
&
tabsActive
=
$
{
tabsActive
}
`
},
},
// 切换视频
// 切换视频
chooseVideo(e) {
chooseVideo(e) {
...
...
pages/tab/index/constant/data.js
View file @
d4d6dff
...
@@ -268,13 +268,57 @@ const posterList3 = [
...
@@ -268,13 +268,57 @@ const posterList3 = [
// 操作指引视频
// 操作指引视频
// 会员权益升级
// 会员权益升级
const
operationVideoList0
=
[{
const
operationVideoList0
=
[
videoUrl
:
`
${
videoBaseUrl
}
video/online_coupon.mp4`
,
{
posterUrl
:
`
${
IMG_URL
}
index/poster/car_beauty.png`
,
videoUrl
:
`
${
videoBaseUrl
}
video/generate_price.mp4`
,
name
:
'如何线上发券呢?'
,
posterUrl
:
`
${
IMG_URL
}
index/poster/generate_price.jpg`
,
manufacturer
:
'嘀加智慧'
,
name
:
'如何生成融合报价单?'
,
view
:
1361
manufacturer
:
'嘀加智慧'
,
},]
view
:
2854
},
{
videoUrl
:
`
${
videoBaseUrl
}
video/edite_price_content.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/edite_price_content.jpg`
,
name
:
'如何修改已生成的融合报价单内容?'
,
manufacturer
:
'嘀加智慧'
,
view
:
1786
},
{
videoUrl
:
`
${
videoBaseUrl
}
video/enter_defeat_order.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/enter_defeat_order.jpg`
,
name
:
'如何录入战败订单?'
,
manufacturer
:
'嘀加智慧'
,
view
:
2115
},
{
videoUrl
:
`
${
videoBaseUrl
}
video/how_bill_lading.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/how_bill_lading.jpg`
,
name
:
'如何提单?'
,
manufacturer
:
'嘀加智慧'
,
view
:
1361
},
{
videoUrl
:
`
${
videoBaseUrl
}
video/print_contract.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/print_contract.jpg`
,
name
:
'如何打印纸质合同?'
,
manufacturer
:
'嘀加智慧'
,
view
:
3008
},
{
videoUrl
:
`
${
videoBaseUrl
}
video/why_generate_price.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/why_generate_price.jpg`
,
name
:
'为什么要生成融合报价单?'
,
manufacturer
:
'嘀加智慧'
,
view
:
1968
},
{
videoUrl
:
`
${
videoBaseUrl
}
video/online_system_benefit.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/online_system_benefit.jpg`
,
name
:
'使用线上系统有什么好处?'
,
manufacturer
:
'嘀加智慧'
,
view
:
3361
},
]
// 精品升级
// 精品升级
const
operationVideoList1
=
[
const
operationVideoList1
=
[
{
{
...
...
pages/tab/index/index.js
View file @
d4d6dff
This diff is collapsed.
Click to expand it.
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