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