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({ ...@@ -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--------')
......
...@@ -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])
......
...@@ -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)
}, },
// 跳转视频详情 // 跳转视频详情
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!