Commit 08402b28 by 张立顺

拉取代码

2 parents 29d5d981 43f17c3b
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
import { ssoApi } from "../../api/api"; import { ssoApi } from "../../api/api";
import { componentsMixin } from "../../mixins/index"; import { componentsMixin } from "../../mixins/index";
Component({ Component({
externalClasses: ['test-class','class'],
behaviors: [componentsMixin], behaviors: [componentsMixin],
options: { options: {
styleIsolation: 'shared' styleIsolation: 'shared'
......
<view class="fixBottom"> <view class="fixBottom test-class class">
<view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn"> <view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn">
<!-- <view class="isFullSucreen"> --> <!-- <view class="isFullSucreen"> -->
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button> <button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请1</button>
......
// packagesList/pages/productDetail/components/proDetail/proDetail.js // packagesList/pages/productDetail/components/proDetail/proDetail.js
import { senceData, productData } from "~/pages/tab/index/constant/senceData" import { senceData, productData } from "~/pages/tab/index/constant/senceData"
Component({ Component({
externalClasses: ['custom-class'],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -44,21 +45,21 @@ Component({ ...@@ -44,21 +45,21 @@ Component({
methods: { methods: {
getInfo() { getInfo() {
let { activeNavIdx, actNum } = this.data let { activeNavIdx, actNum } = this.data
console.log(actNum) //console.log(actNum)
console.log(activeNavIdx) //console.log(activeNavIdx)
const senceList = productData[actNum].filter(item => item.name != '全部') const senceList = productData[actNum].filter(item => item.name != '全部')
for (let i = 0; i < senceList.length; i++) { for (let i = 0; i < senceList.length; i++) {
let item = senceList[i] let item = senceList[i]
let proIdList = item?.productList.map(k => k.id) let proIdList = item?.productList.map(k => k.id)
if (proIdList.includes(activeNavIdx)) { if (proIdList.includes(activeNavIdx)) {
console.log(item, 'item----') //console.log(item, 'item----')
console.log(item.productList.find(k => k.id == activeNavIdx)) //console.log(item.productList.find(k => k.id == activeNavIdx))
this.setData({ this.setData({
proInfo: item.productList.find(k => k.id == activeNavIdx), proInfo: item.productList.find(k => k.id == activeNavIdx),
productImgs: item.productImgs, productImgs: item.productImgs,
prodItemVideo: item.videoList.length ? item.videoList[activeNavIdx] : item.noVideoPicture[0] prodItemVideo: item.videoList.length ? item.videoList[activeNavIdx] : item.noVideoPicture[0]
}) })
console.log(this.data.prodItemVideo, 'prodItemVideo--------') //console.log(this.data.prodItemVideo, 'prodItemVideo--------')
break break
} }
} }
...@@ -121,7 +122,7 @@ Component({ ...@@ -121,7 +122,7 @@ Component({
}); });
}, },
selectCard() { selectCard() {
console.log(this.data.showCard) //console.log(this.data.showCard)
this.setData({ this.setData({
showCard: !this.data.showCard showCard: !this.data.showCard
}) })
......
<!--packagesList/pages/productDetail/components/proDetail/proDetail.wxml--> <!--packagesList/pages/productDetail/components/proDetail/proDetail.wxml-->
<view class="view-prod"> <view class="view-prod custom-class">
<view class="pro-head"> <view class="pro-head">
<view class="select-card" bindtap="selectCard"> <view class="select-card" bindtap="selectCard">
<glsx-image custom-class="icon-card" src="home/icon-card.png"></glsx-image> <glsx-image custom-class="icon-card" src="home/icon-card.png"></glsx-image>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
}, },
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.0.32", "version": "1.0.32",
"resolved": "https://registry.npmmirror.com/glsx-applet-component/-/glsx-applet-component-1.0.32.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.32.tgz",
"integrity": "sha512-1YnE+r/tHpQS0FYLN/YV7EHvhOhY3leprkghtSpl3jjNP6KkMzrQoRuTatSIe3AWzVOKeXVP6ZsCIm9cdtB4pQ==" "integrity": "sha512-1YnE+r/tHpQS0FYLN/YV7EHvhOhY3leprkghtSpl3jjNP6KkMzrQoRuTatSIe3AWzVOKeXVP6ZsCIm9cdtB4pQ=="
} }
} }
......
// packagesList/pages/productDetail/productDetail.js // packagesList/pages/productDetail/productDetail.js
import { behavior as computedBehavior } from '~/utils/lib/miniprogram-computed' import {
import { IMG_URL } from "~/utils/constantData.js"; behavior as computedBehavior
import { senceData, productData } from "~/pages/tab/index/constant/senceData" } from '~/utils/lib/miniprogram-computed'
import {
IMG_URL
} from "~/utils/constantData.js";
import {
senceData,
productData
} from "~/pages/tab/index/constant/senceData"
// import USERAPI from '~/api/usersApi/index' // import USERAPI from '~/api/usersApi/index'
import utils from '~/utils/util' import utils from '~/utils/util'
// import {getActiveApi} from "~/api/viewprod" // import {getActiveApi} from "~/api/viewprod"
...@@ -18,18 +25,19 @@ Page({ ...@@ -18,18 +25,19 @@ Page({
senceData, senceData,
productData, productData,
proInfo: {}, proInfo: {},
isShare:false, //是否是分享出去的 isShare: false, //是否是分享出去的
actNum: 0, actNum: 0,
tabAct: 0, tabAct: 0,
showLeft:false, //更多按钮显示的内容 showLeft: false, //更多按钮显示的内容
scrollTop:0, scrollTop: 0,
img_version: '0.1.0', img_version: '0.1.0',
// 是否授权昵称 // 是否授权昵称
hasUserInfo: false, hasUserInfo: false,
prodItemVideo:'', //选中的场景下的video的第一个 prodItemVideo: '', //选中的场景下的video的第一个
activeUrl:'', // 1.3场景才有的活动配置 activeUrl: '', // 1.3场景才有的活动配置
sharephone:'', //主要微信用户,服务商 sharephone: '', //主要微信用户,服务商
cardInfo: {} cardInfo: {},
hasPhoneNumber: false, // 是否有授权手机号码
}, },
// 计算属性 // 计算属性
computed: { computed: {
...@@ -39,14 +47,18 @@ Page({ ...@@ -39,14 +47,18 @@ Page({
return data.isShare && !data.showLeft return data.isShare && !data.showLeft
}, },
prodItemVideo(data) { prodItemVideo(data) {
let {senceData, actNum, activeNavIdx} = data let {
senceData,
actNum,
activeNavIdx
} = data
// if(actNum == 2){ // if(actNum == 2){
// return senceData[actNum]?.noVideoPicture[0] // return senceData[actNum]?.noVideoPicture[0]
// } // }
// return senceData[actNum]?.videoList[activeNavIdx] // return senceData[actNum]?.videoList[activeNavIdx]
}, },
// 授权昵称弹框显示 // 授权昵称弹框显示
authNcknameShow(data){ authNcknameShow(data) {
return data.isShare && !data.hasUserInfo return data.isShare && !data.hasUserInfo
} }
...@@ -56,21 +68,24 @@ Page({ ...@@ -56,21 +68,24 @@ Page({
onRoute(options) { onRoute(options) {
// console.log( options); // console.log( options);
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { actNum = 0, activeNavIdx = 0, phone, cardInfo } = options let {
actNum = 0, activeNavIdx = 0, phone, cardInfo
} = options
console.log(options) console.log(options)
this.setData({ this.setData({
actNum, //选中的场景下标 actNum, //选中的场景下标
activeNavIdx, //选中的产品 activeNavIdx, //选中的产品
sharephone: phone, //联系电话 (登陆的用户) sharephone: phone, //联系电话 (登陆的用户)
cardInfo cardInfo,
hasPhoneNumber:options.hasPhoneNumber
}) })
// console.log(this.data.senceData, 'senceData-----') // console.log(this.data.senceData, 'senceData-----')
const senceList = productData[this.data.actNum].filter(item => item.name != '全部') const senceList = productData[this.data.actNum].filter(item => item.name != '全部')
var proInfo = {} var proInfo = {}
for(let i = 0; i< senceList.length; i++) { for (let i = 0; i < senceList.length; i++) {
let proIdList = senceList[i]?.productList.map(k => k.id) let proIdList = senceList[i]?.productList.map(k => k.id)
if(proIdList.includes(activeNavIdx)) { if (proIdList.includes(activeNavIdx)) {
proInfo = senceList[i].productList.find(k => k.id == activeNavIdx) proInfo = senceList[i].productList.find(k => k.id == activeNavIdx)
break break
} }
...@@ -93,7 +108,7 @@ Page({ ...@@ -93,7 +108,7 @@ Page({
// console.log('title2',item.productName) // console.log('title2',item.productName)
setTimeout(() => { setTimeout(() => {
utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(item.productName)
},100) }, 100)
//分享人openId //分享人openId
let wx_user_info = wx.$storage.get('wx_user_info'), let wx_user_info = wx.$storage.get('wx_user_info'),
...@@ -106,7 +121,7 @@ Page({ ...@@ -106,7 +121,7 @@ Page({
productName: item?.productName, productName: item?.productName,
category: item?.category, category: item?.category,
productDesc: item?.productName, productDesc: item?.productName,
shareOpenId:shareOpenId shareOpenId: shareOpenId
} }
}, },
onPageScroll: (function () { onPageScroll: (function () {
...@@ -178,5 +193,14 @@ Page({ ...@@ -178,5 +193,14 @@ Page({
*/ */
onShareAppMessage() { onShareAppMessage() {
},
// 更新手机号码
updatePhoneNumber(e) {
console.log(e.detail)
this.setData({
hasPhoneNumber: e.detail ? true : false
})
} }
}) })
\ No newline at end of file \ No newline at end of file
{ {
"usingComponents": { "usingComponents": {
"pro-detail": "../../../components/proDetail/proDetail" "pro-detail": "../../../components/proDetail/proDetail",
"pro-phone-number": "../../../components/PhoneNumber/PhoneNumber"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,3 +5,24 @@ ...@@ -5,3 +5,24 @@
z-index: 0; z-index: 0;
width: 100%; width: 100%;
} }
.max_page_height {
height: 100vh;
overflow: hidden;
}
.pro_phone_number {
.isFullSucreen {
flex: 1;
display: flex !important;
align-items: center !important;
}
}
.test {
.isFullSucreen {
flex: 1;
display: flex;
align-items: center;
}
}
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/productDetail/productDetail.wxml--> <!--packagesList/pages/productDetail/productDetail.wxml-->
<pro-detail id="pro-detail" actNum="{{actNum}}" cardInfo="{{cardInfo}}" activeNavIdx="{{activeNavIdx}}"></pro-detail> <pro-detail id="pro-detail" custom-class="{{!hasPhoneNumber?'max_page_height':''}}" actNum="{{actNum}}" cardInfo="{{cardInfo}}" activeNavIdx="{{activeNavIdx}}"></pro-detail>
<pro-phone-number test-class="pro_phone_number" type="product" hasPhoneNumber="{{hasPhoneNumber}}" bind:updatePhoneNumber="updatePhoneNumber"></pro-phone-number>
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
const videoBaseUrl = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/' const videoBaseUrl = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
import { subscriptionSystemData } from './systemData'
/** /**
* 属性说明: * 属性说明:
* sceneImgs:场景详情下的图片 * sceneImgs:场景详情下的图片
...@@ -18,73 +18,61 @@ const videoBaseUrl = 'https://img02.glsx.com.cn/weapp/resource/saas/business-ass ...@@ -18,73 +18,61 @@ const videoBaseUrl = 'https://img02.glsx.com.cn/weapp/resource/saas/business-ass
* noVideoPicture: 场景下的产品无视频,显示的图片 * noVideoPicture: 场景下的产品无视频,显示的图片
*/ */
// 车损升级 // 车损升级
const sceneImgs0 = [ const sceneImgs0 = [`${IMG_URL}index/scene/scene00.png`, `${IMG_URL}index/scene/scene01.png`, `${IMG_URL}index/scene/scene02.png`, `${IMG_URL}index/scene/scene03.png`]
`${IMG_URL}index/scene/scene00.png`, const productImgs0 = [`${IMG_URL}index/productImgs/product00.webp`, `${IMG_URL}index/productImgs/product01.webp`, `${IMG_URL}index/productImgs/product02.webp`, `${IMG_URL}index/productImgs/product03.webp`]
`${IMG_URL}index/scene/scene01.png`,
`${IMG_URL}index/scene/scene02.png`,
`${IMG_URL}index/scene/scene03.png`,
]
const productImgs0 = [
`${IMG_URL}index/productImgs/product00.webp`,
`${IMG_URL}index/productImgs/product01.webp`,
`${IMG_URL}index/productImgs/product02.webp`,
`${IMG_URL}index/productImgs/product03.webp`,
]
const videoList0 = [ const videoList0 = [
{ {
videoUrl: `${videoBaseUrl}video/digital_card_30s.mp4`, videoUrl: `${videoBaseUrl}video/digital_card_30s.mp4`,
posterUrl: `${IMG_URL}index/poster/digital_card_30s_bitmap.png`, posterUrl: `${IMG_URL}index/poster/digital_card_30s_bitmap.png`,
name: '数字无忧卡服务30秒', name: '数字无忧卡服务30秒',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1004, view: 1004
}, },
{ {
videoUrl: `${videoBaseUrl}video/digital_card_money3.mp4`, videoUrl: `${videoBaseUrl}video/digital_card_money3.mp4`,
posterUrl: `${IMG_URL}index/poster/digital_card_money3_bitmap.png`, posterUrl: `${IMG_URL}index/poster/digital_card_money3_bitmap.png`,
name: '数字无忧卡3道钱', name: '数字无忧卡3道钱',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1563 view: 1563
}, },
{ {
videoUrl: `${videoBaseUrl}video/digital_card.mp4`, videoUrl: `${videoBaseUrl}video/digital_card.mp4`,
posterUrl: `${IMG_URL}index/poster/digital_card_bitmap.png`, posterUrl: `${IMG_URL}index/poster/digital_card_bitmap.png`,
name: '数字无忧卡服务', name: '数字无忧卡服务',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1320 view: 1320
}, },
{ {
videoUrl: `${videoBaseUrl}video/digital_card_reason6.mp4`, videoUrl: `${videoBaseUrl}video/digital_card_reason6.mp4`,
posterUrl: `${IMG_URL}index/poster/digital_card_reason6_bitmap.png`, posterUrl: `${IMG_URL}index/poster/digital_card_reason6_bitmap.png`,
name: '数字无忧卡6大理由', name: '数字无忧卡6大理由',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1485 view: 1485
} }
] ]
const posterList0 = [ const posterList0 = [
{ {
src:`${IMG_URL}index/poster/poster3-0.webp`, src: `${IMG_URL}index/poster/poster3-0.webp`,
name:'劲爆来袭' name: '劲爆来袭'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-1.webp`, src: `${IMG_URL}index/poster/poster3-1.webp`,
name:'疯狂让利' name: '疯狂让利'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-2.webp`, src: `${IMG_URL}index/poster/poster3-2.webp`,
name:'娱乐系统' name: '娱乐系统'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-3.webp`, src: `${IMG_URL}index/poster/poster3-3.webp`,
name:'AR实景导航' name: 'AR实景导航'
} }
] ]
const scenario_0 = [ const scenario_0 = [
{ {
name: '服务类', name: '服务类',
//场景详情图片 //场景详情图片
sceneImgs:sceneImgs0, sceneImgs: sceneImgs0,
// 产品详情图片 // 产品详情图片
productImgs: productImgs0, productImgs: productImgs0,
productList: [ productList: [
...@@ -97,12 +85,12 @@ const scenario_0 = [ ...@@ -97,12 +85,12 @@ const scenario_0 = [
type: 'service', type: 'service',
productType: 'benefitCard', productType: 'benefitCard',
path: 'equity', path: 'equity',
sale:100 ,//销量 sale: 100, //销量
varType: 0, varType: 0,
flow:10000, flow: 10000,
"productCode":"PC001", productCode: 'PC001',
"productName":"数字无忧权益卡", productName: '数字无忧权益卡',
"category":"服务类", category: '服务类',
prodImg: `${IMG_URL}index/prod2/prod0-0.png` prodImg: `${IMG_URL}index/prod2/prod0-0.png`
} }
], ],
...@@ -112,50 +100,40 @@ const scenario_0 = [ ...@@ -112,50 +100,40 @@ const scenario_0 = [
] ]
// 精品升级 // 精品升级
const sceneImgs1 = [ const sceneImgs1 = [`${IMG_URL}index/scene/scene10.png`, `${IMG_URL}index/scene/scene11.png`, `${IMG_URL}index/scene/scene12.png`, `${IMG_URL}index/scene/scene13.png`]
`${IMG_URL}index/scene/scene10.png`, const productImgs1 = [`${IMG_URL}index/productImgs/product10.webp`, `${IMG_URL}index/productImgs/product11.webp`, `${IMG_URL}index/productImgs/product12.webp`, `${IMG_URL}index/productImgs/product13.webp`]
`${IMG_URL}index/scene/scene11.png`,
`${IMG_URL}index/scene/scene12.png`,
`${IMG_URL}index/scene/scene13.png`,
]
const productImgs1 = [
`${IMG_URL}index/productImgs/product10.webp`,
`${IMG_URL}index/productImgs/product11.webp`,
`${IMG_URL}index/productImgs/product12.webp`,
`${IMG_URL}index/productImgs/product13.webp`,
]
const videoList1 = [ const videoList1 = [
{ {
videoUrl: `${videoBaseUrl}video/solar.mp4`, videoUrl: `${videoBaseUrl}video/solar.mp4`,
posterUrl: `${IMG_URL}index/poster/solar_bitmap.png`, posterUrl: `${IMG_URL}index/poster/solar_bitmap.png`,
name: '太阳膜转化售中案例-门店新增产值12w每月', name: '太阳膜转化售中案例-门店新增产值12w每月',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1178 view: 1178
} }
] ]
const posterList1 = [ const posterList1 = [
{ {
src:`${IMG_URL}index/poster/poster3-0.webp`, src: `${IMG_URL}index/poster/poster3-0.webp`,
name:'劲爆来袭' name: '劲爆来袭'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-1.webp`, src: `${IMG_URL}index/poster/poster3-1.webp`,
name:'疯狂让利' name: '疯狂让利'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-2.webp`, src: `${IMG_URL}index/poster/poster3-2.webp`,
name:'娱乐系统' name: '娱乐系统'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-3.webp`, src: `${IMG_URL}index/poster/poster3-3.webp`,
name:'AR实景导航' name: 'AR实景导航'
} }
] ]
const scenario_1 = [ const scenario_1 = [
{ {
name: '膜类', name: '膜类',
sceneImgs: sceneImgs1, sceneImgs: sceneImgs1,
productImgs:productImgs1, productImgs: productImgs1,
productList: [ productList: [
{ {
id: 0, id: 0,
...@@ -166,12 +144,12 @@ const scenario_1 = [ ...@@ -166,12 +144,12 @@ const scenario_1 = [
type: 'membrane', type: 'membrane',
productType: 'sunMembrane', productType: 'sunMembrane',
path: 'solarFilm', path: 'solarFilm',
sale:100, //销量 sale: 100, //销量
varType: 0, varType: 0,
flow:10000, flow: 10000,
"productCode":"PC002", productCode: 'PC002',
"productName":"汽车太阳膜", productName: '汽车太阳膜',
"category":"膜类", category: '膜类',
prodImg: `${IMG_URL}index/prod2/prod1-0.png` prodImg: `${IMG_URL}index/prod2/prod1-0.png`
} }
], ],
...@@ -181,36 +159,25 @@ const scenario_1 = [ ...@@ -181,36 +159,25 @@ const scenario_1 = [
] ]
// 客户线上化 // 客户线上化
const sceneImgs2 = [ const sceneImgs2 = [`${IMG_URL}index/scene/scene20.png`, `${IMG_URL}index/scene/scene21.png`, `${IMG_URL}index/scene/scene22.png`, `${IMG_URL}index/scene/scene23.png`]
`${IMG_URL}index/scene/scene20.png`, const productImgs2 = [`${IMG_URL}index/productImgs/product20.webp`, `${IMG_URL}index/productImgs/product21.webp`, `${IMG_URL}index/productImgs/product22.webp`, `${IMG_URL}index/productImgs/product23.webp`]
`${IMG_URL}index/scene/scene21.png`,
`${IMG_URL}index/scene/scene22.png`,
`${IMG_URL}index/scene/scene23.png`,
]
const productImgs2 = [
`${IMG_URL}index/productImgs/product20.webp`,
`${IMG_URL}index/productImgs/product21.webp`,
`${IMG_URL}index/productImgs/product22.webp`,
`${IMG_URL}index/productImgs/product23.webp`,
]
const posterList2 = [ const posterList2 = [
{ {
src:`${IMG_URL}index/poster/poster3-0.webp`, src: `${IMG_URL}index/poster/poster3-0.webp`,
name:'劲爆来袭' name: '劲爆来袭'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-1.webp`, src: `${IMG_URL}index/poster/poster3-1.webp`,
name:'疯狂让利' name: '疯狂让利'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-2.webp`, src: `${IMG_URL}index/poster/poster3-2.webp`,
name:'娱乐系统' name: '娱乐系统'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-3.webp`, src: `${IMG_URL}index/poster/poster3-3.webp`,
name:'AR实景导航' name: 'AR实景导航'
} }
] ]
const videoList2 = [] const videoList2 = []
const scenario_2 = [ const scenario_2 = [
...@@ -228,12 +195,12 @@ const scenario_2 = [ ...@@ -228,12 +195,12 @@ const scenario_2 = [
type: 'membrane', type: 'membrane',
productType: 'protectMembrane', productType: 'protectMembrane',
path: 'paintProtect', path: 'paintProtect',
sale:100, //销量 sale: 100, //销量
varType: 0, varType: 0,
flow:10000, flow: 10000,
"productCode":"PC003", productCode: 'PC003',
"productName":"漆面保护膜", productName: '漆面保护膜',
"category":"膜类", category: '膜类',
prodImg: `${IMG_URL}index/prod2/prod2-0.png` prodImg: `${IMG_URL}index/prod2/prod2-0.png`
}, },
{ {
...@@ -245,20 +212,20 @@ const scenario_2 = [ ...@@ -245,20 +212,20 @@ const scenario_2 = [
type: 'membrane', type: 'membrane',
productType: 'colorMembrane', productType: 'colorMembrane',
path: 'changingFilm', path: 'changingFilm',
sale:100, //销量 sale: 100, //销量
varType: 0, varType: 0,
flow:10000, flow: 10000,
"productCode":"PC004", productCode: 'PC004',
"productName":"改色膜", productName: '改色膜',
"category":"膜类", category: '膜类',
prodImg: `${IMG_URL}index/prod2/prod2-1.png` prodImg: `${IMG_URL}index/prod2/prod2-1.png`
} }
], ],
//无视频时显示的图片 //无视频时显示的图片
noVideoPicture: [ noVideoPicture: [
{ {
posterUrl:`${IMG_URL}index/poster/no-video.png`, posterUrl: `${IMG_URL}index/poster/no-video.png`,
name:'0-6 个月次新车-线上销售轻改精品' name: '0-6 个月次新车-线上销售轻改精品'
} }
], ],
videoList: videoList2, videoList: videoList2,
...@@ -267,78 +234,68 @@ const scenario_2 = [ ...@@ -267,78 +234,68 @@ const scenario_2 = [
] ]
// 众筹活动 // 众筹活动
const sceneImgs3 = [ const sceneImgs3 = [`${IMG_URL}index/scene/scene30.png`, `${IMG_URL}index/scene/scene31.png`, `${IMG_URL}index/scene/scene32.png`, `${IMG_URL}index/scene/scene33.png`]
`${IMG_URL}index/scene/scene30.png`, const productImgs3 = [`${IMG_URL}index/productImgs/product30.webp`, `${IMG_URL}index/productImgs/product31.webp`, `${IMG_URL}index/productImgs/product32.webp`, `${IMG_URL}index/productImgs/product33.webp`]
`${IMG_URL}index/scene/scene31.png`,
`${IMG_URL}index/scene/scene32.png`,
`${IMG_URL}index/scene/scene33.png`,
]
const productImgs3 = [
`${IMG_URL}index/productImgs/product30.webp`,
`${IMG_URL}index/productImgs/product31.webp`,
`${IMG_URL}index/productImgs/product32.webp`,
`${IMG_URL}index/productImgs/product33.webp`,
]
const videoList3 = [ const videoList3 = [
{ {
videoUrl: `${videoBaseUrl}video/car_beauty.mp4`, videoUrl: `${videoBaseUrl}video/car_beauty.mp4`,
posterUrl: `${IMG_URL}index/poster/car_beauty.png`, posterUrl: `${IMG_URL}index/poster/car_beauty.png`,
name: '数字化美容-新增产值20w+', name: '数字化美容-新增产值20w+',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:2561 view: 2561
}, },
{ {
videoUrl: `${videoBaseUrl}video/seat.mp4`, videoUrl: `${videoBaseUrl}video/seat.mp4`,
posterUrl: `${IMG_URL}index/poster/seat_bitmap.png`, posterUrl: `${IMG_URL}index/poster/seat_bitmap.png`,
name: '座椅通风系统-新增产值20w', name: '座椅通风系统-新增产值20w',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1365 view: 1365
}, },
{ {
videoUrl: `${videoBaseUrl}video/AR.mp4`, videoUrl: `${videoBaseUrl}video/AR.mp4`,
posterUrl: `${IMG_URL}index/poster/AR_bitmap.png`, posterUrl: `${IMG_URL}index/poster/AR_bitmap.png`,
name: '单品AR导航-新增产值20w+', name: '单品AR导航-新增产值20w+',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1172 view: 1172
}, },
{ {
videoUrl: `${videoBaseUrl}video/light.mp4`, videoUrl: `${videoBaseUrl}video/light.mp4`,
posterUrl: `${IMG_URL}index/poster/light_bitmap.png`, posterUrl: `${IMG_URL}index/poster/light_bitmap.png`,
name: '单品类氛围灯-新增产值27w', name: '单品类氛围灯-新增产值27w',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1006 view: 1006
}, },
{ {
videoUrl: `${videoBaseUrl}video/360_AR.mp4`, videoUrl: `${videoBaseUrl}video/360_AR.mp4`,
posterUrl: `${IMG_URL}index/poster/360_AR_bitmap.png`, posterUrl: `${IMG_URL}index/poster/360_AR_bitmap.png`,
name: '360全景导航-新增产值57w+', name: '360全景导航-新增产值57w+',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:1891 view: 1891
}, },
{ {
videoUrl: `${videoBaseUrl}video/fragrance.mp4`, videoUrl: `${videoBaseUrl}video/fragrance.mp4`,
posterUrl: `${IMG_URL}index/poster/fragrance.png`, posterUrl: `${IMG_URL}index/poster/fragrance.png`,
name: '智能香氛系统-新增产值57w+', name: '智能香氛系统-新增产值57w+',
manufacturer:'嘀加智慧', manufacturer: '嘀加智慧',
view:3101 view: 3101
} }
] ]
const posterList3 = [ const posterList3 = [
{ {
src:`${IMG_URL}index/poster/poster3-0.webp`, src: `${IMG_URL}index/poster/poster3-0.webp`,
name:'劲爆来袭' name: '劲爆来袭'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-1.webp`, src: `${IMG_URL}index/poster/poster3-1.webp`,
name:'疯狂让利' name: '疯狂让利'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-2.webp`, src: `${IMG_URL}index/poster/poster3-2.webp`,
name:'娱乐系统' name: '娱乐系统'
}, },
{ {
src:`${IMG_URL}index/poster/poster3-3.webp`, src: `${IMG_URL}index/poster/poster3-3.webp`,
name:'AR实景导航' name: 'AR实景导航'
} }
] ]
const scenario_3 = [ const scenario_3 = [
...@@ -354,12 +311,12 @@ const scenario_3 = [ ...@@ -354,12 +311,12 @@ const scenario_3 = [
type: 'beauty', type: 'beauty',
productType: 'digitBeauty', productType: 'digitBeauty',
path: 'carBeauty', path: 'carBeauty',
sale:100, //销量 sale: 100, //销量
varType: 0, varType: 0,
flow:10000, flow: 10000,
"productCode":"PC005", productCode: 'PC005',
"productName":"数字化美容", productName: '数字化美容',
"category":"美容类", category: '美容类',
prodImg: `${IMG_URL}index/prod2/prod3-4.png` prodImg: `${IMG_URL}index/prod2/prod3-4.png`
} }
], ],
...@@ -380,12 +337,12 @@ const scenario_3 = [ ...@@ -380,12 +337,12 @@ const scenario_3 = [
type: 'light', type: 'light',
productType: 'chair', productType: 'chair',
path: 'seatVentilate', path: 'seatVentilate',
sale:10000, //销量 sale: 10000, //销量
varType: 1, varType: 1,
flow:10000, flow: 10000,
"productCode":"PC006", productCode: 'PC006',
"productName":"座椅通风", productName: '座椅通风',
"category":"轻改类", category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-3.png` prodImg: `${IMG_URL}index/prod2/prod3-3.png`
}, },
{ {
...@@ -397,12 +354,12 @@ const scenario_3 = [ ...@@ -397,12 +354,12 @@ const scenario_3 = [
type: 'light', type: 'light',
productType: 'ar', productType: 'ar',
path: 'arNavigation', path: 'arNavigation',
sale:10000, //销量 sale: 10000, //销量
varType: 1, varType: 1,
flow:10000, flow: 10000,
"productCode":"PC007", productCode: 'PC007',
"productName":"AR导航", productName: 'AR导航',
"category":"轻改类", category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-0.png` prodImg: `${IMG_URL}index/prod2/prod3-0.png`
}, },
{ {
...@@ -414,12 +371,12 @@ const scenario_3 = [ ...@@ -414,12 +371,12 @@ const scenario_3 = [
type: 'light', type: 'light',
productType: 'lamp', productType: 'lamp',
path: 'ambientLighting', path: 'ambientLighting',
sale:10000, //销量 sale: 10000, //销量
varType: 1, varType: 1,
flow:10000, flow: 10000,
"productCode":"PC008", productCode: 'PC008',
"productName":"氛围灯", productName: '氛围灯',
"category":"轻改类", category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-2.png` prodImg: `${IMG_URL}index/prod2/prod3-2.png`
}, },
{ {
...@@ -431,12 +388,12 @@ const scenario_3 = [ ...@@ -431,12 +388,12 @@ const scenario_3 = [
type: 'light', type: 'light',
productType: 'navigation', productType: 'navigation',
path: 'navigationArround', path: 'navigationArround',
sale:10000, //销量 sale: 10000, //销量
varType: 1, varType: 1,
flow:10000, flow: 10000,
"productCode":"PC009", productCode: 'PC009',
"productName":"360全景导航", productName: '360全景导航',
"category":"轻改类", category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-1.png` prodImg: `${IMG_URL}index/prod2/prod3-1.png`
}, },
{ {
...@@ -448,12 +405,12 @@ const scenario_3 = [ ...@@ -448,12 +405,12 @@ const scenario_3 = [
type: 'light', type: 'light',
productType: 'navigation', productType: 'navigation',
path: 'navigationArround', path: 'navigationArround',
sale:10000, //销量 sale: 10000, //销量
varType: 1, varType: 1,
flow:10000, flow: 10000,
"productCode":"PC009", productCode: 'PC009',
"productName":"智能香氛系统", productName: '智能香氛系统',
"category":"轻改类", category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-5.png` prodImg: `${IMG_URL}index/prod2/prod3-5.png`
} }
], ],
...@@ -474,13 +431,13 @@ const senceData = [ ...@@ -474,13 +431,13 @@ const senceData = [
id: 1, id: 1,
tabname: '精品升级', tabname: '精品升级',
banner: `${IMG_URL}index/banner/banner1.png`, banner: `${IMG_URL}index/banner/banner1.png`,
sceneImgs:sceneImgs1 sceneImgs: sceneImgs1
}, },
{ {
id: 2, id: 2,
tabname: '客户线上化', tabname: '客户线上化',
banner: `${IMG_URL}index/banner/banner2.png`, banner: `${IMG_URL}index/banner/banner2.png`,
sceneImgs:sceneImgs2 sceneImgs: sceneImgs2
}, },
{ {
id: 3, id: 3,
...@@ -498,7 +455,8 @@ const productData = { ...@@ -498,7 +455,8 @@ const productData = {
0: scenario_0, 0: scenario_0,
1: scenario_1, 1: scenario_1,
2: scenario_2, 2: scenario_2,
3: scenario_3 3: scenario_3,
99: subscriptionSystemData
} }
module.exports = { module.exports = {
......
...@@ -63,6 +63,8 @@ Page({ ...@@ -63,6 +63,8 @@ Page({
activityList: [], activityList: [],
subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl), subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
subscriptionSystemData: Object.freeze(subscriptionSystemData) subscriptionSystemData: Object.freeze(subscriptionSystemData)
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
}, },
// 一级菜单 // 一级菜单
introduce(e) { introduce(e) {
...@@ -120,28 +122,35 @@ Page({ ...@@ -120,28 +122,35 @@ Page({
}, },
proClick(e) { proClick(e) {
console.log(e, 'proClick')
let { detail } = e let { detail } = e
//登录的用户手机号 //登录的用户手机号
console.log(detail)
// let userInfo = wx.$storage.get("userInfo") // let userInfo = wx.$storage.get("userInfo")
const { cardInfo } = this.data const { cardInfo } = this.data
let obj = { let obj = {
actNum: detail.scenIndex, //选中的场景 // || 99
actNum: detail.scenIndex, //选中的场景 没有就是订阅系统的
activeNavIdx: detail.id, //选中的产品, activeNavIdx: detail.id, //选中的产品,
cardInfo cardInfo,
hasPhoneNumber: this.data.hasPhoneNumber
} }
wx.$router.go('/packagesList/pages/productDetail/productDetail', obj) wx.$router.go('/packagesList/pages/productDetail/productDetail', obj)
}, },
// 跳转视频详情 // 跳转视频详情
videoClick(e) { videoClick(e) {
console.log(e, '000') console.log(e.detail)
const { const {
index, index,
info: { videoUrl }, info: { videoUrl },
scenIndex scenIndex,
list
} = e.detail } = e.detail
const videoList = productData[scenIndex][0].videoList // if(scenIndex && scenIndex != 0){
console.log(videoList) // const videoList = productData[0].
// }
// console.log(productData[0])
//const videoList = productData[scenIndex][0].videoList
const videoList = list
wx.$router.go('/packagesList/pages/videoDetal/videoDetal', { wx.$router.go('/packagesList/pages/videoDetal/videoDetal', {
index, index,
videoList, videoList,
......
...@@ -26,8 +26,7 @@ ...@@ -26,8 +26,7 @@
</scenario> --> </scenario> -->
</block> </block>
<block wx:if="{{curTabIndex == 1}}"> <block wx:if="{{curTabIndex == 1}}">
<!-- menuClick="sysMenuClick" --> <gl-subscription list="{{subscriptionSystemData}}" menuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<gl-subscription list="{{subscriptionSystemData}}" bannerUrl="{{subscriptionBannerUrl}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
</block> </block>
<block wx-if="{{curTabIndex == 2}}"> <block wx-if="{{curTabIndex == 2}}">
<company-introduce autoplay="{{autoplay}}" /> <company-introduce autoplay="{{autoplay}}" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!