Commit 71da5594 by 前端

UI

1 parent 044f50d0
......@@ -149,7 +149,7 @@ export default {
}
.calendar-weekdays {
display: flex;
height: 80rpx;
height: 56rpx;
margin-top: 30rpx;
.calendar-weekday {
flex: 1;
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-10 09:34:32
* @LastEditTime: 2025-01-15 15:38:27
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -63,10 +63,10 @@ export default {
top: 50%;
transform: translate(-50%, -50%);
background: #fff;
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */
background-image: linear-gradient(179deg, #d1e5ff 12%, #ffffff00 100%);
background-size:
100% 110rpx,
100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
100% 210rpx,
100% calc(100% - 210rpx); /* 分别设置渐变和白色的背景大小 */
background-repeat: no-repeat, no-repeat; /* 确保背景不重复 */
background-position: top, bottom; /* 分别设置渐变和白色的位置 */
border-radius: 48rpx;
......@@ -78,6 +78,7 @@ export default {
color: #1a1a1a;
font-weight: 600;
margin-top: -4rpx;
margin-left: 16rpx;
}
.enlarge {
transform: scale(1.5);
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-14 17:00:03
* @LastEditTime: 2025-01-16 15:07:46
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -57,18 +57,18 @@
<view class="input-box">
<view class="input-item">
<view class="input-label width-320">应触客台数</view>
<input type="text" class="input" placeholder="请输入" v-model="form.shouldToShopCount" />
<input type="number" class="input" placeholder="请输入" v-model="form.shouldToShopCount" />
</view>
</view>
<view class="input-box num-second" v-if="form.goodsTypeList.length">
<template v-for="(item, index) in form.goodsTypeList">
<view class="input-item" :key="index">
<view class="input-label width-320">{{ item.showName }}成交订单数</view>
<input type="text" class="input" placeholder="请输入" v-model="item.subOrderCount" />
<input type="number" class="input" placeholder="请输入" v-model="item.subOrderCount" />
</view>
<view class="input-item">
<view class="input-label width-320">{{ item.showName }}成交产值</view>
<input type="text" class="input" placeholder="请输入" v-model="item.totalPrice" />
<input type="number" class="input" placeholder="请输入" v-model="item.totalPrice" />
</view>
</template>
</view>
......@@ -79,7 +79,7 @@
</view>
</template>
</Dailog>
<Dailog @close="show = false" v-if="show" width="1360rpx" title="收入测算结果">
<Dailog @close="show = false" v-if="show" width="1380rpx" title="收入测算结果">
<view class="dailog-body flex" slot="content">
<view class="output-box">
<view class="month-box" v-for="(item, index) in form.goodsTypeList" :key="index">
......@@ -106,7 +106,7 @@
<view class="value-detail">
<view class="detail-item" v-for="(output, i) in outputDetail">
<view class="detail-label">{{ output.label }}</view>
<view class="detail-num">{{ salaryDetail.commissionRecord ? salaryDetail.commissionRecord[output.value] : salaryDetail.goodsTypeList[index][output.value] || 0 }}</view>
<view class="detail-num">{{ salaryDetail.commissionRecord ? salaryDetail.commissionRecord[output.value] : salaryDetail.goodsTypeList[index][output.value] || 0 }}{{ output.unit }}</view>
</view>
</view>
</view>
......@@ -206,6 +206,7 @@ export default {
{
label: '渗透率',
content: '渗透率 = 成交订单数 / 应触客台数',
unit: '%',
value: 'penetrationRate'
},
{
......@@ -215,7 +216,8 @@ export default {
},
{
label: '提成比例',
value: 'commissionRatio'
value: 'commissionRatio',
unit: '%'
}
],
formItemList: {
......@@ -367,6 +369,13 @@ export default {
}
uni.$api.pointApi.monthSalaryCalculation(params).then(res => {
this.salaryDetail = res
if (!this.salaryDetail.goodsTypeList && !this.salaryDetail.commissionRecord) {
uni.showToast({
title: '该门店绩效未配置,无法测算,请联系上级进行配置。',
icon: 'none'
})
return
}
this.calDaliog = false
this.show = true
})
......@@ -426,6 +435,7 @@ export default {
text {
font-size: 32rpx;
margin-top: -6rpx;
margin-left: 12rpx;
color: #1a1a1a;
}
}
......@@ -433,7 +443,7 @@ export default {
.tips-body {
height: calc(100vh - 540rpx);
overflow-y: auto;
overflow-x: hidden;
.empty-box {
text-align: center;
margin-top: 160rpx;
......@@ -450,7 +460,6 @@ export default {
.tips-item {
padding: 30rpx 32rpx;
width: 100%;
min-height: 384rpx;
background: #ffffffb3;
border-radius: 24rpx;
margin-top: 32rpx;
......@@ -459,6 +468,7 @@ export default {
text {
font-size: 24rpx;
color: #808291;
margin-left: 8rpx;
}
}
......@@ -468,9 +478,9 @@ export default {
background-image: linear-gradient(81deg, #f0f6ff 0%, #f7faff 4%, #ecf4fe 9%, #f8f9ff 11%, #e8f2ff 43%, #f0f2ff 66%, #dbedff 100%);
font-size: 32rpx;
text-align: center;
line-height: 88rpx;
line-height: 92rpx;
font-weight: 700;
margin: 10rpx 0;
margin: 26rpx 0;
text {
background: linear-gradient(129deg, #0eabf9 13%, #2f80ea 50%, #7d6ee6 91%);
......@@ -515,18 +525,17 @@ export default {
.tip-img {
position: absolute;
right: 0;
top: 0;
top: -12rpx;
}
}
}
}
.dailog-body {
padding: 64rpx;
padding: 0 64rpx 24rpx;
max-height: 50vh;
overflow-y: auto;
.output-box {
width: 568rpx;
height: 648rpx;
background: #e6f1ff;
border: 2rpx solid #ffffff;
......@@ -544,7 +553,7 @@ export default {
margin-bottom: 40rpx;
&.select-container {
margin-bottom: 128rpx;
margin-bottom: 88rpx;
display: grid;
gap: 40rpx;
grid-template-columns: 31% 38% 31%;
......@@ -591,9 +600,11 @@ export default {
padding: 0 20rpx;
font-size: toRpx(30);
color: #333;
&:active {
border: 4rpx solid #2f6af7;
}
&:focus {
border: 2rpx solid #2f6af7;
border: 4rpx solid #2f6af7;
}
&::placeholder {
......@@ -617,6 +628,7 @@ export default {
height: 260rpx;
background: #ffffff;
margin-bottom: 40rpx;
border-radius: 24rpx;
&:last-child {
margin-bottom: 0;
}
......@@ -625,6 +637,9 @@ export default {
color: #808291;
padding-left: 30rpx;
padding-top: 28rpx;
text {
margin-left: 12rpx;
}
}
.value-box {
display: flex;
......@@ -668,7 +683,7 @@ export default {
}
.detail-num {
font-size: 36rpx;
font-size: 32rpx;
color: #292d33;
line-height: 48rpx;
}
......@@ -706,6 +721,7 @@ export default {
color: #181a1f;
display: flex;
padding: 10rpx;
margin-bottom: 32rpx;
justify-content: space-between;
&.checked {
......@@ -716,11 +732,20 @@ export default {
}
.result-footer {
margin-top: 30rpx;
margin-top: 38rpx;
font-size: 26rpx;
color: #181a1f;
display: flex;
justify-content: space-between;
font-weight: 600;
padding: 0 10rpx;
.result-price {
color: #2c66f7;
font-size: 40rpx;
text {
font-size: 28rpx;
}
}
}
}
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-14 14:03:08
* @LastEditTime: 2025-01-16 14:57:39
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -27,31 +27,45 @@
</view>
<view class="income-box">
<view class="income-header">
<text>{{ year - 1 }}年{{ monthStr }}月收入</text>
<view class="sprite-icon icon-income-icon"></view>
<text>{{ year - 1 }}年{{ monthStr || month }}月收入</text>
</view>
<view class="income-tips">
<view class="sprite-icon icon-tips-b"></view>
<text>以下未包括 个人所得税、社保等事项</text>
</view>
<view class="income-list">
<template v-for="(item, index) in IncomeList">
<view class="income-item" :key="index" v-if="isShow(item.value)">
<view class="item-label" @click="handleShow(item)">{{ item.label }}</view>
<uni-icons type="help" size="18" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-price">{{ salaryDetail[item.value] || 0 }}</view>
<view class="item-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
<template v-if="salaryDetail">
<view class="income-footer">
<view class="footer-up flex">
<view class="sprite-icon icon-income-card"></view>
<view class="footer-label">当月收入</view>
</view>
<view class="footer-price">
<text>¥</text>
{{ salaryDetail.correctSalary || 0 }}
</view>
</template>
</view>
<view class="income-footer">
<view class="footer-label">当月收入</view>
<view class="footer-price">
<text>¥</text>
{{ salaryDetail.correctSalary || 0 }}
</view>
<view class="income-list">
<template v-for="(item, index) in IncomeList">
<view class="income-item" :key="index" v-if="isShow(item.value)">
<view class="item-label" @click="handleShow(item)">{{ item.label }}</view>
<uni-icons type="help" size="18" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-price">{{ salaryDetail[item.value] || 0 }}</view>
<view class="item-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
</view>
</template>
</view>
<view class="income-tips">
<view class="sprite-icon icon-tips-b"></view>
<text>以下未包括 个人所得税、社保等事项</text>
</view>
</template>
<view class="empty-body" v-else>
<view class="empty-box">
<image :src="require('@/assets/images/boutique/nothing.png')" mode="heightFix" />
<view class="empty-text">暂无记录</view>
</view>
</view>
</view>
</view>
<Detail @close="show = false" :show="show" :detail="detail" :tabelTh="detail.tabelTh" :tabelTr="detail.tabelTr"></Detail>
<Question @close="tipsShow = false" :show="tipsShow" :detail="tipsDetail"></Question>
</view>
......@@ -102,8 +116,8 @@ export default {
query
.select('.canvas-box')
.boundingClientRect(data => {
this.width = data.width
this.height = data.height - 60
this.width = data.width - 30
this.height = data.height - 15
// this.showChart()
})
.exec()
......@@ -148,7 +162,7 @@ export default {
*/
monthSalaryDetail(salaryMonth) {
uni.$api.pointApi.monthSalaryDetail({ salaryMonth }).then(res => {
this.salaryDetail = res || {}
this.salaryDetail = res
})
},
......@@ -222,7 +236,7 @@ export default {
// 纵坐标
ctx.beginPath()
ctx.moveTo(20, 0)
// ctx.lineTo(20, this.height)
// ctx.lineTo(20, this.height)
ctx.closePath()
ctx.stroke()
......@@ -234,7 +248,7 @@ export default {
}
}
console.log('max---->', max)
max = 100 * Math.ceil(max / 100)
// 计算百分比: 以数组中最大的为100%,来计算其他的百分比
for (var i = 0; i < this.canvasList.length; i++) {
......@@ -242,7 +256,18 @@ export default {
}
console.log(this.canPersent)
const step = Math.ceil(max / 5) // 假设我们想要5个刻度
const yStep = (this.height - 40) / 5
// 绘制纵坐标线和刻度标签
for (let i = 0; i <= 5; i++) {
const y = this.height - i * yStep
ctx.beginPath()
ctx.moveTo(20, y)
ctx.lineTo(30, y)
// ctx.stroke()
i != 0 && ctx.fillText('¥' + step * i, 0, y + 5)
}
// 柱状图之间的间隔
// 绘制7个粗线条 (300-20)/7 = 40,所以 i 每次要加上40 20为左右间隔
var gap = this.width / this.canPersent.length
......@@ -256,7 +281,7 @@ export default {
continue
}
// 柱状图上的数据
ctx.fillText(this.canvasList[i].num, 15 + gap * i, this.height - this.canPersent[i] - 15)
ctx.fillText('¥' + this.canvasList[i].num, 30 + gap * i, this.height - this.canPersent[i] - 15)
// if (this.canPersent[i] == 0) {
// i++
......@@ -266,7 +291,7 @@ export default {
ctx.beginPath()
ctx.setStrokeStyle(i == index ? 'rgba(44, 102, 247, 1)' : 'rgba(44, 102, 247, 0.2)') //设置柱状图颜色
ctx.moveTo(40 + gap * i, this.height - this.canPersent[i] - 6)
ctx.lineTo(40 + gap * i, this.height - 6)
ctx.lineTo(40 + gap * i, this.height - 15)
ctx.lineWidth = 10
ctx.lineCap = 'round' //设置线条样式
ctx.stroke()
......@@ -337,6 +362,10 @@ export default {
color: #808291;
display: flex;
align-items: center;
.sprite-icon {
margin-left: auto;
transform: scale(0.7);
}
.year-text {
font-weight: 600;
color: rgb(26, 26, 26);
......@@ -360,6 +389,9 @@ export default {
font-weight: 600;
display: flex;
align-items: center;
text {
margin-left: 24rpx;
}
}
.income-tips {
font-size: 24rpx;
......@@ -369,9 +401,10 @@ export default {
margin: 44rpx 0 74rpx;
}
.income-list {
height: calc(100% - 254rpx);
margin-top: 28rpx;
height: calc(100% - 384rpx);
.income-item {
height: 80rpx;
height: 82rpx;
display: flex;
align-items: center;
padding: 0 20rpx 0rpx 32rpx;
......@@ -396,16 +429,23 @@ export default {
}
}
.income-footer {
display: flex;
margin-top: 24rpx;
justify-content: space-between;
padding: 0 20rpx;
padding: 32rpx 48rpx;
background-image: linear-gradient(45deg, #edfaff 10%, #eff7fe 30%, #e5f2fe 50%, #d8f3fb 70%, #edfaff 80%, #c3e4fa 100%);
border: toRpx(2) solid #ffffff;
box-shadow: inset 0 toRpx(4) toRpx(8) 0 #ffffff80;
border-radius: 24rpx;
.footer-label {
font-size: 26rpx;
color: #181a1f;
margin-left: 16rpx;
}
.footer-price {
font-size: 40rpx;
color: #181a1f;
margin-top: 16rpx;
font-weight: 600;
text {
font-size: 28rpx;
}
......@@ -413,6 +453,72 @@ export default {
}
}
}
.empty-body {
height: calc(100vh - 540rpx);
overflow-y: auto;
overflow-x: hidden;
.empty-box {
text-align: center;
margin-top: 160rpx;
image {
height: 224rpx;
}
.empty-text {
font-size: 28rpx;
color: #808291;
line-height: 40rpx;
text-align: center;
}
}
.tips-item {
padding: 30rpx 32rpx;
width: 100%;
min-height: 384rpx;
background: #ffffffb3;
border-radius: 24rpx;
margin-top: 32rpx;
.item-header {
text {
font-size: 24rpx;
color: #808291;
}
}
.item-logo {
width: 100%;
height: 88rpx;
background-image: linear-gradient(81deg, #f0f6ff 0%, #f7faff 4%, #ecf4fe 9%, #f8f9ff 11%, #e8f2ff 43%, #f0f2ff 66%, #dbedff 100%);
font-size: 32rpx;
text-align: center;
line-height: 88rpx;
font-weight: 700;
margin: 10rpx 0;
text {
background: linear-gradient(129deg, #0eabf9 13%, #2f80ea 50%, #7d6ee6 91%);
color: transparent;
background-clip: text;
-webkit-background-clip: text;
}
}
.item-content {
font-size: 26rpx;
color: #181a1f;
line-height: 40rpx;
}
.item-footer {
margin-top: 16rpx;
text {
font-size: 24rpx;
color: #adb0b8;
}
}
}
}
.dailog-content {
font-size: 32rpx;
color: #1a1a1a;
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-14 16:30:24
* @LastEditTime: 2025-01-16 14:32:32
* @FilePath: \gl-tape\components\HomeFrame\components\Income\MyStore.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -61,7 +61,7 @@
</view>
</view>
</view>
<view class="value-detail">
<view :class="{ 'value-detail': true, 'bg-box': !scene0PenetrationRateCommissions.length }">
<view class="detail-item" v-for="(v, k) in outputDetail" :key="k">
<view class="detail-label">
<text>{{ v.label }}</text>
......@@ -86,7 +86,6 @@
<view class="panel-up flex">
<view class="sprite-icon icon-income-card"></view>
<text>本月预估收入</text>
<view class="sprite-icon icon-eyes-on"></view>
<view class="time">截至{{ date }}</view>
</view>
<view class="panel-bottom">
......@@ -254,6 +253,15 @@ export default {
}
})
},
/**
* @description 是否展示某个提成
* @param {string} key 提成key
* @returns {boolean} 是否展示
* @description 如果是equityCommission且不展示equityCommission但是展示lightCommission
* 如果是lightCommission且不展示lightCommission但是展示equityCommission
* 都不展示
*/
isShow(key) {
if (key == 'equityCommission' && !this.salaryDetail.equityCommission && this.salaryDetail.lightCommission) {
return
......@@ -310,7 +318,8 @@ export default {
text {
font-size: toRpx(32);
margin-top: -6rpx;
margin-top: toRpx(-6);
margin-left: toRpx(12);
color: #1a1a1a;
}
......@@ -370,7 +379,7 @@ export default {
.store-body {
padding: 0 toRpx(36);
margin-top: toRpx(40);
margin-top: toRpx(34);
.total-box {
width: 20%;
......@@ -421,6 +430,7 @@ export default {
}
.value-box {
margin-top: toRpx(12);
.value-desc {
min-width: 50%;
......@@ -438,10 +448,10 @@ export default {
font-size: toRpx(32);
color: #181a1f;
line-height: toRpx(60);
margin-left: toRpx(4);
margin-left: toRpx(8);
text {
font-size: toRpx(24);
margin: 0 4rpx;
}
}
}
......@@ -451,9 +461,16 @@ export default {
background: #ffffff;
border-radius: toRpx(16);
display: grid;
padding: toRpx(8) 0;
margin-top: toRpx(4);
grid-template-columns: repeat(3, 1fr);
margin-top: toRpx(16);
&.bg-box {
background: #f7faff;
border-radius: toRpx(16);
.detail-item {
padding-left: 40%;
}
}
.detail-item {
.detail-label {
font-size: toRpx(24);
......@@ -473,7 +490,7 @@ export default {
}
.income-body {
margin-top: toRpx(48);
margin-top: toRpx(40);
background: #ffffff;
border: toRpx(4) solid #ffffff;
box-shadow:
......@@ -485,7 +502,8 @@ export default {
.income-header {
text {
font-size: toRpx(32);
margin-top: -6rpx;
margin-top: toRpx(-6);
margin-left: toRpx(12);
color: #1a1a1a;
}
......@@ -501,6 +519,7 @@ export default {
font-size: toRpx(26);
color: #808291;
margin-left: toRpx(8);
margin-top: toRpx(1);
}
}
}
......@@ -509,11 +528,12 @@ export default {
height: toRpx(152);
width: 100%;
padding: toRpx(24) toRpx(48);
background-image: linear-gradient(180deg, #e6f1ff 0%, #f9fcff 100%);
background-image: linear-gradient(45deg, #edfaff 10%, #eff7fe 30%, #e5f2fe 50%, #d8f3fb 70%, #edfaff 80%, #c3e4fa 100%);
border: toRpx(2) solid #ffffff;
box-shadow: inset 0 toRpx(4) toRpx(8) 0 #ffffff80;
border-radius: toRpx(24);
box-sizing: border-box;
margin: toRpx(20) 0 toRpx(0);
.panel-up {
font-size: toRpx(28);
......@@ -534,7 +554,7 @@ export default {
font-weight: 600;
font-size: toRpx(40);
color: #181a1f;
margin-top: toRpx(10);
margin-top: toRpx(14);
text {
font-size: toRpx(28);
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-13 17:45:47
* @LastEditTime: 2025-01-15 20:51:52
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Promotion.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -32,7 +32,7 @@
<view class="sprite-icon icon-promotion"></view>
<text>{{ item.title }}</text>
</view>
<view class="item-content" v-html="jobDetail[item.value]"></view>
<view class="item-content" v-html="jobDetail[item.value]" v-if="jobDetail[item.value]"></view>
</view>
</view>
</view>
......@@ -102,8 +102,13 @@ export default {
this.getJobConfig(index)
},
getJobConfig() {
uni.showLoading({
mask: true
})
uni.$api.pointApi.getJobConfig({ jobType: this.activeIndex }).then(res => {
this.jobDetail = res || {}
console.log(this.jobDetail, 'jobDetail')
uni.hideLoading()
})
}
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-14 11:25:37
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-14 13:48:52
* @LastEditTime: 2025-01-16 11:39:18
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Question.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -17,23 +17,6 @@
<view v-for="(item, index) in detail.warnList" :key="index" :style="item.style">{{ item.message }}</view>
</view>
</view>
<template v-if="detail.base">
<view class="base-line flex">
<view class="base-label">职级工资</view>
<view class="base-times">(初级销售)</view>
<view class="base-value">3,500</view>
</view>
<view class="base-line flex">
<view class="base-label">应出勤天数</view>
<view class="base-times">(本月31-4)</view>
<view class="base-value">27天</view>
</view>
<view class="base-line flex">
<view class="base-label">实际出勤天数</view>
<view class="base-times">(截至2025-1-6)</view>
<view class="base-value">22天</view>
</view>
</template>
<view class="dailog-desc" v-if="detail.desc">{{ detail.desc }}</view>
</view>
</Tips>
......@@ -80,6 +63,7 @@ export default {
.warn-label {
font-size: 28rpx;
color: #808291;
line-height: 44rpx;
}
}
.base-line {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-10 17:47:07
* @LastEditTime: 2025-01-15 15:48:50
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -68,6 +68,7 @@ export default {
color: #1a1a1a;
font-weight: 600;
margin-top: -10rpx;
margin-left: 16rpx;
}
.enlarge {
transform: scale(1.5);
......
......@@ -53,7 +53,7 @@ export default {
data() {
return {
// showPassword: true
showPassword: true,
showPassword: false,
jobTypeList: {
0: '实习生(理论)',
1: '实习生(实践)',
......@@ -83,16 +83,15 @@ export default {
this.hideFooter(false)
const { phone } = uni.$storage.get('userInfo')
const res = await uni.$api.pointApi.incomeMeasurementConfig({ staffPhone: phone })
const phoneList = res.staffPhone || []
console.log(res.configFlag == 0, res.configFlag == 2 && phoneList.includes(phone))
if (res.configFlag == 0 || (res.configFlag == 2 && phoneList.includes(phone))) {
const phoneList = res.whiteConfig || {}
if (res.configFlag == 0 || (res.configFlag == 2 && phoneList.staffPhone == phone)) {
this.isShow = true
} else {
this.isShow = false
return
}
this.incomeCalculation()
this.start()
// this.start()
},
destroyed() {
this.hideFooter(true)
......@@ -154,49 +153,49 @@ export default {
position: relative;
.income-header {
position: absolute;
top: -120rpx;
right: 64rpx;
top: toRpx(-120);
right: toRpx(64);
display: flex;
.level-box {
width: 464rpx;
height: 84rpx;
width: toRpx(464);
height: toRpx(84);
background: #f0f6ff00;
border: 2rpx solid #c0d8fb;
border-radius: 42rpx;
border-radius: toRpx(42);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32rpx;
padding: 0 toRpx(32);
.level-desc {
font-size: 28rpx;
font-size: toRpx(28);
color: #181a1f;
margin-left: 38rpx;
margin-left: toRpx(38);
}
}
.time-box {
display: flex;
align-items: center;
justify-content: space-between;
width: 398rpx;
height: 84rpx;
width: toRpx(398);
height: toRpx(84);
background: #f0f6ff00;
border: 2rpx solid #b0ccf5;
border-radius: 42rpx;
margin-left: 32rpx;
padding: 0 32rpx;
border-radius: toRpx(42);
margin-left: toRpx(32);
padding: 0 toRpx(32);
.level-label {
font-size: 28rpx;
font-size: toRpx(28);
color: #181a1f;
}
.time-day {
font-size: 36rpx;
font-size: toRpx(36);
color: #2d66f7;
margin-left: 48rpx;
margin-left: toRpx(48);
}
.time-go {
border-bottom: 10rpx solid transparent;
border-left: 14rpx solid #2d66f7;
border-top: 10rpx solid transparent; /* 箭头颜色 */
border-bottom: toRpx(10) solid transparent;
border-left: toRpx(14) solid #2d66f7;
border-top: toRpx(10) solid transparent; /* 箭头颜色 */
}
}
}
......@@ -206,7 +205,7 @@ export default {
width: 100%;
font-weight: 600;
position: absolute;
bottom: -50rpx;
bottom: -58rpx;
left: 0;
text-align: center;
}
......@@ -215,7 +214,7 @@ export default {
display: grid;
grid-template-columns: 68% 32%;
column-gap: 48rpx;
height: calc(100vh - 260rpx);
height: calc(100vh - 268rpx);
width: calc(100% - 110rpx);
margin-top: 32rpx;
.income-store {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-12-31 16:53:31
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-09 16:23:06
* @LastEditTime: 2025-01-15 13:36:10
* @FilePath: \gl-tape\components\HomeFrame\components\Point.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -49,8 +49,8 @@ export default {
margin-top: 68rpx;
width: 550rpx;
height: 84rpx;
line-height: 72rpx;
background: rgba(101, 171, 250, 0.24);
line-height: 74rpx;
background: rgba(101, 171, 250, 0.12);
border-radius: 20rpx;
display: flex;
align-items: center;
......@@ -66,6 +66,8 @@ export default {
background: #ffffff;
border-radius: 16rpx;
text-align: center;
font-weight: 600;
color: #4673ff;
}
}
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-10 15:54:24
* @LastEditTime: 2025-01-15 17:47:45
-->
<template>
<view class="point-box">
......@@ -94,7 +94,7 @@ export default {
{ title: '平板接待精英', style: 'background: #FFFAED;', medalType: 3, logo: require('@/assets/images/point/elite_star.png'), logo_grey: require('@/assets/images/point/elite_grey.png'), content: '平板接待月度无扣分记录', couponName: '50元水果券', couponNum: '1张' }
],
badgeList: [],
tabelTh: [{ title: '积分区间', width: 7 }],
tabelTh: [{ title: '积分区间', width: 8 }],
tabelTr: [{ content: '奖惩规则(每月)' }, { list: ['咖啡奶茶券 6 张', '生日当月专享哈根达斯券 1 张', '美团外卖直兑券 6 张', '闭门课分享活动参加资格', '定制公司公仔礼包'] }, { list: ['咖啡奶茶券 4 张', '生日当月专享哈根达斯券 1 张', '美团外卖直兑券 4 张', '定制公司公仔礼包'] }, { list: ['咖啡奶茶券 1 张', '美团外卖直兑券 1 张'] }, { list: ['咖啡奶茶券 1 张', '美团外卖直兑券 1 张'] }, { list: ['专项培训与辅导'] }]
}
},
......@@ -354,13 +354,13 @@ export default {
}
.star-coupon {
position: absolute;
bottom: toRpx(30);
bottom: toRpx(38);
left: toRpx(0);
display: flex;
justify-content: center;
width: 100%;
.coupon-box {
width: toRpx(390);
width: toRpx(424);
height: toRpx(96);
position: relative;
display: flex;
......@@ -372,7 +372,7 @@ export default {
position: absolute;
left: 0;
top: 0;
width: toRpx(390);
width: toRpx(424);
height: toRpx(96);
z-index: -1;
}
......
......@@ -200,7 +200,7 @@ export default {
height: toRpx(408);
}
&.medal-card {
height: toRpx(782);
height: toRpx(750);
margin-bottom: 0;
}
&.rule-box {
......@@ -218,7 +218,7 @@ export default {
border: none;
background-color: transparent;
box-shadow: none;
height: calc(100vh - #{toRpx(1150)});
height: calc(100vh - #{toRpx(1118)});
.card-title {
font-size: toRpx(36);
color: #ffffff !important;
......@@ -383,7 +383,7 @@ export default {
.month-up {
display: flex;
align-items: center;
margin-top: toRpx(150);
margin-top: toRpx(126);
&:first-child {
margin-top: toRpx(60);
}
......
{
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.3.0",
"versionCode" : "100",
"transformPx" : false,
"name": "展业助手",
"appid": "__UNI__D3BD3DF",
"description": "",
"versionName": "2.4.0",
"versionCode": "100",
"transformPx": false,
/* 5+App特有相关 */
"app-plus" : {
"bounce" : "none",
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"screenOrientation" : "landscape",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"app-plus": {
"bounce": "none",
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"compatible": {
"ignoreVersion": true
},
"screenOrientation": "landscape",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* 模块配置 */
"modules" : {
"Camera" : {},
"Record" : {},
"VideoPlayer" : {},
"AudioPlayer" : {},
"SQLite" : {}
"modules": {
"Camera": {},
"Record": {},
"VideoPlayer": {},
"AudioPlayer": {},
"SQLite": {}
},
/* 应用发布信息 */
"distribute" : {
"distribute": {
/* android打包配置 */
"android" : {
"permissions" : [
"android": {
"permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
......@@ -45,76 +48,83 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"targetSdkVersion" : 30
"abiFilters": [
"armeabi-v7a",
"arm64-v8a",
"x86"
],
"targetSdkVersion": 30
},
/* ios打包配置 */
"ios" : {
"dSYMs" : false,
"UIBackgroundModes" : "audio"
"ios": {
"dSYMs": false,
"UIBackgroundModes": "audio"
},
/* SDK配置 */
"sdkConfigs" : {
"ad" : {},
"speech" : {},
"geolocation" : {
"system" : {
"__platform__" : [ "ios", "android" ]
"sdkConfigs": {
"ad": {},
"speech": {},
"geolocation": {
"system": {
"__platform__": [
"ios",
"android"
]
}
}
},
"icons" : {
"android" : {
"hdpi" : "static/72.png",
"xhdpi" : "static/96.png",
"xxhdpi" : "static/144.png"
"icons": {
"android": {
"hdpi": "static/72.png",
"xhdpi": "static/96.png",
"xxhdpi": "static/144.png"
}
}
},
"nativePlugins" : {
"Ba-KeepAliveSuit" : {
"__plugin_info__" : {
"name" : "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description" : "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms" : "Android",
"url" : "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name" : "uni.gltap",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
"pid" : "11765",
"parameters" : {}
"nativePlugins": {
"Ba-KeepAliveSuit": {
"__plugin_info__": {
"name": "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description": "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms": "Android",
"url": "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name": "uni.gltap",
"ios_bundle_id": "",
"isCloud": true,
"bought": 1,
"pid": "11765",
"parameters": {}
}
}
}
},
/* 快应用特有相关 */
"quickapp" : {},
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx79d1ff39bee3d047",
"setting" : {
"urlCheck" : false
"mp-weixin": {
"appid": "wx79d1ff39bee3d047",
"setting": {
"urlCheck": false
},
"usingComponents" : true
"usingComponents": true
},
"mp-alipay" : {
"usingComponents" : true
"mp-alipay": {
"usingComponents": true
},
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics" : {
"enable" : false
"uniStatistics": {
"enable": false
},
"vueVersion" : "2",
"h5" : {
"devServer" : {
"port" : 8080,
"https" : false
"vueVersion": "2",
"h5": {
"devServer": {
"port": 8080,
"https": false
}
}
}
}
\ No newline at end of file
......@@ -33,7 +33,7 @@ export default {
label: '会员权益/升级',
icon: 'qytc-icon',
content: '权益提成 = 权益产值 × 提成系数 × 提成比例',
subContent: '延保提成 = 售前延保产值×提成系数×安心包max考核系数×提成比例 +售后延保产值×提成比例 +安心包Max产值×提成系数×提成比例',
subContent: '延保提成 = 售前延保产值×提成系数×安心包Max考核系数×提成比例 +售后延保产值×提成比例 +安心包Max产值×提成系数×提成比例',
warnList: [
{ style: 'font-size: 28rpx;color: #808291;line-height: 48rpx;', message: '当安心包Max渗透率<15%,安心包Max考核系数为 0.8' },
{
......
import { getOssToken } from '@/utils/ossUploadFile/uploadFile.js'
import { storageApi } from '@/utils/cache'
import Queue from '@/utils/Queue.js'
import OperationQueue from '@/utils/OperationQueue.js'
import { Command } from '../ws/constants'
......@@ -82,14 +83,21 @@ export default {
handlerMessage(data) {
this.save(data)
},
/**
* 缓存中待上传记录与待提交记录,插入数据库记录中
* @param {*} data
*/
async mergeRecord() {
const unlock = await uni.$recordManager.lock()
const records = uni.$recordManager.getRecords()
const records = uni.$recordManager.getRecords() || []
const tempRecords = storageApi.getRecords('preRecordList') || []
for (let i = 0; i < records.length; i++) {
await uni.$dbManager.addRecord(records[i])
uni.$recordManager.removeRecord(records[i].id)
}
unlock()
for (let i = 0; i < tempRecords.length; i++) {
await uni.$dbTempRecord.addRecord(tempRecords[i])
}
storageApi.setRecords('preRecordList', [])
},
async checkDB() {
try {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 17:16:46
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-13 21:00:58
* @LastEditTime: 2025-01-15 21:03:19
* @FilePath: \gl_tape\utils\utils.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -224,5 +224,6 @@ export default {
getFilePath,
getFileSaveFolderOnClient,
serializeIfObject,
getAudioFilePath
getAudioFilePath,
calcAdd
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!