Commit ed6aadd7 by 前端

Merge branch 'SAAS+V5.3.0' into 'master'

上线合并

See merge request !38
2 parents 43fede05 e0333c8d
import http from '../request/http'
module.exports = {
/**活动列表 */
activityPage(data) {
return http.post({
method: 'risk.manage.api.activity.pad.page',
projectName: 'pad',
...data
})
},
/**荣誉墙 */
activityReward(data) {
return http.post({
method: 'risk.manage.api.activity.reward',
projectName: 'pad',
...data
})
}
}
...@@ -441,5 +441,21 @@ module.exports = { ...@@ -441,5 +441,21 @@ module.exports = {
projectName: 'pad', projectName: 'pad',
...data ...data
}) })
} },
// 活动消息列表
getActivityMessageList(data) {
return http.post({
method: 'dj.pad.api.page.activity.message.list',
projectName: 'pad',
...data
})
},
// 更新活动消息状态
updateActivityMessageStatus(data) {
return http.post({
method: 'dj.pad.api.activity.message.update',
projectName: 'pad',
...data
})
},
} }
...@@ -3,6 +3,7 @@ import systemApi from './systemApi' ...@@ -3,6 +3,7 @@ import systemApi from './systemApi'
import userApi from './userApi' import userApi from './userApi'
import boutiqueApi from './boutique' import boutiqueApi from './boutique'
import evaluationApi from './evaluation' import evaluationApi from './evaluation'
import activityApi from './activity'
import customerApi from './customerApi' import customerApi from './customerApi'
import pointApi from './point' import pointApi from './point'
import receptionApi from './receptionApi' import receptionApi from './receptionApi'
...@@ -23,5 +24,6 @@ module.exports = { ...@@ -23,5 +24,6 @@ module.exports = {
interceptionApi, interceptionApi,
popupApi, popupApi,
evaluationApi, evaluationApi,
usedCarApi usedCarApi,
activityApi
} }
...@@ -158,6 +158,9 @@ ...@@ -158,6 +158,9 @@
.mt-20 { .mt-20 {
margin-top: toRpx(20); margin-top: toRpx(20);
} }
.mb-6 {
margin-bottom: toRpx(6);
}
.mb-12 { .mb-12 {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
} }
......

2.79 MB | W: | H:

