Commit 5e0cf9f1 by 前端

Merge branch 'v3.5.0' into 'master'

V3.5.0

See merge request !17
2 parents d3d5bb95 11805ed1
Showing 46 changed files with 1209 additions and 146 deletions
......@@ -9,10 +9,12 @@ import api from './request'
import ssoApi from './ssoApi'
import wechatApi from './wechatApi'
import entmicroApi from './entmicroApi'
import businessApi from './businessApi'
module.exports = {
ssoApi,
entmicroApi,
wechatApi,
businessApi,
commonApi: {
/**获取图片版本号 */
getMockConfig() {
......
import api from "./request";
module.exports = {
/** 访客记录分页列表 */
cardRecordPage(data) {
return api.post({
method: 'entmicro.api.business.cardRecord.list',
...data
},
true
)
},
/** 活动申请记录分页列表 */
activityApplyList(data) {
return api.post({
method: 'entmicro.api.business.card.activity.record.list',
...data
},
true
)
},
/** 活动申请记录访问记录 */
getApplyRecord(data) {
return api.post({
method: 'entmicro.api.business.card.activity.pagerecord',
...data
},
true
)
},
// 切换跟进状态
activityFollow(data) {
return api.post({
method: 'entmicro.api.business.card.activity.follow',
...data
},
true
)
},
}
\ No newline at end of file
......@@ -23,7 +23,8 @@
"pages/applySuccess/applySuccess",
"pages/videoDetal/videoDetal",
"pages/productDetail/productDetail",
"pages/scenarioDetail/scenarioDetail"
"pages/scenarioDetail/scenarioDetail",
"pages/accessRecord/accessRecord"
]
}
],
......
......@@ -20,11 +20,11 @@ Component({
*/
data: {
tabData: [{
name: "增值转化",
name: "营销增值服务",
value: 0,
},
{
name: "系统订阅",
name: "客户数字化",
value: 1,
},
],
......@@ -136,7 +136,7 @@ Component({
params.businessScenario = selectScene[0].title;
params.productItems = selectScene[1].join(",");
}
let applyType = this.data.tabIndex == 0 ? '增值转化' : '系统订阅';
let applyType = this.data.tabIndex == 0 ? '营销增值服务' : '客户数字化';
let ccoperationType = this.data.selectApply == 1 ? '门店' : '代理商';
params.merchantName = params.merchantName + '(' + applyType + '-' + ccoperationType + ')'
return params
......
......@@ -50,6 +50,7 @@ Component({
methods: {
// 获取手机号
getPhoneNumber({detail}) {
console.log(detail);
if ( detail.errMsg && detail.errMsg.indexOf('user deny') !== -1 ) {
wx.hideLoading()
return;
......@@ -66,6 +67,7 @@ Component({
this.setData({
hasPhone: true
})
this.jump()
} else {
wx.showToast({
title: message,
......
......@@ -23,6 +23,10 @@ Component({
shareDisabled: n
})
}
},
isStaff: {
type:Boolean,
defalut: false
}
},
......@@ -106,6 +110,12 @@ Component({
duration: 2000
})
}
},
// 跳往名片线索页面
goRecord() {
wx.$router.go("/packagesList/pages/accessRecord/accessRecord");
// let { activeUrl } = this.data
// wx.$router.jumpH5('http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main-kuangyq/#/proxy/list?sessionId=scrm-base-e059c21e-9e95-40b3-93ee-f1dfbc6411da-rop');
}
},
});
......@@ -29,13 +29,19 @@
<image class="user-bg" webp src="{{IMGURL}}home/user-bg.png?v={{img_version}}" />
</view>
<view class="btn-group">
<view class="phone-btn" bindtap="callPhone">
<image class="icon-dial" webp src="{{IMGURL}}home/icon-dial.png?v={{img_version}}"></image>
<view class="phone-btn">
<view bindtap="callPhone">
<image class="icon-dial" webp src="{{IMGURL}}home/icon-dial.png?v={{img_version}}"></image>
<view class="phone-text">拨打电话</view>
</view>
<view wx:if="{{isStaff}}" class="line"></view>
<view wx:if="{{isStaff}}" bindtap="goRecord" class="record-dial">
<image class="icon-dial" webp src="{{IMGURL}}index/record.png?v={{img_version}}"></image>
<view class="phone-text">名片线索</view></view>
</view>
<button class="btn-plain btn" bindtap="addPhone">保存名片</button>
<button wx:if="{{shareDisabled}}" class="btn-primary btn" bindtap="shareClick">分享名片</button>
<button wx:else class="btn-primary btn" open-type="share">分享名片</button>
<button class="btn-plain btn {{isStaff ? 'new-padding' : ''}}" bindtap="addPhone">保存名片</button>
<button wx:if="{{shareDisabled}}" class="btn-primary btn {{isStaff ? 'new-padding' : ''}}" bindtap="shareClick">分享名片</button>
<button wx:else class="btn-primary btn {{isStaff ? 'new-padding' : ''}}" open-type="share">分享名片</button>
</view>
</view>
<authorize buttonType="openSetting" show="{{showAuth}}" isShowCheck="{{false}}"></authorize>
\ No newline at end of file
......@@ -129,6 +129,7 @@
padding: 4rpx 32rpx 4rpx 24rpx;
background: #FFFFFF;
box-shadow: 8rpx 0 16rpx 0 rgba(202,211,230,0.30);
display: contents;
}
.icon-dial {
......@@ -164,4 +165,15 @@ button::after {
color: #FFFFFF;
background: #5850FF;
/* margin-left: 24rpx; */
}
/* .record-dial {
border-left: ;
} */
.new-padding {
padding: 12rpx 28rpx;
}
.line {
width: 2rpx;
height: 24rpx;
background-color: #6E6E7A;
}
\ No newline at end of file
// components/popup/popup.js
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type:Boolean,
default: false,
observer(n) {
this.setData({
popShow: n
})
}
},
list: {
type:Array,
default: [],
observer(n) {
console.log(n);
this.setData({
dataList: n
})
}
}
},
/**
* 组件的初始数据
*/
data: {
dataList: []
},
/**
* 组件的方法列表
*/
methods: {
// 关闭弹框
overlayUp() {
this.triggerEvent('closePop')
}
}
})
{
"component": true,
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
"van-icon": "@vant/weapp/icon/index"
}
}
\ No newline at end of file
/* components/popup/popup.wxss */
.popup-header {
height: 56px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0px 16px;
.popup-title {
font-weight: 600;
font-size: 16px;
color: #222222;
}
}
.popup-content {
max-height: calc(80vh - 50px);
overflow: auto;
&-header {
display: flex;
height: 40px;
line-height: 48px;
background: #f2f2f2;
text-align: center;
.popup-item {
font-weight: 600;
font-size: 14px;
color: #333333;
}
}
&-body {
display: flex;
height: 48px;
line-height: 48px;
background: #ffffff;
border: 1px solid #e5e5e5;
text-align: center;
}
.popup-item {
font-size: 14px;
color: #666666;
&:first-child {
width: 60px;
}
&:nth-child(2),
&:nth-child(3) {
flex: 1;
}
}
}
\ No newline at end of file
<!--components/popup/popup.wxml-->
<van-popup
show="{{ popShow }}"
round
position="bottom"
custom-style="height: 40%;"
safe-area-inset-bottom
close-on-click-overlay
bind:click-overlay="overlayUp"
>
<view class="popup-header">
<view class="popup-title">访问记录</view>
<view class="popup-icon"><van-icon name="cross" bindtap="overlayUp" /></view>
</view>
<view class="popup-content">
<view class="popup-content-header">
<view class="popup-item">序号</view>
<view class="popup-item">访问页面</view>
<view class="popup-item">访问时间</view>
</view>
<view class="popup-content-body" wx:for="{{dataList}}" wx:key="{{item.id}}">
<view class="popup-item">{{ index + 1 }}</view>
<view class="popup-item">{{ item.pageName }}</view>
<view class="popup-item">{{ item.createdTime }}</view>
</view>
</view>
</van-popup>
// packagesList/pages/productDetail/components/proDetail/proDetail.js
import { senceData, productData1 } from '~/pages/tab/index/constant/senceData'
const norTabList = ['项目亮点', '合作案例', '合作方式', '适配产品']
const norTabList = ['海报案例', '测算营销', '产品介绍', '项目亮点']
import { componentsMixin } from "../../mixins/index";
Component({
externalClasses: ['custom-class'],
......@@ -15,6 +15,9 @@ Component({
value: -1,
observer(n) {
this.getInfo()
if (n == 3) {
this.setVideoCtx()
}
this.getImgHeight()
}
},
......@@ -43,22 +46,42 @@ Component({
*/
data: {
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,
proInfo: {},
prodItemVideo: '', //选中的场景下的video的第一个
tabAct: 0,
scrollTop: 0,
showCard: false,
tabList: []
tabList: [],
imgTopArr: []
},
lifetimes: {
attached() {
setTimeout(() => {
this.getImgHeight()
}, 800)
},
},
/**
* 组件的方法列表
*/
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() {
let { activeNavIdx, actNum } = this.data
const spcList = [99, 4] // 订阅模块需要特殊处理
const spcList = [99] // 订阅模块需要特殊处理
const senceList = productData1[actNum].filter(item => item.name != '全部')
for (let i = 0; i < senceList.length; i++) {
let item = senceList[i]
......@@ -67,7 +90,8 @@ Component({
let proInfo = item.productList.find(k => k.id == activeNavIdx)
this.setData({
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,
prodItemVideo: item.videoList.length ? spcList.includes(actNum) ?item.videoList[proInfo.currentIndex] : item.videoList[activeNavIdx] : item.noVideoPicture[0]
})
......@@ -85,7 +109,7 @@ Component({
let _this = this
query
.selectAll('.img-item')
.selectAll('.img-items')
.boundingClientRect(react => {
react.forEach((item, index) => {
s = item.top - 44 + scrollTop
......@@ -104,6 +128,7 @@ Component({
},
onClickTab(event) {
console.log(event, '--');
let { index } = event.detail
this.setData({
tabAct: index
......
......@@ -78,6 +78,10 @@ page {
}
.prod-detail {
.img-items {
width: 100%;
position: relative;
}
.occupancy {
height: 120rpx;
......@@ -106,13 +110,27 @@ page {
}
.check-act {
width: 100%;
text-align: center;
position: absolute;
bottom: 94rpx;
right: 60rpx;
font-size: 24rpx;
// bottom: 94rpx;
// right: 60rpx;
// font-size: 24rpx;
bottom: 64rpx;
right: 0;
font-weight: 600;
font-size: 28rpx;
color: #3666FE;
text-decoration: underline;
}
.crowd-video {
width: calc(100% - 64rpx);
height: 386rpx;
position: absolute;
top: 264rpx;
margin: 0 32rpx;
border-radius: 16rpx;
}
.more-btn {
position: absolute;
......
......@@ -7,7 +7,8 @@
</view>
<!-- 有视频 -->
<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}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
......@@ -27,7 +28,8 @@
</view>
<view class="prod-detail">
<block wx:for="{{productImgs}}" wx:key="index">
<image webp wx:if="{{ index < 3}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" 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}}">
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
......@@ -38,7 +40,8 @@
</view>
</block>
<!-- 查看活动那个详情 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>
<!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> -->
</block>
......@@ -49,7 +52,14 @@
</button>
</block>
</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>
<view class="occupancy" wx:if="{{!isShare}}">
<!-- padding底部 占位元素 -->
......
// components/recordApply/recordApply.js
import {
businessApi
} from "../../api/api";
import {
componentsMixin
} from "../../mixins/index";
Component({
behaviors: [componentsMixin],
/**
* 组件的属性列表
*/
properties: {
applyData: {
type: Array,
default: [],
observer(n) {
this.setData({
dataList: n
})
}
}
},
/**
* 组件的初始数据
*/
data: {
dataList: [],
recordList: [],
popShow: false,
isClick: false
},
/**
* 组件的方法列表
*/
methods: {
getRecord(e) {
this.setData({
popShow: true
})
console.log(e);
const {activityId} = e.currentTarget.dataset.info
const params = {
activityId
}
businessApi.getApplyRecord(params).then(res => {
console.log(res, '000');
if(res&&res.code == 0) {
this.setData({
recordList: res.data
})
} else {
wx.showToast({
title: res.message || '系统异常',
icon: 'none'
})
}
})
},
// 关闭pop
closePop() {
this.setData({
popShow: false
})
},
// 切换跟进状态
changeFollow(e) {
this.setData({
isClick: true
})
const {activityId, followType} = e.currentTarget.dataset.follow
let data = {
activityId: activityId,
followType: followType == 0 ? 1 : 0
}
businessApi.activityFollow(data).then(res => {
if (res.code == 0) {
this.triggerEvent('changeApplyData', activityId)
wx.showToast({
title: '跟进状态修改成功',
icon: 'none'
})
} else {
wx.showToast({
title: res.message || '系统异常',
icon: 'none'
})
}
})
},
// 打电话
callApply(e) {
console.log(e);
const phoneNumber = e.currentTarget.dataset.phone
wx.makePhoneCall({
phoneNumber: phoneNumber,
});
}
}
})
{
"component": true,
"usingComponents": {
"Popup": "../../components/popup/popup"
}
}
\ No newline at end of file
/* components/recordApply/recordApply.wxss */
.apply-wrap {
padding: 24rpx;
.apply-item {
box-sizing: border-box;
background: #fff;
box-shadow: 0 8rpx 16rpx 0 rgba(224, 224, 224, 0.5);
margin-bottom: 24rpx;
&-head {
padding: 20rpx 32rpx 24rpx;
border-bottom: 2rpx solid rgba(195, 195, 195, 0.3);
.title {
font-weight: 600;
font-size: 32rpx;
color: #333333;
line-height: 48rpx;
}
.maxWidth {
max-width: 700rpx;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.type {
font-weight: 400;
font-size: 24rpx;
color: #999999;
line-height: 32rpx;
}
}
&-content {
padding: 24rpx 32rpx 20rpx;
border-bottom: 2rpx solid rgba(195, 195, 195, 0.3);
.content-wrap {
margin-bottom: 16rpx;
.title {
font-weight: 400;
font-size: 28rpx;
color: #999999;
width: 112rpx;
text-align: left;
white-space: nowrap;
}
.info {
font-weight: 400;
font-size: 28rpx;
color: #333333;
margin-left: 32rpx;
}
.linkman {
height: 64rpx;
background: #f5f7fa;
border-radius: 8rpx;
line-height: 64rpx;
padding: 0 16rpx;
box-sizing: border-box;
.phone-num {
color: #6e6e7a;
margin: 0 12rpx 0 8rpx;
}
}
}
}
&-footer {
height: 96rpx;
padding: 0 32rpx 0 24rpx;
box-sizing: border-box;
justify-content: space-between;
font-size: 28rpx;
line-height: 96rpx;
&-left {
position: relative;
.popover-main {
position: absolute;
top: -50rpx;
left: 0;
background: #4C4C4C;
height: 50rpx;
width: 200rpx;
.popover-item {
height: 50rpx;
line-height: 50rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.90);
padding: 0 12rpx;
}
&::before {
position: absolute;
top: 51rpx;
left: 23rpx;
content: '';
width: 0;
height: 0;
border-left: 10rpx solid transparent;
border-right: 10rpx solid transparent;
border-top: 10rpx solid #4C4C4C;
}
}
}
.follew-result {
color: #f0aa06;
}
.fail {
color: #999999 !important;
}
.record {
color: #5850FF;
text-align: right;
}
}
.icon-remove,
.icon-collect {
margin-right: 16rpx;
}
}
}
.flex {
display: flex;
}
.follow-icon {
width: 64rpx;
height: 56rpx;
vertical-align: middle;
}
.phone-icon {
width: 40rpx;
height: 40rpx;
vertical-align: middle;
}
\ No newline at end of file
<!--components/recordApply/recordApply.wxml-->
<view class="apply-wrap">
<block wx:for="{{dataList}}" wx:key="index">
<view class="apply-item">
<view class="apply-item-head">
<view class="title flex">
<view class="maxWidth">{{ item.merchantName }}</view>
</view>
<view class="type">主营: {{ item.carModel ? item.carModel : '--' }}</view>
</view>
<view class="apply-item-content">
<view class="content-wrap flex">
<view class="title">申请场景</view>
<view class="info">{{ item.businessScenario ? item.businessScenario : '--' }}</view>
</view>
<view class="content-wrap flex">
<view class="title">申请活动</view>
<view class="info">{{ item.productItems ? item.productItems : '--' }}</view>
</view>
<view class="content-wrap flex">
<view class="title">申请时间</view>
<view class="info">{{ item.createdTime }}</view>
</view>
<view class="content-wrap flex">
<view class="title">申请人</view>
<view class="info linkman flex" bindtap="callApply" data-phone="{{item.contactPhone}}">
<view style="max-width: 120rpx; overflow: hidden; white-space: nowrap">{{ item.contactName }}</view>
<span class="phone-num">{{ item.contactPhone }}</span>
<view>
<image mode="widthFix" class="phone-icon" webp src="{{IMGURL}}home/call.png?v={{img_version}}"></image>
</view>
</view>
</view>
</view>
<view class="apply-item-footer flex">
<view class="flex">
<view class="apply-item-footer-left {{item.followType == 0 ? ' icon-remove' : ' icon-collect'}}" bindtap="changeFollow" data-follow="{{item}}">
<image wx:if="{{item.followType != 0}}" mode="widthFix" class="follow-icon" webp src="{{IMGURL}}home/follow1.png?v={{img_version}}"></image>
<image wx:else mode="widthFix" class="follow-icon" webp src="{{IMGURL}}home/follow2.png?v={{img_version}}"></image>
<view class="popover-main" wx:if="{{index==0 && !isClick}}">
<view class="popover-item">点击可切换状态</view>
</view>
</view>
<view class="{{item.followType == 0 ? 'fail' : 'success'}} 'follew-result'">{{ item.followType == 0 ? '未跟进' : '已跟进' }}</view>
</view>
<view class="record" bindtap="getRecord" data-info="{{item}}">访问记录</view>
</view>
</view>
</block>
</view>
<Popup show="{{popShow}}" list="{{recordList}}" bindclosePop="closePop"></Popup>
\ No newline at end of file
// components/recordTable/recordTable.js
Component({
/**
* 组件的属性列表
*/
properties: {
recordData: {
type: Array,
observer(n) {
console.log(n);
this.setData({
tableData: n
})
}
}
},
/**
* 组件的初始数据
*/
data: {
tabList: ['访客','联系电话','最后访问时间'],
tableData: [],
popShow: false,
recordList: []
},
/**
* 组件的方法列表
*/
methods: {
selectRecord(e) {
console.log(e);
let dataIndex = e.currentTarget.dataset.id
let dataList = this.data.tableData[dataIndex].recordRelationList
console.log(dataList);
this.setData({
popShow: true,
recordList: dataList
})
},
closePop() {
this.setData({
popShow: false
})
}
}
})
{
"component": true,
"usingComponents": {
"Popup": "../../components/popup/popup"
}
}
\ No newline at end of file
/* components/recordTable/recordTable.wxss */
.table {
display: flex;
background: white;
border: 1rpx solid rgba(218, 217, 217, 1);
border-bottom: 0;
}
.table_left_column {
min-width: 150rpx;
height: auto;
display: flex;
flex-direction: column;
}
.left_col_item {
width: 100%;
height: 90rpx;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border-bottom: 1rpx solid #e5e5e5;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #5850FF;
}
.table_right_scroll_box {
display: flex;
white-space: nowrap;
overflow-x: scroll;
border-left: 1rpx solid #e5e5e5;
font-weight: normal;
/* border: 1px solid red; */
}
.flex_direction_column_item {
min-width: 200rpx;
display: inline-block;
/* border: 1px solid #000; */
}
.item_name {
min-width: 220rpx;
height: 90rpx;
display: flex;
align-items: center;
justify-content: center;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 26rpx;
color: #6C737A;
border-bottom: 1rpx solid #e5e5e5;
}
.item_price {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #414141;
}
.type-color {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 22rpx;
color: #2CCA74;
}
\ No newline at end of file
<!--components/recordTable/recordTable.wxml-->
<view class='table'>
<!-- 左侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{tabList}}" wx:for-index="index" wx:key="index">
<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'>
<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.lastTime}}</block>
</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>
<Popup show="{{popShow}}" list="{{recordList}}" bindclosePop="closePop"></Popup>
\ No newline at end of file
......@@ -22,12 +22,7 @@ Component({
* 组件的初始数据
*/
data: {
productTabList: [{
id: "0",
name: "scene1",
title: "车损升级",
url: "car4",
},
productTabList: [
{
id: "1",
name: "scene2",
......@@ -37,20 +32,26 @@ Component({
{
id: "2",
name: "scene3",
title: "膨胀金活动",
url: "car2",
title: "次新车转化",
url: "car7",
},
{
id: "3",
name: "scene4",
title: "众筹活动",
title: "售后众筹",
url: "car3",
},
{
id: "0",
name: "scene1",
title: "会员权益/升级",
url: "car4",
},
],
productSubscribTabList: [{
id: "0",
name: "scene1",
title: "客户沉淀",
title: "客户线上化",
url: "car5",
},
{
......@@ -59,6 +60,12 @@ Component({
title: "客户活跃",
url: "car6",
},
{
id: "2",
name: "scene3",
title: "膨胀金",
url: "car2",
},
],
productList: {
scene1: [{
......@@ -191,6 +198,17 @@ Component({
// isSelect: false,
// },
],
scene3: [{
nameZh: "膨胀金",
isSelect: false,
actNum: 2,
activeNavIdx: 0,
},
// {
// nameZh: "其他",
// isSelect: false,
// },
],
},
sceneNum: "",
sceneName: "",
......
......@@ -67,7 +67,7 @@
.product-item-title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 24rpx;
font-size: 23rpx;
color: #323436;
letter-spacing: 0;
text-align: center;
......
......@@ -10,9 +10,9 @@
"integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
"glsx-applet-component": {
"version": "1.0.41",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.41.tgz",
"integrity": "sha512-qUUoezxDiffK8POsr6X+2JxIxDQyNawy8fwtC+0Qgf259FLkrqCRh35MHqG/AxO4z4CDjjBuf9qe/Qvi83BIwg=="
"version": "1.0.50",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.50.tgz",
"integrity": "sha512-SQJAWt9wrbBSvZ1Agk6v7YziXxe/WjYqnHj9SQ/TWbwZCCRIFRexiohX5SqJ0cMltQME8lxj8zqQpJe2XNysCA=="
}
}
}
......@@ -5,7 +5,7 @@
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.0.41"
"glsx-applet-component": "^1.0.50"
},
"devDependencies": {},
"scripts": {
......
// packagesList/pages/accessRecord/accessRecord.js
import {
businessApi
} from "../../../api/api";
Page({
/**
* 页面的初始数据
*/
data: {
tabData: ['访问记录', '活动申请'],
tabIndex: 0,
applyData: [],
recordData: [],
recordPageData: {
pageNum: 1,
pageSize: 15,
},
applyPageData: {
pageNum: 1,
pageSize: 10,
}
},
// tab切换
selectTab(e) {
console.log(e);
this.setData({
tabIndex: e.currentTarget.dataset.index
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getCarRecord()
this.getApplyList()
},
// 获取访问记录
getCarRecord() {
let merchant = wx.$storage.get("scene").merchant || wx.$storage.get("scene").merchantId
let cardId = wx.$storage.get("scene").cardId
let params = {
pageNum: this.data.recordPageData.pageNum,
pageSize: this.data.recordPageData.pageSize,
merchant: merchant,
cardId: cardId
}
businessApi.cardRecordPage(params).then(res => {
console.log(res, '000');
if(res&&res.code == 0) {
let data = this.data.recordData.concat(res.data.data)
this.setData({
recordData: data,
recordDataNum: res.data.count
})
} else {
wx.showToast({
title: res.message || '系统异常',
icon: 'none'
})
}
})
},
// 获取访问申请
getApplyList() {
let merchant = wx.$storage.get("scene").merchant || wx.$storage.get("scene").merchantId
let cardId = wx.$storage.get("scene").cardId
let params = {
pageNum: this.data.applyPageData.pageNum,
pageSize: this.data.applyPageData.pageSize,
merchant: merchant,
cardId: cardId
}
businessApi.activityApplyList(params).then(res => {
console.log(res, '000');
if(res&&res.code == 0) {
let data = this.data.applyData.concat(res.data.data)
this.setData({
applyData: data,
applyDataNum: res.data.count
})
} else {
wx.showToast({
title: res.message || '系统异常',
icon: 'none'
})
}
})
},
// 修改申请记录跟进状态值
changeApplyData(e) {
console.log(e.detail);
const activityId = e.detail
this.data.applyData.map(item => {
if (item.activityId == activityId) {
item.followType = !item.followType
}
})
this.setData({
applyData: this.data.applyData
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
console.log(111);
if (this.data.tabIndex == 0) {
if (this.data.recordData.length>=this.data.recordDataNum) {
if (this.data.recordData.length==this.data.recordDataNum) {
wx.showToast({
title: '已经到最底了',
icon: 'none'
})
}
return
}
this.setData({
['recordPageData.pageNum']: this.data.recordPageData.pageNum+1
})
this.getCarRecord()
} else {
console.log(this.data.applyDataNum,this.data.applyData.length);
if (this.data.applyData.length>=this.data.applyDataNum) {
if (this.data.applyData.length==this.data.applyDataNum) {
wx.showToast({
title: '已经到最底了',
icon: 'none'
})
}
return
}
this.setData({
['applyPageData.pageNum']: this.data.applyPageData.pageNum+1
})
this.getApplyList()
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {
"RecordTable": "../../../components/recordTable/recordTable",
"RecordApply": "../../../components/recordApply/recordApply"
},
"navigationBarTitleText": "名片线索"
}
\ No newline at end of file
/* packagesList/pages/accessRecord/accessRecord.wxss */
.main-content {
background: #F5F5F7;
height: 100vh;
}
.page-top {
display: flex;
justify-content: space-around;
width: 100%;
height: 88rpx;
background: #FFFFFF;
margin-bottom: 12rpx;
.tab-title {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #666666;
line-height: 88rpx;
}
.tab-title-active {
font-weight: 500;
color: #5850FF;
}
.tab-title-active::after {
content:"";
display:block;//块级元素
width: 48rpx;
height: 6rpx;
background: #5850FF;
border-radius: 0.8rpx;
margin-left: 50%;
margin-top: -5rpx;
transform: translateX(-50%);
}
}
<!--packagesList/pages/accessRecord/accessRecord.wxml-->
<view class="main-content">
<view class="page-top">
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{index == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{index}}">
{{item}}
</view>
</view>
<block wx:if="{{tabIndex == 0}}">
<RecordTable recordData="{{recordData}}"></RecordTable>
</block>
<block wx:else>
<RecordApply applyData="{{applyData}}" bindchangeApplyData="changeApplyData"></RecordApply>
</block>
</view>
\ No newline at end of file
var measureList = Object.freeze([
{
name: '新车洽谈场景',
tips: '车损升级',
iconName: 'icon1',
product: [
{
name: '车损升级',
parentName: '新车洽谈场景',
tips: '车损升级',
value: '0-0',
typeIndex: '1.0',
isCheck: false,
rate: '0.5',
averagePrice: 1200,
flowCost: '0.4',
flowCostText: '40%',
serviceDividendRatio: '0.23'
}
]
},
{
name: '新车交付场景',
tips: '精品升级',
// name: '新车交付场景',
name: '精品升级',
// tips: '精品升级',
iconName: 'icon2',
product: [
{
name: '太阳膜升级',
parentName: '新车交付场景',
tips: '精品升级',
value: '1-0',
parentName: '精品升级',
// tips: '精品升级',
// value: '1-0',
typeIndex: '1.1',
isCheck: false,
rate: '0.55',
......@@ -40,15 +21,15 @@ var measureList = Object.freeze([
]
},
{
name: '0-6月',
name: '次新车转化',
iconName: 'icon3',
tips: '膨胀金活动',
// tips: '膨胀金活动',
product: [
{
name: '膨胀金活动-车衣',
parentName: '0-6月',
tips: '膨胀金活动',
value: '2-0',
parentName: '次新车转化',
// tips: '膨胀金活动',
// value: '2-0',
typeIndex: '1.2',
isCheck: false,
rate: '0.09',
......@@ -59,9 +40,9 @@ var measureList = Object.freeze([
},
{
name: '膨胀金活动-改色膜',
parentName: '0-6月',
tips: '膨胀金活动',
value: '2-1',
parentName: '次新车转化',
// tips: '膨胀金活动',
// value: '2-1',
typeIndex: '1.2',
isCheck: false,
rate: '0.06',
......@@ -73,16 +54,16 @@ var measureList = Object.freeze([
]
},
{
name: '6个月以上',
name: '售后众筹',
iconName: 'icon4',
tips: '众筹活动',
// tips: '众筹活动',
product: [
{
name: '360全景导航',
parentName: '6个月以上',
tips: '众筹活动',
parentName: '售后众筹',
// tips: '众筹活动',
typeIndex: '1.3',
value: '3-0',
// value: '3-0',
isCheck: false,
rate: '0.015',
averagePrice: 2680,
......@@ -92,9 +73,9 @@ var measureList = Object.freeze([
},
{
name: 'AR导航',
parentName: '6个月以上',
tips: '众筹活动',
value: '3-1',
parentName: '售后众筹',
// tips: '众筹活动',
// value: '3-1',
typeIndex: '1.3',
isCheck: false,
rate: '0.015',
......@@ -105,9 +86,9 @@ var measureList = Object.freeze([
},
{
name: '氛围灯',
parentName: '6个月以上',
tips: '众筹活动',
value: '3-2',
parentName: '售后众筹',
// tips: '众筹活动',
// value: '3-2',
typeIndex: '1.3',
isCheck: false,
rate: '0.015',
......@@ -118,9 +99,9 @@ var measureList = Object.freeze([
},
{
name: '座椅通风',
parentName: '6个月以上',
tips: '众筹活动',
value: '3-3',
parentName: '售后众筹',
// tips: '众筹活动',
// value: '3-3',
typeIndex: '1.3',
isCheck: false,
rate: '0.01',
......@@ -131,9 +112,9 @@ var measureList = Object.freeze([
},
{
name: '智能香薰',
parentName: '6个月以上',
tips: '众筹活动',
value: '3-4',
parentName: '售后众筹',
// tips: '众筹活动',
// value: '3-4',
typeIndex: '1.3',
isCheck: false,
rate: '0.015',
......@@ -143,7 +124,27 @@ var measureList = Object.freeze([
serviceDividendRatio: '0.24'
}
]
}
},
{
name: '会员权益/升级',
// tips: '车损升级',
iconName: 'icon1',
product: [
{
name: '车损升级',
parentName: '会员权益/升级',
// tips: '车损升级',
// value: '0-0',
typeIndex: '1.0',
isCheck: false,
rate: '0.5',
averagePrice: 1200,
flowCost: '0.4',
flowCostText: '40%',
serviceDividendRatio: '0.23'
}
]
},
])
export default {
......
......@@ -49,11 +49,16 @@ Page({
},
// 选择产品
checkProduct(e) {
const value = e.target.dataset.value
const index = +value.split('-')[0]
const productIndex = +value.split('-')[1]
const name = `measureList[${index}].product[${productIndex}].isCheck`
const val = this.data.measureList[index].product[productIndex].isCheck
// const value = e.target.dataset.value
// const index = +value.split('-')[0]
// const productIndex = +value.split('-')[1]
// const name = `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)
this.setData({
[name]: !val,
......
......@@ -19,7 +19,8 @@
<view wx:if="{{i.tips}}" class="title-tip">{{i.tips}}</view>
</view>
<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>
{{j.name}}</view>
</view>
......
......@@ -26,7 +26,8 @@ Page({
productData,
proInfo: {},
isShare: false, //是否是分享出去的
actNum: 0,
actNum: -1,
activeNavIdx: 0,
tabAct: 0,
showLeft: false, //更多按钮显示的内容
scrollTop: 0,
......@@ -47,7 +48,7 @@ Page({
[trackData.CARBEAUTY, trackData.SEATVENTILATE, trackData.ARNAVIGATION, trackData.LIGHT, trackData.NAVIGATIONARROUND, trackData.LOSSPGASE],
[trackData.EXPANGOLD]
],
systemTrackList: [trackData.SYSUSER, trackData.SYSNUMBER, trackData.SYSCAR],
systemTrackList: [trackData.SYSUSER, trackData.SYSNUMBER, trackData.SYSCAR,trackData.EXPANGOLD],
isLoadding: true
},
// 计算属性
......@@ -89,9 +90,9 @@ Page({
pageName: name,
proName
})
if (name == '增值转化') {
if (name == '营销增值服务') {
wx.$Track.sendTrack(this.data.trackList[actNum][activeNavIdx])
} else if (name == '系统订阅') {
} else if (name == '客户数字化') {
wx.$Track.sendTrack(this.data.systemTrackList[activeNavIdx])
}
setTimeout(() => {
......@@ -170,9 +171,9 @@ Page({
}
})
this.getCardDetail()
if (name == '增值转化') {
if (name == '营销增值服务') {
wx.$Track.sendTrack(this.data.trackList[actNum][activeNavIdx])
} else if (name == '系统订阅') {
} else if (name == '客户数字化') {
wx.$Track.sendTrack(this.data.systemTrackList[activeNavIdx])
}
setTimeout(() => {
......
......@@ -35,7 +35,7 @@ Page({
trackList: [trackData.CARDETAIL, trackData.FINEDETAIL, trackData.CUSTOMEDETAIL, trackData.CROWDDETAIL, trackData.EXPANDETAIL],
cardInfo: {},
hasPhoneNumber: false,
scenarList: ['车损升级', '精品升级', '客户线上化', '众筹活动', '膨胀金活动']
scenarList: ['会员权益/升级', '精品升级', '次新车转化', '售后众筹', '续保膨胀金']
},
// 计算属性
computed: {
......
......@@ -52,9 +52,9 @@ Page({
this.setData({
videoItem: res
})
if (name == '增值转化') {
if (name == '营销增值服务') {
wx.$Track.sendTrack(this.data.trackList[scenIndex][videoIndex])
} else if (name == '系统订阅') {
} else if (name == '客户数字化') {
wx.$Track.sendTrack(this.data.systemTrackList[leftMenuIndex][videoIndex])
}
setTimeout(() => {
......@@ -77,9 +77,9 @@ Page({
videoItem: res,
isLoadding: false
})
if (res.name == '增值转化') {
if (res.name == '营销增值服务') {
wx.$Track.sendTrack(this.data.trackList[res.scenIndex][res.index])
} else if (res.name == '系统订阅') {
} else if (res.name == '客户数字化') {
wx.$Track.sendTrack(this.data.systemTrackList[res.leftMenuIndex][res.index])
}
setTimeout(() => {
......@@ -128,12 +128,12 @@ Page({
chooseVideo(e) {
const {index, info: {name}} = e.detail
const {videoItem} = this.data
if (videoItem.name == '系统订阅') {
if (videoItem.name == '客户数字化') {
this.setData({
'videoItem.index': index
})
wx.$Track.sendTrack(this.data.systemTrackList[videoItem.leftMenuIndex][index])
} else if (videoItem.name == '增值转化') {
} else if (videoItem.name == '营销增值服务') {
this.setData({
'videoItem.index': index
})
......
......@@ -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 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 = [
{
videoUrl: `${videoBaseUrl}video/digital_card_30s.mp4`,
......@@ -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 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 = [
{
videoUrl: `${videoBaseUrl}video/solar.mp4`,
......@@ -136,6 +138,7 @@ const scenario_1 = [
sceneImgs: sceneImgs1,
productImgs: productImgs1,
"sceneCode":"SC002",
sceneid: 1,
productList: [
{
id: 0,
......@@ -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 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 = [
{
src: `${IMG_URL}index/poster/poster3-0.webp`,
......@@ -188,6 +192,7 @@ const scenario_2 = [
sceneImgs: sceneImgs2,
productImgs: productImgs2,
"sceneCode":"SC003",
sceneid: 2,
productList: [
{
id: 0,
......@@ -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 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 = [
{
videoUrl: `${videoBaseUrl}video/car_beauty.mp4`,
......@@ -305,6 +311,7 @@ const scenario_3 = [
{
name: '美容类',
"sceneCode":"SC004",
sceneid: 3,
productList: [
{
id: 0,
......@@ -331,6 +338,8 @@ const scenario_3 = [
},
{
name: '轻改类',
"sceneCode":"SC004",
sceneid: 0,
productList: [
{
id: 1,
......@@ -347,7 +356,8 @@ const scenario_3 = [
productCode: 'PC006',
productName: '座椅通风',
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,
......@@ -364,7 +374,8 @@ const scenario_3 = [
productCode: 'PC007',
productName: 'AR导航',
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,
......@@ -381,7 +392,8 @@ const scenario_3 = [
productCode: 'PC008',
productName: '氛围灯',
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,
......@@ -398,7 +410,8 @@ const scenario_3 = [
productCode: 'PC009',
productName: '360全景导航',
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,
......@@ -415,7 +428,8 @@ const scenario_3 = [
productCode: 'PC009',
productName: '智能香氛系统',
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,
......@@ -483,7 +497,7 @@ const senceData = [
},
{
id: 4,
tabname: '膨胀金活动',
tabname: '续保膨胀金',
banner: `${IMG_URL}index/banner/banner6.png`,
sceneImgs: sceneImgs4
}
......
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 IMG_URL2 = 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const subscriptionBannerUrl = IMG_URL2 + 'banner/banner4.webp'
......@@ -32,19 +33,34 @@ const videoList1 = [
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 = [
{
name: '客户沉淀',
name: '客户线上化',
//场景详情图片
// sceneImgs: sceneImgs5,
// 产品详情图片
productImgs: productImgs0,
sceneid: 0,
productList: [
{
id: 0,
sceneid: 0,
currentIndex: 0,
img: 'product-img1',
proName: '客户活跃代运营',
proName: '私域用户代运营',
price: '100',
profit: '1200000',
type: 'service',
......@@ -75,6 +91,7 @@ const subscriptionSystemData = [
},
{
id: 1,
sceneid: 0,
currentIndex: 1,
img: 'product-img1',
proName: '定保数字化招揽',
......@@ -114,11 +131,13 @@ const subscriptionSystemData = [
name: '客户活跃',
//场景详情图片
sceneImgs: sceneImgs5,
sceneid: 1,
// 产品详情图片
productImgs: productImgs0,
productList: [
{
id: 2,
sceneid: 1,
currentIndex: 0,
img: 'product-img1',
proName: '事故车救援服务',
......@@ -155,8 +174,30 @@ const subscriptionSystemData = [
// posterList: posterList0
},
{
name: '续保膨胀金',
sceneid:2,
//场景详情图片
sceneImgs: sceneImgs4,
// 产品详情图片
productImgs: productImgs4,
productList: [
{
id: 3,
sceneid: 2,
currentIndex: 0,
proName: '膨胀金',
prodImg: `${IMG_URL}index/prod2/prod4-0.png`,
tabList: ['项目介绍', '活动方案', '销售场景', '合作案例', '合作说明', 'FAQ'],
sceneImgs: sceneImgs4
}
],
videoList: videoList4
// posterList: posterList0
},
{
name: '数字化转型案例',
videoList: videoList0.concat(videoList1)
sceneid: 3,
videoList: videoList0.concat(videoList1).concat(videoList4)
}
]
......
......@@ -12,6 +12,7 @@ import { commonMixin } from '../../../mixins/index'
import { trackData } from '../../../utils/data'
import { senceData, productData } from './constant/senceData'
import { subscriptionBannerUrl, subscriptionSystemData } from './constant/systemData'
import {scenceList} from "./constant/data"
let leftMenuIndex = 0
Page({
behaviors: [commonMixin],
......@@ -19,14 +20,15 @@ Page({
* 页面的初始数据
*/
data: {
isStaff: false,
tabList: [
{
name: '增值转化',
name: '营销增值服务',
icon: 'icon-product',
icon1: 'icon-product1'
},
{
name: '系统订阅',
name: '客户数字化',
icon: 'icon-measure',
icon1: 'icon-measure'
},
......@@ -55,7 +57,7 @@ Page({
// 是否授权手机号
hasPhoneNumber: false,
curTab: [trackData.HOME, trackData.SYSTEM_SUB, trackData.COMPANY, trackData.VIDEO],
secondTab: [trackData.CARDAMAGE, trackData.FINE, trackData.CUSTOMERSONLINE, trackData.CROWDFUNDING, trackData.EXPANSIONGOLD],
secondTab: [trackData.FINE, trackData.CUSTOMERSONLINE, trackData.CROWDFUNDING, trackData.CARDAMAGE],
shareDisabled: true,
autoplay: true,
// 增值转化模块
......@@ -64,7 +66,8 @@ Page({
activityList: [],
subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
subscriptionSystemData: Object.freeze(subscriptionSystemData),
showCooperate: false
showCooperate: false,
scenceList: scenceList,
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
},
......@@ -103,6 +106,16 @@ Page({
// 更新手机号
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) {
this.setData({
hasPhoneNumber: true
......@@ -164,7 +177,7 @@ Page({
scenIndex: isNaN(scenIndex) ? 99 : scenIndex,
name
}
if (name == '系统订阅') {
if (name == '客户数字化') {
obj.leftMenuIndex = leftMenuIndex
}
wx.$router.go('/packagesList/pages/videoDetal/videoDetal', obj)
......@@ -208,7 +221,8 @@ Page({
.then(({ data }) => {
if (data && data.phone) {
this.setData({
hasPhoneNumber: true
hasPhoneNumber: true,
phoneNumber: data.phone
})
this.checkCooperate()
}
......@@ -218,9 +232,9 @@ Page({
wx.hideShareMenu({
menus: ['shareAppMessage']
})
this.setData({
productData: this.addAll(this.data.productData)
})
// this.setData({
// productData: this.addAll(this.data.productData)
// })
},
addAll(data) {
......@@ -279,6 +293,15 @@ Page({
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
})
}
}
},
/**
......@@ -473,6 +496,13 @@ Page({
this.setShareInfo(cardInfo)
}
)
console.log(cardInfo.staffPhone,this.data.phoneNumber);
if (cardInfo.staffPhone === this.data.phoneNumber) {
// wx.$storage.set('isStaff', 'true')
this.setData({
// isStaff: true
})
}
})
},
......
......@@ -97,4 +97,4 @@ page {
height: 300rpx;
margin-bottom: 50rpx;
}
}
\ No newline at end of file
}
......@@ -6,7 +6,7 @@
<loadding wx:if="{{!cardInfo}}"></loadding>
<block wx:if="{{!!cardInfo}}">
<view class="main-box">
<user-info shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}" />
<user-info isStaff="{{isStaff}}" shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}" />
<view class="main-bottom">
<!-- tab介绍 -->
<view class="tab-list">
......@@ -21,10 +21,11 @@
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<gl-scenario currentScenIndex="{{3}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<!-- <gl-scenario currentScenIndex="{{1}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" /> -->
<gl-scenario discoverIndex="{{2}}" currentScenIndex="{{3}}" productData="{{productData}}" list="{{scenceList}}" senceData="{{senceData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" activityList="{{activityList}}" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block>
<block wx:if="{{curTabIndex == 1}}">
<gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" data-name="系统订阅" bind:videoClick="videoClick" />
<gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" data-name="客户数字化" bind:videoClick="videoClick" />
</block>
<block wx-if="{{curTabIndex == 2}}">
<company-introduce autoplay="{{autoplay}}" />
......@@ -44,7 +45,7 @@
<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}}" />
</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" />
</block>
\ No newline at end of file
......@@ -48,8 +48,8 @@
"scene": null
},
{
"name": "",
"pathName": "packagesList/pages/videoDetal/videoDetal",
"name": "访问记录",
"pathName": "packagesList/pages/accessRecord/accessRecord",
"query": "",
"launchMode": "default",
"scene": null
......
......@@ -23,5 +23,5 @@ export const STORAGE_OBJECTkEY = {
export const IMG_VERSION = () =>{
const accountInfo = wx.getAccountInfoSync()
return accountInfo.miniProgram.version || '1.0.0'
return accountInfo.miniProgram.version || '1.0.1'
}
\ No newline at end of file
const trackData = {
HOME: {
pageKey: 18,
pageName: "增值转化"
pageName: "营销增值服务"
},
SYSTEM_SUB: {
pageKey: 19,
pageName: "系统订阅"
pageName: "客户数字化"
},
COMPANY: {
pageKey: 0,
......@@ -81,7 +81,7 @@ const trackData = {
},
CARDAMAGE: {
pageKey: 20,
pageName: "车损升级"
pageName: "会员权益/升级"
},
FINE: {
pageKey: 21,
......@@ -89,19 +89,19 @@ const trackData = {
},
CUSTOMERSONLINE: {
pageKey: 22,
pageName: "客户线上化"
pageName: "次新车转化"
},
CROWDFUNDING: {
pageKey: 23,
pageName: "众筹活动"
pageName: "售后众筹"
},
EXPANSIONGOLD: {
pageKey: 24,
pageName: "膨胀金活动"
pageName: "续保膨胀金"
},
CARDETAIL: {
pageKey: 25,
pageName: "车损升级场景详情页"
pageName: "会员权益/升级场景详情页"
},
FINEDETAIL: {
pageKey: 26,
......@@ -109,15 +109,15 @@ const trackData = {
},
CUSTOMEDETAIL: {
pageKey: 27,
pageName: "客户线上化场景详情页"
pageName: "次新车转化场景详情页"
},
CROWDDETAIL: {
pageKey: 28,
pageName: "众筹活动场景详情页"
pageName: "售后众筹场景详情页"
},
EXPANDETAIL: {
pageKey: 29,
pageName: "膨胀金活动场景详情页"
pageName: "续保膨胀金场景详情页"
},
EQUITYVIDEO0: {
pageKey: 30,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!