Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 90ad1874
authored
Dec 30, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huyue_v3.3.0' of
http://192.168.3.233:8090/saas/mini-program/ai-card
into huyue_v3.3.0
2 parents
f067b37e
5454af7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
components/proDetail/proDetail.js
packagesList/pages/productDetail/productDetail.js
pages/tab/index/index.js
components/proDetail/proDetail.js
View file @
90ad187
...
@@ -23,10 +23,6 @@ Component({
...
@@ -23,10 +23,6 @@ Component({
type
:
Number
,
type
:
Number
,
value
:
0
value
:
0
},
},
currentIndex
:
{
type
:
Number
,
value
:
0
},
cardInfo
:
{
cardInfo
:
{
type
:
Object
,
type
:
Object
,
value
:
{}
value
:
{}
...
@@ -61,7 +57,7 @@ Component({
...
@@ -61,7 +57,7 @@ Component({
*/
*/
methods
:
{
methods
:
{
getInfo
()
{
getInfo
()
{
let
{
activeNavIdx
,
actNum
,
currentIndex
}
=
this
.
data
let
{
activeNavIdx
,
actNum
}
=
this
.
data
console
.
log
(
actNum
)
console
.
log
(
actNum
)
console
.
log
(
activeNavIdx
)
console
.
log
(
activeNavIdx
)
const
spcList
=
[
99
,
4
]
// 订阅模块需要特殊处理
const
spcList
=
[
99
,
4
]
// 订阅模块需要特殊处理
...
@@ -79,7 +75,7 @@ Component({
...
@@ -79,7 +75,7 @@ Component({
proInfo
,
proInfo
,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
item
.
productImgs
,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
item
.
productImgs
,
tabList
:
spcList
.
includes
(
actNum
)
?
proInfo
.
tabList
:
norTabList
,
tabList
:
spcList
.
includes
(
actNum
)
?
proInfo
.
tabList
:
norTabList
,
prodItemVideo
:
item
.
videoList
.
length
?
spcList
.
includes
(
actNum
)
?
item
.
videoList
[
currentIndex
]
:
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
prodItemVideo
:
item
.
videoList
.
length
?
spcList
.
includes
(
actNum
)
?
item
.
videoList
[
proInfo
.
currentIndex
]
:
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
})
})
console
.
log
(
this
.
data
.
productImgs
,
proInfo
)
console
.
log
(
this
.
data
.
productImgs
,
proInfo
)
// console.log(this.data.prodItemVideo, 'prodItemVideo--------')
// console.log(this.data.prodItemVideo, 'prodItemVideo--------')
...
...
packagesList/pages/productDetail/productDetail.js
View file @
90ad187
...
@@ -80,7 +80,7 @@ Page({
...
@@ -80,7 +80,7 @@ Page({
console
.
log
(
options
);
console
.
log
(
options
);
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
let
{
actNum
=
0
,
activeNavIdx
=
0
,
currentIndex
=
0
,
phone
,
hasPhoneNumber
,
name
,
proName
actNum
=
0
,
activeNavIdx
=
0
,
phone
,
hasPhoneNumber
,
name
,
proName
}
=
options
}
=
options
this
.
setData
({
this
.
setData
({
actNum
,
//选中的场景下标
actNum
,
//选中的场景下标
...
@@ -88,8 +88,7 @@ Page({
...
@@ -88,8 +88,7 @@ Page({
sharephone
:
phone
,
//联系电话 (登陆的用户)
sharephone
:
phone
,
//联系电话 (登陆的用户)
hasPhoneNumber
:
hasPhoneNumber
,
hasPhoneNumber
:
hasPhoneNumber
,
pageName
:
name
,
pageName
:
name
,
proName
,
proName
currentIndex
})
})
if
(
name
==
'增值转化'
)
{
if
(
name
==
'增值转化'
)
{
wx
.
$Track
.
sendTrack
(
this
.
data
.
trackList
[
actNum
][
activeNavIdx
])
wx
.
$Track
.
sendTrack
(
this
.
data
.
trackList
[
actNum
][
activeNavIdx
])
...
...
pages/tab/index/index.js
View file @
90ad187
...
@@ -144,9 +144,6 @@ Page({
...
@@ -144,9 +144,6 @@ Page({
hasPhoneNumber
:
this
.
data
.
hasPhoneNumber
,
hasPhoneNumber
:
this
.
data
.
hasPhoneNumber
,
proName
:
detail
.
proName
proName
:
detail
.
proName
}
}
if
(
name
==
'系统订阅'
)
{
obj
.
currentIndex
=
detail
.
currentIndex
// 选中的产品再当前分类下的下标
}
wx
.
$router
.
go
(
'/packagesList/pages/productDetail/productDetail'
,
obj
)
wx
.
$router
.
go
(
'/packagesList/pages/productDetail/productDetail'
,
obj
)
},
},
// 跳转视频详情
// 跳转视频详情
...
...
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