2.87 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view class="card" @click="handleAvtivityItemClick()">
<view v-if="tabIndex === 1" class="time-limit-countdown">
<template v-if="countdownObj._timeout">
<view class="countdown-label timeout-label">活动开始</view>
</template>
<template v-else-if="countdownObj._remainSeconds < 3600">
<!-- 小于1小时,显示分钟/秒 -->
<view class="countdown-label">即将开始</view>
<view class="countdown-num">{{ countdownObj._countdownMinute }}</view>
<view class="countdown-label">分</view>
<view class="countdown-num">{{ countdownObj._countdownSecond }}</view>
<view class="countdown-label">秒</view>
</template>
<template v-else-if="countdownObj._remainSeconds < 86400">
<!-- 小于24小时,显示小时/分钟 -->
<view class="countdown-label">即将开始</view>
<view class="countdown-num">{{ countdownObj._countdownHour }}</view>
<view class="countdown-label">时</view>
<view class="countdown-num">{{ countdownObj._countdownMinute }}</view>
<view class="countdown-label">分</view>
</template>
<template v-else-if="countdownObj._showDays">
<!-- 大于24小时,显示天/小时 -->
<view class="countdown-label">即将开始</view>
<view class="countdown-num">{{ countdownObj._leftDays }}</view>
<view class="countdown-separator">天</view>
<view class="countdown-num">{{ countdownObj._leftHours }}</view>
<view class="countdown-separator">时</view>
</template>
<template v-else>
<view class="countdown-label">即将开始</view>
<view class="countdown-num">--</view>
<view class="countdown-separator">:</view>
<view class="countdown-num">--</view>
<view class="countdown-separator">:</view>
<view class="countdown-num">--</view>
</template>
</view>
<image class="card-item-img" :src="item.activityCover" mode="aspectFit" />
<view class="card-item-content">
<view class="card-item-title">{{ item.name }}</view>
<view class="card-item-text" v-if="tabIndex !== 1">
<view class="card-item-label">活动进度</view>
<view class="card-item-progress" v-if="tabIndex !== 2">
<view class="card-item-progress-bar" :style="{ width: Math.floor(Number(item.process) || 0) + '%' }"></view>
<view class="card-item-progress-text">{{ Math.floor(Number(item.process) || 0) }}%</view>
</view>
<view class="card-item-value" v-else>
<view class="gray">已结束</view>
</view>
</view>
<view class="card-item-text">
<view class="card-item-label">活动时间</view>
<view class="card-item-value">{{ dayjs(item.startTime).format('YYYY.MM.DD HH:mm') }} - {{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</view>
</view>
<view class="card-item-text" @click.stop="rulesShow(item)">
<view class="card-item-label">评选规则</view>
<view class="card-item-value blueValue">查看</view>
</view>
<!-- <view class="card-item-status">{{ item.status }}</view> -->
</view>
</view>
</template>
<script>
import dayjs from 'dayjs'
export default {
name: 'ActivityCard',
props: {
item: {
type: Object,
default: () => ({})
},
tabIndex: {
type: Number,
default: 0
}
},
data() {
return {
dayjs,
isShowActivityDetails: false,
countdownTimer: null,
countdownObj: null
}
},
mounted() {
this.countdownObj = {
_timeout: false,
_showCountdown: true,
_showDays: false,
_remainSeconds: 0,
_countdownHour: '00',
_countdownMinute: '00',
_countdownSecond: '00',
_leftDays: '00',
_leftHours: '00'
}
// 初始化倒计时
if (this.tabIndex === 1 && this.item.startTime) {
this.updateCountdown()
this.countdownTimer = setInterval(() => {
this.updateCountdown()
}, 1000)
}
},
beforeDestroy() {
// 清除定时器
if (this.countdownTimer) {
clearInterval(this.countdownTimer)
}
},
methods: {
handleAvtivityItemClick() {
if (this.tabIndex !== 1) {
this.$emit('handleAvtivityItemClick')
}
},
rulesShow(item) {
this.$emit('rulesShow', item)
},
// 更新倒计时逻辑
updateCountdown() {
const now = Date.now()
const startTime = new Date(this.item.startTime).getTime()
const diff = startTime - now
// 如果活动已经开始,显示"活动开始"
if (diff <= 0) {
this.$set(this.countdownObj, '_timeout', true)
this.$set(this.countdownObj, '_showCountdown', false)
this.$set(this.countdownObj, '_showDays', false)
return
}
this.$set(this.countdownObj, '_timeout', false)
// 计算剩余秒数
const _remainSeconds = Math.floor(diff / 1000)
this.$set(this.countdownObj, '_remainSeconds', _remainSeconds)
// 根据剩余时间设置不同的显示格式
if (_remainSeconds < 3600) {
// 小于1小时,显示分钟/秒
this.$set(this.countdownObj, '_showCountdown', true)
this.$set(this.countdownObj, '_showDays', false)
this.$set(this.countdownObj, '_countdownHour', this.formatTwoDigits(Math.floor(_remainSeconds / 60)))
this.$set(this.countdownObj, '_countdownMinute', this.formatTwoDigits(Math.floor(_remainSeconds / 60)))
this.$set(this.countdownObj, '_countdownSecond', this.formatTwoDigits(Math.floor(_remainSeconds % 60)))
} else if (_remainSeconds < 86400) {
// 小于24小时,显示小时/分钟
this.$set(this.countdownObj, '_showCountdown', true)
this.$set(this.countdownObj, '_showDays', false)
this.$set(this.countdownObj, '_countdownHour', this.formatTwoDigits(Math.floor(_remainSeconds / 3600)))
this.$set(this.countdownObj, '_countdownMinute', this.formatTwoDigits(Math.floor((_remainSeconds % 3600) / 60)))
this.$set(this.countdownObj, '_countdownSecond', this.formatTwoDigits(Math.floor(_remainSeconds % 60)))
} else {
// 大于24小时,显示天/小时
this.$set(this.countdownObj, '_showCountdown', false)
this.$set(this.countdownObj, '_showDays', true)
this.$set(this.countdownObj, '_leftDays', Math.floor(_remainSeconds / 86400))
this.$set(this.countdownObj, '_leftHours', this.formatTwoDigits(Math.floor((_remainSeconds % 86400) / 3600)))
}
},
// 格式化数字为两位数
formatTwoDigits(num) {
return num < 10 ? `0${num}` : `${num}`
}
}
}
</script>
<style lang="scss" scoped>
.card {
position: relative;
width: 100%;
// height: toRpx(516);
background-color: #fff;
border-radius: toRpx(24);
font-size: 0;
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
overflow: hidden;
.time-limit-tag {
position: absolute;
top: 0;
left: 0;
width: toRpx(122);
height: toRpx(48);
background-image: url('../../../../assets/images/common/limit-page.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
z-index: 1;
color: #fff;
}
.time-limit-countdown {
position: absolute;
right: toRpx(18);
top: toRpx(16);
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(24);
z-index: 1;
.countdown-num {
display: flex;
align-items: center;
justify-content: center;
color: #fff;
width: toRpx(40);
height: toRpx(40);
border-radius: toRpx(4);
background: #00000059;
margin: 0 toRpx(4);
}
.countdown-separator {
color: #0000004d;
}
.countdown-label,
.countdown-unit {
color: #00000059;
margin: 0 toRpx(4);
}
.timeout-label {
height: toRpx(40);
line-height: toRpx(44);
border-radius: toRpx(4);
background: #00000059;
color: #fff;
padding: toRpx(4) toRpx(8);
padding: 0 toRpx(12);
font-size: toRpx(24);
}
}
.card-item-img {
width: 100%;
height: toRpx(312);
border-radius: toRpx(16) toRpx(16) 0 0;
}
.card-item-content {
padding: toRpx(32);
}
.card-item-title {
font-size: toRpx(30);
color: #292d33;
font-weight: 500;
margin-bottom: toRpx(24);
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
.card-item-text {
position: relative;
display: flex;
align-items: center;
font-size: toRpx(24);
margin-bottom: toRpx(14);
&:last-child {
margin-bottom: 0;
}
.card-item-label {
width: toRpx(96);
color: #999ea8;
margin-right: toRpx(24);
}
.card-item-value {
color: #666666;
display: inline-flex;
align-items: center;
justify-content: center;
.dot-value {
width: toRpx(12);
height: toRpx(12);
border-radius: 50%;
background: #2cca74;
margin-right: toRpx(8);
}
.gray {
color: #666666;
}
}
.blueValue {
color: #4673ff;
}
}
.card-item-progress {
width: toRpx(366);
height: toRpx(16);
background: linear-gradient(128.8deg, rgba(117, 188, 255, 0.35) 0%, rgba(44, 102, 247, 0.35) 100%);
border-radius: toRpx(8);
.card-item-progress-text {
color: #3b73ff;
font-size: toRpx(24);
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
}
.card-item-progress-bar {
height: 100%;
background: linear-gradient(128.8deg, #75bcff 0%, #2c66f7 100%);
border-radius: toRpx(8);
}
}
}
</style>
<!--针对弹窗穿透滚动,统一封装的popup-->
<template>
<page-meta :page-style="'overflow:' + (show ? 'hidden' : 'visible')"></page-meta>
<uni-popup :class="['customPopup', popupClass, noTitle ? 'noTitle' : '', size]" ref="publishPopup" :type="type" @change="change" :safe-area="safeArea" :is-mask-click="isMaskClick" :showClose="showClose">
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
<view class="popup-top-box-title flex-1">{{ title }}</view>
<view style="font-size: 0">{{ otherText }}</view>
<view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
</view>
</slot>
<!-- 主要内容插槽 -->
<view class="content">
<slot name="content"></slot>
</view>
<!-- 底部插槽 插槽有内容就优先自定义内容-->
<slot name="footer">
<view class="footer-box flex justify-center" v-if="isShowFooter">
<view class="cancle-btn btn" v-if="isShowCancel" @click.stop="closePopup">{{ cancelText }}</view>
<view class="sure-btn btn" :class="{ 'single-btn': isShowCancel }" @click.stop="confirm">{{ confirmText }}</view>
</view>
</slot>
</uni-popup>
</template>
<script>
import { size } from 'lodash'
export default {
name: 'GeneralPopup',
props: {
type: {
type: String,
default: 'bottom'
},
size: {
type: String,
default: 'small'
},
isMaskClick: {
type: Boolean,
default: false
},
safeArea: {
type: Boolean,
default: true
},
popupClass: {
type: String,
default: ''
},
showClose: {
type: Boolean,
default: true
},
title: {
type: String,
default: ''
},
showTitle: {
type: Boolean,
default: true
},
isShowFooter: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
confirmText: {
type: String,
default: '确定'
},
isShowCancel: {
type: Boolean,
default: true
},
autoClose: {
type: Boolean,
default: true
},
noTitle: {
type: Boolean,
default: false
},
otherText: {
type: String,
default: ''
}
},
data() {
return {
show: false
}
},
methods: {
open() {
this.$refs.publishPopup.open()
},
change(e) {
this.show = e.show
},
closePopup() {
this.$refs.publishPopup.close()
this.$emit('close')
},
confirm() {
if (this.autoClose) {
this.$refs.publishPopup.close()
}
this.$emit('confirm')
}
}
}
</script>
<style scoped lang="scss">
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.uniui-closeempty {
color: #1a1a1a;
font-size: toRpx(24);
font-weight: 600;
}
.single-btn {
width: 100%;
}
.popup-top-box {
padding: 0 toRpx(48);
height: toRpx(112);
width: 100%;
background-color: transparent;
color: #333333;
font-size: toRpx(36);
.popup-top-box-title {
text-align: center;
}
.icon-close {
text-align: end;
}
}
.btn {
width: toRpx(720);
height: toRpx(76);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
margin-right: toRpx(38);
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
::v-deep .customPopup.center.small {
// width: toRpx(690);
}
::v-deep .customPopup.center.medium .uni-popup__wrapper {
width: 60vw;
max-height: 80vh;
min-height: 68vh;
border-radius: toRpx(32);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
overflow: hidden;
}
::v-deep .customPopup.center.large {
// width: toRpx(990);
}
</style>
<template> <template>
<view class="left-side"> <view class="left-side">
<view class="user-box"> <view class="user-box">
<view <view class="user-info flex" @click="jumpPersonCenter">
class="user-info flex"
@click="jumpPersonCenter"
>
<view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active' : '']"></view> <view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active' : '']"></view>
<view class="user-name"> <view class="user-name">
<view class="user-name-text">{{ userInfo.name }}</view> <view class="user-name-text">{{ userInfo.name }}</view>
<view <view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view>
v-if="hasPerson"
class="sprite-icon icon-arrow-next"
></view>
</view> </view>
</view> </view>
</view> </view>
<view :class="['left-tabs', { three: tabs.length == 3 }]"> <view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs"> <template v-for="(i, index) in tabs">
<view <view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index, i)" v-if="!i.hidden">
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index"
@click="changeIndex(index, i)"
v-if="!i.hidden"
>
<view class="icon-box"> <view class="icon-box">
<view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view> <view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view>
</view> </view>
{{ i.label }} {{ i.label }}
<view <view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view>
class="dot" <view class="tip-box" v-if="i.icon == 'study' && readCount">待办事项:{{ readCount }}</view>
v-if="i.icon == 'record' && perRecordNumber"
></view>
<view
class="tip-box"
v-if="i.icon == 'study' && readCount"
>待办事项:{{ readCount }}</view>
</view> </view>
</template> </template>
</view> </view>
...@@ -49,40 +32,19 @@ ...@@ -49,40 +32,19 @@
v-if="messageTotal > 0" v-if="messageTotal > 0"
></view> ></view>
</view> --> </view> -->
<view <view class="btn" @click="openScenePopup">
class="btn"
@click="openScenePopup"
>
<view class="sprite-icon icon-scene-change"></view> <view class="sprite-icon icon-scene-change"></view>
</view> </view>
<view <view class="btn" @click="handleSetting">
class="btn"
@click="handleSetting"
>
<view class="sprite-icon icon-setting"></view> <view class="sprite-icon icon-setting"></view>
</view> </view>
</view> </view>
<!-- 客服弹框 --> <!-- 客服弹框 -->
<!-- <kf-box ref="kfRef" /> --> <!-- <kf-box ref="kfRef" /> -->
<message-pop <message-pop ref="kfRef" :type="messageType" :messageData="messageData"></message-pop>
ref="kfRef"
:type="messageType"
:messageData="messageData"
></message-pop>
<!-- 设置弹框 --> <!-- 设置弹框 -->
<setting-box <setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" />
ref="settingRef" <center-popup :list="sceneTypeList" ref="sceneTypeRef" @choose="chooseSceneType" title="选择场景" tag="当前场景" :id="userInfo.sceneType" isLine />
@stopAudio="$emit('stopAudio')"
/>
<center-popup
:list="sceneTypeList"
ref="sceneTypeRef"
@choose="chooseSceneType"
title="选择场景"
tag="当前场景"
:id="userInfo.sceneType"
isLine
/>
</view> </view>
</template> </template>
...@@ -114,10 +76,12 @@ export default { ...@@ -114,10 +76,12 @@ export default {
hasPerson: false, hasPerson: false,
messageType: 'study', messageType: 'study',
sopCount: 0, sopCount: 0,
activityTabVisible: true
} }
}, },
watch: { watch: {
userInfo (n) { userInfo (n) {
console.log('userInfo', n)
if (n.shopMerchantId) this.haveCustomerAccess(n) if (n.shopMerchantId) this.haveCustomerAccess(n)
}, },
...@@ -192,26 +156,43 @@ export default { ...@@ -192,26 +156,43 @@ export default {
label: "场景集市", label: "场景集市",
icon: "scene", icon: "scene",
name: 'SceneMarket', name: 'SceneMarket',
eventCode: 'app_scene_market', eventCode: 'app_scene_market'
hidden: false },
{
label: "活动中心",
icon: "activity",
isTrack: true,
name: 'ActivityCenter',
eventCode: 'app_activeity_center',
hidden: !this.activityTabVisible
} }
] ]
let { sceneType } = uni.$storage.get("userInfo") let { sceneType } = uni.$storage.get("userInfo")
if(sceneType == 7) tabs[1].hidden = true if(sceneType == 7) tabs[1].hidden = true
console.log('tabs', tabs)
return tabs return tabs
} }
}, },
created () { created () {
// 监听自定义事件 // 监听自定义事件
uni.$on('pageBack', () => { uni.$on('pageBack', () => {
console.log('pageBack') console.log('pageBack')
this.getMessageInfo(); this.getMessageInfo();
}); });
uni.$on('studyCenter', () => { uni.$on('ActivityCenter', this.handleActivityCenter);
let { tabs } = this, // uni.$on('ActivityCenter', () => {
index = tabs.findIndex(e => e.name == 'StudyCenter') // console.log('ActivityCenter')
this.changeIndex(index, this.tabs[index]) // let { tabs } = this,
}); // index = tabs.findIndex(e => e.name == 'ActivityCenter')
// this.changeIndex(index, this.tabs[index])
// })
// uni.$on('studyCenter', () => {
// let { tabs } = this,
// index = tabs.findIndex(e => e.name == 'StudyCenter')
// this.changeIndex(index, this.tabs[index])
// });
console.log('this.tabIndex', this.tabIndex)
this.getUnreadCount() this.getUnreadCount()
this.getStudyCenterPermission() this.getStudyCenterPermission()
this.getMessageInfo() this.getMessageInfo()
...@@ -273,6 +254,14 @@ export default { ...@@ -273,6 +254,14 @@ export default {
}) })
}) })
}, },
handleActivityCenter() {
console.log('ActivityCenter triggered'); // 添加日志查看触发次数
let { tabs } = this;
let index = tabs.findIndex(e => e.name == 'ActivityCenter');
if (index !== -1) {
this.changeIndex(index, this.tabs[index]);
}
},
async changeIndex (index, item) { async changeIndex (index, item) {
if (item.eventCode) uni.$track.add({ if (item.eventCode) uni.$track.add({
eventCode: item.eventCode eventCode: item.eventCode
...@@ -314,7 +303,7 @@ export default { ...@@ -314,7 +303,7 @@ export default {
// const res = await uni.$api.customerApi.haveCustomerAccess({ // const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId // merchantId: shopMerchantId
// }) // })
// if (res) // if (res)
// this.tabs.push({ // this.tabs.push({
// label: "客户档案", // label: "客户档案",
// icon: "customer-file", // icon: "customer-file",
...@@ -328,12 +317,10 @@ export default { ...@@ -328,12 +317,10 @@ export default {
// uni.$storage.set('isSaleOpen', result) // uni.$storage.set('isSaleOpen', result)
if (result) { if (result) {
this.hasPerson = true this.hasPerson = true
this.activityTabVisible = scene !== 7
}else {
this.activityTabVisible = false
} }
// const channelType = 1
// // 非直营且非鸿蒙智行, 隐藏学习中心tab
// if (result || channelType == 1) {
// this.tabs[2].hidden = false
// }
}) })
}, },
// 获取话术未读列表 // 获取话术未读列表
...@@ -458,6 +445,7 @@ export default { ...@@ -458,6 +445,7 @@ export default {
// this.trackInterval = null // this.trackInterval = null
}, },
beforeDestroy () { beforeDestroy () {
uni.$off('ActivityCenter', this.handleActivityCenter);
// clearInterval(this.trackInterval) // clearInterval(this.trackInterval)
// this.trackInterval = null // this.trackInterval = null
}, },
......
<template> <template>
<view> <view>
<ServiceList :messageList="messageList" :topListProp="topList" @handleClick="handleClick" /> <ServiceList type="out" :messageList="messageList" :topListProp="topList" @handleClick="handleClick" />
</view> </view>
</template> </template>
<script> <script>
......
...@@ -249,7 +249,16 @@ export default { ...@@ -249,7 +249,16 @@ export default {
font-weight: 500; font-weight: 500;
font-size: toRpx(34); font-size: toRpx(34);
color: #292D33; color: #292D33;
.sprite-icon {
&.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
}
}
.first { .first {
left: 0; left: 0;
} }
...@@ -280,26 +289,25 @@ export default { ...@@ -280,26 +289,25 @@ export default {
border-radius: 50%; border-radius: 50%;
right: toRpx(86); right: toRpx(86);
} }
} &.active {
.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
&::after {
content: '';
position: absolute; position: absolute;
bottom: 0; top: 0;
left: 50%; z-index: -1;
transform: translateX(-50%); font-weight: 500;
width: toRpx(48); font-size: toRpx(32);
height: toRpx(8); color: #3B73FF;
background-color: #3B73FF;
border-radius: toRpx(16); &::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #3B73FF;
border-radius: toRpx(16);
}
} }
} }
} }
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "2.16.0", "versionName" : "2.17.0",
"versionCode" : "2160", "versionCode" : "2170",
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -266,8 +266,14 @@ export default { ...@@ -266,8 +266,14 @@ export default {
this.$store.dispatch("setReceptionTrack", { key, value }) this.$store.dispatch("setReceptionTrack", { key, value })
}, },
handleSelect (item) { handleSelect (item) {
this.customerInfo.carModel = item.name this.customerInfo.carModel = item.name || ''
this.customerInfo.carModelId = item.id this.customerInfo.carModelId = item.id || ''
Object.assign(this.customerInfo, {
carBrand: item.carChildsBrandName || '',
carBrandId: item.carChildsBrandId || '',
oneCarBrand: item.carBrand || '',
oneCarBrandId: item.carBrandId || ''
})
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
this.carInfo = item this.carInfo = item
uni.hideLoading() uni.hideLoading()
...@@ -414,7 +420,7 @@ export default { ...@@ -414,7 +420,7 @@ export default {
} }
.content-box { .content-box {
height: 100%; height: 100%;
padding: toRpx(144) 0 toRpx(64) toRpx(64); padding: toRpx(144) 0 toRpx(64) toRpx(64);
animation: show-view-opacity 0.15s forwards; animation: show-view-opacity 0.15s forwards;
.left-content { .left-content {
width: toRpx(1328); width: toRpx(1328);
......
...@@ -6,9 +6,7 @@ ...@@ -6,9 +6,7 @@
* @LastEditTime: 2024-05-31 16:07:23 * @LastEditTime: 2024-05-31 16:07:23
--> -->
<template> <template>
<view <view class="detail-box">
class="detail-box"
>
<view class="nav-bar"> <view class="nav-bar">
<view <view
class="back" class="back"
...@@ -204,13 +202,17 @@ export default { ...@@ -204,13 +202,17 @@ export default {
// } // }
let customer = { let customer = {
customerName: item.customerName, customerName: item.customerName,
carModel: item.carSeriesName, carModel: item.carSeriesName || '',
phoneNumber: item.customerPhone, phoneNumber: item.customerPhone,
salesUuid: item.userId, salesUuid: item.userId,
staffName: item.employeeName, staffName: item.employeeName,
receiveCouponDate: item.receiveCouponDate, receiveCouponDate: item.receiveCouponDate,
customerCouponId: item.customerCouponId, customerCouponId: item.customerCouponId,
carSeriesId: item.carSeriesId carSeriesId: item.carSeriesId || '',
carBrand: item.carChildsBrandName || '',
carBrandId: item.carChildsBrandId || '',
oneCarBrand: item.carBrand || '',
oneCarBrandId: item.carBrandId || ''
} }
let [reception] = this.$refs.media1 let [reception] = this.$refs.media1
reception?.clearCustomerReceivedTimer() reception?.clearCustomerReceivedTimer()
......
<template> <template>
<scroll-view scroll-y class="service-list"> <scroll-view scroll-y class="service-list">
<view class="message-index-box"> <view :class="['message-index-box', type == 'out' ? 'message-out' : '']">
<view class="message-list" v-if="getTopList.length > 0"> <view class="message-list" v-if="getTopList.length > 0">
<view :class="['message-item', moduleType == i.moduleType ? 'active' : '']" v-for="(i, ind) in getTopList" <view :class="['message-item', moduleType == i.moduleType ? 'active' : '']" v-for="(i, ind) in getTopList"
:key="ind" @click.stop="handleClick(i)"> :key="ind" @click.stop="handleClick(i)">
...@@ -67,7 +67,11 @@ export default { ...@@ -67,7 +67,11 @@ export default {
messageList: { messageList: {
type: Array, type: Array,
default: () => [] default: () => []
} },
type: {
type: String,
default: ''
},
}, },
data() { data() {
return { return {
...@@ -193,6 +197,10 @@ export default { ...@@ -193,6 +197,10 @@ export default {
.message-index-box { .message-index-box {
margin: 0 toRpx(32); margin: 0 toRpx(32);
height: 100%; height: 100%;
&.message-out {
padding-bottom: toRpx(40);
box-sizing: content-box;
}
.message-group { .message-group {
.message-date { .message-date {
......
...@@ -3,7 +3,8 @@ const moduleTypeEnum = { ...@@ -3,7 +3,8 @@ const moduleTypeEnum = {
1: '优秀话术', 1: '优秀话术',
2: '违规话术', 2: '违规话术',
3: '短课程学习', 3: '短课程学习',
4: '长课程学习' 4: '长课程学习',
5: '活动中心'
} }
const moduleIconEnum = { const moduleIconEnum = {
...@@ -11,7 +12,8 @@ const moduleIconEnum = { ...@@ -11,7 +12,8 @@ const moduleIconEnum = {
1: 'notice-script', 1: 'notice-script',
2: 'notice-violate', 2: 'notice-violate',
3: 'notice-study', 3: 'notice-study',
4: 'notice-study' 4: 'notice-study',
5: 'active-msg'
} }
const moduleContentEnum = { const moduleContentEnum = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!