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 6a1e99eb
authored
Jan 17, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
95db8d38
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
168 additions
and
82 deletions
components/HomeFrame/components/Income/Calendar.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/index.vue
components/HomeFrame/components/Point.vue
components/HomeFrame/components/Point/Course.vue
components/HomeFrame/components/Point/LevelPoint.vue
components/HomeFrame/components/Point/index.vue
mixin/firstTime.js
store/index.js
store/modules/point.js
utils/utils.js
ws/workers/TempRecordsWorker.js
components/HomeFrame/components/Income/Calendar.vue
View file @
6a1e99e
<
template
>
<
template
>
<view
class=
"calendar-container"
>
<view
class=
"calendar-container"
@
click=
"handleTouch"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"back"
>
<view
class=
"back"
@
click=
"back"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
...
@@ -32,8 +32,9 @@
...
@@ -32,8 +32,9 @@
<
script
>
<
script
>
import
point
from
'@/mixin/point'
import
point
from
'@/mixin/point'
import
firstTime
from
'@/mixin/firstTime'
export
default
{
export
default
{
mixins
:
[
point
],
mixins
:
[
point
,
firstTime
],
name
:
'calendar'
,
name
:
'calendar'
,
props
:
{
props
:
{
// 是否显示周标题
// 是否显示周标题
...
@@ -166,17 +167,20 @@ export default {
...
@@ -166,17 +167,20 @@ export default {
width
:
calc
(
100%
/
7
);
width
:
calc
(
100%
/
7
);
height
:
calc
((
100vh
-
550
rpx
)
/
5
);
height
:
calc
((
100vh
-
550
rpx
)
/
5
);
padding
:
32
rpx
;
padding
:
32
rpx
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border
:
2
rpx
solid
#
808291
;
border
:
2
rpx
solid
#
e7e7e7
;
+
.calendar-date
{
+
.calendar-date
{
border-left
:
none
;
border-left
:
none
;
border-top
:
none
;
border-top
:
none
;
}
}
&
:nth-child
(
7n
+
1
)
{
&
:nth-child
(
7n
+
1
)
{
border-left
:
2
rpx
solid
#
808291
;
border-left
:
2
rpx
solid
#
e7e7e7
;
}
}
&
:nth-child
(
-n
+
7
)
{
&
:nth-child
(
-n
+
7
)
{
border-top
:
2
rpx
solid
#
808291
;
border-top
:
2
rpx
solid
#
e7e7e7
;
}
}
.date-desc
{
.date-desc
{
position
:
relative
;
position
:
relative
;
...
...
components/HomeFrame/components/Income/DayTips.vue
View file @
6a1e99e
...
@@ -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
6 15:07:46
* @LastEditTime: 2025-01-1
7 14:36:40
* @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=
"number"
class=
"input"
placeholder=
"请输入"
v-model=
"form.shouldToShopCount"
/>
<input
type=
"number"
class=
"input"
maxlength=
"3"
@
input=
"form.shouldToShopCount = form.shouldToShopCount.replace(/\D/g, '')"
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=
"number"
class=
"input"
placeholder=
"请输入"
v-model=
"item.subOrderCount"
/>
<input
type=
"number"
class=
"input"
maxlength=
"3"
@
input=
"item.subOrderCount = item.subOrderCount.replace(/\D/g, '')"
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=
"number"
class=
"input"
placeholder=
"请输入"
v-model=
"item.totalPrice"
/>
<input
type=
"number"
class=
"input"
maxlength=
"7"
@
input=
"item.totalPrice = item.totalPrice.replace(/\D/g, '')"
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=
"1
38
0rpx"
title=
"收入测算结果"
>
<Dailog
@
close=
"show = false"
v-if=
"show"
width=
"1
50
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"
>
...
@@ -262,9 +262,9 @@ export default {
...
@@ -262,9 +262,9 @@ export default {
salaryDetail
:
{},
salaryDetail
:
{},
selectList
:
[
selectList
:
[
{
label
:
'职级'
,
key
:
'jobType'
},
{
label
:
'职级'
,
key
:
'jobType'
},
{
label
:
'品牌'
,
key
:
'configCarType'
,
isHide
:
true
},
{
label
:
'业务类型'
,
key
:
'sceneType'
},
{
label
:
'业务类型'
,
key
:
'sceneType'
},
{
label
:
'门店'
,
key
:
'merchantId'
}
{
label
:
'门店'
,
key
:
'merchantId'
},
{
label
:
'品牌'
,
key
:
'configCarType'
,
isHide
:
true
}
],
],
tipsList
:
[],
tipsList
:
[],
list
:
[],
list
:
[],
...
@@ -302,6 +302,7 @@ export default {
...
@@ -302,6 +302,7 @@ export default {
flag
=
true
flag
=
true
}
}
})
})
console
.
log
(
goodsTypeList
,
'goodsTypeList'
)
if
(
merchantId
&&
sceneType
&&
jobType
&&
((
sceneType
==
0
&&
configCarType
)
||
sceneType
==
1
)
&&
shouldToShopCount
&&
!
flag
)
{
if
(
merchantId
&&
sceneType
&&
jobType
&&
((
sceneType
==
0
&&
configCarType
)
||
sceneType
==
1
)
&&
shouldToShopCount
&&
!
flag
)
{
this
.
isClick
=
true
this
.
isClick
=
true
}
else
{
}
else
{
...
@@ -323,7 +324,9 @@ export default {
...
@@ -323,7 +324,9 @@ export default {
if
(
val
===
'1'
)
{
if
(
val
===
'1'
)
{
this
.
form
.
goodsTypeList
=
[
this
.
form
.
goodsTypeList
=
[
{
{
showName
:
''
showName
:
''
,
subOrderCount
:
''
,
totalPrice
:
''
}
}
]
]
}
}
...
@@ -387,7 +390,14 @@ export default {
...
@@ -387,7 +390,14 @@ export default {
getLatestConfigDetail
()
{
getLatestConfigDetail
()
{
const
{
merchantId
,
sceneType
,
jobType
,
configCarType
}
=
this
.
form
const
{
merchantId
,
sceneType
,
jobType
,
configCarType
}
=
this
.
form
uni
.
$api
.
pointApi
.
getLatestConfigDetail
({
merchantId
,
sceneType
,
hireType
:
2
,
jobType
,
configCarType
}).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
getLatestConfigDetail
({
merchantId
,
sceneType
,
hireType
:
2
,
jobType
,
configCarType
}).
then
(
res
=>
{
this
.
form
.
goodsTypeList
=
res
this
.
form
.
goodsTypeList
=
res
.
map
(
i
=>
{
return
{
...
i
,
subOrderCount
:
''
,
totalPrice
:
''
}
})
console
.
log
(
this
.
form
.
goodsTypeList
,
'this.form.goodsTypeList'
)
})
})
},
},
/**
/**
...
@@ -559,7 +569,7 @@ export default {
...
@@ -559,7 +569,7 @@ export default {
grid-template-columns
:
31%
38%
31%
;
grid-template-columns
:
31%
38%
31%
;
}
}
&
.row_2
{
&
.row_2
{
grid-template-columns
:
50%
50%
;
//
grid-template-columns
:
50%
50%
;
.input-label
{
.input-label
{
width
:
150
rpx
;
width
:
150
rpx
;
}
}
...
@@ -624,7 +634,7 @@ export default {
...
@@ -624,7 +634,7 @@ export default {
}
}
.month-box
{
.month-box
{
width
:
472
rpx
;
width
:
540
rpx
;
height
:
260
rpx
;
height
:
260
rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
margin-bottom
:
40
rpx
;
margin-bottom
:
40
rpx
;
...
@@ -646,7 +656,9 @@ export default {
...
@@ -646,7 +656,9 @@ export default {
margin
:
0
30
rpx
;
margin
:
0
30
rpx
;
.value-desc
{
.value-desc
{
flex
:
1
;
&:first-child
{
width
:
70%
;
}
text-align
:
center
;
text-align
:
center
;
padding
:
20rpx
0
0
;
padding
:
20rpx
0
0
;
.value-title
{
.value-title
{
...
@@ -672,7 +684,7 @@ export default {
...
@@ -672,7 +684,7 @@ export default {
border-radius
:
16
rpx
;
border-radius
:
16
rpx
;
margin
:
10
rpx
auto
;
margin
:
10
rpx
auto
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1
fr
)
;
grid-template-columns
:
30%
40%
30%
;
padding
:
16
rpx
32
rpx
;
padding
:
16
rpx
32
rpx
;
.detail-item
{
.detail-item
{
...
@@ -702,7 +714,7 @@ export default {
...
@@ -702,7 +714,7 @@ export default {
}
}
.month-result
{
.month-result
{
width
:
572
rpx
;
width
:
626
rpx
;
background
:
#ffffff
;
background
:
#ffffff
;
border
:
8
rpx
solid
#dbe8ff
;
border
:
8
rpx
solid
#dbe8ff
;
border
:
2
rpx
solid
#5b8dfc
;
border
:
2
rpx
solid
#5b8dfc
;
...
@@ -737,6 +749,7 @@ export default {
...
@@ -737,6 +749,7 @@ export default {
color
:
#181a1f
;
color
:
#181a1f
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
font-weight
:
600
;
font-weight
:
600
;
padding
:
0
10
rpx
;
padding
:
0
10
rpx
;
.result-price
{
.result-price
{
...
...
components/HomeFrame/components/Income/History.vue
View file @
6a1e99e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @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
-->
-->
<
template
>
<
template
>
<view
class=
"history-container"
>
<view
class=
"history-container"
@
click=
"handleTouch"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"back"
>
<view
class=
"back"
@
click=
"back"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
...
@@ -75,8 +75,9 @@
...
@@ -75,8 +75,9 @@
import
Detail
from
'./Detail'
import
Detail
from
'./Detail'
import
point
from
'@/mixin/point'
import
point
from
'@/mixin/point'
import
Question
from
'./Question.vue'
import
Question
from
'./Question.vue'
import
firstTime
from
'@/mixin/firstTime'
export
default
{
export
default
{
mixins
:
[
point
],
mixins
:
[
point
,
firstTime
],
components
:
{
components
:
{
Detail
,
Detail
,
Question
Question
...
...
components/HomeFrame/components/Income/MyStore.vue
View file @
6a1e99e
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-10 14:54:29
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @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
-->
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 09:51:43
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-10 15:42:12
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Tips.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<
template
>
<view
class=
"store-container"
>
<view
class=
"store-container"
>
<view
class=
"store-header flex"
>
<view
class=
"store-header flex"
>
...
@@ -37,7 +21,7 @@
...
@@ -37,7 +21,7 @@
{{
commissionsInfo
[
0
].
shouldToShopCount
||
0
}}
{{
commissionsInfo
[
0
].
shouldToShopCount
||
0
}}
<text>
台
</text>
<text>
台
</text>
</view>
</view>
<view
class=
"total-time"
>
截至
{{
date
}}
</view>
<view
class=
"total-time"
>
截至
{{
date
|
getPrevDay
}}
</view>
</view>
</view>
<view
class=
"total-detail flex"
>
<view
class=
"total-detail flex"
>
<view
class=
"month-box"
v-for=
"(item, index) in commissionsInfo"
:key=
"index"
>
<view
class=
"month-box"
v-for=
"(item, index) in commissionsInfo"
:key=
"index"
>
...
@@ -50,7 +34,7 @@
...
@@ -50,7 +34,7 @@
<view
class=
"value-title"
>
产值
</view>
<view
class=
"value-title"
>
产值
</view>
<view
class=
"value-price"
>
<view
class=
"value-price"
>
<text>
¥
</text>
<text>
¥
</text>
{{
item
.
calculateValu
e
||
'0'
}}
{{
item
.
orderTotalPric
e
||
'0'
}}
</view>
</view>
</view>
</view>
<view
class=
"value-desc flex"
>
<view
class=
"value-desc flex"
>
...
@@ -61,13 +45,13 @@
...
@@ -61,13 +45,13 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
:class=
"
{ 'value-detail': true, 'bg-box':
!scene0PenetrationRateCommissions.length
}">
<view
:class=
"
{ 'value-detail': true, 'bg-box':
commissionsInfo.length == 1
}">
<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>
<uni-icons
type=
"help"
size=
"15"
color=
"#A2A2A8"
v-if=
"v.content"
@
click=
"clickTips(v)"
></uni-icons>
<uni-icons
type=
"help"
size=
"15"
color=
"#A2A2A8"
v-if=
"v.content"
@
click=
"clickTips(v)"
></uni-icons>
</view>
</view>
<view
class=
"detail-num"
>
{{
item
[
v
.
value
]
||
'0'
}}
</view>
<view
class=
"detail-num"
>
{{
item
[
v
.
value
]
||
'0'
}}
{{
v
.
unit
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -86,7 +70,7 @@
...
@@ -86,7 +70,7 @@
<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=
"time"
>
截至
{{
date
}}
</view>
<view
class=
"time"
>
截至
{{
date
|
getPrevDay
}}
</view>
</view>
</view>
<view
class=
"panel-bottom"
>
<view
class=
"panel-bottom"
>
<text>
¥
</text>
<text>
¥
</text>
...
@@ -134,6 +118,16 @@ export default {
...
@@ -134,6 +118,16 @@ export default {
default
:
()
=>
[]
default
:
()
=>
[]
}
}
},
},
filters
:
{
getPrevDay
(
val
)
{
let
date
=
new
Date
(
val
)
const
prevDate
=
new
Date
(
date
.
setDate
(
date
.
getDate
()
-
1
))
const
year
=
prevDate
.
getFullYear
()
const
month
=
prevDate
.
getMonth
()
+
1
const
day
=
prevDate
.
getDate
()
return
`
${
year
}
-
${
month
}
-
${
day
}
`
}
},
inject
:
[
'showPage'
],
inject
:
[
'showPage'
],
data
()
{
data
()
{
return
{
return
{
...
@@ -145,7 +139,8 @@ export default {
...
@@ -145,7 +139,8 @@ export default {
{
{
label
:
'渗透率'
,
label
:
'渗透率'
,
content
:
'渗透率 = 成交订单数 / 应触客台数'
,
content
:
'渗透率 = 成交订单数 / 应触客台数'
,
value
:
'penetrationRate'
value
:
'penetrationRate'
,
unit
:
'%'
},
},
{
{
label
:
'提成系数'
,
label
:
'提成系数'
,
...
@@ -154,7 +149,8 @@ export default {
...
@@ -154,7 +149,8 @@ export default {
},
},
{
{
label
:
'提成比例'
,
label
:
'提成比例'
,
value
:
'commissionRatio'
value
:
'commissionRatio'
,
unit
:
'%'
}
}
],
],
outputList
:
[
outputList
:
[
...
@@ -498,6 +494,7 @@ export default {
...
@@ -498,6 +494,7 @@ export default {
inset
0
toRpx
(
4
)
toRpx
(
8
)
0
#ffffff80
;
inset
0
toRpx
(
4
)
toRpx
(
8
)
0
#ffffff80
;
border-radius
:
toRpx
(
48
);
border-radius
:
toRpx
(
48
);
padding
:
toRpx
(
32
)
toRpx
(
36
);
padding
:
toRpx
(
32
)
toRpx
(
36
);
height
:
calc
(
100vh
-
#{
toRpx
(
400
)}
);
.income-header
{
.income-header
{
text
{
text
{
...
@@ -599,8 +596,7 @@ export default {
...
@@ -599,8 +596,7 @@ export default {
.income-footer
{
.income-footer
{
font-size
:
toRpx
(
24
);
font-size
:
toRpx
(
24
);
color
:
#808291
;
color
:
#808291
;
padding-left
:
toRpx
(
40
);
padding
:
toRpx
(
20
)
0
toRpx
(
60
)
toRpx
(
40
);
padding-bottom
:
toRpx
(
60
);
}
}
}
}
...
...
components/HomeFrame/components/Income/Promotion.vue
View file @
6a1e99e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @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
-->
-->
<
template
>
<
template
>
<view
class=
"job-container"
>
<view
class=
"job-container"
@
click=
"handleTouch"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
class=
"back"
@
click=
"back"
>
<view
class=
"back"
@
click=
"back"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
...
@@ -41,8 +41,9 @@
...
@@ -41,8 +41,9 @@
<
script
>
<
script
>
import
point
from
'@/mixin/point'
import
point
from
'@/mixin/point'
import
firstTime
from
'@/mixin/firstTime'
export
default
{
export
default
{
mixins
:
[
point
],
mixins
:
[
point
,
firstTime
],
props
:
{
props
:
{
transfer
:
{
transfer
:
{
type
:
Object
,
type
:
Object
,
...
...
components/HomeFrame/components/Income/index.vue
View file @
6a1e99e
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
// showPassword: true
// showPassword: true
showPassword
:
fals
e
,
showPassword
:
tru
e
,
jobTypeList
:
{
jobTypeList
:
{
0
:
'实习生(理论)'
,
0
:
'实习生(理论)'
,
1
:
'实习生(实践)'
,
1
:
'实习生(实践)'
,
...
...
components/HomeFrame/components/Point.vue
View file @
6a1e99e
...
@@ -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-1
5 13:36:10
* @LastEditTime: 2025-01-1
7 15:53:31
* @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
-->
-->
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
Point
from
'./Point/index.vue'
import
Point
from
'./Point/index.vue'
import
Income
from
'./Income/index.vue'
import
Income
from
'./Income/index.vue'
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
components
:
{
components
:
{
...
@@ -36,10 +37,18 @@ export default {
...
@@ -36,10 +37,18 @@ export default {
}]
}]
}
}
},
},
computed
:
{
...
mapState
([
'point.tabIndex'
]),
},
watch
:
{
'$store.state.point.tabIndex'
(
val
)
{
this
.
activeIndex
=
val
this
.
tabName
=
this
.
componentList
[
val
]
}
},
methods
:
{
methods
:
{
selectTab
(
index
){
selectTab
(
index
){
this
.
activeIndex
=
index
this
.
$store
.
dispatch
(
'setTab'
,
index
)
this
.
tabName
=
this
.
componentList
[
index
]
}
}
},
},
}
}
...
...
components/HomeFrame/components/Point/Course.vue
View file @
6a1e99e
...
@@ -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-
08 15:15:41
* @LastEditTime: 2025-01-
17 09:25:04
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -90,7 +90,11 @@ export default {
...
@@ -90,7 +90,11 @@ export default {
getList
(
countDate
,
i
)
{
getList
(
countDate
,
i
)
{
uni
.
$api
.
pointApi
.
pointRecordList
({
countDate
,
pointClassification
:
this
.
pointClassification
[
i
]
}
).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
pointRecordList
({
countDate
,
pointClassification
:
this
.
pointClassification
[
i
]
}
).
then
(
res
=>
{
const
pointClassificationName
=
this
.
pointClassName
[
i
]
const
pointClassificationName
=
this
.
pointClassName
[
i
]
const
score
=
res
.
reduce
((
a
,
b
)
=>
utils
.
calcAdd
(
a
,
b
.
pointValue
),
0
)
const
score
=
res
.
reduce
((
a
,
b
)
=>
{
console
.
log
(
a
,
b
.
pointValue
,
utils
.
calcAdd
(
a
,
b
.
pointValue
))
return
utils
.
calcAdd
(
a
,
b
.
pointValue
)
}
,
0
)
console
.
log
(
score
)
this
.
$set
(
this
.
pointList
,
i
,
{
list
:
res
,
pointClassificationName
,
score
}
)
this
.
$set
(
this
.
pointList
,
i
,
{
list
:
res
,
pointClassificationName
,
score
}
)
}
)
}
)
}
,
}
,
...
...
components/HomeFrame/components/Point/LevelPoint.vue
View file @
6a1e99e
...
@@ -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
5 17:47:45
* @LastEditTime: 2025-01-1
7 14:51:31
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -63,12 +63,10 @@
...
@@ -63,12 +63,10 @@
</tr>
</tr>
<tr
class=
"tr"
>
<tr
class=
"tr"
>
<td
v-for=
"(item, index) in tabelTr"
:key=
"index"
>
<td
v-for=
"(item, index) in tabelTr"
:key=
"index"
>
<ul
v-if=
"item.list"
>
<
!--
<
ul
v-if=
"item.list"
>
<li
v-for=
"(l, i) in item.list"
>
{{
l
}}
</li>
<li
v-for=
"(l, i) in item.list"
>
{{
l
}}
</li>
</ul>
</ul>
-->
<template
v-else
>
<view
v-html=
"item.content || item.otherRewards"
></view>
{{
item
.
content
}}
</
template
>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -95,7 +93,7 @@ export default {
...
@@ -95,7 +93,7 @@ export default {
],
],
badgeList
:
[],
badgeList
:
[],
tabelTh
:
[{
title
:
'积分区间'
,
width
:
8
}],
tabelTh
:
[{
title
:
'积分区间'
,
width
:
8
}],
tabelTr
:
[{
content
:
'奖惩规则(每月)'
}
,
{
list
:
[
'咖啡奶茶券 6 张'
,
'生日当月专享哈根达斯券 1 张'
,
'美团外卖直兑券 6 张'
,
'闭门课分享活动参加资格'
,
'定制公司公仔礼包'
]
},
{
list
:
[
'咖啡奶茶券 4 张'
,
'生日当月专享哈根达斯券 1 张'
,
'美团外卖直兑券 4 张'
,
'定制公司公仔礼包'
]
},
{
list
:
[
'咖啡奶茶券 1 张'
,
'美团外卖直兑券 1 张'
]
},
{
list
:
[
'咖啡奶茶券 1 张'
,
'美团外卖直兑券 1 张'
]
},
{
list
:
[
'专项培训与辅导'
]
}
]
tabelTr
:
[{
content
:
'奖惩规则(每月)'
}]
}
}
},
},
props
:
{
props
:
{
...
@@ -133,6 +131,7 @@ export default {
...
@@ -133,6 +131,7 @@ export default {
return
{
title
:
item
.
levelName
,
width
:
Math
.
floor
(
93
/
res
.
length
)
}
return
{
title
:
item
.
levelName
,
width
:
Math
.
floor
(
93
/
res
.
length
)
}
})
})
this
.
tabelTh
=
[...
this
.
tabelTh
,
...
th
]
this
.
tabelTh
=
[...
this
.
tabelTh
,
...
th
]
this
.
tabelTr
=
[...
this
.
tabelTr
,
...
res
]
}
}
})
})
},
},
...
...
components/HomeFrame/components/Point/index.vue
View file @
6a1e99e
...
@@ -59,12 +59,12 @@
...
@@ -59,12 +59,12 @@
<text>
积分规则
</text>
<text>
积分规则
</text>
</view>
</view>
</view>
</view>
<view
class=
"card-content day-rate"
v-if=
"pointDetail.todo"
>
<view
class=
"card-content day-rate"
>
{{ pointDetail.done }}
{{ pointDetail.done }}
<text>
/{{ pointDetail.done + pointDetail.todo }}
</text>
<text>
/{{ pointDetail.done + pointDetail.todo }}
</text>
</view>
</view>
<view
class=
"process-box"
>
<view
class=
"process-box"
>
<view
class=
"process-inter"
:style=
"{ width: (100 * pointDetail.done) /
pointDetail.total
+ '%' }"
></view>
<view
class=
"process-inter"
:style=
"{ width: (100 * pointDetail.done) /
(pointDetail.done + pointDetail.todo)
+ '%' }"
></view>
</view>
</view>
</view>
</view>
<view
class=
"point-record"
>
<view
class=
"point-record"
>
...
@@ -136,7 +136,7 @@ export default {
...
@@ -136,7 +136,7 @@ export default {
],
],
starList
:[
{
title
:
'学习之星'
,
medalType
:
1
,
logo
:
require
(
'@/assets/images/point/study_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/study_grey.png'
),
},
starList
:[
{
title
:
'学习之星'
,
medalType
:
1
,
logo
:
require
(
'@/assets/images/point/study_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/study_grey.png'
),
},
{
title
:
'全勤之星'
,
medalType
:
2
,
logo
:
require
(
'@/assets/images/point/time_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/time_grey.png'
),
},
{
title
:
'全勤之星'
,
medalType
:
2
,
logo
:
require
(
'@/assets/images/point/time_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/time_grey.png'
),
},
{
title
:
'接待精英'
,
medalType
:
4
,
logo
:
require
(
'@/assets/images/point/elite_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/elite_grey.png'
),
}],
{
title
:
'
平板
接待精英'
,
medalType
:
4
,
logo
:
require
(
'@/assets/images/point/elite_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/elite_grey.png'
),
}],
myStar
:
[],
myStar
:
[],
recordList
:[{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
}],
recordList
:[{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
},{
title
:
'签到'
,
time
:
'2021-09-09'
,
num
:
10
}],
}
}
...
@@ -329,7 +329,7 @@ export default {
...
@@ -329,7 +329,7 @@ export default {
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
padding-left
:
20%
;
font-size
:
toRpx
(
28
);
font-size
:
toRpx
(
28
);
color
:
#181a1f
;
color
:
#181a1f
;
margin-bottom
:
32
rpx
;
margin-bottom
:
32
rpx
;
...
...
mixin/firstTime.js
0 → 100644
View file @
6a1e99e
export
default
{
data
()
{
return
{
times
:
0
,
interval
:
null
}
},
mounted
()
{
this
.
start
()
},
beforeDestroy
()
{
clearInterval
(
this
.
interval
)
},
methods
:
{
handleTouch
()
{
this
.
times
=
0
},
close
()
{
this
.
back
()
this
.
$store
.
dispatch
(
'setTab'
,
0
)
},
start
()
{
this
.
interval
=
setInterval
(()
=>
{
this
.
times
++
if
(
this
.
times
==
60
)
{
this
.
close
()
clearInterval
(
this
.
interval
)
}
},
1000
)
}
}
}
store/index.js
View file @
6a1e99e
...
@@ -6,25 +6,27 @@
...
@@ -6,25 +6,27 @@
* @FilePath: \gl_tape\store\index.js
* @FilePath: \gl_tape\store\index.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
*/
*/
import
Vue
from
"vue"
;
import
Vue
from
'vue'
import
Vuex
from
"vuex"
;
import
Vuex
from
'vuex'
import
getters
from
"./getters"
;
import
getters
from
'./getters'
import
user
from
"./modules/user"
;
import
user
from
'./modules/user'
import
audio
from
"./modules/audio"
;
import
audio
from
'./modules/audio'
import
update
from
"./modules/update"
;
import
update
from
'./modules/update'
import
sys
from
"./modules/sys"
;
import
sys
from
'./modules/sys'
Vue
.
use
(
Vuex
);
import
point
from
'./modules/point'
Vue
.
use
(
Vuex
)
const
store
=
new
Vuex
.
Store
({
const
store
=
new
Vuex
.
Store
({
modules
:
{
modules
:
{
user
,
user
,
audio
,
audio
,
update
,
update
,
sys
sys
,
point
},
},
getters
,
getters
})
;
})
// Vue.prototype.$store = store;
// Vue.prototype.$store = store;
export
default
store
;
export
default
store
store/modules/point.js
0 → 100644
View file @
6a1e99e
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-17 15:40:18
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-17 15:41:00
* @FilePath: \gl-tape\store\modules\point.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export
default
{
state
()
{
return
{
tabIndex
:
0
}
},
mutations
:
{
SET_Tab
(
state
,
value
)
{
state
.
tabIndex
=
value
}
},
actions
:
{
setTab
({
commit
},
value
)
{
commit
(
'SET_Tab'
,
value
)
}
}
}
utils/utils.js
View file @
6a1e99e
...
@@ -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
5 21:03:19
* @LastEditTime: 2025-01-1
7 09:37:32
* @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
*/
*/
...
@@ -65,7 +65,7 @@ function calcAdd(num1, num2) {
...
@@ -65,7 +65,7 @@ function calcAdd(num1, num2) {
r2
=
0
r2
=
0
}
}
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
))
m
=
Math
.
pow
(
10
,
Math
.
max
(
r1
,
r2
))
return
(
num1
*
m
+
num2
*
m
)
/
m
return
(
Math
.
round
(
num1
*
m
)
+
Math
.
round
(
num2
*
m
)
)
/
m
}
}
function
debounce
(
fn
,
timer
)
{
function
debounce
(
fn
,
timer
)
{
var
t
=
null
var
t
=
null
...
...
ws/workers/TempRecordsWorker.js
View file @
6a1e99e
...
@@ -3,7 +3,7 @@ export default class TempRecordsWorker {
...
@@ -3,7 +3,7 @@ export default class TempRecordsWorker {
async
work
(
deviceId
,
data
,
ws
)
{
async
work
(
deviceId
,
data
,
ws
)
{
try
{
try
{
const
records
=
await
uni
.
$dbTempRecord
.
getRecords
()
const
records
=
await
uni
.
$dbTempRecord
.
getRecords
()
const
msg
=
`记录获取待提交记录成功 temp records ->
${
records
}
`
const
msg
=
`记录获取待提交记录成功 temp records ->
${
JSON
.
stringify
(
records
)
}
`
uni
.
$logger
.
local
.
info
(
msg
)
uni
.
$logger
.
local
.
info
(
msg
)
ws
.
send
({
code
:
200
,
msg
})
ws
.
send
({
code
:
200
,
msg
})
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
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