Commit f1d65e35 by 前端

密码

1 parent dfb8493c
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-13 15:53:34
* @LastEditTime: 2025-01-13 20:29:45
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -43,9 +43,9 @@
</view>
<Dailog @close="calDaliog = false" v-if="calDaliog" width="1600rpx" title="职级晋升、渗透率提升后收入测算">
<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' }">
<template v-for="(item, index) in selectList">
<view class="input-item" :key="index" v-if="!(item.key == 'configCarType' && form.sceneType == 1)">
<view class="input-item" :key="index" v-if="item.key != 'configCarType' || (item.key == 'configCarType' && form.sceneType === '0')">
<view class="input-label">{{ item.label }}</view>
<view :class="['select flex', { placeholderStyle: !getValue(item.key, form[item.key]) }]" @click="showPopup(item, item.key)">
<view class="text-hide">{{ getValue(item.key, form[item.key]) || '请选择' }}</view>
......@@ -60,9 +60,9 @@
<input type="text" class="input" placeholder="请输入" v-model="form.shouldToShopCount" />
</view>
</view>
<view class="input-box num-second">
<view class="input-box num-second" v-if="form.goodsTypeList.length">
<template v-for="(item, index) in form.goodsTypeList">
<view class="input-item">
<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" />
</view>
......@@ -75,7 +75,7 @@
</view>
<template slot="footer">
<view class="dailog-footer">
<view class="dailog-btn" @click="startCount">开始测算</view>
<view :class="{ 'dailog-btn': true, grey: !isClick }" @click="startCount(isClick)">开始测算</view>
</view>
</template>
</Dailog>
......@@ -197,6 +197,8 @@ export default {
},
data() {
return {
errorTip: false,
isClick: false,
list: [],
selectKey: '',
selectObj: {},
......@@ -262,46 +264,8 @@ export default {
{ label: '业务类型', key: 'sceneType' },
{ label: '门店', key: 'merchantId' }
],
tipsList: [
{
company: '榆林华睿通汽车销售服务有限公司',
title: '安心包Max渗透率提醒',
content: '本月安心包Max 渗透率为25%,超过20%。如果达到30%,延保提成系数将按照1.1执行,加油!',
time: '2025-01-07 09:30:00',
tips: '延保提成'
},
{
company: '榆林华睿通汽车销售服务有限公司',
title: '安心包Max渗透率提醒',
content: '本月安心包Max 渗透率为25%,超过20%。如果达到30%,延保提成系数将按照1.1执行,加油!',
time: '2025-01-07 09:30:00',
tips: '延保提成'
},
{
company: '榆林华睿通汽车销售服务有限公司',
title: '安心包Max渗透率提醒',
content: '本月安心包Max 渗透率为25%,超过20%。如果达到30%,延保提成系数将按照1.1执行,加油!',
time: '2025-01-07 09:30:00',
tips: '延保提成'
}
],
list: [
{
label: '业务类型1'
},
{
label: '业务类型2'
},
{
label: '业务类型3'
},
{
label: '业务类型4'
},
{
label: '业务类型5'
}
],
tipsList: [],
list: [],
show: false,
calDaliog: false,
caseList: []
......@@ -324,6 +288,23 @@ export default {
console.log(val)
}
},
form: {
handler(val) {
const { merchantId, sceneType, jobType, configCarType, goodsTypeList, shouldToShopCount } = val
let flag = false
goodsTypeList.forEach(i => {
if (!i.subOrderCount || !i.totalPrice) {
flag = true
}
})
if (merchantId && sceneType && jobType && ((sceneType == 0 && configCarType) || sceneType == 1) && shouldToShopCount && !flag) {
this.isClick = true
} else {
this.isClick = false
}
},
deep: true
},
formItem: {
handler(val) {
const fL = val.filter(i => i)
......@@ -355,7 +336,7 @@ export default {
this.form = {
shouldToShopCount: '',
goodsTypeList: [],
sceneType: '1'
sceneType: ''
}
this.selectKey = ''
},
......@@ -370,6 +351,9 @@ export default {
* @return {void}
*/
startCount() {
if (!this.isClick) {
return
}
const { phone: staffPhone } = uni.$storage.get('userInfo')
const params = { staffPhone, ...this.form }
if (params.sceneType == 1) {
......@@ -536,6 +520,8 @@ export default {
.dailog-body {
padding: 64rpx;
max-height: 50vh;
overflow-y: auto;
.output-box {
width: 568rpx;
height: 648rpx;
......@@ -628,6 +614,9 @@ export default {
height: 260rpx;
background: #ffffff;
margin-bottom: 40rpx;
&:last-child {
margin-bottom: 0;
}
.month-mark {
font-size: 24rpx;
color: #808291;
......@@ -732,7 +721,6 @@ export default {
}
}
}
.dailog-footer {
display: flex;
justify-content: center;
......@@ -748,7 +736,11 @@ export default {
font-size: 36rpx;
color: #ffffff;
line-height: 96rpx;
&.grey {
background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 rgba(255, 255, 255, 0.5);
opacity: 0.5;
}
&.disabled {
background-color: #f0f1f5;
background-image: none;
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-09 11:40:02
* @LastEditTime: 2025-01-13 20:36:45
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -13,7 +13,7 @@
<view class="sprite-icon icon-locker-icon"></view>
</view>
<view class="dailog-right">
<view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view>
<view class="dailog-close" @click="back"><uni-icons type="closeempty" size="20"></uni-icons></view>
<view class="password-title flex">
<text>{{ passwordInfo.title }}</text>
<view @click="changeIconShow" :class="`sprite-icon icon-${passwordInfo.icon}`"></view>
......@@ -329,8 +329,9 @@ export default {
}
}
},
close() {
this.$emit('close')
back() {
console.log('back')
this.$emit('close', 1)
}
}
}
......
......@@ -28,7 +28,7 @@
</view>
</view>
<Password v-if="showPassword" @close="showPassword = false"></Password>
<Password v-if="showPassword" @close="closePassword"></Password>
</template>
<view class="dailog-panel" v-else>
<view class="dailog-box">
......@@ -53,7 +53,7 @@ export default {
data() {
return {
// showPassword: true
showPassword: false,
showPassword: true,
jobTypeList: {
0: '实习生(理论)',
1: '实习生(实践)',
......@@ -98,6 +98,12 @@ export default {
clearInterval(this.interval)
},
methods: {
closePassword(val) {
if (val) {
this.close()
}
this.showPassword = false
},
/**
* 每1s执行一次,执行60次后,触发close方法
* @returns {undefined}
......@@ -240,7 +246,9 @@ export default {
transform: translate(-50%, -50%);
background: #fff;
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */
background-size: 100% 110rpx, 100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
background-size:
100% 110rpx,
100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
background-repeat: no-repeat, no-repeat; /* 确保背景不重复 */
background-position: top, bottom; /* 分别设置渐变和白色的位置 */
width: 1040rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!