Commit 9e487268 by chenwq

看产品需求-组件;详情组件

1 parent 26f7175f
...@@ -32,7 +32,7 @@ page { ...@@ -32,7 +32,7 @@ page {
image { image {
width: 100%; width: 100%;
height: 100%; /* height: 100%; */
vertical-align: top; vertical-align: top;
} }
......
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
padding: 4rpx; */ padding: 4rpx; */
} }
.open-icon image {
height: 100%;
}
/* 已开通 - end */ /* 已开通 - end */
/* 选中 - start */ /* 选中 - start */
......
...@@ -60,10 +60,10 @@ Component({ ...@@ -60,10 +60,10 @@ Component({
methods: { methods: {
getInfo() { getInfo() {
let { activeNavIdx, actNum } = this.data let { activeNavIdx, actNum } = this.data
//console.log(actNum) // console.log(actNum, 'actNum---')
//console.log(activeNavIdx) // console.log(activeNavIdx, 'activeNavIdx---')
const spcList = [99] // 订阅模块需要特殊处理 const spcList = [99] // 订阅模块需要特殊处理
const senceList = productData[actNum].filter(item => item.name != '全部') const senceList = this.data.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)
...@@ -106,6 +106,12 @@ Component({ ...@@ -106,6 +106,12 @@ Component({
// console.log('imgTopArr',this.data.imgTopArr) // console.log('imgTopArr',this.data.imgTopArr)
// },500) // },500)
}, },
// 1.3查看活动详情按钮
checkActive() {
let { activeUrl } = this.data
wx.$router.jumpH5(activeUrl);
},
onClickTab(event) { onClickTab(event) {
// console.log('event: ', event); // console.log('event: ', event);
let { index } = event.detail let { index } = event.detail
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
"integrity": "sha512-R2FyCk0mK2xvUX2dMgVZjVG512RKBj7ELMDxjRJjhQWtw4495WBgbl5Yb4v2A6d4vWJe6z9toKgDJTciN0Bo9A==" "integrity": "sha512-R2FyCk0mK2xvUX2dMgVZjVG512RKBj7ELMDxjRJjhQWtw4495WBgbl5Yb4v2A6d4vWJe6z9toKgDJTciN0Bo9A=="
}, },
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.0.37", "version": "1.0.45",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.37.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.45.tgz",
"integrity": "sha512-Imu/2+0R9Vru6o73rwzTPqB+hNh5dXeWHj78SV15C0QcK6RhLry5tcrjvv1+B2M16/ajeljEBSFY5WXppD9gCg==" "integrity": "sha512-nkzjh0iRzz7HxwG+mHsFZlIjqwg7UbcWbtmShHYb9QVx7DHFYEqWKTWcmvC524GDujjGK7Fpelu4g+KH5ESCWA=="
} }
} }
} }
...@@ -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.0.38" "glsx-applet-component": "^1.0.45"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
......
// pages/viewProd/index.js // pages/viewProd/index.js
import { behavior as computedBehavior } from '~/utils/lib/miniprogram-computed' import { behavior as computedBehavior } from '~/utils/lib/miniprogram-computed'
import { IMG_URL } from "~/utils/constantData.js"; import { IMG_URL } from "~/utils/constantData.js";
import { senceData, productData } from '~/pages/tab/index/constant/senceData' import { scenceList } from '~/pages/tab/index/constant/data'
import USERAPI from '~/api/usersApi/index' import USERAPI from '~/api/usersApi/index'
import utils from '~/utils/util.js' import utils from '~/utils/util.js'
import {getActiveApi} from "~/api/viewprod" import {getActiveApi} from "~/api/viewprod"
...@@ -14,8 +14,6 @@ Page({ ...@@ -14,8 +14,6 @@ Page({
behaviors: [computedBehavior], behaviors: [computedBehavior],
data: { data: {
IMG_URL, IMG_URL,
senceData,
productData,
proInfo: {}, proInfo: {},
isShare:false, //是否是分享出去的 isShare:false, //是否是分享出去的
actNum: 0, actNum: 0,
...@@ -66,8 +64,11 @@ Page({ ...@@ -66,8 +64,11 @@ Page({
wx.hideHomeButton() wx.hideHomeButton()
} }
let sceneObj = scenceList.find(item => item.sceneid == actNum)
let proInfo = sceneObj?.productList[activeNavIdx]
this.setData({ this.setData({
actNum, //选中的场景下标 actNum, //选中的场景下标/sceneid
activeNavIdx, //选中的产品 activeNavIdx, //选中的产品
isShare, isShare,
sharephone sharephone
...@@ -76,38 +77,23 @@ Page({ ...@@ -76,38 +77,23 @@ Page({
let wx_user_info = wx.$storage.get('wx_user_info'), let wx_user_info = wx.$storage.get('wx_user_info'),
shareOpenId = wx_user_info.openId || '' shareOpenId = wx_user_info.openId || ''
//分享数据
const senceList = this.data.productData[this.data.actNum].filter(item => item.name != '全部')
for (let i = 0; i < senceList.length; i++) {
let item = senceList[i]
let proIdList = item?.productList.map(k => k.id)
if (proIdList.includes(+activeNavIdx)) {
let proInfo = item.productList.find(k => k.id == activeNavIdx)
this.setData({
proInfo,
sceneCode: item.sceneCode || ''
})
break
}
}
// let senceItem = senceData[actNum]
// let item = senceData[actNum]?.productList[activeNavIdx]
let item = this.data.proInfo || {}
setTimeout(() => { setTimeout(() => {
utils.setNavigationBarTitle(item?.productName) utils.setNavigationBarTitle(proInfo?.productName)
},100) },100)
this.shareQuery = `sceneCode=${this.data.sceneCode}&productCode=${item?.productCode}&isShare=${true}&productDesc=${item?.productName}&category=${item?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&sharephone=${sharephone}` this.shareQuery = `sceneCode=${sceneObj.sceneCode}&productCode=${proInfo?.productCode}&isShare=${true}&productDesc=${proInfo?.productName}&category=${proInfo?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&sharephone=${sharephone}`
console.log(this.shareQuery, 'onload----')
this.shareTrackData = { this.shareTrackData = {
sceneCode: this.data.sceneCode, sceneCode: sceneObj.sceneCode,
productCode: item?.productCode, productCode: proInfo?.productCode,
productName: item?.productName, productName: proInfo?.productName,
category: item?.category, category: proInfo?.category,
productDesc: item?.productName, productDesc: proInfo?.productName,
shareOpenId:shareOpenId shareOpenId: shareOpenId
// actNum, // actNum,
// activeNavIdx, // activeNavIdx,
} }
console.log(this.shareTrackData, 'onload----shareTrackData')
}, },
//接受跳转的路由参数(小程序页面跳转) //接受跳转的路由参数(小程序页面跳转)
...@@ -115,36 +101,25 @@ Page({ ...@@ -115,36 +101,25 @@ Page({
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { actNum = 0, activeNavIdx = 0,phone=123 } = options; let { actNum = 0, activeNavIdx = 0,phone=123 } = options;
let sceneObj = scenceList.find(item => item.sceneid == actNum)
let proInfo = sceneObj?.productList[activeNavIdx]
this.setData({ this.setData({
actNum, //选中的场景下标 actNum, //选中的场景下标
activeNavIdx, //选中的产品 activeNavIdx, //选中的产品
sharephone:phone //联系电话 (登陆的用户) sharephone:phone //联系电话 (登陆的用户)
}); });
const senceList = this.data.productData[this.data.actNum].filter(item => item.name != '全部')
for (let i = 0; i < senceList.length; i++) {
let item = senceList[i]
let proIdList = senceList[i]?.productList.map(k => k.id)
if (proIdList.includes(+activeNavIdx)) {
let proInfo = item.productList.find(k => k.id == activeNavIdx)
this.setData({
proInfo,
sceneCode: item.sceneCode || ''
})
break
}
}
// 设置转发标题 // 设置转发标题
let userInfoObj = wx.$storage.get("userInfo"); let userInfoObj = wx.$storage.get("userInfo");
// #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称 // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
let name = userInfoObj.merchantName; let name = userInfoObj.merchantName;
this.shareTitle = `${name}给你分享一个活动${this.data.proInfo?.productName},戳我参与~`; this.shareTitle = `${name}给你分享一个活动${proInfo?.productName},戳我参与~`;
//分享数据 //分享数据
let item = this.data.proInfo || {} // let item = this.data.proInfo || {}
setTimeout(() => { setTimeout(() => {
utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(proInfo?.productName)
},100) },100)
//分享人openId //分享人openId
...@@ -152,18 +127,20 @@ Page({ ...@@ -152,18 +127,20 @@ Page({
shareOpenId = wx_user_info.openId || '' shareOpenId = wx_user_info.openId || ''
// &shareOpenId=${shareOpenId} // &shareOpenId=${shareOpenId}
this.shareQuery = `sceneCode=${this.data.sceneCode}&productCode=${item?.productCode}&isShare=${true}&productDesc=${item?.productName}&category=${item?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&sharephone=${phone}` this.shareQuery = `sceneCode=${sceneObj?.sceneCode}&productCode=${proInfo?.productCode}&isShare=${true}&productDesc=${proInfo?.productName}&category=${proInfo?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&sharephone=${phone}`
console.log(this.shareQuery, 'onrouter----')
this.shareTrackData = { this.shareTrackData = {
sceneCode: this.data.sceneCode, sceneCode: sceneObj?.sceneCode,
productCode: item?.productCode, productCode: proInfo?.productCode,
productName: item?.productName, productName: proInfo?.productName,
category: item?.category, category: proInfo?.category,
productDesc: item?.productName, productDesc: proInfo?.productName,
shareOpenId:shareOpenId shareOpenId:shareOpenId
// actNum, // actNum,
// activeNavIdx, // activeNavIdx,
// apiData, // apiData,
} }
console.log(this.shareTrackData, 'onrouter----shareTrackData')
}, },
//获取配置url //获取配置url
......
// 场景详情 // 场景详情
import { behavior as computedBehavior } from "~/utils/lib/miniprogram-computed"; import { behavior as computedBehavior } from "~/utils/lib/miniprogram-computed";
import { IMG_URL } from "~/utils/constantData.js"; import { IMG_URL } from "~/utils/constantData.js";
import { senceData, productData } from '~/pages/tab/index/constant/senceData' // import { senceData, productData } from '~/pages/tab/index/constant/senceData'
import { scenceList } from '~/pages/tab/index/constant/data'
import USERAPI from "~/api/usersApi/index"; import USERAPI from "~/api/usersApi/index";
import utils from "~/utils/util.js"; import utils from "~/utils/util.js";
import { getActiveApi } from "~/api/viewprod"; import { getActiveApi } from "~/api/viewprod";
...@@ -14,8 +15,8 @@ Page({ ...@@ -14,8 +15,8 @@ Page({
behaviors: [computedBehavior], behaviors: [computedBehavior],
data: { data: {
IMG_URL, IMG_URL,
senceData, // senceData,
productData, // productData,
proInfo: {}, proInfo: {},
isShare: false, //是否是分享出去的 isShare: false, //是否是分享出去的
actNum: 0, actNum: 0,
...@@ -63,53 +64,55 @@ Page({ ...@@ -63,53 +64,55 @@ Page({
wx.hideHomeButton(); wx.hideHomeButton();
} }
let sceneObj = scenceList.find(item => item.sceneid == actNum)
let proInfo = sceneObj?.productList[activeNavIdx]
console.log(sceneObj, 'sceneObj---')
console.log(proInfo, 'proInfo---')
this.setData({ this.setData({
actNum, actNum, //选中的场景下标/sceneid
activeNavIdx, activeNavIdx, //选中的产品
isShare, isShare,
phone, phone //联系电话
}); });
//分享数据 //分享数据
const senceList = this.data.productData[this.data.actNum].filter(item => item.name != '全部') // const senceList = this.data.productData[this.data.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 = senceList[i]?.productList.map(k => k.id) // let proIdList = senceList[i]?.productList.map(k => k.id)
if (proIdList.includes(activeNavIdx)) { // if (proIdList.includes(activeNavIdx)) {
let proInfo = item.productList.find(k => k.id == activeNavIdx) // let proInfo = item.productList.find(k => k.id == activeNavIdx)
this.setData({ // this.setData({
proInfo, // proInfo,
sceneCode: item.sceneCode || '' // sceneCode: item.sceneCode || ''
}) // })
break // break
} // }
} // }
// 分享描述 // 分享描述
this.shareTitle = `给你分享一个${senceData[actNum]?.tabname},戳我参与~`; this.shareTitle = `给你分享一个${sceneObj?.name},戳我参与~`;
//分享数据 //分享数据
let senceItem = senceData[actNum]; // let item = sceneObj?.productList[activeNavIdx];
let item = senceData[actNum]?.productList[activeNavIdx]; // console.log("title", item.productName);
console.log("title", item.productName);
setTimeout(() => { setTimeout(() => {
// wx.setNavigationBarTitle({ utils.setNavigationBarTitle(sceneObj.name);
// title: item.productName,
// });
utils.setNavigationBarTitle(senceData[actNum].tabname);
}, 100); }, 100);
this.shareQuery = `sceneCode=${senceItem?.sceneCode}&productCode=${ this.shareQuery = `sceneCode=${sceneObj?.sceneCode}&productCode=${
item?.productCode proInfo?.productCode
}&isShare=${true}&productDesc=${item?.productName}&category=${ }&isShare=${true}&productDesc=${proInfo?.productName}&category=${
item?.category proInfo?.category
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&phone=${phone}`; }&actNum=${actNum}&activeNavIdx=${activeNavIdx}&phone=${phone}`;
this.shareTrackData = { this.shareTrackData = {
sceneCode: senceItem?.sceneCode, sceneCode: sceneObj?.sceneCode,
productCode: item?.productCode, productCode: proInfo?.productCode,
productName: item?.productName, productName: proInfo?.productName,
category: item?.category, category: proInfo?.category,
productDesc: item?.productName, productDesc: proInfo?.productName,
// actNum, // actNum,
// activeNavIdx, // activeNavIdx,
}; };
...@@ -119,43 +122,61 @@ Page({ ...@@ -119,43 +122,61 @@ Page({
if (!options || utils.isEmptyObj(options)) return; if (!options || utils.isEmptyObj(options)) return;
let { actNum = 0, activeNavIdx = 0, phone = 123 } = options; let { actNum = 0, activeNavIdx = 0, phone = 123 } = options;
let sceneObj = scenceList.find(item => item.sceneid == actNum)
let proInfo = sceneObj?.productList[activeNavIdx]
console.log(sceneObj, 'sceneObj---')
console.log(proInfo, 'proInfo---')
this.setData({ this.setData({
actNum, //选中的场景下标 actNum, //选中的场景下标/sceneid
activeNavIdx, //选中的产品 activeNavIdx, //选中的产品
phone, //联系电话 phone, //联系电话
}); });
// const senceList = this.data.productData[this.data.actNum].filter(item => item.name != '全部')
// for (let i = 0; i < senceList.length; i++) {
// let item = senceList[i]
// console.log(item)
// let proIdList = senceList[i]?.productList.map(k => k.id)
// if (proIdList.includes(+activeNavIdx)) {
// let proInfo = item.productList.find(k => k.id == activeNavIdx)
// this.setData({
// proInfo,
// sceneCode: item.sceneCode || ''
// })
// break
// }
// }
// 设置转发标题 // 设置转发标题
let userInfoObj = wx.$storage.get("userInfo"); let userInfoObj = wx.$storage.get("userInfo");
// #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称 // #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
let name = userInfoObj.merchantName; let name = userInfoObj.merchantName;
this.shareTitle = `${name}给你分享一个${senceData[actNum]?.tabname},戳我参与~`; this.shareTitle = `${name}给你分享一个${sceneObj?.name},戳我参与~`;
//分享数据 //分享数据
let item = senceData[actNum]?.productList[activeNavIdx];
console.log("title2", item.productName);
setTimeout(() => { setTimeout(() => {
// wx.setNavigationBarTitle({ utils.setNavigationBarTitle(sceneObj?.name);
// title: item.productName,
// });
utils.setNavigationBarTitle(senceData[actNum].tabname);
}, 100); }, 100);
this.shareQuery = `sceneCode=${senceData[actNum].sceneCode}&productCode=${ this.shareQuery = `sceneCode=${sceneObj.sceneCode}&productCode=${
item?.productCode proInfo?.productCode
}&isShare=${true}&productDesc=${item?.productName}&category=${ }&isShare=${true}&productDesc=${proInfo?.productName}&category=${
item?.category proInfo?.category
}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&phone=${phone}`; }&actNum=${actNum}&activeNavIdx=${activeNavIdx}&phone=${phone}`;
this.shareTrackData = { this.shareTrackData = {
sceneCode: senceData[actNum]?.sceneCode, sceneCode: sceneObj?.sceneCode,
productCode: item?.productCode, productCode: proInfo?.productCode,
productName: item?.productName, productName: proInfo?.productName,
category: item?.category, category: proInfo?.category,
productDesc: item?.productName, productDesc: proInfo?.productName,
// actNum, // actNum,
// activeNavIdx, // activeNavIdx,
// apiData, // apiData,
}; };
console.log(this.shareQuery, 'shareQuery')
console.log(this.shareTrackData, 'this.shareTrackData-----------')
}, },
onClickTab(event) { onClickTab(event) {
// console.log('event: ', event);s // console.log('event: ', event);s
...@@ -181,30 +202,11 @@ Page({ ...@@ -181,30 +202,11 @@ Page({
onPageScroll: (function () { onPageScroll: (function () {
let timer = null; let timer = null;
return function (e) { return function (e) {
// console.log("在滚动");
// 监听页面的滚动开始和结束 // 监听页面的滚动开始和结束
clearTimeout(timer); clearTimeout(timer);
timer = setTimeout(() => { timer = setTimeout(() => {
let { imgTopArr } = this.data; let proDetail = this.selectComponent("#pro-detail")
// console.log("滚动结束",imgTopArr,e.scrollTop); proDetail.pageSroll(e)
// wx.$eventbus.emit('evt_page_scroll', { scrollTop: e.scrollTop })
wx.nextTick(() => {
let idx;
if (imgTopArr[0] > e.scrollTop) {
idx = 0;
} else if (
imgTopArr[imgTopArr.length - 1] > e.scrollTop &&
imgTopArr[0] < e.scrollTop
) {
idx = imgTopArr.findIndex((item) => item > e.scrollTop) - 1;
} else {
idx = imgTopArr.length - 1;
}
this.setData({
tabAct: idx,
scrollTop: e.scrollTop,
});
});
}, 100); }, 100);
}; };
})(), })(),
...@@ -242,10 +244,10 @@ Page({ ...@@ -242,10 +244,10 @@ Page({
// // console.log('imgTopArr',this.data.imgTopArr) // // console.log('imgTopArr',this.data.imgTopArr)
// // },500) // // },500)
// }, // },
phoneCall(e) { // phoneCall(e) {
let { phone } = e.currentTarget.dataset; // let { phone } = e.currentTarget.dataset;
wx.$api.phoneCall(phone); // wx.$api.phoneCall(phone);
}, // },
async init() { async init() {
try { try {
const { data, code, message } = await USERAPI.wxCodeLogin(); const { data, code, message } = await USERAPI.wxCodeLogin();
......
{ {
"usingComponents": { "usingComponents": {
"pro-detail": "../../../components/proDetail/proDetail" "pro-detail": "../../../components/proDetail/proDetail",
"apply-button": "../../../pages/viewVideo/components/apply-button/index"
} }
} }
\ No newline at end of file \ No newline at end of file
<!--packagesList/pages/scenarioDetail/scenarioDetail.wxml--> <!--packagesList/pages/scenarioDetail/scenarioDetail.wxml-->
<pro-detail id="pro-detail" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}"></pro-detail> <pro-detail id="pro-detail" showLeftFlag="{{showLeftFlag}}" sharephone="{{phone}}" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}" activeUrl="{{activeUrl}}" bind:getUserInfo="getUserInfo"></pro-detail>
<!-- 申请按钮 不是分享出去的显示按钮 -->
<apply-button wx:if="{{!isShare}}" downShow="{{false}}"></apply-button>
<!-- 授权昵称 -->
<view wx:if="{{authNcknameShow}}" class="user-profile" bindtap="getUserProfile"></view>
\ No newline at end of file \ No newline at end of file
...@@ -331,6 +331,7 @@ const scenario_3 = [ ...@@ -331,6 +331,7 @@ const scenario_3 = [
}, },
{ {
name: '轻改类', name: '轻改类',
"sceneCode":"SC004",
productList: [ productList: [
{ {
id: 1, id: 1,
...@@ -424,6 +425,39 @@ const scenario_3 = [ ...@@ -424,6 +425,39 @@ const scenario_3 = [
posterList: posterList3 posterList: posterList3
} }
] ]
// 膨胀金
const sceneImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const productImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const videoList4 = [
{
videoUrl: `${videoBaseUrl}video/expansive.mp4`,
posterUrl: `${IMG_URL}index/poster/expansive_activity.png`,
name: '数字化营销增值服务-膨胀金活动',
manufacturer: '嘀加智慧',
view: 3298
}
]
const scenario_4 = [
{
name: '服务类',
"sceneCode":"SC005",
productList: [
{
id: 0,
currentIndex: 0,
proName: '膨胀金',
prodImg: `${IMG_URL}index/prod2/prod4-0.png`,
tabList: ['项目介绍', '活动方案', '销售场景', '合作案例', '合作说明', 'FAQ'],
sceneImgs: sceneImgs4
}
],
productImgs: productImgs4,
videoList: videoList4,
sceneImgs: sceneImgs4
}
]
const senceData = [ const senceData = [
{ {
id: 0, id: 0,
...@@ -452,7 +486,8 @@ const senceData = [ ...@@ -452,7 +486,8 @@ const senceData = [
{ {
id: 4, id: 4,
tabname: '膨胀金活动', tabname: '膨胀金活动',
banner: `${IMG_URL}index/banner/banner4.png` banner: `${IMG_URL}index/banner/banner6.png`,
sceneImgs: sceneImgs4
} }
] ]
const productData = { const productData = {
...@@ -460,10 +495,20 @@ const productData = { ...@@ -460,10 +495,20 @@ const productData = {
1: scenario_1, 1: scenario_1,
2: scenario_2, 2: scenario_2,
3: scenario_3, 3: scenario_3,
4: scenario_4,
99: subscriptionSystemData
}
const productData1 = {
0: scenario_0,
1: scenario_1,
2: scenario_2,
3: scenario_3,
4: scenario_4,
99: subscriptionSystemData 99: subscriptionSystemData
} }
module.exports = { module.exports = {
senceData, senceData,
productData productData,
productData1
} }
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 subscriptionIMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/subscription/' const subscriptionIMG_URL = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/subscription/'
const IMG_URL2 = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/' const IMG_URL2 = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const subscriptionBannerUrl = IMG_URL2 + 'banner/banner4.webp' const subscriptionBannerUrl = IMG_URL2 + 'banner/banner4.webp'
...@@ -32,6 +33,19 @@ const videoList1 = [ ...@@ -32,6 +33,19 @@ const videoList1 = [
view: 1320 view: 1320
} }
] ]
// 膨胀金
const sceneImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const productImgs4 = [`${IMG_URL}index/productImgs/product70.webp`, `${IMG_URL}index/productImgs/product71.webp`, `${IMG_URL}index/productImgs/product72.webp`, `${IMG_URL}index/productImgs/product73.webp`, `${IMG_URL}index/productImgs/product74.webp`, `${IMG_URL}index/productImgs/product75.webp`]
const videoList4 = [
{
videoUrl: `${videoBaseUrl}video/expansive.mp4`,
posterUrl: `${IMG_URL}index/poster/expansive_activity.png`,
name: '数字化营销增值服务-膨胀金活动',
manufacturer: '嘀加智慧',
view: 3298
}
]
const subscriptionSystemData = [ const subscriptionSystemData = [
{ {
name: '客户沉淀', name: '客户沉淀',
...@@ -39,7 +53,7 @@ const subscriptionSystemData = [ ...@@ -39,7 +53,7 @@ const subscriptionSystemData = [
// sceneImgs: sceneImgs5, // sceneImgs: sceneImgs5,
// 产品详情图片 // 产品详情图片
productImgs: productImgs0, productImgs: productImgs0,
"sceneCode":"SC005", "sceneCode":"SC008",
productList: [ productList: [
{ {
id: 0, id: 0,
...@@ -157,10 +171,41 @@ const subscriptionSystemData = [ ...@@ -157,10 +171,41 @@ const subscriptionSystemData = [
// posterList: posterList0 // posterList: posterList0
}, },
{ {
name: '膨胀金活动',
"sceneCode":"SC005",
//场景详情图片
sceneImgs: sceneImgs4,
// 产品详情图片
productImgs: productImgs4,
productList: [
{
id: 3,
currentIndex: 0,
proName: '膨胀金',
price: '100',
profit: '180000',
type: 'service',
productType: 'protectMembrane',
path: 'paintProtect',
sale:100, //销量
varType: 0,
flow:10000,
productCode:'PC010',
productName:'膨胀金',
category:'服务类',
prodImg: `${IMG_URL}index/prod2/prod4-0.png`,
tabList: ['项目介绍', '活动方案', '销售场景', '合作案例', '合作说明', 'FAQ'],
sceneImgs: sceneImgs4
}
],
videoList: videoList4
// posterList: posterList0
},
{
name: '数字化转型案例', name: '数字化转型案例',
"sceneCode":"SC007", "sceneCode":"SC007",
productList: [], productList: [],
videoList: videoList0.concat(videoList1) videoList: videoList0.concat(videoList1).concat(videoList4)
} }
] ]
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
"vas-toast": "./components/likeToast/likeToast", "vas-toast": "./components/likeToast/likeToast",
"indexProduct": "./components/indexProduct/indexProduct", "indexProduct": "./components/indexProduct/indexProduct",
"indexClue": "./components/indexClue/indexClue", "indexClue": "./components/indexClue/indexClue",
"gl-subscription": "glsx-applet-component/subscription/index" "gl-subscription": "glsx-applet-component/subscription/index",
"gl-scenario": "glsx-applet-component/scenario/index"
}, },
"navigationStyle": "custom", "navigationStyle": "custom",
"onReachBottomDistance": 50 "onReachBottomDistance": 50
......
...@@ -22,14 +22,17 @@ ...@@ -22,14 +22,17 @@
</view> </view>
<!-- 托客户内容 --> <!-- 托客户内容 -->
<indexProduct <!-- <indexProduct
wx:if="{{tabIndx == 0 }}" wx:if="{{tabIndx == 0 }}"
bindselectCar="selectCar" bindselectCar="selectCar"
senceData="{{senceData}}" senceData="{{senceData}}"
actNum="{{actNum}}" actNum="{{actNum}}"
img_version="{{img_version}}" img_version="{{img_version}}"
headerHeight="{{headerHeight}}" headerHeight="{{headerHeight}}"
bindrefresherrefresh="refresherrefresh" /> bindrefresherrefresh="refresherrefresh" /> -->
<block wx:if="{{tabIndx == 0}}">
<gl-scenario currentScenIndex="{{1}}" list="{{scenceList}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick"></gl-scenario>
</block>
<!-- 看线索内容 --> <!-- 看线索内容 -->
<!-- <indexClue <!-- <indexClue
id="indexclue" id="indexclue"
...@@ -39,7 +42,7 @@ ...@@ -39,7 +42,7 @@
bindshowToggleToast="showToggleToast" /> --> bindshowToggleToast="showToggleToast" /> -->
<!-- <view wx:if="{{tabIndx == 1}}">系统订阅</view> --> <!-- <view wx:if="{{tabIndx == 1}}">系统订阅</view> -->
<block wx:if="{{tabIndx == 1}}"> <block wx:if="{{tabIndx == 1}}">
<gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" data-name="系统订阅"/> <gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" bind:videoClick="videoClick" bindcurrentScen="getCurrentScen" data-name="系统订阅"/>
</block> </block>
</view> </view>
<!-- 收藏、取消提示框 --> <!-- 收藏、取消提示框 -->
...@@ -62,7 +65,7 @@ ...@@ -62,7 +65,7 @@
</view> </view>
</view> </view>
<!-- 预估产值弹框 --> <!-- 预估产值弹框 -->
<view class="dialog-wrapper" bindtap="clickDialog" hidden="{{!visible}}"> <!-- <view class="dialog-wrapper" bindtap="clickDialog" hidden="{{!visible}}">
<view class="dialog-box"> <view class="dialog-box">
<form bindsubmit="submit"> <form bindsubmit="submit">
<view class="dialog-header"> <view class="dialog-header">
...@@ -83,7 +86,6 @@ ...@@ -83,7 +86,6 @@
cursor-spacing="10" cursor-spacing="10"
value="{{formData.sales}}" value="{{formData.sales}}"
type="number" /> type="number" />
<!-- <view class="form-unit">台</view> -->
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="form-label">3年内售后存量用户</view> <view class="form-label">3年内售后存量用户</view>
...@@ -95,14 +97,13 @@ ...@@ -95,14 +97,13 @@
type="number" type="number"
cursor-spacing="10" cursor-spacing="10"
value="{{formData.flow}}" /> value="{{formData.flow}}" />
<!-- <view class="form-unit">人</view> -->
</view> </view>
<button class="dialog-btn" form-type="submit">提交测算</button> <button class="dialog-btn" form-type="submit">提交测算</button>
</view> </view>
</view> </view>
</form> </form>
</view> </view>
</view> </view> -->
<!-- --> <!-- -->
<crowdfund-poster wx:if="{{!guideShow}}" item="{{posterItem}}" /> <crowdfund-poster wx:if="{{!guideShow}}" item="{{posterItem}}" />
<!-- 全屏视频组件 --> <!-- 全屏视频组件 -->
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
text-align: center; text-align: center;
width: 100%; width: 100%;
} }
.scene-item { .scene-item {
box-sizing: border-box; box-sizing: border-box;
height: 248rpx; height: 248rpx;
...@@ -52,6 +51,10 @@ ...@@ -52,6 +51,10 @@
height: 78rpx; height: 78rpx;
} }
.open-icon image {
height: 100%;
}
/* 已开通 - end */ /* 已开通 - end */
/* 选中 - start */ /* 选中 - start */
...@@ -88,7 +91,6 @@ ...@@ -88,7 +91,6 @@
.scene-img { .scene-img {
width: 92rpx; width: 92rpx;
height: 64rpx; height: 64rpx;
} }
/* .notOpened { /* .notOpened {
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
.bg-image { .bg-image {
// width: 100%; // width: 100%;
width: 440rpx; width: 440rpx;
// height: 100%; height: 100%;
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!