Commit f77de2ae by 前端

二月份版本需求

1 parent c45f00d8
...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"]; ...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布 3预发布
4生产 4生产
*/ */
const index = 1; const index = 2;
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
// packagesList/pages/productDetail/components/proDetail/proDetail.js // packagesList/pages/productDetail/components/proDetail/proDetail.js
import { senceData, productData1 } from '~/pages/tab/index/constant/senceData' import { senceData, productData1 } from '~/pages/tab/index/constant/senceData'
const norTabList = ['项目亮点', '合作案例', '合作方式', '适配产品'] const norTabList = ['海报案例', '测算营销', '产品介绍', '项目亮点']
import { componentsMixin } from "../../mixins/index"; import { componentsMixin } from "../../mixins/index";
Component({ Component({
externalClasses: ['custom-class'], externalClasses: ['custom-class'],
...@@ -15,6 +15,9 @@ Component({ ...@@ -15,6 +15,9 @@ Component({
value: -1, value: -1,
observer(n) { observer(n) {
this.getInfo() this.getInfo()
if (n == 3) {
this.setVideoCtx()
}
this.getImgHeight() this.getImgHeight()
} }
}, },
...@@ -43,22 +46,42 @@ Component({ ...@@ -43,22 +46,42 @@ Component({
*/ */
data: { data: {
IMG_URL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/', IMG_URL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/',
videoBaseUrl: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/',
productData: productData1, productData: productData1,
proInfo: {}, proInfo: {},
prodItemVideo: '', //选中的场景下的video的第一个 prodItemVideo: '', //选中的场景下的video的第一个
tabAct: 0, tabAct: 0,
scrollTop: 0, scrollTop: 0,
showCard: false, showCard: false,
tabList: [] tabList: [],
imgTopArr: []
},
lifetimes: {
attached() {
setTimeout(() => {
this.getImgHeight()
}, 400)
},
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
setVideoCtx() {
this.setData({
videoCtx: wx.createVideoContext('video', this),
crowdVideoCtx: wx.createVideoContext('crowd-video', this)
})
},
handleVideoPlay(e) {
let { attr } = e.currentTarget.dataset
this.data[attr] && this.data[attr].pause()
},
getInfo() { getInfo() {
let { activeNavIdx, actNum } = this.data let { activeNavIdx, actNum } = this.data
const spcList = [99, 4] // 订阅模块需要特殊处理 const spcList = [99] // 订阅模块需要特殊处理
const senceList = productData1[actNum].filter(item => item.name != '全部') const senceList = productData1[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]
...@@ -67,7 +90,8 @@ Component({ ...@@ -67,7 +90,8 @@ Component({
let proInfo = item.productList.find(k => k.id == activeNavIdx) let proInfo = item.productList.find(k => k.id == activeNavIdx)
this.setData({ this.setData({
proInfo, proInfo,
productImgs: spcList.includes(actNum) ? proInfo.sceneImgs : item.productImgs, // productImgs: spcList.includes(actNum) ? proInfo.sceneImgs : item.productImgs,
productImgs: spcList.includes(actNum) ? proInfo.sceneImgs : (proInfo.productImgs ? proInfo.productImgs : 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[proInfo.currentIndex] : item.videoList[activeNavIdx] : item.noVideoPicture[0] prodItemVideo: item.videoList.length ? spcList.includes(actNum) ?item.videoList[proInfo.currentIndex] : item.videoList[activeNavIdx] : item.noVideoPicture[0]
}) })
...@@ -85,7 +109,7 @@ Component({ ...@@ -85,7 +109,7 @@ Component({
let _this = this let _this = this
query query
.selectAll('.img-item') .selectAll('.img-items')
.boundingClientRect(react => { .boundingClientRect(react => {
react.forEach((item, index) => { react.forEach((item, index) => {
s = item.top - 44 + scrollTop s = item.top - 44 + scrollTop
...@@ -104,6 +128,7 @@ Component({ ...@@ -104,6 +128,7 @@ Component({
}, },
onClickTab(event) { onClickTab(event) {
console.log(event, '--');
let { index } = event.detail let { index } = event.detail
this.setData({ this.setData({
tabAct: index tabAct: index
......
...@@ -80,6 +80,7 @@ page { ...@@ -80,6 +80,7 @@ page {
.prod-detail { .prod-detail {
.img-items { .img-items {
width: 100%; width: 100%;
position: relative;
} }
.occupancy { .occupancy {
...@@ -109,13 +110,25 @@ page { ...@@ -109,13 +110,25 @@ page {
} }
.check-act { .check-act {
width: 100%;
text-align: center;
position: absolute; position: absolute;
bottom: 94rpx; // bottom: 94rpx;
right: 60rpx; // right: 60rpx;
font-size: 24rpx; // font-size: 24rpx;
bottom: 64rpx;
right: 0;
font-weight: 600;
font-size: 28rpx;
color: #3666FE; color: #3666FE;
text-decoration: underline; text-decoration: underline;
} }
.crowd-video {
width: calc(100% - 64rpx);
position: absolute;
top: 264rpx;
margin: 0 32rpx;
}
.more-btn { .more-btn {
position: absolute; position: absolute;
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
</view> </view>
<!-- 有视频 --> <!-- 有视频 -->
<block wx:if="{{!showCard}}"> <block wx:if="{{!showCard}}">
<video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" /> <!-- <video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" /> -->
<video class="frame" id="video" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" bindplay="handleVideoPlay" data-attr="crowdVideoCtx"/>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" /> <image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap"> <view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view> <view class="title">{{prodItemVideo.name}}</view>
...@@ -27,7 +28,8 @@ ...@@ -27,7 +28,8 @@
</view> </view>
<view class="prod-detail"> <view class="prod-detail">
<block wx:for="{{productImgs}}" wx:key="index"> <block wx:for="{{productImgs}}" wx:key="index">
<image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" webp src="{{item.url?item.url:item}}?v={{img_version}}"> <!-- <image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" webp src="{{item.url?item.url:item}}?v={{img_version}}"> -->
<image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" src="{{item.url?item.url:item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}"> <block wx:if="{{ index == 0}}">
<!-- && phone --> <!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}"> <view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
...@@ -38,7 +40,8 @@ ...@@ -38,7 +40,8 @@
</view> </view>
</block> </block>
<!-- 查看活动那个详情 1.3才有 --> <!-- 查看活动那个详情 1.3才有 -->
<block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}"> <!-- <block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}"> -->
<block wx:if="{{ index == 0 && actNum == 3 && activeUrl}}">
<view class="check-act" bindtap="checkActive">点击查看活动页面</view> <view class="check-act" bindtap="checkActive">点击查看活动页面</view>
<!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> --> <!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> -->
</block> </block>
...@@ -49,7 +52,14 @@ ...@@ -49,7 +52,14 @@
</button> </button>
</block> </block>
</image> </image>
<image webp wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" src="{{item.url?item.url:item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}" /> <!-- <image webp wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" src="{{item.url?item.url:item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}" /> -->
<image webp wx:if="{{ index >= 3 && !showLeftFlag}}" mode="widthFix" webp class="img-items {{item.className?item.className:''}}" src="{{item.url?item.url:item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}">
<!-- 众筹-视频 -->
<block wx:if="{{ index == 3 && actNum == 3 }}">
<!-- <video class="crowd-video" src="{{videoBaseUrl}}video/crowd-detail.mp4" /> -->
<video class="crowd-video" id="crowd-video" bindplay="handleVideoPlay" data-attr="videoCtx" src="{{videoBaseUrl}}video/crowd-detail.mp4" />
</block>
</image>
</block> </block>
<view class="occupancy" wx:if="{{!isShare}}"> <view class="occupancy" wx:if="{{!isShare}}">
<!-- padding底部 占位元素 --> <!-- padding底部 占位元素 -->
......
...@@ -92,7 +92,8 @@ Component({ ...@@ -92,7 +92,8 @@ Component({
}, },
// 打电话 // 打电话
callApply(e) { callApply(e) {
const phoneNumber = e.currentTarget.dataset.contactPhone console.log(e);
const phoneNumber = e.currentTarget.dataset.phone
wx.makePhoneCall({ wx.makePhoneCall({
phoneNumber: phoneNumber, phoneNumber: phoneNumber,
}); });
......
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
.apply-wrap { .apply-wrap {
padding: 24rpx; padding: 24rpx;
.content {
height: calc(100% - 160rpx);
overflow: scroll;
}
.apply-item { .apply-item {
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
...@@ -88,16 +83,18 @@ ...@@ -88,16 +83,18 @@
&-left { &-left {
position: relative; position: relative;
.popover-main { .popover-main {
position: absolute; position: absolute;
top: -50rpx; top: -50rpx;
left: 0; left: 0;
background: #4C4C4C; background: #4C4C4C;
height: 50rpx; height: 50rpx;
width: 200rpx; width: 200rpx;
.popover-item { .popover-item {
height: 50rpx; height: 50rpx;
line-height: 50rpx; line-height: 50rpx;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
......
...@@ -43,7 +43,7 @@ color: #5850FF; ...@@ -43,7 +43,7 @@ color: #5850FF;
} }
.item_name { .item_name {
min-width: 200rpx; min-width: 220rpx;
height: 90rpx; height: 90rpx;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -60,4 +60,10 @@ color: #6C737A; ...@@ -60,4 +60,10 @@ color: #6C737A;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
color: #414141; color: #414141;
}
.type-color {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 22rpx;
color: #2CCA74;
} }
\ No newline at end of file \ No newline at end of file
<!--components/recordTable/recordTable.wxml--> <!--components/recordTable/recordTable.wxml-->
<view class='table'> <view class='table'>
<!-- 左侧表格滚动 --> <!-- 左侧表格滚动 -->
<view class="table_right_scroll_box"> <view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{tabList}}" wx:for-index="index" wx:key="index"> <view class="flex_direction_column_item" wx:for="{{tabList}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item}}</view> <view class='item_name'>{{item}}</view>
<view wx:for="{{tableData}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_price'> <view wx:for="{{tableData}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_price'>
<block wx:if="{{item == '访客'}}">{{litem.nickName}}</block> <block wx:if="{{item == '访客'}}">{{litem.nickName}}<text class="type-color">@{{litem.type == 1 ? '微信' : ''}}</text></block>
<block wx:if="{{item == '联系电话'}}">{{litem.phone}}</block> <block wx:if="{{item == '联系电话'}}">{{litem.phone}}</block>
<block wx:if="{{item == '最后访问时间'}}">{{litem.lastTime}}</block> <block wx:if="{{item == '最后访问时间'}}">{{litem.lastTime}}</block>
</view>
</view> </view>
</view> </view>
<!-- 右侧固定 -->
<view class='table_left_column'>
<view class='item_name'>操作</view>
<view class='left_col_item' wx:for="{{tableData.length}}" wx:for-index="index" wx:key="index" data-id="{{index}}" bindtap="selectRecord">访问记录</view>
</view>
</view> </view>
<Popup show="{{popShow}}" list="{{recordList}}" bindclosePop="closePop"></Popup> <!-- 右侧固定 -->
<view class='table_left_column'>
<view class='item_name'>操作</view>
<view class='left_col_item' wx:for="{{tableData.length}}" wx:for-index="index" wx:key="index" data-id="{{index}}" bindtap="selectRecord">访问记录</view>
</view>
</view>
<Popup show="{{popShow}}" list="{{recordList}}" bindclosePop="closePop"></Popup>
\ No newline at end of file \ No newline at end of file
...@@ -33,7 +33,7 @@ Component({ ...@@ -33,7 +33,7 @@ Component({
id: "2", id: "2",
name: "scene3", name: "scene3",
title: "次新车二次转化", title: "次新车二次转化",
url: "car2", url: "car7",
}, },
{ {
id: "3", id: "3",
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
.product-item-title { .product-item-title {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
font-weight: 600; font-weight: 600;
font-size: 24rpx; font-size: 23rpx;
color: #323436; color: #323436;
letter-spacing: 0; letter-spacing: 0;
text-align: center; text-align: center;
......
...@@ -14,11 +14,11 @@ Page({ ...@@ -14,11 +14,11 @@ Page({
recordData: [], recordData: [],
recordPageData: { recordPageData: {
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 15,
}, },
applyPageData: { applyPageData: {
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 10,
} }
}, },
// tab切换 // tab切换
...@@ -51,7 +51,8 @@ Page({ ...@@ -51,7 +51,8 @@ Page({
if(res&&res.code == 0) { if(res&&res.code == 0) {
let data = this.data.recordData.concat(res.data.data) let data = this.data.recordData.concat(res.data.data)
this.setData({ this.setData({
recordData: data recordData: data,
recordDataNum: res.data.count
}) })
} else { } else {
wx.showToast({ wx.showToast({
...@@ -76,7 +77,8 @@ Page({ ...@@ -76,7 +77,8 @@ Page({
if(res&&res.code == 0) { if(res&&res.code == 0) {
let data = this.data.applyData.concat(res.data.data) let data = this.data.applyData.concat(res.data.data)
this.setData({ this.setData({
applyData: data applyData: data,
applyDataNum: res.data.count
}) })
} else { } else {
wx.showToast({ wx.showToast({
...@@ -139,16 +141,32 @@ Page({ ...@@ -139,16 +141,32 @@ Page({
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { onReachBottom() {
console.log(111);
if (this.data.tabIndex == 0) { if (this.data.tabIndex == 0) {
const size = this.data.recordPageData.pageNum *this.data.recordPageData.pageSize if (this.data.recordData.length>=this.data.recordDataNum) {
if (this.data.recordData.length<=size) return if (this.data.recordData.length==this.data.recordDataNum) {
wx.showToast({
title: '已经到最底了',
icon: 'none'
})
}
return
}
this.setData({ this.setData({
['recordPageData.pageNum']: this.data.recordPageData.pageNum+1 ['recordPageData.pageNum']: this.data.recordPageData.pageNum+1
}) })
this.getCarRecord() this.getCarRecord()
} else { } else {
const size = this.data.applyPageData.pageNum *this.data.applyPageData.pageSize console.log(this.data.applyDataNum,this.data.applyData.length);
if (this.data.applyData.length<=size) return if (this.data.applyData.length>=this.data.applyDataNum) {
if (this.data.applyData.length==this.data.applyDataNum) {
wx.showToast({
title: '已经到最底了',
icon: 'none'
})
}
return
}
this.setData({ this.setData({
['applyPageData.pageNum']: this.data.applyPageData.pageNum+1 ['applyPageData.pageNum']: this.data.applyPageData.pageNum+1
}) })
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"RecordTable": "../../../components/recordTable/recordTable", "RecordTable": "../../../components/recordTable/recordTable",
"RecordApply": "../../../components/recordApply/recordApply" "RecordApply": "../../../components/recordApply/recordApply"
}, },
"navigationBarTitleText": "名片访问记录" "navigationBarTitleText": "名片线索"
} }
\ No newline at end of file \ No newline at end of file
/* packagesList/pages/accessRecord/accessRecord.wxss */ /* packagesList/pages/accessRecord/accessRecord.wxss */
.main-content { .main-content {
background: #F5F5F7; background: #F5F5F7;
height: 100vh;
} }
.page-top { .page-top {
display: flex; display: flex;
......
var measureList = Object.freeze([ var measureList = Object.freeze([
{ {
name: '新车交付场景', // name: '新车交付场景',
tips: '膜升级驻店', name: '膜升级驻店',
// tips: '精品升级',
iconName: 'icon2', iconName: 'icon2',
product: [ product: [
{ {
name: '太阳膜升级', name: '太阳膜升级',
parentName: '新车交付场景', parentName: '膜升级驻店',
tips: '精品升级', // tips: '精品升级',
value: '1-0', // value: '1-0',
typeIndex: '1.1', typeIndex: '1.1',
isCheck: false, isCheck: false,
rate: '0.55', rate: '0.55',
...@@ -20,15 +21,15 @@ var measureList = Object.freeze([ ...@@ -20,15 +21,15 @@ var measureList = Object.freeze([
] ]
}, },
{ {
name: '0-6月', name: '次新车二次转化',
iconName: 'icon3', iconName: 'icon3',
tips: '次新车二次转化', // tips: '膨胀金活动',
product: [ product: [
{ {
name: '膨胀金活动-车衣', name: '膨胀金活动-车衣',
parentName: '0-6月', parentName: '次新车二次转化',
tips: '膨胀金活动', // tips: '膨胀金活动',
value: '2-0', // value: '2-0',
typeIndex: '1.2', typeIndex: '1.2',
isCheck: false, isCheck: false,
rate: '0.09', rate: '0.09',
...@@ -39,9 +40,9 @@ var measureList = Object.freeze([ ...@@ -39,9 +40,9 @@ var measureList = Object.freeze([
}, },
{ {
name: '膨胀金活动-改色膜', name: '膨胀金活动-改色膜',
parentName: '0-6月', parentName: '次新车二次转化',
tips: '膨胀金活动', // tips: '膨胀金活动',
value: '2-1', // value: '2-1',
typeIndex: '1.2', typeIndex: '1.2',
isCheck: false, isCheck: false,
rate: '0.06', rate: '0.06',
...@@ -53,16 +54,16 @@ var measureList = Object.freeze([ ...@@ -53,16 +54,16 @@ var measureList = Object.freeze([
] ]
}, },
{ {
name: '6个月以上', name: '售后众筹',
iconName: 'icon4', iconName: 'icon4',
tips: '售后众筹', // tips: '众筹活动',
product: [ product: [
{ {
name: '360全景导航', name: '360全景导航',
parentName: '6个月以上', parentName: '售后众筹',
tips: '众筹活动', // tips: '众筹活动',
typeIndex: '1.3', typeIndex: '1.3',
value: '3-0', // value: '3-0',
isCheck: false, isCheck: false,
rate: '0.015', rate: '0.015',
averagePrice: 2680, averagePrice: 2680,
...@@ -72,9 +73,9 @@ var measureList = Object.freeze([ ...@@ -72,9 +73,9 @@ var measureList = Object.freeze([
}, },
{ {
name: 'AR导航', name: 'AR导航',
parentName: '6个月以上', parentName: '售后众筹',
tips: '众筹活动', // tips: '众筹活动',
value: '3-1', // value: '3-1',
typeIndex: '1.3', typeIndex: '1.3',
isCheck: false, isCheck: false,
rate: '0.015', rate: '0.015',
...@@ -85,9 +86,9 @@ var measureList = Object.freeze([ ...@@ -85,9 +86,9 @@ var measureList = Object.freeze([
}, },
{ {
name: '氛围灯', name: '氛围灯',
parentName: '6个月以上', parentName: '售后众筹',
tips: '众筹活动', // tips: '众筹活动',
value: '3-2', // value: '3-2',
typeIndex: '1.3', typeIndex: '1.3',
isCheck: false, isCheck: false,
rate: '0.015', rate: '0.015',
...@@ -98,9 +99,9 @@ var measureList = Object.freeze([ ...@@ -98,9 +99,9 @@ var measureList = Object.freeze([
}, },
{ {
name: '座椅通风', name: '座椅通风',
parentName: '6个月以上', parentName: '售后众筹',
tips: '众筹活动', // tips: '众筹活动',
value: '3-3', // value: '3-3',
typeIndex: '1.3', typeIndex: '1.3',
isCheck: false, isCheck: false,
rate: '0.01', rate: '0.01',
...@@ -111,9 +112,9 @@ var measureList = Object.freeze([ ...@@ -111,9 +112,9 @@ var measureList = Object.freeze([
}, },
{ {
name: '智能香薰', name: '智能香薰',
parentName: '6个月以上', parentName: '售后众筹',
tips: '众筹活动', // tips: '众筹活动',
value: '3-4', // value: '3-4',
typeIndex: '1.3', typeIndex: '1.3',
isCheck: false, isCheck: false,
rate: '0.015', rate: '0.015',
...@@ -125,15 +126,15 @@ var measureList = Object.freeze([ ...@@ -125,15 +126,15 @@ var measureList = Object.freeze([
] ]
}, },
{ {
name: '新车洽谈场景', name: '车损险升级',
tips: '车损险升级', // tips: '车损升级',
iconName: 'icon1', iconName: 'icon1',
product: [ product: [
{ {
name: '车损升级', name: '车损升级',
parentName: '新车洽谈场景', parentName: '车损险升级',
tips: '车损升级', // tips: '车损升级',
value: '0-0', // value: '0-0',
typeIndex: '1.0', typeIndex: '1.0',
isCheck: false, isCheck: false,
rate: '0.5', rate: '0.5',
...@@ -143,7 +144,7 @@ var measureList = Object.freeze([ ...@@ -143,7 +144,7 @@ var measureList = Object.freeze([
serviceDividendRatio: '0.23' serviceDividendRatio: '0.23'
} }
] ]
} },
]) ])
export default { export default {
......
...@@ -49,11 +49,16 @@ Page({ ...@@ -49,11 +49,16 @@ Page({
}, },
// 选择产品 // 选择产品
checkProduct(e) { checkProduct(e) {
const value = e.target.dataset.value // const value = e.target.dataset.value
const index = +value.split('-')[0] // const index = +value.split('-')[0]
const productIndex = +value.split('-')[1] // const productIndex = +value.split('-')[1]
const name = `measureList[${index}].product[${productIndex}].isCheck` // const name = `measureList[${index}].product[${productIndex}].isCheck`
const val = this.data.measureList[index].product[productIndex].isCheck // const val = this.data.measureList[index].product[productIndex].isCheck
// !val ? checkMap.set(value, !val) : checkMap.delete(value)
const { pidx, idx } = e.currentTarget.dataset
const value = pidx + '-' + idx
const name = `measureList[${pidx}].product[${idx}].isCheck`
const val = this.data.measureList[pidx].product[idx].isCheck
!val ? checkMap.set(value, !val) : checkMap.delete(value) !val ? checkMap.set(value, !val) : checkMap.delete(value)
this.setData({ this.setData({
[name]: !val, [name]: !val,
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
<view wx:if="{{i.tips}}" class="title-tip">{{i.tips}}</view> <view wx:if="{{i.tips}}" class="title-tip">{{i.tips}}</view>
</view> </view>
<view class="product-list"> <view class="product-list">
<view class="product-item {{j.isCheck ? 'active':''}}" wx:for="{{i.product}}" wx:for-item="j" wx:key="index" data-value="{{j.value}}" bindtap="checkProduct"> <!-- <view class="product-item {{j.isCheck ? 'active':''}}" wx:for="{{i.product}}" wx:for-item="j" wx:key="index" data-value="{{j.value}}" bindtap="checkProduct"> -->
<view class="product-item {{j.isCheck ? 'active':''}}" wx:for="{{i.product}}" wx:for-item="j" wx:for-index="jIdx" wx:key="index" data-pidx="{{index}}" data-idx="{{jIdx}}" data-value="{{j.value}}" bindtap="checkProduct">
<image hidden="{{!j.isCheck}}" class="iconCheck" webp src="{{IMGURL}}measure/icon-check.png?v={{img_version}}"></image> <image hidden="{{!j.isCheck}}" class="iconCheck" webp src="{{IMGURL}}measure/icon-check.png?v={{img_version}}"></image>
{{j.name}}</view> {{j.name}}</view>
</view> </view>
......
...@@ -26,7 +26,8 @@ Page({ ...@@ -26,7 +26,8 @@ Page({
productData, productData,
proInfo: {}, proInfo: {},
isShare: false, //是否是分享出去的 isShare: false, //是否是分享出去的
actNum: 0, actNum: -1,
activeNavIdx: 0,
tabAct: 0, tabAct: 0,
showLeft: false, //更多按钮显示的内容 showLeft: false, //更多按钮显示的内容
scrollTop: 0, scrollTop: 0,
......
...@@ -19,7 +19,8 @@ import { subscriptionSystemData } from './systemData' ...@@ -19,7 +19,8 @@ import { subscriptionSystemData } from './systemData'
*/ */
// 车损升级 // 车损升级
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`] 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`]
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 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 productImgs0 = [`${IMG_URL}index/newProImgs/pro00.webp`, `${IMG_URL}index/newProImgs/pro01.webp`, `${IMG_URL}index/newProImgs/pro02.webp`, `${IMG_URL}index/newProImgs/pro03.webp`]
const videoList0 = [ const videoList0 = [
{ {
videoUrl: `${videoBaseUrl}video/digital_card_30s.mp4`, videoUrl: `${videoBaseUrl}video/digital_card_30s.mp4`,
...@@ -102,7 +103,8 @@ const scenario_0 = [ ...@@ -102,7 +103,8 @@ const scenario_0 = [
// 精品升级 // 精品升级
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`] 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`]
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 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 productImgs1 = [`${IMG_URL}index/newProImgs/pro10.webp`, `${IMG_URL}index/newProImgs/pro11.webp`, `${IMG_URL}index/newProImgs/pro12.webp`, `${IMG_URL}index/newProImgs/pro13.webp`]
const videoList1 = [ const videoList1 = [
{ {
videoUrl: `${videoBaseUrl}video/solar.mp4`, videoUrl: `${videoBaseUrl}video/solar.mp4`,
...@@ -136,6 +138,7 @@ const scenario_1 = [ ...@@ -136,6 +138,7 @@ const scenario_1 = [
sceneImgs: sceneImgs1, sceneImgs: sceneImgs1,
productImgs: productImgs1, productImgs: productImgs1,
"sceneCode":"SC002", "sceneCode":"SC002",
sceneid: 1,
productList: [ productList: [
{ {
id: 0, id: 0,
...@@ -162,7 +165,8 @@ const scenario_1 = [ ...@@ -162,7 +165,8 @@ const scenario_1 = [
// 客户线上化 // 客户线上化
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`] 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`]
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 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 productImgs2 = [`${IMG_URL}index/newProImgs/pro20.webp`, `${IMG_URL}index/newProImgs/pro21.webp`, `${IMG_URL}index/newProImgs/pro22.webp`, `${IMG_URL}index/newProImgs/pro23.webp`]
const posterList2 = [ const posterList2 = [
{ {
src: `${IMG_URL}index/poster/poster3-0.webp`, src: `${IMG_URL}index/poster/poster3-0.webp`,
...@@ -188,6 +192,7 @@ const scenario_2 = [ ...@@ -188,6 +192,7 @@ const scenario_2 = [
sceneImgs: sceneImgs2, sceneImgs: sceneImgs2,
productImgs: productImgs2, productImgs: productImgs2,
"sceneCode":"SC003", "sceneCode":"SC003",
sceneid: 2,
productList: [ productList: [
{ {
id: 0, id: 0,
...@@ -238,7 +243,8 @@ const scenario_2 = [ ...@@ -238,7 +243,8 @@ const scenario_2 = [
// 众筹活动 // 众筹活动
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`] 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`]
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 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 productImgs3 = [`${IMG_URL}index/newProImgs/pro30.webp`, `${IMG_URL}index/newProImgs/pro31.webp`, `${IMG_URL}index/newProImgs/pro32.webp`, `${IMG_URL}index/newProImgs/pro33.webp`]
const videoList3 = [ const videoList3 = [
{ {
videoUrl: `${videoBaseUrl}video/car_beauty.mp4`, videoUrl: `${videoBaseUrl}video/car_beauty.mp4`,
...@@ -305,6 +311,7 @@ const scenario_3 = [ ...@@ -305,6 +311,7 @@ const scenario_3 = [
{ {
name: '美容类', name: '美容类',
"sceneCode":"SC004", "sceneCode":"SC004",
sceneid: 3,
productList: [ productList: [
{ {
id: 0, id: 0,
...@@ -331,6 +338,8 @@ const scenario_3 = [ ...@@ -331,6 +338,8 @@ const scenario_3 = [
}, },
{ {
name: '轻改类', name: '轻改类',
"sceneCode":"SC004",
sceneid: 0,
productList: [ productList: [
{ {
id: 1, id: 1,
...@@ -347,7 +356,8 @@ const scenario_3 = [ ...@@ -347,7 +356,8 @@ const scenario_3 = [
productCode: 'PC006', productCode: 'PC006',
productName: '座椅通风', productName: '座椅通风',
category: '轻改类', category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-3.png` prodImg: `${IMG_URL}index/prod2/prod3-3.png`,
productImgs: [`${IMG_URL}index/newProImgs/pro30.webp`, `${IMG_URL}index/newProImgs/pro31.webp`, `${IMG_URL}index/newProImgs/pro32-car.webp`, `${IMG_URL}index/newProImgs/pro33.webp`]
}, },
{ {
id: 2, id: 2,
...@@ -364,7 +374,8 @@ const scenario_3 = [ ...@@ -364,7 +374,8 @@ const scenario_3 = [
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`,
productImgs: [`${IMG_URL}index/newProImgs/pro30.webp`, `${IMG_URL}index/newProImgs/pro31.webp`, `${IMG_URL}index/newProImgs/pro32-AR.webp`, `${IMG_URL}index/newProImgs/pro33.webp`]
}, },
{ {
id: 3, id: 3,
...@@ -381,7 +392,8 @@ const scenario_3 = [ ...@@ -381,7 +392,8 @@ const scenario_3 = [
productCode: 'PC008', productCode: 'PC008',
productName: '氛围灯', productName: '氛围灯',
category: '轻改类', category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-2.png` prodImg: `${IMG_URL}index/prod2/prod3-2.png`,
productImgs: [`${IMG_URL}index/newProImgs/pro30.webp`, `${IMG_URL}index/newProImgs/pro31.webp`, `${IMG_URL}index/newProImgs/pro32-lamp.webp`, `${IMG_URL}index/newProImgs/pro33.webp`]
}, },
{ {
id: 4, id: 4,
...@@ -398,7 +410,8 @@ const scenario_3 = [ ...@@ -398,7 +410,8 @@ const scenario_3 = [
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`,
productImgs: [`${IMG_URL}index/newProImgs/pro30.webp`, `${IMG_URL}index/newProImgs/pro31.webp`, `${IMG_URL}index/newProImgs/pro32-360.webp`, `${IMG_URL}index/newProImgs/pro33.webp`]
}, },
{ {
id: 5, id: 5,
...@@ -415,7 +428,8 @@ const scenario_3 = [ ...@@ -415,7 +428,8 @@ const scenario_3 = [
productCode: 'PC009', productCode: 'PC009',
productName: '智能香氛系统', productName: '智能香氛系统',
category: '轻改类', category: '轻改类',
prodImg: `${IMG_URL}index/prod2/prod3-5.png` prodImg: `${IMG_URL}index/prod2/prod3-5.png`,
productImgs: [`${IMG_URL}index/newProImgs/pro30.webp`, `${IMG_URL}index/newProImgs/pro31.webp`, `${IMG_URL}index/newProImgs/pro32-xt.webp`, `${IMG_URL}index/newProImgs/pro33.webp`]
} }
], ],
sceneImgs: sceneImgs3, sceneImgs: sceneImgs3,
......
...@@ -53,9 +53,11 @@ const subscriptionSystemData = [ ...@@ -53,9 +53,11 @@ const subscriptionSystemData = [
// sceneImgs: sceneImgs5, // sceneImgs: sceneImgs5,
// 产品详情图片 // 产品详情图片
productImgs: productImgs0, productImgs: productImgs0,
sceneid: 0,
productList: [ productList: [
{ {
id: 0, id: 0,
sceneid: 0,
currentIndex: 0, currentIndex: 0,
img: 'product-img1', img: 'product-img1',
proName: '客户活跃代运营', proName: '客户活跃代运营',
...@@ -89,6 +91,7 @@ const subscriptionSystemData = [ ...@@ -89,6 +91,7 @@ const subscriptionSystemData = [
}, },
{ {
id: 1, id: 1,
sceneid: 0,
currentIndex: 1, currentIndex: 1,
img: 'product-img1', img: 'product-img1',
proName: '定保数字化招揽', proName: '定保数字化招揽',
...@@ -128,11 +131,13 @@ const subscriptionSystemData = [ ...@@ -128,11 +131,13 @@ const subscriptionSystemData = [
name: '客户活跃', name: '客户活跃',
//场景详情图片 //场景详情图片
sceneImgs: sceneImgs5, sceneImgs: sceneImgs5,
sceneid: 1,
// 产品详情图片 // 产品详情图片
productImgs: productImgs0, productImgs: productImgs0,
productList: [ productList: [
{ {
id: 2, id: 2,
sceneid: 1,
currentIndex: 0, currentIndex: 0,
img: 'product-img1', img: 'product-img1',
proName: '事故车救援服务', proName: '事故车救援服务',
...@@ -170,6 +175,7 @@ const subscriptionSystemData = [ ...@@ -170,6 +175,7 @@ const subscriptionSystemData = [
}, },
{ {
name: '膨胀金活动', name: '膨胀金活动',
sceneid:2,
//场景详情图片 //场景详情图片
sceneImgs: sceneImgs4, sceneImgs: sceneImgs4,
// 产品详情图片 // 产品详情图片
...@@ -177,6 +183,7 @@ const subscriptionSystemData = [ ...@@ -177,6 +183,7 @@ const subscriptionSystemData = [
productList: [ productList: [
{ {
id: 3, id: 3,
sceneid: 2,
currentIndex: 0, currentIndex: 0,
proName: '膨胀金', proName: '膨胀金',
prodImg: `${IMG_URL}index/prod2/prod4-0.png`, prodImg: `${IMG_URL}index/prod2/prod4-0.png`,
...@@ -189,6 +196,7 @@ const subscriptionSystemData = [ ...@@ -189,6 +196,7 @@ const subscriptionSystemData = [
}, },
{ {
name: '数字化转型案例', name: '数字化转型案例',
sceneid: 3,
videoList: videoList0.concat(videoList1).concat(videoList4) videoList: videoList0.concat(videoList1).concat(videoList4)
} }
] ]
......
...@@ -106,6 +106,16 @@ Page({ ...@@ -106,6 +106,16 @@ Page({
// 更新手机号 // 更新手机号
updatePhoneNumber(e) { updatePhoneNumber(e) {
console.log(e);
const {phone} = wx.$storage.get('aicard_user_info')
console.log(this.data.cardInfo.staffPhone, phone);
if (this.data.cardInfo.staffPhone === phone) {
// wx.$storage.set('isStaff', 'true')
this.setData({
isStaff: true,
phoneNumber: phone
})
}
if (e.detail) { if (e.detail) {
this.setData({ this.setData({
hasPhoneNumber: true hasPhoneNumber: true
...@@ -283,6 +293,15 @@ Page({ ...@@ -283,6 +293,15 @@ Page({
wx.$Track.sendTrack(this.data.secondTab[0]) wx.$Track.sendTrack(this.data.secondTab[0])
} }
} }
console.log(this.data.isStaff,this.data.cardInfo);
if (!this.data.isStaff && this.data.cardInfo) {
if (this.data.cardInfo.staffPhone === this.data.phoneNumber) {
// wx.$storage.set('isStaff', 'true')
this.setData({
isStaff: true
})
}
}
}, },
/** /**
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<image wx:if="{{showCooperate}}" class="floating-icon" bindtap="toBusinessMiniProgram" webp src="{{IMGURL}}home/icon-business.png?v={{img_version}}" /> <image wx:if="{{showCooperate}}" class="floating-icon" bindtap="toBusinessMiniProgram" webp src="{{IMGURL}}home/icon-business.png?v={{img_version}}" />
<image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}" /> <image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}" />
</view> </view>
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}" /> <phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}" bindupdatePhoneNumber="updatePhoneNumber" />
<!-- 客服咨询 --> <!-- 客服咨询 -->
<customer wx:if="{{showCustomer}}" qrCode="{{cardInfo.qrCode}}" bindcloseQR="closeQR" /> <customer wx:if="{{showCustomer}}" qrCode="{{cardInfo.qrCode}}" bindcloseQR="closeQR" />
</block> </block>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!