Commit 4fa28927 by 李伟康

Merge branch 'SAAS+V4.54.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.54.0

2 parents 4e1e8380 966e154f
No preview for this file type

2.43 MB | W: | H:

2.43 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -9,8 +9,9 @@ ...@@ -9,8 +9,9 @@
<view class="list-title">{{ item.preEntryName }}</view> <view class="list-title">{{ item.preEntryName }}</view>
<view class="item-box"> <view class="item-box">
<view class="item" @click="jump(i)" v-for="i in item.agentList"> <view class="item" @click="jump(i)" v-for="i in item.agentList">
<view class="text">{{ i.entryName }}</view>
<image class="item-img" :src="i.entryLogoUrl" mode="scaleToFill" /> <image class="item-img" :src="i.entryLogoUrl" mode="scaleToFill" />
<view class="text">{{ i.entryName }}</view>
<view class="red-dot"></view>
</view> </view>
</view> </view>
</view> </view>
...@@ -80,7 +81,7 @@ export default { ...@@ -80,7 +81,7 @@ export default {
} }
} }
.ai-content { .ai-content {
margin: toRpx(64) toRpx(64); margin: toRpx(64);
} }
.list-box { .list-box {
border-radius: toRpx(16); border-radius: toRpx(16);
...@@ -110,27 +111,38 @@ export default { ...@@ -110,27 +111,38 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: toRpx(40); margin-top: toRpx(40);
gap: toRpx(48);
.item { .item {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
width: toRpx(412);
box-sizing: border-box;
font-size: toRpx(30); font-size: toRpx(30);
color: #333; color: #333;
border-radius: toRpx(16); border-radius: toRpx(16);
box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a;
padding: toRpx(16) toRpx(32); padding: toRpx(16) toRpx(32);
margin-right: toRpx(50); // margin-right: toRpx(50);
margin-bottom: toRpx(30); margin-bottom: toRpx(30);
&:nth-child(5n) { &:nth-child(5n) {
margin-right: 0; margin-right: 0;
} }
.text { .text {
width: toRpx(160); margin-left: toRpx(15);
// width: toRpx(160);
} }
&-img { &-img {
width: toRpx(96); width: toRpx(96);
height: toRpx(96); height: toRpx(96);
// margin-left: toRpx(20); // margin-left: toRpx(20);
} }
.red-dot {
background-color: #F24724;
width: toRpx(16);
height: toRpx(16);
border-radius: 50%;
margin-left: toRpx(8);
}
} }
} }
} }
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<view class="calendar-box"> <view class="calendar-box">
<view class="calendar-years"> <view class="calendar-years">
<view class="calendar-year">{{ currentInfo.year }}年{{ currentInfo.month }}月</view> <view class="calendar-year">{{ currentInfo.year }}年{{ currentInfo.month }}月</view>
<view class="appeal-record" @click="switchMonth"><view class="sprite-icon icon-calendar"></view>{{ currentInfo.month == defaultMonth ? '上个月' : '当前月'}}</view>
<!-- <view class="appeal-record" @click="viewAppeal"> <!-- <view class="appeal-record" @click="viewAppeal">
<view class="sprite-icon icon-appeal-record"></view>考勤申诉记录 <view class="sprite-icon icon-appeal-record"></view>考勤申诉记录
</view> --> </view> -->
...@@ -19,8 +20,8 @@ ...@@ -19,8 +20,8 @@
<view @click="openDetail(date)"> <view @click="openDetail(date)">
<view v-if="date.dayState != 1" :class="getTagClass(date)"> <view v-if="date.dayState != 1" :class="getTagClass(date)">
{{ DAY_STATE[date.dayState] }}</view> {{ DAY_STATE[date.dayState] }}</view>
<view class="date-num" v-if="date.day != currentInfo.day">{{ date.day || '' }}</view> <view class="current-date" v-if="currentInfo.month == defaultMonth && date.day == currentInfo.day">今</view>
<view class="current-date" v-else>今</view> <view class="date-num" v-else>{{ date.day || '' }}</view>
<template v-if="!date.isDefault"> <template v-if="!date.isDefault">
<view <view
:class="['date-desc first-child', date.clockInState != 0 || date.clockInAbnormalAttire ? 'date-red' : '']"> :class="['date-desc first-child', date.clockInState != 0 || date.clockInAbnormalAttire ? 'date-red' : '']">
...@@ -78,6 +79,7 @@ export default { ...@@ -78,6 +79,7 @@ export default {
month: new Date().getMonth() + 1, month: new Date().getMonth() + 1,
day: new Date().getDate() day: new Date().getDate()
}, },
defaultMonth: new Date().getMonth() + 1,
selectInfo: { selectInfo: {
year: new Date().getFullYear(), year: new Date().getFullYear(),
month: new Date().getMonth() + 1, month: new Date().getMonth() + 1,
...@@ -92,7 +94,9 @@ export default { ...@@ -92,7 +94,9 @@ export default {
// 获取当前日期 // 获取当前日期
const now = new Date(); const now = new Date();
const year = now.getFullYear(); const year = now.getFullYear();
const month = now.getMonth(); // const month = now.getMonth();
// 需求添加切换月份,月份从currentInfo中获取
const month = this.currentInfo.month - 1
// 获取当月第一天是星期几,注意 getDay() 返回值 0 代表周日,1 - 6 代表周一到周六 // 获取当月第一天是星期几,注意 getDay() 返回值 0 代表周日,1 - 6 代表周一到周六
const firstDayOfMonth = new Date(year, month, 1); const firstDayOfMonth = new Date(year, month, 1);
const firstDayWeekday = firstDayOfMonth.getDay(); const firstDayWeekday = firstDayOfMonth.getDay();
...@@ -166,9 +170,9 @@ export default { ...@@ -166,9 +170,9 @@ export default {
// 获取当前日期对象 // 获取当前日期对象
const now = new Date(); const now = new Date();
// 当月第一天 // 当月第一天
const firstDay = dayjs(new Date(now.getFullYear(), now.getMonth(), 1)).format('YYYY-MM-DD'); const firstDay = dayjs(new Date(this.currentInfo.year, this.currentInfo.month - 1, 1)).format('YYYY-MM-DD');
// 当月最后一天 // 当月最后一天
const lastDay = dayjs(new Date(now.getFullYear(), now.getMonth() + 1, 0)).format('YYYY-MM-DD'); const lastDay = dayjs(new Date(this.currentInfo.year, this.currentInfo.month, 0)).format('YYYY-MM-DD');
return { return {
startTime: firstDay + ' 00:00:00', startTime: firstDay + ' 00:00:00',
endTime: lastDay + ' 23:59:59', endTime: lastDay + ' 23:59:59',
...@@ -183,7 +187,7 @@ export default { ...@@ -183,7 +187,7 @@ export default {
console.log(this.dates, 'dates') console.log(this.dates, 'dates')
this.dates.forEach(item => { this.dates.forEach(item => {
const clockData = res.clockInDateList.find(i => i.day == item) const clockData = res.clockInDateList.find(i => i.day == item)
if (clockData && clockData.day < this.currentInfo.day) { if (clockData && (this.currentInfo.month < this.defaultMonth || clockData.day < this.currentInfo.day)) {
if (clockData.dayState == 4) clockData.isDefault = true if (clockData.dayState == 4) clockData.isDefault = true
clockData.clockInTime1 = clockData.clockInTime ? dayjs(new Date(clockData.clockInTime)).format('HH:mm') : null clockData.clockInTime1 = clockData.clockInTime ? dayjs(new Date(clockData.clockInTime)).format('HH:mm') : null
clockData.clockOutTime1 = clockData.clockOutTime ? dayjs(new Date(clockData.clockOutTime)).format('HH:mm') : null clockData.clockOutTime1 = clockData.clockOutTime ? dayjs(new Date(clockData.clockOutTime)).format('HH:mm') : null
...@@ -208,7 +212,18 @@ export default { ...@@ -208,7 +212,18 @@ export default {
console.log(res) console.log(res)
this.recordList = res.list this.recordList = res.list
}, },
// 切换月份
switchMonth() {
if (this.currentInfo.month == this.defaultMonth) {
// 切换上个月
this.currentInfo.month = new Date().getMonth()
this.init()
} else {
// 切换当前月
this.currentInfo.month = new Date().getMonth() + 1
this.init()
}
}
} }
} }
</script> </script>
...@@ -221,7 +236,7 @@ export default { ...@@ -221,7 +236,7 @@ export default {
height: calc(100vh - #{toRpx(276)}); height: calc(100vh - #{toRpx(276)});
border: toRpx(4) solid #fff; border: toRpx(4) solid #fff;
background: #f2f7ff; background: #f2f7ff;
box-shadow: inset 0 4px 8px 0 #ffffff80; box-shadow: inset 0 toRpx(4) toRpx(8) 0 #ffffff80;
border-radius: toRpx(48); border-radius: toRpx(48);
margin-top: toRpx(38); margin-top: toRpx(38);
...@@ -244,7 +259,8 @@ export default { ...@@ -244,7 +259,8 @@ export default {
border-radius: toRpx(16); border-radius: toRpx(16);
line-height: toRpx(64); line-height: toRpx(64);
.icon-appeal-record { .icon-appeal-record,
.icon-calendar {
margin-right: toRpx(8); margin-right: toRpx(8);
} }
} }
......
...@@ -33,14 +33,14 @@ ...@@ -33,14 +33,14 @@
<view class="empty-text">暂无记录</view> <view class="empty-text">暂无记录</view>
</view> </view>
</view> </view>
<view class="tips-footer"> <!-- <view class="tips-footer">
<view class="tips-btn" @click="IncomeCal"> <view class="tips-btn" @click="IncomeCal">
<text>收入测算</text> <text>收入测算</text>
<view class="tip-img"> <view class="tip-img">
<view class="sprite-icon icon-btn-tips"></view> <view class="sprite-icon icon-btn-tips"></view>
</view> </view>
</view> </view>
</view> </view> -->
<Dailog @close="closeCalDaliog" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算"> <Dailog @close="closeCalDaliog" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算">
<view class="dailog-body" slot="content"> <view class="dailog-body" slot="content">
<view :class="{ 'input-box select-container': true, row_2: form.sceneType === '0' }"> <view :class="{ 'input-box select-container': true, row_2: form.sceneType === '0' }">
...@@ -519,7 +519,7 @@ export default { ...@@ -519,7 +519,7 @@ export default {
} }
.tips-body { .tips-body {
height: calc(100vh - 540rpx); height: calc(100vh - 420rpx);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
.empty-box { .empty-box {
......
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
</template> </template>
<script> <script>
import dayjs from 'dayjs'
import Detail from './Detail' import Detail from './Detail'
import point from '@/mixin/point' import point from '@/mixin/point'
import Dailog from './Dailog.vue' import Dailog from './Dailog.vue'
...@@ -168,7 +169,8 @@ export default { ...@@ -168,7 +169,8 @@ export default {
monthStr: '', monthStr: '',
canPersent: [], //百分比数组 canPersent: [], //百分比数组
listIndex: 0 listIndex: 0,
basicSalary: {}
} }
}, },
mounted() { mounted() {
...@@ -183,6 +185,56 @@ export default { ...@@ -183,6 +185,56 @@ export default {
// this.showChart() // this.showChart()
}) })
.exec() .exec()
setTimeout(() => {
const _basicSalary = {
confirmSalary: true,
basicSalary: 3000,
performanceSalary: 1000,
actualBasicSalary: 3500,
shouldWorkDay: 26,
actualWorkDay: 10,
actualPerformanceSalary: 1500,
performanceSalaryConfigItemList: [
{
assessmentType: 1,
minAssessmentValue: 0,
maxAssessmentValue: 20,
performanceSalarDeductionRatio: 10
},
{
assessmentType: 1,
minAssessmentValue: 24,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 50
},
{
assessmentType: 1,
minAssessmentValue: 23,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 60
},
{
assessmentType: 1,
minAssessmentValue: 22,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 60
},
{
assessmentType: 1,
minAssessmentValue: 21,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 100
},
{
assessmentType: 2,
minAssessmentValue: 0,
maxAssessmentValue: 20,
performanceSalarDeductionRatio: 100
}
]
}
this.basicSalary = _basicSalary
}, 100)
}, },
methods: { methods: {
isShow(key) { isShow(key) {
...@@ -282,7 +334,18 @@ export default { ...@@ -282,7 +334,18 @@ export default {
* @param {Object} item - 点击的tips对象 * @param {Object} item - 点击的tips对象
*/ */
clickTips(item) { clickTips(item) {
this.tipsDetail = item console.log(this.basicSalary, 'basicSalary=======')
if (item.label == '基本工资') {
this.tipsDetail = Object.assign(item, this.basicSalary)
console.log(dayjs(new Date()).daysInMonth())
// 应出勤天数tips
const month = dayjs(new Date()).daysInMonth()
this.tipsDetail.basicList[1].tips = `(本月${month} - ${month-this.basicSalary.shouldWorkDay})`
// 实际出勤天数tips
this.tipsDetail.basicList[2].tips = `(截至${dayjs().subtract(1, 'day').format('YYYY-MM-DD')})`
} else {
this.tipsDetail = item
}
this.tipsShow = true this.tipsShow = true
}, },
showBaseDetail(item) { showBaseDetail(item) {
......
...@@ -116,6 +116,7 @@ ...@@ -116,6 +116,7 @@
</template> </template>
<script> <script>
import dayjs from 'dayjs'
import Detail from './Detail' import Detail from './Detail'
import baseDialog from './baseDialog' import baseDialog from './baseDialog'
import baseDetail from './baseDetail' import baseDetail from './baseDetail'
...@@ -214,11 +215,62 @@ export default { ...@@ -214,11 +215,62 @@ export default {
list: [], list: [],
show: false, show: false,
calDaliog: false, calDaliog: false,
caseList: [] caseList: [],
basicSalary: {}
} }
}, },
mounted() { mounted() {
this.outputList = this.outputList.filter(i => i.value == 0) this.outputList = this.outputList.filter(i => i.value == 0)
setTimeout(() => {
const _basicSalary = {
confirmSalary: false,
basicSalary: 3000,
performanceSalary: 1000,
actualBasicSalary: 3500,
shouldWorkDay: 26,
actualWorkDay: 10,
actualPerformanceSalary: 1500,
performanceSalaryConfigItemList: [
{
assessmentType: 1,
minAssessmentValue: 0,
maxAssessmentValue: 20,
performanceSalarDeductionRatio: 10
},
{
assessmentType: 1,
minAssessmentValue: 24,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 50
},
{
assessmentType: 1,
minAssessmentValue: 23,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 60
},
{
assessmentType: 1,
minAssessmentValue: 22,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 60
},
{
assessmentType: 1,
minAssessmentValue: 21,
maxAssessmentValue: 26,
performanceSalarDeductionRatio: 100
},
{
assessmentType: 2,
minAssessmentValue: 0,
maxAssessmentValue: 20,
performanceSalarDeductionRatio: 100
}
]
}
this.basicSalary = _basicSalary
}, 100)
}, },
watch: { watch: {
'form.merchantId'(val) { 'form.merchantId'(val) {
...@@ -319,7 +371,18 @@ export default { ...@@ -319,7 +371,18 @@ export default {
console.log(this.commissionsInfo, 'this.commissionsInfoQG', this.commissionsInfoQG) console.log(this.commissionsInfo, 'this.commissionsInfoQG', this.commissionsInfoQG)
}, },
clickTips(item) { clickTips(item) {
this.tipsDetail = item console.log(this.basicSalary, 'basicSalary=======')
if (item.label == '基本工资') {
this.tipsDetail = Object.assign(item, this.basicSalary)
console.log(dayjs(new Date()).daysInMonth())
// 应出勤天数tips
const month = dayjs(new Date()).daysInMonth()
this.tipsDetail.basicList[1].tips = `(本月${month} - ${month-this.basicSalary.shouldWorkDay})`
// 实际出勤天数tips
this.tipsDetail.basicList[2].tips = `(截至${dayjs().subtract(1, 'day').format('YYYY-MM-DD')})`
} else {
this.tipsDetail = item
}
this.tipsShow = true this.tipsShow = true
}, },
showTips() { showTips() {
......
...@@ -8,17 +8,59 @@ ...@@ -8,17 +8,59 @@
--> -->
<template> <template>
<Tips @close="close" v-if="show" width="1288rpx" :title="detail.label"> <Tips @close="close" v-if="show" width="1288rpx" :title="detail.label">
<view class="dailog-body" slot="content"> <template v-if="detail.customize">
<view class="dailog-content">{{ detail.content }}</view> <template v-if="detail.label == '基本工资'">
<view class="dailog-content" v-if="detail.subContent">{{ detail.subContent }}</view> <view class="basic-body" slot="content">
<view class="dailog-warn" v-if="detail.warnList"> <view class="basic-content">
<view class="warn-label">注:</view> <view class="basic-item">{{ detail.content }}</view>
<view> <view class="basic-item" v-for="(item, index) in detail.basicList" :key="index">
<view v-for="(item, index) in detail.warnList" :key="index" :style="item.style">{{ item.message }}</view> <view>{{ item.label }}</view>
<view class="basic-right">
<view class="tips">{{ item.tips }}</view>
<view class="value">
<template v-if="!detail.confirmSalary">
{{ detail[item.prop] }}{{ item.unit }}
</template>
<template v-else>
{{ item.actualProp ? detail[item.actualProp] : detail[item.prop] }}{{ item.unit }}
</template>
</view>
</view>
</view>
</view>
<view class="basic-item performance">
<view>{{ detail.performance.label }}</view>
<view class="basic-right">
<view class="tips">{{ detail.confirmSalary ? '' : '未核算' }}</view>
<view class="value">{{ detail.confirmSalary ? detail.actualPerformanceSalary : detail.performanceSalary }}</view>
</view>
</view>
<ul class="basic-ul">
<li v-for="(i, ind) in detail.performanceSalaryConfigItemList" :key="ind">
<template v-if="i.assessmentType == 1">
月产值=0,且考勤 {{ i.minAssessmentValue ? i.minAssessmentValue : '' }} ≦ {{ i.maxAssessmentValue ? i.maxAssessmentValue : '' }} 绩效工资{{ i.performanceSalarDeductionRatio < 100 ? `扣减${i.performanceSalarDeductionRatio}%` : '不扣减' }}
</template>
<template v-if="i.assessmentType == 2">
月产值≠0,月度触客总数(含售前+售后触客){{ i.minAssessmentValue ? i.minAssessmentValue : '' }} ≦ {{ i.maxAssessmentValue ? i.maxAssessmentValue : '' }} 台,则绩效工资{{ i.performanceSalarDeductionRatio < 100 ? `扣减${i.performanceSalarDeductionRatio}%` : '不扣减' }}
</template>
</li>
</ul>
</view> </view>
</template>
</template>
<template v-else>
<view class="dailog-body" slot="content">
<view class="dailog-content">{{ detail.content }}</view>
<view class="dailog-content" v-if="detail.subContent">{{ detail.subContent }}</view>
<view class="dailog-warn" v-if="detail.warnList">
<view class="warn-label">注:</view>
<view>
<view v-for="(item, index) in detail.warnList" :key="index" :style="item.style">{{ item.message }}</view>
</view>
</view>
<view class="dailog-desc" v-if="detail.desc">{{ detail.desc }}</view>
</view> </view>
<view class="dailog-desc" v-if="detail.desc">{{ detail.desc }}</view> </template>
</view>
</Tips> </Tips>
</template> </template>
...@@ -83,4 +125,51 @@ export default { ...@@ -83,4 +125,51 @@ export default {
margin-top: 32rpx; margin-top: 32rpx;
} }
} }
.basic-body {
padding: 0 toRpx(180);
.basic-content {
border-radius: toRpx(24);
background: #fafafa;
padding: toRpx(20) toRpx(36);
font-size: toRpx(26);
}
.basic-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: toRpx(18);
&.performance {
padding: toRpx(20) toRpx(36);
margin-bottom: 0;
}
&:last-child {
margin-bottom: 0;
}
.basic-right {
display: flex;
align-items: center;
.tips {
color: #808291;
margin-right: toRpx(20);
}
.value {
color: #1A1A1A;
}
}
}
.basic-ul {
color: #ADB0B8;
font-size: toRpx(24);
padding-right: toRpx(36);
padding-left: toRpx(64);
max-height: toRpx(224);
overflow-y: auto;
li {
margin-bottom: toRpx(12);
&:last-child {
margin-bottom: 0;
}
}
}
}
</style> </style>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</view> </view>
<!-- 客服弹框 --> <!-- 客服弹框 -->
<!-- <kf-box ref="kfRef" /> --> <!-- <kf-box ref="kfRef" /> -->
<message-pop ref="kfRef" :messageData="messageData"></message-pop> <message-pop ref="kfRef" :type="messageType" :messageData="messageData"></message-pop>
<!-- 设置弹框 --> <!-- 设置弹框 -->
<setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" /> <setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" />
</view> </view>
...@@ -85,7 +85,8 @@ export default { ...@@ -85,7 +85,8 @@ export default {
trackId:0, trackId:0,
trackInterval:null, trackInterval:null,
collectTrack:false, collectTrack:false,
hasPerson: false hasPerson: false,
messageType: 'study'
} }
}, },
watch: { watch: {
...@@ -208,6 +209,7 @@ export default { ...@@ -208,6 +209,7 @@ export default {
} }
}) })
}, },
// 获取话术未读列表
async getMessage() { async getMessage() {
console.log('获取话术', uni.$storage.get("userInfo")) console.log('获取话术', uni.$storage.get("userInfo"))
const {sceneType, uuid} = uni.$storage.get("userInfo") const {sceneType, uuid} = uni.$storage.get("userInfo")
...@@ -217,9 +219,11 @@ export default { ...@@ -217,9 +219,11 @@ export default {
}) })
if (res.total) { if (res.total) {
this.messageData = res this.messageData = res
this.messageType = 'attendance'
this.$refs.kfRef.open() this.$refs.kfRef.open()
} }
}, },
// 消息中心未读总数
async getMessageCount() { async getMessageCount() {
const {sceneType} = uni.$storage.get("userInfo") const {sceneType} = uni.$storage.get("userInfo")
const res = await uni.$api.commonApi.getMessageCount({ const res = await uni.$api.commonApi.getMessageCount({
...@@ -230,6 +234,8 @@ export default { ...@@ -230,6 +234,8 @@ export default {
this.messageTotal = res this.messageTotal = res
}, },
openPop() { openPop() {
// this.messageType = 'attendance'
// this.$refs.kfRef.open()
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/messageList` url: `/pages/common/messageList`
}) })
......
<template> <template>
<uni-popup ref="popup" type="bottom" border-radius="16px" :mask-click="false"> <uni-popup ref="popup" type="bottom" border-radius="16px" :mask-click="false">
<view class="kf-box"> <view class="kf-box">
<image class="message-bg" :src="require('@//assets/images/common/message-bg.webp')"></image> <template v-if="type=='attendance'">
<view class="text text-first">本周优秀话术推送</view> <image class="message-bg" :src="require('@//assets/images/common/message-bg.webp')"></image>
<view class="text">你有{{messageData.total}}条消息待查看</view> <view class="text text-first">本周优秀话术推送</view>
<view class="btn" @click="toMessage">去查看</view> <view class="text">你有{{messageData.total}}条消息待查看</view>
<view class="btn" @click="toMessage">去查看</view>
</template>
<!-- 当前有 3 个学习任务待完成,请及时处理。
坚持学习助您能力提升! -->
<template v-else-if="type=='study'">
<image class="message-bg" :src="require('@//assets/images/common/study-center-bg.webp')"></image>
<view class="text text-first study-title">学习提醒</view>
<view class="text study-text">当前有{{messageData.total}}个学习任务待完成,请及时处理。</view>
<view class="text study-text">坚持学习助您能力提升!</view>
<view class="btn study-btn" @click="jumpStudyCenter">去查看</view>
</template>
</view> </view>
</uni-popup> </uni-popup>
...@@ -14,7 +25,8 @@ ...@@ -14,7 +25,8 @@
export default { export default {
name: 'MessagePop', name: 'MessagePop',
props: { props: {
messageData: Object messageData: Object,
type: String,
}, },
data() { data() {
return { return {
...@@ -36,6 +48,9 @@ export default { ...@@ -36,6 +48,9 @@ export default {
const {messageData} = this const {messageData} = this
this.showPage('MessageDetail', {...messageData, type: 'read'}) this.showPage('MessageDetail', {...messageData, type: 'read'})
this.close() this.close()
},
jumpStudyCenter() {
this.close()
} }
} }
} }
...@@ -56,6 +71,7 @@ export default { ...@@ -56,6 +71,7 @@ export default {
height: toRpx(346); height: toRpx(346);
border-radius: toRpx(48); border-radius: toRpx(48);
} }
.text { .text {
text-align: center; text-align: center;
color: #333333; color: #333333;
...@@ -64,6 +80,14 @@ export default { ...@@ -64,6 +80,14 @@ export default {
&.text-first { &.text-first {
margin-top: toRpx(40); margin-top: toRpx(40);
} }
&.study-text {
line-height: toRpx(48);
}
&.study-title {
font-weight: 500;
font-size: toRpx(40);
margin-top: toRpx(30);
}
} }
.btn { .btn {
margin: toRpx(70) auto; margin: toRpx(70) auto;
...@@ -78,6 +102,9 @@ export default { ...@@ -78,6 +102,9 @@ export default {
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
line-height: toRpx(80); line-height: toRpx(80);
&.study-btn {
margin: toRpx(48) auto;
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -30,15 +30,19 @@ export default { ...@@ -30,15 +30,19 @@ export default {
data () { data () {
return { return {
activeIndex: 0, activeIndex: 0,
componentList:['Point','Income', 'Attendance'], componentList:['Attendance','Income'],
tabName: 'Point', tabName: 'Attendance',
tabList:[{ tabList:[
name:'我的积分', // {
},{ // name:'我的积分',
name:'我的收入', // },
},{ {
name:'我的考勤', name:'我的考勤',
}] },
{
name:'我的收入',
}
]
} }
}, },
computed: { computed: {
......
...@@ -6,12 +6,39 @@ export default { ...@@ -6,12 +6,39 @@ export default {
{ {
label: '基本工资', label: '基本工资',
icon: 'jbgz-icon', icon: 'jbgz-icon',
content: '基本工资 = 职级工资÷应出勤天数×实际出勤天数', content: '实发底薪=应发底薪÷应出勤天数x实际出勤天数',
value: 'actualBasicSalary', value: 'actualBasicSalary',
recordKey: 'refundOffsetRecords', recordKey: 'refundOffsetRecords',
showNext: true, showNext: true,
sort: 1, sort: 1,
base: true base: true,
customize: true,
basicList: [
{
label: '应发底薪',
tips: '',
prop: 'basicSalary',
actualProp: 'actualBasicSalary',
value: 3000
},
{
label: '应出勤天数',
value: 27,
prop: 'shouldWorkDay',
unit: '天'
},
{
label: '实际出勤天数',
value: 22,
prop: 'actualWorkDay',
unit: '天'
}
],
performance: {
label: '绩效工资',
prop: 'performanceSalary',
actualProp: 'actualPerformanceSalary',
},
}, },
{ {
label: '退单冲减', label: '退单冲减',
......
...@@ -61,6 +61,15 @@ ...@@ -61,6 +61,15 @@
<view class="message-content warning-content"><view>你有以下接待记录判定为话术违规</view>{{ item.warningContent }} <view class="message-content warning-content"><view>你有以下接待记录判定为话术违规</view>{{ item.warningContent }}
</view> </view>
</template> </template>
<template v-else-if="firstIndex == 3">
<view class="message-header">
<view :class="['dot', item.status == 1 ? '' : 'red']"></view>
<view class="message-type">AI导师消息</view>
<view class="message-time">{{ item.pushTime }}</view>
</view>
<view class="message-content warning-content"><view>您有新的消息【{{ item.sopTaskDetailInfoDTO ? item.sopTaskDetailInfoDTO.checkDate : '' }}+战败复盘报告】AI导师来帮你进行战败复盘了,请点击查看</view>
</view>
</template>
</view> </view>
</template> </template>
<template v-else> <template v-else>
...@@ -92,15 +101,17 @@ export default { ...@@ -92,15 +101,17 @@ export default {
typeList: [ typeList: [
{ tabName: '系统通知', num: () => '' }, { tabName: '系统通知', num: () => '' },
{ tabName: '优秀话术', num: () => '' }, { tabName: '优秀话术', num: () => '' },
{ tabName: '预警通知', num: () => '' } { tabName: '预警通知', num: () => '' },
{ tabName: 'AI导师', num: () => '' }
], ],
CONTRNT_TYPE: CONTRNT_TYPE, CONTRNT_TYPE: CONTRNT_TYPE,
firstIndex: 0, firstIndex: 0,
firstLeft: ['first', 'second', 'three'], firstLeft: ['first', 'second', 'three', 'four'],
firstClass: ['first-nav', 'second-nav', 'second-nav'], firstClass: ['first-nav', 'second-nav', 'second-nav', 'second-nav'],
systemList: [], systemList: [],
messageList: [], messageList: [],
earlyWarnList: [], earlyWarnList: [],
aiTutor: [],
nothing: false, nothing: false,
total: 0, total: 0,
pageNum: PAGE_NUM, pageNum: PAGE_NUM,
...@@ -115,7 +126,8 @@ export default { ...@@ -115,7 +126,8 @@ export default {
const listMap = { const listMap = {
0: this.systemList, 0: this.systemList,
1: this.messageList, 1: this.messageList,
2: this.earlyWarnList 2: this.earlyWarnList,
3: this.aiTutor
}; };
if (this.firstIndex in listMap) { if (this.firstIndex in listMap) {
return listMap[this.firstIndex]; return listMap[this.firstIndex];
...@@ -138,7 +150,7 @@ export default { ...@@ -138,7 +150,7 @@ export default {
case 2: case 2:
return 'scroll-list'; return 'scroll-list';
default: default:
return ''; return 'scroll-list';
} }
} }
}, },
...@@ -489,7 +501,9 @@ export default { ...@@ -489,7 +501,9 @@ export default {
.three { .three {
left: toRpx(756); left: toRpx(756);
} }
.four {
left: toRpx(1162);
}
.text { .text {
position: relative; position: relative;
text-align: center; text-align: center;
...@@ -629,7 +643,7 @@ export default { ...@@ -629,7 +643,7 @@ export default {
.nothing { .nothing {
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
margin-top: toRpx(112); margin-top: toRpx(230);
font-size: toRpx(28); font-size: toRpx(28);
color: #999999; color: #999999;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!