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 = {
projectName: 'pad',
...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'
import userApi from './userApi'
import boutiqueApi from './boutique'
import evaluationApi from './evaluation'
import activityApi from './activity'
import customerApi from './customerApi'
import pointApi from './point'
import receptionApi from './receptionApi'
......@@ -23,5 +24,6 @@ module.exports = {
interceptionApi,
popupApi,
evaluationApi,
usedCarApi
usedCarApi,
activityApi
}
......@@ -158,6 +158,9 @@
.mt-20 {
margin-top: toRpx(20);
}
.mb-6 {
margin-bottom: toRpx(6);
}
.mb-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>
<view class="left-side">
<view class="user-box">
<view
class="user-info flex"
@click="jumpPersonCenter"
>
<view class="user-info flex" @click="jumpPersonCenter">
<view :class="['user-avatar', 'sprite-icon', 'icon-avatar', tabIndex == 99 ? 'user-active' : '']"></view>
<view class="user-name">
<view class="user-name-text">{{ userInfo.name }}</view>
<view
v-if="hasPerson"
class="sprite-icon icon-arrow-next"
></view>
<view v-if="hasPerson" class="sprite-icon icon-arrow-next"></view>
</view>
</view>
</view>
<view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs">
<view
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index"
@click="changeIndex(index, i)"
v-if="!i.hidden"
>
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index, i)" v-if="!i.hidden">
<view class="icon-box">
<view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view>
</view>
{{ i.label }}
<view
class="dot"
v-if="i.icon == 'record' && perRecordNumber"
></view>
<view
class="tip-box"
v-if="i.icon == 'study' && readCount"
>待办事项:{{ readCount }}</view>
<view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view>
<view class="tip-box" v-if="i.icon == 'study' && readCount">待办事项:{{ readCount }}</view>
</view>
</template>
</view>
......@@ -49,40 +32,19 @@
v-if="messageTotal > 0"
></view>
</view> -->
<view
class="btn"
@click="openScenePopup"
>
<view class="btn" @click="openScenePopup">
<view class="sprite-icon icon-scene-change"></view>
</view>
<view
class="btn"
@click="handleSetting"
>
<view class="btn" @click="handleSetting">
<view class="sprite-icon icon-setting"></view>
</view>
</view>
<!-- 客服弹框 -->
<!-- <kf-box ref="kfRef" /> -->
<message-pop
ref="kfRef"
:type="messageType"
:messageData="messageData"
></message-pop>
<message-pop ref="kfRef" :type="messageType" :messageData="messageData"></message-pop>
<!-- 设置弹框 -->
<setting-box
ref="settingRef"
@stopAudio="$emit('stopAudio')"
/>
<center-popup
:list="sceneTypeList"
ref="sceneTypeRef"
@choose="chooseSceneType"
title="选择场景"
tag="当前场景"
:id="userInfo.sceneType"
isLine
/>
<setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" />
<center-popup :list="sceneTypeList" ref="sceneTypeRef" @choose="chooseSceneType" title="选择场景" tag="当前场景" :id="userInfo.sceneType" isLine />
</view>
</template>
......@@ -114,10 +76,12 @@ export default {
hasPerson: false,
messageType: 'study',
sopCount: 0,
activityTabVisible: true
}
},
watch: {
userInfo (n) {
console.log('userInfo', n)
if (n.shopMerchantId) this.haveCustomerAccess(n)
},
......@@ -192,26 +156,43 @@ export default {
label: "场景集市",
icon: "scene",
name: 'SceneMarket',
eventCode: 'app_scene_market',
hidden: false
eventCode: 'app_scene_market'
},
{
label: "活动中心",
icon: "activity",
isTrack: true,
name: 'ActivityCenter',
eventCode: 'app_activeity_center',
hidden: !this.activityTabVisible
}
]
let { sceneType } = uni.$storage.get("userInfo")
if(sceneType == 7) tabs[1].hidden = true
console.log('tabs', tabs)
return tabs
}
},
created () {
// 监听自定义事件
uni.$on('pageBack', () => {
console.log('pageBack')
this.getMessageInfo();
});
uni.$on('studyCenter', () => {
let { tabs } = this,
index = tabs.findIndex(e => e.name == 'StudyCenter')
this.changeIndex(index, this.tabs[index])
});
uni.$on('ActivityCenter', this.handleActivityCenter);
// uni.$on('ActivityCenter', () => {
// console.log('ActivityCenter')
// 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.getStudyCenterPermission()
this.getMessageInfo()
......@@ -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) {
if (item.eventCode) uni.$track.add({
eventCode: item.eventCode
......@@ -314,7 +303,7 @@ export default {
// const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId
// })
// if (res)
// if (res)
// this.tabs.push({
// label: "客户档案",
// icon: "customer-file",
......@@ -328,12 +317,10 @@ export default {
// uni.$storage.set('isSaleOpen', result)
if (result) {
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 {
// this.trackInterval = null
},
beforeDestroy () {
uni.$off('ActivityCenter', this.handleActivityCenter);
// clearInterval(this.trackInterval)
// this.trackInterval = null
},
......
<template>
<view>
<ServiceList :messageList="messageList" :topListProp="topList" @handleClick="handleClick" />
<ServiceList type="out" :messageList="messageList" :topListProp="topList" @handleClick="handleClick" />
</view>
</template>
<script>
......
......@@ -249,7 +249,16 @@ export default {
font-weight: 500;
font-size: toRpx(34);
color: #292D33;
.sprite-icon {
&.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
}
}
.first {
left: 0;
}
......@@ -280,26 +289,25 @@ export default {
border-radius: 50%;
right: toRpx(86);
}
}
.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
&::after {
content: '';
&.active {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #3B73FF;
border-radius: toRpx(16);
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
&::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 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.16.0",
"versionCode" : "2160",
"versionName" : "2.17.0",
"versionCode" : "2170",
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
......
......@@ -266,8 +266,14 @@ export default {
this.$store.dispatch("setReceptionTrack", { key, value })
},
handleSelect (item) {
this.customerInfo.carModel = item.name
this.customerInfo.carModelId = item.id
this.customerInfo.carModel = item.name || ''
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.carInfo = item
uni.hideLoading()
......@@ -414,7 +420,7 @@ export default {
}
.content-box {
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;
.left-content {
width: toRpx(1328);
......
......@@ -6,9 +6,7 @@
* @LastEditTime: 2024-05-31 16:07:23
-->
<template>
<view
class="detail-box"
>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
......@@ -204,13 +202,17 @@ export default {
// }
let customer = {
customerName: item.customerName,
carModel: item.carSeriesName,
carModel: item.carSeriesName || '',
phoneNumber: item.customerPhone,
salesUuid: item.userId,
staffName: item.employeeName,
receiveCouponDate: item.receiveCouponDate,
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
reception?.clearCustomerReceivedTimer()
......
<template>
<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-item', moduleType == i.moduleType ? 'active' : '']" v-for="(i, ind) in getTopList"
:key="ind" @click.stop="handleClick(i)">
......@@ -67,7 +67,11 @@ export default {
messageList: {
type: Array,
default: () => []
}
},
type: {
type: String,
default: ''
},
},
data() {
return {
......@@ -193,6 +197,10 @@ export default {
.message-index-box {
margin: 0 toRpx(32);
height: 100%;
&.message-out {
padding-bottom: toRpx(40);
box-sizing: content-box;
}
.message-group {
.message-date {
......
......@@ -3,7 +3,8 @@ const moduleTypeEnum = {
1: '优秀话术',
2: '违规话术',
3: '短课程学习',
4: '长课程学习'
4: '长课程学习',
5: '活动中心'
}
const moduleIconEnum = {
......@@ -11,7 +12,8 @@ const moduleIconEnum = {
1: 'notice-script',
2: 'notice-violate',
3: 'notice-study',
4: 'notice-study'
4: 'notice-study',
5: 'active-msg'
}
const moduleContentEnum = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!