Commit 90ad1874 by 前端

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
......@@ -23,10 +23,6 @@ Component({
type: Number,
value: 0
},
currentIndex: {
type: Number,
value: 0
},
cardInfo: {
type: Object,
value: {}
......@@ -61,7 +57,7 @@ Component({
*/
methods: {
getInfo() {
let { activeNavIdx, actNum, currentIndex } = this.data
let { activeNavIdx, actNum } = this.data
console.log(actNum)
console.log(activeNavIdx)
const spcList = [99, 4] // 订阅模块需要特殊处理
......@@ -79,7 +75,7 @@ Component({
proInfo,
productImgs: spcList.includes(actNum) ? proInfo.sceneImgs : item.productImgs,
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.prodItemVideo, 'prodItemVideo--------')
......
......@@ -80,7 +80,7 @@ Page({
console.log( options);
if (!options || utils.isEmptyObj(options)) return
let {
actNum = 0, activeNavIdx = 0, currentIndex = 0, phone, hasPhoneNumber, name, proName
actNum = 0, activeNavIdx = 0, phone, hasPhoneNumber, name, proName
} = options
this.setData({
actNum, //选中的场景下标
......@@ -88,8 +88,7 @@ Page({
sharephone: phone, //联系电话 (登陆的用户)
hasPhoneNumber:hasPhoneNumber,
pageName: name,
proName,
currentIndex
proName
})
if (name == '增值转化') {
wx.$Track.sendTrack(this.data.trackList[actNum][activeNavIdx])
......
......@@ -144,9 +144,6 @@ Page({
hasPhoneNumber: this.data.hasPhoneNumber,
proName: detail.proName
}
if (name == '系统订阅') {
obj.currentIndex = detail.currentIndex // 选中的产品再当前分类下的下标
}
wx.$router.go('/packagesList/pages/productDetail/productDetail', obj)
},
// 跳转视频详情
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!