Commit ba22e404 by 前端

更新代码

1 parent 7afdcdf5
...@@ -9,6 +9,7 @@ import router from './router/index.js' ...@@ -9,6 +9,7 @@ import router from './router/index.js'
// 判断小程序是否需要更新 // 判断小程序是否需要更新
import getUpdateManager from './utils/lib/wxUpdateManager' import getUpdateManager from './utils/lib/wxUpdateManager'
import util from './utils/util.js' import util from './utils/util.js'
import wxApi from './utils/utils_wx'
// 实例化对象存储 // 实例化对象存储
import { Storage } from '~/utils/cache/storage' import { Storage } from '~/utils/cache/storage'
const $Storage = new Storage() const $Storage = new Storage()
...@@ -23,6 +24,7 @@ App({ ...@@ -23,6 +24,7 @@ App({
wx.$router = router wx.$router = router
wx.$modal = this.showModal wx.$modal = this.showModal
wx.$util = util wx.$util = util
wx.$api = wxApi
wx.$eventbus = eventbus wx.$eventbus = eventbus
let userInfo = util.getStorageSync('dj_boutique_user_info') let userInfo = util.getStorageSync('dj_boutique_user_info')
......
...@@ -102,6 +102,16 @@ ...@@ -102,6 +102,16 @@
"pages/newOrder/newOrder", "pages/newOrder/newOrder",
"pages/additionRecordOrder/additionRecordOrder" "pages/additionRecordOrder/additionRecordOrder"
] ]
},
{
"root": "subvehicleConversion",
"name": "subvehicleConversion",
"pages": [
"pages/index/index",
"pages/activityManagement/activityManagement",
"pages/visitor/visitor",
"pages/order/order"
]
} }
], ],
"usingComponents": { "usingComponents": {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 3 let index = 1
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -16,6 +16,12 @@ const sceneList = [ ...@@ -16,6 +16,12 @@ const sceneList = [
sceneDesc: '门店存量客户众筹下单', sceneDesc: '门店存量客户众筹下单',
sceneType: 3, sceneType: 3,
actived: false actived: false
},
{
sceneName: '次新车转化',
sceneDesc: '次新车用户领取套餐包转化',
sceneType: 4,
actived: false
} }
] ]
...@@ -23,7 +29,8 @@ const sceneList = [ ...@@ -23,7 +29,8 @@ const sceneList = [
const pageUrl = { const pageUrl = {
0: 'packageEquity.equityPage', 0: 'packageEquity.equityPage',
1: 'tabIndex.index', 1: 'tabIndex.index',
3: 'packageCrowdFunding.paidOrder' 3: 'packageCrowdFunding.paidOrder',
4: 'subvehicleConversion.index'
} }
export default { export default {
......
...@@ -33,7 +33,7 @@ Page({ ...@@ -33,7 +33,7 @@ Page({
let { sceneList } = this.data let { sceneList } = this.data
let userInfo = wx.$util.getUserInfo() || {} let userInfo = wx.$util.getUserInfo() || {}
let openSceneArr = userInfo?.openSceneArr || [] let openSceneArr = userInfo?.openSceneArr || []
openSceneArr.push(4)
this.setData({ this.setData({
timeState: wx.$util.getTimeState() timeState: wx.$util.getTimeState()
}) })
......
...@@ -291,9 +291,37 @@ ...@@ -291,9 +291,37 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "次新车转化",
"pathName": "subvehicleConversion/pages/index/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "次-活动管理",
"pathName": "subvehicleConversion/pages/activityManagement/activityManagement",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "我的访客",
"pathName": "subvehicleConversion/pages/visitor/visitor",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "我的订单",
"pathName": "subvehicleConversion/pages/order/order",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
}, },
"libVersion": "2.20.2" "libVersion": "2.27.3"
} }
\ No newline at end of file \ No newline at end of file
{
"component": true
}
\ No newline at end of file \ No newline at end of file
/* packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.wxss */
.layout {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 998;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.bg {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
background: rgba(0, 0, 0, .8);
}
.poster {
box-sizing: border-box;
width: 500rpx;
max-height: 68%;
// height: 68%;
// height: 1108rpx;
overflow: scroll;
// smoo
// overflow: scroll;
border-radius: 8rpx 8rpx 0 0;
}
.pd {
padding: 32rpx;
background-color: #fff;
}
.btn {
display: flex;
align-items: center;
justify-content: center;
width: 500rpx;
height: 90rpx;
background: #F7F8FA;
border-radius: 0 0 12rpx 12rpx;
font-weight: 500;
font-size: 32rpx;
color: #3666FE;
margin-top: -2rpx;
.icon {
width: 40rpx;
height: 40rpx;
margin-right: 12rpx;
}
}
.tips {
margin: 40rpx 80rpx 0;
font-size: 24rpx;
color: #FFFFFF;
line-height: 36rpx;
.underline {
font-weight: 600;
text-decoration: underline;
}
}
}
.titleTime {
height: 64rpx;
line-height: 64rpx;
width: 100%;
// background-color: rgba(54, 102, 254, 0.08);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: #fff;
text-align: center;
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{show}}">
<!-- catchtouchmove="noScroll" catchtouchmove="noScroll" -->
<view class="layout">
<view class="bg" bindtap="hide"/>
<!-- style="height:{{height}}" -->
<view class="poster {{item.type == 'warReport'?'pd':''}}">
<block wx:if="{{scrollImg}}">
<scroll-view scroll-y scroll-x="false" style="height: 100%">
<!-- mode="widthFix" -->
<image
bindload="successOnload"
src="{{poster}}"
mode="widthFix"
show-menu-by-longpress
bindlongpress="longpress"/>
</scroll-view>
<!-- </view> -->
</block>
<block wx:else>
<!-- <view class="poster {{item.type == 'warReport'?'pd':''}}"> -->
<!-- mode="widthFix" -->
<scroll-view scroll-y scroll-x="false" style="height: 100%">
<image
bindload="successOnload"
src="{{poster}}"
mode="widthFix"
show-menu-by-longpress
bindlongpress="longpress"/>
</scroll-view>
<!-- </view> -->
`
</block>
</view>
<view class="btn">
<!-- <glsx-image src="output/longtap.png" class="icon" />-->
<!-- <image src="output/longtap.png" class="icon"/>-->
长按图片转发
</view>
<view wx:if="{{item.type == 'warReport'}}" class="titleTime">最近更新时间: {{item.updatedTime}}</view>
<view wx:else class="tips">
温馨提示:您可以转发到门店群,门店员工通过扫描海报二维码可以注册登录
<text class="underline">门店助手</text>
小程序,执行活动任务,转发活动链接促成订单。
</view>
</view>
</block>
<!-- <authorize scopeType="writePhotosAlbum" bindfail="authFail" show="{{showAuth}}" isShowCheck="{{false}}" id="auth" /> -->
// subvehicleConversion/components/activityList/activityList.js
Component({
/**
* 组件的属性列表
*/
properties: {
navBarHeight: Number
},
/**
* 组件的初始数据
*/
data: {
searchObj: {},
activityName: '',
list: [{
activityImg: '',
activityName: '111',
startTime: '2222',
endTime: '11',
activityStatus: 1
}],
tabIndex: 0,
nothing: false,
pageSize: 6,
pageNum: 1,
total: 0,
tabList: ['全部', '进行中', '待开始', '已结束'],
crowdPosterItem: {}
},
/**
* 组件的方法列表
*/
methods: {
search() {
this.setData({
pageNum: 1,
nothing: false,
total: 0
})
// this.getActivityList(true)
},
handleReset() {
this.setData({
activityName: ''
})
this.search()
},
input(e) {
let {value} = e.detail
this.setData({
activityName: value
})
},
clickVisitor() {
wx.$router.go('visitor')
},
clickOrder() {
wx.$router.go('order')
},
shareActivity() {
let query = {
id: item.id,
exclusiveUuid: userStorage.uuid,
merchantId: userStorage.merchantId,
isExclusive: 1,
shareStaffUuid: userStorage.uuid,
form: 'task',
shareStaffType: 3,
notIntercept: true
}
// wx.$router.go('/packageShopmall/packageExpandedGold/pages/activity/index/index', query)
wx.navigateToMiniProgram({
appId: 'wxe10067a63c1856ac',
path: `/packageShopmall/packageExpandedGold/pages/activity/index/index${query}`,
envVersion: 'trial',
success(res) {
// 打开成功
}
})
},
// async longtouch(e) {
// // console.log('长按海报', e)
// let { activityId } = e.detail
// const res = await outputApi.reportPosterTrack({
// activityId
// })
// wx.$eventbus.emit('clientRefresh')
// this.getSceneProStatus(this.data.sceneCodeList[this.findSceneIdx()])
// },
// 母链分享
// posterTrack() {
// wx.$eventbus.emit('clientRefresh')
// this.getSceneProStatus(this.data.sceneCodeList[this.findSceneIdx()])
// },
download() {
const item = {
activityId: 10612,
activityName: "满20减20的优惠活动",
activityStatus: 2,
activityUrl: "https://scrm.test.glsx.com.cn/scrm-wx-merchant-activity/#/crowdfunding?merchantId=44210895&id=10612&urlParam={'refresh':true}",
conversionRate: 0,
endTime: "2023-12-31 23:59:59",
interDays: 90,
merchantStaffCount: 88,
orderCount: 0,
posterUrl: "https://scrm.test.glsx.com.cn/group1/M00/04/B7/wKgD3mRhnvCAa-Y3AAA0kK6KVdM152.png",
predictAmount: 450000,
realAmount: 0,
realEndTime: null,
realStartTime: "2023-02-15 00:00:00",
realTime: "2023.02.15 00:00 - 已开始90天",
reportDate: "2023-05-14 18:14:30",
shareRate: 1,
shareStatus: 1,
startTime: "2023-02-15 00:00:00",
suggestList: ["低于200个独立访客,触达车主的数量太少,建议与4S店关键人沟通注册员工的转发执行情况", "点击转化率低于5%,建议调整该产品的品类话术和营销内容"],
suggestTxt: "距离活动结束剩余231天,低于200个独立访客,点击转化率低于5%。",
suggestTxtList: ["距离活动结束剩余231天", "低于200个独立访客", "点击转化率低于5%"],
time: "2023.02.15 00:00 - 2023.12.31 23:59",
toEndDays: 231,
visitCount: 0,
showStaffList: [{
activityId: 10612,
browseCount: 0,
dealCount: 0,
departmentName: "售后部",
goodReportDate: null,
goodUrl: null,
imageUrl: null,
merchantId: 44210895,
shareCount: 0,
shareName: "小陆-支持",
shareType: 1,
shareUuid: "a46c18e7c6884a03bf85562dae0830c0",
totalAmount: 0
}],
staffList: [{
activityId: 10612,
browseCount: 0,
dealCount: 0,
departmentName: "其他",
goodReportDate: null,
goodUrl: null,
imageUrl: null,
merchantId: 44210895,
shareCount: 0,
shareName: "叶立庆",
shareType: 1,
shareUuid: "77936e318e9844e4af0b099c7ccc98e4",
totalAmount: 0
}]
}
this.setData({
crowdPosterItem: item,
// isShowTip: false
})
},
// async download(e) {
// const { item } = e.currentTarget.dataset
// if (item.mockPoster) {
// item.posterUrl = item.mockPoster
//
// this.setData({
// crowdPosterItem: item,
// isShowTip: false
// })
// return
// }
// wx.$api.showLoading('加载中...')
// outputApi
// .getPosterUrl({
// id: item.activityId
// })
// .then(res => {
// item.posterUrl = res
//
// this.setData({
// crowdPosterItem: item,
// isShowTip: false
// })
// })
// .catch(() => {
// wx.$api.showToast('下载海报失败')
// })
// // }
// },
}
})
.headerBar {
position: relative;
width: 100%;
height: 212rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/equityBg.png');
background-size: 100% 100%;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.headerBar .totalCount {
box-sizing: border-box;
width: 100%;
display: flex;
align-items: center;
box-sizing: border-box;
padding: 16rpx 32rpx 32rpx;
font-size: 24rpx;
color: #6C6C70;
}
.headerBar .totalCount .item {
/* display: flex; */
box-sizing: border-box;
position: relative;
height: 144rpx;
width: 33%;
background: #FFFFFF;
box-shadow: 0 6rpx 24rpx 0 #caccdb80;
border-radius: 16rpx;
padding: 20rpx 24rpx;
margin-right: 16rpx;
}
.totalCount .total-icon {
position: absolute;
top: 2rpx;
right: 4rpx;
width: 88rpx;
height: 88rpx;
}
.headerBar .totalCount .item:last-child {
margin: 0;
}
.headerBar .totalCount .num {
height: 64rpx;
line-height: 64rpx;
font-size: 48rpx;
color: #222222;
font-weight: 600;
margin-top: 8rpx;
}
/* .headerBar .totalCount .item {
margin: 25rpx 0 25rpx;
} */
.headerBar .totalCount .company {
font-size: 48rpx;
}
.headerBar .totalCount .line {
width: 2rpx;
height: 116rpx;
background: #ffffff59
}
.headerBar .totalCount .countNum {
font-size: 34rpx;
font-weight: 500;
margin-left: 15rpx;
}
.headerBar .totalCount .labelStr {
margin-right: 5rpx;
}
.headerBar .totalCount .right {
margin-left: 40rpx;
}
.main {
margin-top: -20rpx;
background: #FFFFFF;
border-radius: 48rpx 48rpx 0 0;
overflow: hidden;
height: calc(100% - 192rpx);
}
.to-box {
position: sticky;
left: 0;
z-index: 2;
/* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10); */
}
.search-box {
width: 100%;
padding: 32rpx 32rpx 0;
display: flex;
background-color: #fff;
position: sticky;
top: 0;
left: 0;
z-index: 9;
box-sizing: border-box;
}
.search-box .search-input {
background: #F7F8FA;
border-radius: 38rpx;
width: 100%;
height: 72rpx;
display: flex;
align-items: center;
}
.search-box .search-input .search-icon {
width: 28rpx;
height: 28rpx;
margin: 0 10rpx 0 26rpx;
}
.search-box .search-input .search-clear {
width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx;
}
.search-box .search-input .input {
font-size: 28rpx;
width: calc(100% - 136rpx);
}
.input-placeholder {
color: rgba(200, 201, 204, .89);
}
.search-box .search {
width: 144rpx;
height: 100%;
color: #666;
box-sizing: border-box;
padding: 0 24rpx;
}
.search-box .search .text-center {
font-size: 24rpx;
/* background-color: #f7f7f7; */
border-radius: 12rpx;
width: 100%;
height: 50rpx;
color: #888;
}
.search-box .search .text-center .search-filter {
margin-left: 6rpx;
width: 24rpx;
height: 24rpx;
}
.list{
box-sizing: border-box;
}
.empty{
width: 100%;
height: 20rpx;
background-color: transparent;
}
.activity-box {
margin: 0 20rpx 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx;
z-index: 100;
}
.activity-box .activity-name {
display: flex;
padding-left: 35rpx;
padding-bottom: 20rpx;
/*justify-content: space-around;*/
}
.activity-box .activity-name .activity-avatar {
width: 150rpx;
height: 150rpx;
}
.activity-box .activity-name .activity-status {
width: 70%;
display: flex;
justify-content: space-between;
padding-top: 15rpx;
margin: 0rpx 20rpx;
}
.activity-box .activity-name .activity-status .left{
width: calc(100% - 100rpx);
}
.activity-box .activity-name .activity-status .name {
font-size: 30rpx;
width: 300rpx;
}
.activity-box .activity-name .activity-status .time {
font-size: 20rpx;
color: #9B9B9E;
margin-top: 25rpx;
display: flex;
}
.activity-box .activity-name .activity-status .status {
font-size: 30rpx;
/* padding-left: 60rpx; */
}
.status-green {
color: #4AC18E;
}
.status-red {
color: #EB4E4E;
}
.status-yellow {
color: #FF9D0A;
}
.activity-box .details-list{
background:#F2F7FE ;
border-radius: 10px;
padding: 20rpx;
margin: 15rpx;
display: flex;
justify-content: space-around;
text-align: center;
}
.activity-box .details-list .details .details-num{
font-weight: 600;
}
.activity-box .details-list .details .details-text{
font-size: 24rpx;
color: #5A6066;
}
.activity-box .activity-menu {
margin-top: 15rpx;
/*padding: 0 20rpx;*/
width: 100%;
display: flex;
justify-content: space-around;
}
.activity-box .activity-menu .orderListBtn {
color: #3582EE;
/*background: #3582EE;*/
width: 150rpx;
height: 46rpx;
font-size: 24rpx;
text-align: center;
line-height: 46rpx;
border:1px solid #3582EE;
border-radius: 16px;
}
.activity-box .activity-list .activity-pay {
display: flex;
align-items: center;
}
.activity-box .activity-list .activity-pay .havePaid {
display: flex;
}
.activity-box .activity-list .activity-pay .havePaid .havePaidSum {
color: #FF9D0A;
}
.activity-box .activity-list .activity-pay .unpaid {
display: flex;
margin-left: 25rpx;
}
.activity-box .activity-list .activity-pay .unpaid .unpaidNum {
color: #EB4E4E;
}
.no-data {
text-align: center;
padding-top: 128rpx;
}
.no-data-img {
width: 160rpx;
height: 160rpx;
}
.list-nothing,
.list-not {
text-align: center;
}
Component({
properties: {
navBarHeight: Number
},
data: {
productionValueList: [
{title: '当日访客', num: '2', imgName: 'dayVisitor'},
{title: '当日订单', num: '3', imgName: 'dayOrder'},
{title: '当日产值', num: '4', imgName: 'dayValue'},
{title: '累计访客', num: '5', imgName: 'cumulativeCustomer'},
{title: '累计订单', num: '6', imgName: 'cumulativeOrder'},
{title: '累计产值', num: '1', imgName: 'cumulativeOutputValue'}
],
businessDevelopmentList: [
{title: '调查问卷', imgName: 'questionnaire', isOpen: false},
{title: '营销素材', imgName: 'marketingMaterial', isOpen: false},
{title: '业务申请', imgName: 'businessApplication', isOpen: false},
],
exhibitionToolsList: [
{title: '活动管理', imgName: 'managementOfActivities', isOpen: true,path:'activityManagement'},
{title: '话术库', imgName: 'speechLibrary', isOpen: false},
]
},
methods: {
clickTap(e) {
const {item} = e.currentTarget.dataset
const {isOpen,path} = item
if (!isOpen) {
wx.showToast({
title: `活动暂未开通\r\n敬请期待`,
// icon:'success'
image:'../../images/funnel.png'
})
return
}
wx.$router.go(path)
}
}
});
{
"component": true,
"usingComponents": {
}
}
.conversion-list-wrap{
padding: 0 30rpx;
.production-list{
.title{
font-weight: 600;
font-size: 32rpx;
color: #333333;
line-height: 48rpx;
margin-bottom: 24rpx; }
.overview-wrap{
background: #FAFBFC;
border-radius: 6px;
display: grid;
grid-template-columns:33.3% 33.3% 33.3%;
padding-top: 20rpx;
padding-bottom: 10rpx;
//margin-bottom: 50rpx;
.overview-list{
display: flex;
justify-content: space-around;
margin-bottom: 20rpx;
.overview-left{
.overview-title{
color: #5A6066;
font-size: 26rpx;
}
.overview-num{
margin-top: 24rpx;
color: #2D2D33;
font-size: 32rpx;
font-weight: 600;
} }
.overview-img{
width: 28px;
height: 28px;
} } }
}
.business-list{
margin-top: 50rpx;
.title{
font-weight: 600;
font-size: 32rpx;
color: #333333;
line-height: 48rpx;
margin-bottom: 24rpx; }
.business-wrap{
//display: flex;
//justify-content: space-around;
display: grid;
grid-template-columns: 25% 25% 25% 25%;
text-align: center;
.business-img{
width: 62px;
height: 62px;
}
.business-title{
//text-align: center;
font-size: 26rpx;
color: #323436;
}
}
}
.instrument-list{
margin-top: 50rpx;
.title{
font-weight: 600;
font-size: 32rpx;
color: #333333;
line-height: 48rpx;
margin-bottom: 24rpx
}
}
}
<view class="conversion-list-wrap" style="margin-top:{{navBarHeight}}px">
<!--产值总览-->
<view class="production-list">
<view class="title">产值总览</view>
<view class="overview-wrap">
<view class="overview-list" wx:for="{{productionValueList}}" wx:key="index">
<view class="overview-left">
<view class="overview-title">{{item.title}}</view>
<view class="overview-num">{{item.num}}</view>
</view>
<block class="overview-right">
<image class="overview-img" src="../../images/{{item.imgName}}.png"></image>
</block>
</view>
</view>
</view>
<!-- 业务拓展-->
<view class="business-list">
<view class="title">业务拓展</view>
<view class="business-wrap">
<block wx:for="{{businessDevelopmentList}}" wx:key="index" >
<view class="business-content" bindtap="clickTap" data-item="{{item}}">
<image class="business-img" src="../../images/{{item.imgName}}.png"></image>
<view class="business-title">{{item.title}}</view>
</view>
</block>
</view>
</view>
<!-- 展业工具-->
<!-- <view class="instrument-list">-->
<!-- <view class="title">展业工具</view>-->
<!-- </view>-->
<!--</view>-->
<view class="business-list">
<view class="title">展业工具</view>
<view class="business-wrap">
<block wx:for="{{exhibitionToolsList}}" wx:key="index">
<view class="business-content" bindtap="clickTap" data-item="{{item}}">
<image class="business-img" src="../../images/{{item.imgName}}.png"></image>
<view class="business-title">{{item.title}}</view>
</view>
</block>
</view>
</view>
</view>
.navigation-header .navigation-bar {
background-color: transparent;
box-shadow: none;
}
.hide {
display: none;
}
.show {
display: block;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
margin-left: 4rpx;
transform: rotate(180deg);
transition: all 0.5s;
}
.navigation-title .move {
transform: rotate(270deg);
}
.navigation-header .navigation-bar {
background-color: transparent;
box-shadow: none;
}
.hide {
display: none;
}
.show {
display: block;
}
.navigation-title {
display: flex;
align-items: center;
justify-content: center;
}
.navigation-title-text {
text-align: center;
max-width: calc(100% - 24rpx);
}
.navigation-title .arrow {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
margin-left: 4rpx;
transform: rotate(180deg);
transition: all 0.5s;
}
.navigation-title .move {
transform: rotate(270deg);
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!