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 75f879e9
authored
Dec 21, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调
1 parent
129817dc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
301 additions
and
185 deletions
App.vue
api/module/common.js
assets/images/point/level_empty.png
assets/images/point/point_bg.png
assets/images/point/ticket_bg.png
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/Point.vue
components/HomeFrame/components/Point/Course.vue
components/HomeFrame/components/Point/DayPoint.vue
components/HomeFrame/components/Point/LevelPoint.vue
components/HomeFrame/components/Point/Ranking.vue
components/HomeFrame/components/Point/RulePoint.vue
components/HomeFrame/index.vue
env.js
mixin/click.js
mixin/point.js
pages/equity/index.vue
App.vue
View file @
75f879e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53
* @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-1
0-31 11:01:19
* @LastEditTime: 2024-1
2-21 14:41:41
* @FilePath: \gl_tape\App.vue
* @FilePath: \gl_tape\App.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
-->
-->
...
@@ -26,8 +26,54 @@ export default {
...
@@ -26,8 +26,54 @@ export default {
keepScreenOn
:
true
keepScreenOn
:
true
})
})
new
Ws
().
connect
()
new
Ws
().
connect
()
this
.
getAllApply
()
},
},
methods
:
{
methods
:
{
getAllApply
()
{
// #ifdef APP-PLUS
const
main
=
plus
.
android
.
runtimeMainActivity
()
const
pManager
=
plus
.
android
.
invoke
(
main
,
'getPackageManager'
)
const
ApplicationInfo
=
plus
.
android
.
importClass
(
'android.content.pm.ApplicationInfo'
)
const
packages
=
plus
.
android
.
invoke
(
pManager
,
'getInstalledPackages'
,
0
)
const
total
=
plus
.
android
.
invoke
(
packages
,
'size'
)
let
appInfoList
=
[]
for
(
let
i
=
0
;
i
<
total
;
i
++
)
{
try
{
const
packageInfo
=
plus
.
android
.
invoke
(
packages
,
'get'
,
i
)
// 获取包名
const
packName
=
plus
.
android
.
getAttribute
(
packageInfo
,
'packageName'
)
const
versionName
=
plus
.
android
.
getAttribute
(
packageInfo
,
'versionName'
)
const
versionCode
=
plus
.
android
.
getAttribute
(
packageInfo
,
'versionCode'
)
const
appInfo
=
plus
.
android
.
invoke
(
pManager
,
'getApplicationInfo'
,
packName
,
0
)
const
appName
=
plus
.
android
.
invoke
(
pManager
,
'getApplicationLabel'
,
appInfo
)
// 是否是系统软件
const
isSystem
=
packageInfo
.
plusGetAttribute
(
'applicationInfo'
).
plusGetAttribute
(
'flags'
)
&
(
ApplicationInfo
.
FLAG_SYSTEM
!=
0
)
?
true
:
false
// 判断是否是系统文件
if
(
!
isSystem
)
{
appInfoList
.
push
({
packName
,
versionName
,
versionCode
,
appName
})
}
}
catch
(
e
)
{}
}
plus
.
android
.
autoCollection
(
main
)
const
{
deviceId
:
tabletSerialNumber
}
=
uni
.
getDeviceInfo
()
uni
.
$api
.
commonApi
.
saveOrUpdateEmployeeAppUsage
({
tabletSerialNumber
,
appVersion
:
plus
.
runtime
.
version
,
gameAppList
:
JSON
.
stringify
(
appInfoList
)
})
.
then
(
res
=>
{
console
.
log
(
res
)
})
.
catch
(
err
=>
{
console
.
log
(
err
)
})
// #endif
},
init
()
{
init
()
{
uni
.
addInterceptor
(
'navigateTo'
,
{
uni
.
addInterceptor
(
'navigateTo'
,
{
//监听跳转
//监听跳转
...
...
api/module/common.js
View file @
75f879e
...
@@ -149,5 +149,13 @@ module.exports = {
...
@@ -149,5 +149,13 @@ module.exports = {
true
,
true
,
'scrm'
'scrm'
)
)
},
/** 保存平板安装包信息 */
saveOrUpdateEmployeeAppUsage
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.recepiton.customer.saveOrUpdateEmployeeAppUsage'
,
projectName
:
'boutique'
,
...
data
})
}
}
}
}
assets/images/point/level_empty.png
0 → 100644
View file @
75f879e
67.6 KB
assets/images/point/point_bg.png
View file @
75f879e
37.7 KB
|
W:
|
H:
36.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/images/point/ticket_bg.png
View file @
75f879e
563 KB
|
W:
|
H:
2.04 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/components/LeftSide.vue
View file @
75f879e
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
font-size
:
toRpx
(
28
);
font-size
:
toRpx
(
28
);
color
:
#8a98b5
;
color
:
#8a98b5
;
text-align
:
center
;
text-align
:
center
;
padding-bottom
:
toRpx
(
9
6
);
padding-bottom
:
toRpx
(
4
6
);
position
:
relative
;
position
:
relative
;
.dot
{
.dot
{
width
:
toRpx
(
16
);
width
:
toRpx
(
16
);
...
...
components/HomeFrame/components/Point.vue
View file @
75f879e
...
@@ -16,20 +16,24 @@
...
@@ -16,20 +16,24 @@
<view
class=
"month-text"
>
本月排名
</view>
<view
class=
"month-text"
>
本月排名
</view>
<uni-icons
type=
"right"
></uni-icons>
<uni-icons
type=
"right"
></uni-icons>
</view>
</view>
<view
class=
"month-num"
>
{{
pointDetail
.
ranking
}}
</view>
<view
class=
"month-num"
>
{{
pointDetail
.
ranking
||
'-'
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"point-up"
>
<view
class=
"point-up"
>
<view
class=
"card-box"
@
click=
"jump('LevelPoint')"
>
<view
class=
"card-box"
>
<view
class=
"card-top"
>
<view
class=
"card-top"
>
<view
class=
"sprite-icon icon-level"
></view>
<view
class=
"sprite-icon icon-level"
></view>
<view
class=
"card-title"
>
成长级别
</view>
<view
class=
"card-title"
>
成长级别
</view>
</view>
</view>
<view
class=
"card-content level-box
"
:style=
"levelList[pointDetail.levelCode - 1].style"
>
<view
@
click=
"jump('LevelPoint')"
class=
"card-content level-box"
v-if=
"pointDetail.levelCode
"
:style=
"levelList[pointDetail.levelCode - 1].style"
>
<view
class=
"level-logo"
><image
:src=
"levelList[pointDetail.levelCode - 1].logo"
></image></view>
<view
class=
"level-logo"
><image
:src=
"levelList[pointDetail.levelCode - 1].logo"
></image></view>
<view
class=
"level-name"
>
{{
pointDetail
.
levelName
}}
</view>
<view
class=
"level-name"
>
{{
pointDetail
.
levelName
}}
</view>
<view
class=
"level-month"
>
{{
month
}}
月
</view>
<view
class=
"level-month"
>
{{
month
}}
月
</view>
</view>
</view>
<view
class=
"level-empty"
>
<image
:src=
"require('@/assets/images/point/level_empty.png')"
mode=
"heightFix"
/>
<view
class=
"empty-text"
>
没评上,请加油~
</view>
</view>
</view>
</view>
<view
class=
"card-box"
@
click=
"jump('LevelPoint')"
>
<view
class=
"card-box"
@
click=
"jump('LevelPoint')"
>
<view
class=
"card-top"
>
<view
class=
"card-top"
>
...
@@ -38,14 +42,14 @@
...
@@ -38,14 +42,14 @@
</view>
</view>
<view
class=
"card-content star-box"
>
<view
class=
"card-content star-box"
>
<view
class=
"card-item"
v-for=
"(item, index) in starList"
:key=
"index"
>
<view
class=
"card-item"
v-for=
"(item, index) in starList"
:key=
"index"
>
<image
:src=
"myStar.includes(i
ndex + 1
) ? item.logo : item.logo_grey"
/>
<image
:src=
"myStar.includes(i
tem.medalType
) ? item.logo : item.logo_grey"
/>
<view
:class=
"
{ 'card-text': true, grey: !myStar.includes(index + 1) }">
{{
item
.
title
}}
</view>
<view
:class=
"
{ 'card-text': true, grey: !myStar.includes(index + 1) }">
{{
item
.
title
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"card-box coupon-box"
>
<view
class=
"card-box coupon-box"
@
click=
"jump('LevelPoint',
{ isHigh: true })"
>
<view
class=
"card-top"
>
<view
class=
"card-top"
>
<view
class=
"sprite-icon icon-certificate"
></view>
<view
class=
"sprite-icon icon-certificate"
></view>
<view
class=
"card-title"
>
我的兑换券
</view>
<view
class=
"card-title"
>
我的兑换券
</view>
...
@@ -69,21 +73,30 @@
...
@@ -69,21 +73,30 @@
<text>
/
{{
pointDetail
.
total
}}
</text>
<text>
/
{{
pointDetail
.
total
}}
</text>
</view>
</view>
<view
class=
"process-box"
>
<view
class=
"process-box"
>
<view
class=
"process-inter"
:style=
"
{ width:
pointDetail.done
/ pointDetail.total + '%' }">
</view>
<view
class=
"process-inter"
:style=
"
{ width:
(100 * pointDetail.done)
/ pointDetail.total + '%' }">
</view>
</view>
</view>
</view>
</view>
<view
class=
"point-record"
>
<view
class=
"point-record"
>
<view
class=
"record-title"
>
积分记录
</view>
<view
class=
"record-title"
>
积分记录
</view>
<template
v-if=
"recordList.length"
>
<view
class=
"record-body"
>
<view
class=
"record-body"
>
<view
class=
"record-item"
v-for=
"(i, index) in recordList"
:key=
"index"
>
<view
class=
"record-item"
v-for=
"(i, index) in recordList"
:key=
"index"
>
<view
class=
"record-item-left"
>
<view
class=
"record-item-left"
>
<view
class=
"item-title"
>
{{
i
.
pointTyp
e
}}
</view>
<view
class=
"item-title"
>
{{
i
.
pointTypeNam
e
}}
</view>
<view
class=
"item-time"
>
{{
i
.
createdDate
}}
</view>
<view
class=
"item-time"
>
{{
i
.
createdDate
}}
</view>
</view>
</view>
<view
class=
"record-item-num"
>
+
{{
i
.
pointValue
}}
</view>
<view
class=
"record-item-num"
>
+
{{
i
.
pointValue
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"record-more"
@
click=
"jump('Course')"
>
查看更多
</view>
<view
class=
"record-more"
@
click=
"jump('Course')"
>
查看更多
</view>
</
template
>
<
template
v-else
>
<view
class=
"empty-box"
>
<image
:src=
"require('@/assets/images/boutique/nothing.png')"
mode=
"heightFix"
/>
<view
class=
"empty-text"
>
查看每日积分项,领取积分
</view>
</view>
<view
class=
"day-record"
@
click=
"jump('dayPoint')"
>
每日积分
</view>
</
template
>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -130,10 +143,10 @@ export default {
...
@@ -130,10 +143,10 @@ export default {
logo
:
require
(
'@/assets/images/point/masonry.png'
),
logo
:
require
(
'@/assets/images/point/masonry.png'
),
}
}
],
],
starList
:[
{
title
:
'学习之星'
,
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
:
'全勤之星'
,
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
:
'零售导师'
,
logo
:
require
(
'@/assets/images/point/teacher_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/teacher_grey.png'
),
},
{
title
:
'零售导师'
,
medalType
:
3
,
logo
:
require
(
'@/assets/images/point/teacher_star.png'
),
logo_grey
:
require
(
'@/assets/images/point/teacher_grey.png'
),
},
{
title
:
'平板接待'
,
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
}],
}
}
...
@@ -156,14 +169,14 @@ export default {
...
@@ -156,14 +169,14 @@ export default {
const
month
=
new
Date
().
getMonth
()
+
1
const
month
=
new
Date
().
getMonth
()
+
1
uni
.
$api
.
pointApi
.
getPoint
({
countDate
:
this
.
date
}).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
getPoint
({
countDate
:
this
.
date
}).
then
(
res
=>
{
this
.
pointDetail
=
res
||
{}
this
.
pointDetail
=
res
||
{}
const
myStar
=
res
.
badgeList
.
map
(
i
=>
i
.
t
ype
)
const
myStar
=
res
.
badgeList
.
map
(
i
=>
i
.
medalT
ype
)
this
.
myStar
=
myStar
this
.
myStar
=
myStar
this
.
level
=
res
.
levelCode
;
this
.
level
=
res
.
levelCode
;
})
})
},
},
jump
(
name
)
{
jump
(
name
,
val
)
{
console
.
log
(
name
,
99
)
console
.
log
(
name
,
99
)
this
.
$emit
(
'showPage'
,
name
)
this
.
$emit
(
'showPage'
,
name
,
val
)
}
}
}
}
}
}
...
@@ -255,6 +268,17 @@ export default {
...
@@ -255,6 +268,17 @@ export default {
}
}
}
}
}
}
.level-empty
{
text-align
:
center
;
margin-top
:
toRpx
(
20
);
image
{
height
:
toRpx
(
168
);
}
.empty-text
{
font-size
:
26
rpx
;
color
:
#808291
;
}
}
.card-content
{
.card-content
{
margin-top
:
toRpx
(
40
);
margin-top
:
toRpx
(
40
);
&.day-rate
{
&.day-rate
{
...
@@ -402,7 +426,7 @@ export default {
...
@@ -402,7 +426,7 @@ export default {
}
}
.point-right
{
.point-right
{
flex
:
1
;
flex
:
1
;
margin
:
toRpx
(
0
)
toRpx
(
60
)
toRpx
(
0
)
toRpx
(
5
0
);
margin
:
toRpx
(
0
)
toRpx
(
60
)
toRpx
(
0
)
toRpx
(
3
0
);
.card-box
{
.card-box
{
width
:
auto
;
width
:
auto
;
}
}
...
@@ -411,10 +435,33 @@ export default {
...
@@ -411,10 +435,33 @@ export default {
border
:
toRpx
(
4
)
solid
#ffffff
;
border
:
toRpx
(
4
)
solid
#ffffff
;
box-shadow
:
inset
0
toRpx
(
4
)
toRpx
(
8
)
0
rgba
(
255
,
255
,
255
,
0.5
);
box-shadow
:
inset
0
toRpx
(
4
)
toRpx
(
8
)
0
rgba
(
255
,
255
,
255
,
0.5
);
border-radius
:
toRpx
(
48
);
border-radius
:
toRpx
(
48
);
margin
-top
:
toRpx
(
35
)
;
margin
:
toRpx
(
35
)
toRpx
(
10
)
0
;
height
:
calc
(
100%
-
#{
toRpx
(
450
)}
);
height
:
calc
(
100%
-
#{
toRpx
(
450
)}
);
padding
:
toRpx
(
40
);
padding
:
toRpx
(
40
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.empty-box
{
text-align
:
center
;
image
{
height
:
toRpx
(
224
);
margin-top
:
toRpx
(
128
);
}
.empty-text
{
font-size
:
toRpx
(
26
);
color
:
#808291
;
line-height
:
toRpx
(
106
);
}
}
.day-record
{
width
:
296
rpx
;
height
:
88
rpx
;
background-image
:
linear-gradient
(
180deg
,
#61c0ff
0%
,
#2c66f7
100%
);
border-radius
:
20
rpx
;
text-align
:
center
;
line-height
:
88
rpx
;
font-size
:
30
rpx
;
color
:
#ffffff
;
margin
:
120
rpx
auto
0
;
}
.record-title
{
.record-title
{
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
32
);
color
:
#1a1a1a
;
color
:
#1a1a1a
;
...
...
components/HomeFrame/components/Point/Course.vue
View file @
75f879e
...
@@ -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: 2024-12-
18 21:16:59
* @LastEditTime: 2024-12-
20 16:41:47
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
</view>
</view>
<view
class=
"month-box"
>
<view
class=
"month-box"
>
<view
class=
"month-tabs"
>
<view
class=
"month-tabs"
>
<view
:class=
"
{ 'tab-prev': true, disabled: currentIndex == 0 }" @click="prevTab(currentIndex == 0)
">
<view
class=
"tab-prev"
v-if=
"month
<
= currentMonth" @click="prevTab
">
<view
class=
"tab-icon"
>
<view
class=
"tab-icon"
>
<uni-icons
type=
"left"
size=
"20"
></uni-icons>
<uni-icons
type=
"left"
size=
"20"
></uni-icons>
</view>
</view>
</view>
</view>
<view
class=
"tab-mid"
>
11
月
</view>
<view
class=
"tab-mid"
>
{{
month
==
currentMonth
?
'本'
:
(
month
+
''
).
padStart
(
2
,
'0'
)
}}
月
</view>
<view
:class=
"
{ 'tab-next': true, disabled: currentIndex == detail.length - 1 }" @click="nextTab(currentIndex == detail.length - 1)
">
<view
class=
"tab-next"
v-if=
"month != currentMonth"
@
click=
"nextTab
"
>
<view
class=
"tab-icon"
>
<view
class=
"tab-icon"
>
<uni-icons
type=
"right"
size=
"20"
></uni-icons>
<uni-icons
type=
"right"
size=
"20"
></uni-icons>
</view>
</view>
...
@@ -29,29 +29,33 @@
...
@@ -29,29 +29,33 @@
</view>
</view>
<view
class=
"point-body"
>
<view
class=
"point-body"
>
<view
class=
"body-top"
>
<view
class=
"body-top"
>
<
!--
<view
class=
"sprite-icon icon-day-points"
></view>
--
>
<
image
v-if=
"statistics.levelCode"
:src=
"levelImg[statistics.levelCode - 1]"
class=
"level-image"
/
>
<
image
:src=
"levelImg[0]"
class=
"level-image"
/
>
<
view
class=
"sprite-icon icon-day-points"
v-else
></view
>
<view
class=
"level-desc"
>
<view
class=
"level-desc"
>
<view
class=
"level-name"
>
11月积分:白银级熟手
</view>
<view
class=
"level-name"
>
{{
month
==
currentMonth
?
'本'
:
(
month
+
''
).
padStart
(
2
,
'0'
)
}}
月积分
{{
statistics
.
levelName
?
`:${statistics.levelName
}
`
:
''
}}
<
/view
>
<view
class=
"level-num"
>
第
35
名
</view>
<
view
class
=
"level-num"
>
第
{{
statistics
.
ranking
}}
名
<
/view
>
<
/view
>
<
/view
>
<view
class=
"level-score"
>
180
</view>
<
view
class
=
"level-score"
>
{{
statistics
.
pointValue
}}
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"point-detail"
>
<
view
class
=
"point-detail"
>
<
view
class
=
"point-item"
v
-
for
=
"(item, index) in pointList"
:
key
=
"index"
>
<
view
class
=
"point-item"
v
-
for
=
"(item, index) in pointList"
:
key
=
"index"
>
<view
class=
"item-header"
>
<
view
class
=
"item-header"
v
-
if
=
"item"
>
<view
class=
"point-class"
>
{{
item
.
n
ame
}}
</view>
<
view
class
=
"point-class"
v
-
if
=
"item.pointClassificationName"
>
{{
item
.
pointClassificationN
ame
}}
<
/view
>
<view
class=
"class-score"
>
{{
item
.
num
}}
积分
</view>
<
view
class
=
"class-score"
>
{{
item
.
score
}}
积分
<
/view
>
<
/view
>
<
/view
>
<view
class=
"desc-wrap"
>
<
view
class
=
"desc-wrap"
v
-
if
=
"item && item.list && item.list.length"
>
<view
class=
"item-body"
v-for=
"(l, i) in
20
"
:key=
"i"
>
<
view
class
=
"item-body"
v
-
for
=
"(l, i) in
item.list
"
:
key
=
"i"
>
<
view
class
=
"item-left"
>
<
view
class
=
"item-left"
>
<view
class=
"item-title"
>
参与培训
</view>
<
view
class
=
"item-title"
>
{{
l
.
pointTypeName
}}
<
/view
>
<view
class=
"item-time"
>
2024-12-10 10:05:30
</view>
<
view
class
=
"item-time"
>
{{
l
.
createdDate
}}
<
/view
>
<
/view
>
<
/view
>
<view
class=
"item-num"
>
+
1
</view>
<
view
class
=
"item-num"
>+
{{
l
.
pointValue
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"empty-box"
v
-
else
>
<
image
:
src
=
"require('@/assets/images/boutique/nothing.png')"
mode
=
"heightFix"
/>
<
view
class
=
"empty-text"
>
暂无积分记录
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -63,74 +67,36 @@ export default {
...
@@ -63,74 +67,36 @@ export default {
mixins
:
[
point
],
mixins
:
[
point
],
data
()
{
data
()
{
return
{
return
{
selectItem
:
{},
pointClassification
:
[
'C001'
,
'C002'
,
'C003'
],
pointClassName
:
[
'课程学习类'
,
'日常行为类'
,
'分享授课类'
],
statistics
:
{
}
,
levelImg
:
[
require
(
'@/assets/images/point/bronze.png'
),
require
(
'@/assets/images/point/silver.png'
),
require
(
'@/assets/images/point/gold.png'
),
require
(
'@/assets/images/point/masonry.png'
)],
levelImg
:
[
require
(
'@/assets/images/point/bronze.png'
),
require
(
'@/assets/images/point/silver.png'
),
require
(
'@/assets/images/point/gold.png'
),
require
(
'@/assets/images/point/masonry.png'
)],
detail
:
[],
detail
:
[],
currentIndex
:
0
,
currentIndex
:
0
,
pointList
:
[
pointList
:
[]
{
name
:
'课程学习类'
,
num
:
6
,
list
:
[
{
name
:
'参与培训'
,
time
:
'2024-12-10 10:05:30'
,
socre
:
1
},
{
name
:
'参与培训'
,
time
:
'2024-12-10 10:05:30'
,
socre
:
1
},
{
name
:
'参与培训'
,
time
:
'2024-12-10 10:05:30'
,
socre
:
1
},
{
name
:
'参与培训'
,
time
:
'2024-12-10 10:05:30'
,
socre
:
1
},
{
name
:
'参与培训'
,
time
:
'2024-12-10 10:05:30'
,
socre
:
1
},
{
name
:
'参与培训'
,
time
:
'2024-12-10 10:05:30'
,
socre
:
1
}
}
]
}
,
}
,
{
mounted
()
{
}
,
name
:
'课程学习类'
,
methods
:
{
num
:
6
,
getDetail
(
countDate
)
{
list
:
[
uni
.
$api
.
pointApi
.
getPoint
({
countDate
}
).
then
(
res
=>
{
{
this
.
statistics
=
res
||
{
}
name
:
'参与培训'
,
}
)
time
:
'2024-12-10 10:05:30'
,
for
(
let
i
=
0
;
i
<
this
.
pointClassification
.
length
;
i
++
)
{
socre
:
1
this
.
getList
(
countDate
,
i
)
}
}
]
}
,
}
,
{
getList
(
countDate
,
i
)
{
name
:
'课程学习类'
,
uni
.
$api
.
pointApi
.
pointRecordList
({
countDate
,
pointClassification
:
this
.
pointClassification
[
i
]
}
).
then
(
res
=>
{
num
:
6
,
const
pointClassificationName
=
this
.
pointClassName
[
i
]
list
:
[
const
score
=
res
.
reduce
((
a
,
b
)
=>
a
+
b
.
pointValue
,
0
)
{
this
.
$set
(
this
.
pointList
,
i
,
{
list
:
res
,
pointClassificationName
,
score
}
)
name
:
'参与培训'
,
}
)
time
:
'2024-12-10 10:05:30'
,
}
,
socre
:
1
updateDetail
(
countDate
)
{
}
this
.
getDetail
(
countDate
)
]
}
}
]
}
}
},
mounted
()
{},
methods
:
{}
}
}
<
/script
>
<
/script
>
<
style
scoped
lang
=
"scss"
>
<
style
scoped
lang
=
"scss"
>
...
@@ -186,6 +152,7 @@ export default {
...
@@ -186,6 +152,7 @@ export default {
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
margin
-
left
:
80
rpx
;
margin
-
left
:
80
rpx
;
height
:
162
rpx
;
.
level
-
image
{
.
level
-
image
{
width
:
136
rpx
;
width
:
136
rpx
;
height
:
162.6
rpx
;
height
:
162.6
rpx
;
...
@@ -240,6 +207,19 @@ export default {
...
@@ -240,6 +207,19 @@ export default {
height
:
calc
(
100
%
-
102
rpx
);
height
:
calc
(
100
%
-
102
rpx
);
overflow
-
y
:
auto
;
overflow
-
y
:
auto
;
}
}
.
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
;
}
}
.
item
-
body
{
.
item
-
body
{
display
:
flex
;
display
:
flex
;
justify
-
content
:
space
-
between
;
justify
-
content
:
space
-
between
;
...
...
components/HomeFrame/components/Point/DayPoint.vue
View file @
75f879e
...
@@ -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: 2024-12-
19 15:17:31
* @LastEditTime: 2024-12-
20 13:50:35
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
<view
class=
"dailog-box"
>
<view
class=
"dailog-box"
>
<view
class=
"dailog-close"
@
click=
"show = false"
><uni-icons
type=
"closeempty"
size=
"30"
></uni-icons></view>
<view
class=
"dailog-close"
@
click=
"show = false"
><uni-icons
type=
"closeempty"
size=
"30"
></uni-icons></view>
<view
class=
"dailog-logo"
><image
:src=
"selectItem.logo"
></image></view>
<view
class=
"dailog-logo"
><image
:src=
"selectItem.logo"
></image></view>
<view
class=
"dailog-title"
>
{{
selectItem
.
t
itl
e
}}
</view>
<view
class=
"dailog-title"
>
{{
selectItem
.
t
ypeNam
e
}}
</view>
<view
class=
"dailog-content"
>
{{
selectItem
.
content
}}
</view>
<view
class=
"dailog-content"
>
{{
selectItem
.
rules
}}
</view>
<view
class=
"dailog-footer"
>
<view
class=
"dailog-footer"
>
<template
v-if=
"selectItem.jump"
>
<template
v-if=
"selectItem.jump"
>
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
</template>
</template>
<
script
>
<
script
>
import
point
from
'@/mixin/point'
import
point
from
'@/mixin/point'
import
{
rules
}
from
'eslint-config-prettier'
export
default
{
export
default
{
mixins
:
[
point
],
mixins
:
[
point
],
data
()
{
data
()
{
...
@@ -56,13 +57,13 @@ export default {
...
@@ -56,13 +57,13 @@ export default {
timer
:
null
,
timer
:
null
,
selectItem
:
{},
selectItem
:
{},
list
:
[
list
:
[
{
title
:
'考勤打卡'
,
typeCode
:
'T005'
,
content
:
'完成日常打卡'
,
logo
:
require
(
'@/assets/images/point/day-time.png'
)
},
{
title
:
'考勤打卡'
,
typeCode
:
'T005'
,
content
:
'完成日常打卡'
,
rules
:
'请打开嘀加智慧云企业微信进行上下班打卡'
,
logo
:
require
(
'@/assets/images/point/day-time.png'
)
},
{
title
:
'日报填写'
,
typeCode
:
'T004'
,
content
:
'完成日
常打5卡
'
,
logo
:
require
(
'@/assets/images/point/day-report.png'
)
},
{
title
:
'日报填写'
,
typeCode
:
'T004'
,
content
:
'完成日
报填写'
,
rules
:
'请打开嘀加智慧云企业微信生意助手员工版填写日报
'
,
logo
:
require
(
'@/assets/images/point/day-report.png'
)
},
{
title
:
'平板接待'
,
typeCode
:
'T006'
,
content
:
'完成
日常打卡
'
,
logo
:
require
(
'@/assets/images/point/day-ipad.png'
),
jump
:
true
},
{
title
:
'平板接待'
,
typeCode
:
'T006'
,
content
:
'完成
平板接待'
,
rules
:
'即将跳转至展业助手开始接待
'
,
logo
:
require
(
'@/assets/images/point/day-ipad.png'
),
jump
:
true
},
{
title
:
'参与培训'
,
typeCode
:
'T003'
,
content
:
'
完成日常打卡
'
,
logo
:
require
(
'@/assets/images/point/day-training.png'
)
},
{
title
:
'参与培训'
,
typeCode
:
'T003'
,
content
:
'
参与培训'
,
rules
:
'请联系督导了解最近培训计划并参与培训
'
,
logo
:
require
(
'@/assets/images/point/day-training.png'
)
},
{
title
:
'AI话术对练'
,
typeCode
:
'T002'
,
content
:
'完成
日常打卡
'
,
logo
:
require
(
'@/assets/images/point/day-ai.png'
)
},
{
title
:
'AI话术对练'
,
typeCode
:
'T002'
,
content
:
'完成
AI对练'
,
rules
:
'请打开嘀加智慧云企业微信生意助手员工版,进行AI趣练学习
'
,
logo
:
require
(
'@/assets/images/point/day-ai.png'
)
},
{
title
:
'开课程授课'
,
typeCode
:
'T007'
,
content
:
'
完成日常打卡
'
,
logo
:
require
(
'@/assets/images/point/day-course.png'
)
},
{
title
:
'开课程授课'
,
typeCode
:
'T007'
,
content
:
'
分享培训'
,
rules
:
'请联系运营同事,将您的优秀的经验进行开课分享
'
,
logo
:
require
(
'@/assets/images/point/day-course.png'
)
},
{
title
:
'预学习'
,
typeCode
:
'T001'
,
content
:
'
完成日常打卡
'
,
logo
:
require
(
'@/assets/images/point/day-study.png'
)
}
{
title
:
'预学习'
,
typeCode
:
'T001'
,
content
:
'
录入客户档案 / 营销方案学习 / 客户案例学习'
,
rules
:
'即将跳转至客户档案通过录入预交车客户学习推荐套餐方案话术或客户案例广场学习更多套餐方案话术
'
,
logo
:
require
(
'@/assets/images/point/day-study.png'
)
}
],
],
dayList
:
[],
dayList
:
[],
completed
:
0
,
completed
:
0
,
...
@@ -85,6 +86,7 @@ export default {
...
@@ -85,6 +86,7 @@ export default {
item
.
logo
=
this
.
list
[
index
].
logo
item
.
logo
=
this
.
list
[
index
].
logo
item
.
jump
=
this
.
list
[
index
].
jump
item
.
jump
=
this
.
list
[
index
].
jump
item
.
content
=
this
.
list
[
index
].
content
item
.
content
=
this
.
list
[
index
].
content
item
.
rules
=
this
.
list
[
index
].
rules
})
})
this
.
dayList
=
res
this
.
dayList
=
res
this
.
completed
=
res
.
filter
(
i
=>
i
.
completed
).
length
this
.
completed
=
res
.
filter
(
i
=>
i
.
completed
).
length
...
@@ -177,7 +179,8 @@ export default {
...
@@ -177,7 +179,8 @@ export default {
color
:
#ffffff
;
color
:
#ffffff
;
line-height
:
96
rpx
;
line-height
:
96
rpx
;
&.disabled
{
&.disabled
{
background-color
:
#808291
;
background-color
:
#f0f1f5
;
background-image
:
none
;
color
:
#1a1a1a
;
color
:
#1a1a1a
;
margin-right
:
48
rpx
;
margin-right
:
48
rpx
;
}
}
...
@@ -247,6 +250,7 @@ export default {
...
@@ -247,6 +250,7 @@ export default {
.day-content
{
.day-content
{
font-size
:
26
rpx
;
font-size
:
26
rpx
;
color
:
#808291
;
color
:
#808291
;
width
:
282
rpx
;
line-height
:
48
rpx
;
line-height
:
48
rpx
;
}
}
}
}
...
...
components/HomeFrame/components/Point/LevelPoint.vue
View file @
75f879e
This diff is collapsed.
Click to expand it.
components/HomeFrame/components/Point/Ranking.vue
View file @
75f879e
...
@@ -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: 2024-12-
19 16:34:44
* @LastEditTime: 2024-12-
20 16:16:33
-->
-->
<
template
>
<
template
>
<view
class=
"point-box"
>
<view
class=
"point-box"
>
...
@@ -33,17 +33,17 @@
...
@@ -33,17 +33,17 @@
<view
class=
"item-header"
><image
:src=
"item.src"
/></view>
<view
class=
"item-header"
><image
:src=
"item.src"
/></view>
<view
class=
"item-body"
:style=
"item.style"
>
<view
class=
"item-body"
:style=
"item.style"
>
<view
class=
"item-logo"
v-if=
"item.ranking > 3"
>
{{
item
.
ranking
}}
</view>
<view
class=
"item-logo"
v-if=
"item.ranking > 3"
>
{{
item
.
ranking
}}
</view>
<view
class=
"item-image"
v-else
><image
:src=
"require(`@/assets/images/point/$
{index == 0 ? 'crown_' : 'prize_'}${item.ranking}.png`)" />
</view>
<view
class=
"item-image"
v-else
><image
:src=
"require(`@/assets/images/point/$
{index == 0 ? 'crown_' : 'prize_'}${item.ranking
|| 1
}.png`)" />
</view>
<view
class=
"item-name"
>
{{
item
.
staffName
}}
</view>
<view
class=
"item-name"
>
{{
item
.
staffName
}}
</view>
<view
v-if=
"item.badgeList
.length"
:class=
"
{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image
:src=
"index == 0 ? pointImg[item.ranking - 1] : starImg[item.ranking
- 1]"
/></view>
<view
v-if=
"item.badgeList
&& item.badgeList.length"
:class=
"
{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image
:src=
"index == 0 ? pointImg[item.badgeList[0].growthType - 1] : starImg[index
- 1]"
/></view>
<view
class=
"item-num"
>
{{
item
.
pointValue
}}
</view>
<view
class=
"item-num"
>
{{
item
.
pointValue
}}
</view>
</view>
</view>
<view
class=
"desc-wrap"
>
<view
class=
"desc-wrap"
>
<view
class=
"item-body"
v-for=
"(l, i) in item.list"
:key=
"i"
>
<view
class=
"item-body"
v-for=
"(l, i) in item.list"
:key=
"i"
>
<view
class=
"item-logo"
v-if=
"l.ranking > 3"
>
{{
item
.
ranking
}}
</view>
<view
class=
"item-logo"
v-if=
"l.ranking > 3"
>
{{
item
.
ranking
}}
</view>
<view
class=
"item-image"
v-else
><image
:src=
"require(`@/assets/images/point/$
{index == 0 ? 'crown_' : 'prize_'}${l.ranking}.png`)" />
</view>
<view
class=
"item-image"
v-else
><image
:src=
"require(`@/assets/images/point/$
{index == 0 ? 'crown_' : 'prize_'}${l.ranking
|| 0
}.png`)" />
</view>
<view
class=
"item-name"
>
{{
l
.
staffName
}}
</view>
<view
class=
"item-name"
>
{{
l
.
staffName
}}
</view>
<view
v-if=
"l.badgeList
.length"
:class=
"
{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image
:src=
"index == 0 ? pointImg[l.ranking - 1] : starImg[l.ranking
- 1]"
/></view>
<view
v-if=
"l.badgeList
&& l.badgeList.length"
:class=
"
{ 'item-prize': index == 0, 'item-medal': index != 0 }">
<image
:src=
"index == 0 ? pointImg[item.badgeList[0].growthType - 1] : starImg[index
- 1]"
/></view>
<view
class=
"item-num"
>
{{
l
.
pointValue
}}
</view>
<view
class=
"item-num"
>
{{
l
.
pointValue
}}
</view>
</view>
</view>
</view>
</view>
...
...
components/HomeFrame/components/Point/RulePoint.vue
View file @
75f879e
...
@@ -4,16 +4,18 @@
...
@@ -4,16 +4,18 @@
<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>
</view>
</view>
<view
class=
"title"
>
积分规则
</view>
<view
class=
"title"
>
<text>
积分规则
</text>
</view>
</view>
</view>
<view
class=
"rule-table"
>
<view
class=
"rule-table"
>
<view
class=
"table-box"
>
<table
class=
"score-table"
>
<table
class=
"score-table"
>
<tr
class=
"th"
>
<tr
class=
"th"
>
<th
v-for=
"(item, index) in tabelTh"
:key=
"index"
:style=
"
{ width: item.width + 'vw' }">
{{
item
.
title
}}
</th>
<th
v-for=
"(item, index) in tabelTh"
:key=
"index"
:style=
"
{ width: item.width + 'vw' }">
{{
item
.
title
}}
</th>
</tr>
</tr>
<tr
v-for=
"(item, index) in processedData"
:key=
"index
"
>
<tr
v-for=
"(item, index) in tabelTr"
:key=
"index"
:class=
"
{ line: item.row1Span }
">
<td
:rowspan=
"item.categoryRowSpan
"
>
{{
item
.
categoryName
}}
</td>
<td
:rowspan=
"item.row1Span"
v-if=
"item.showRow1
"
>
{{
item
.
categoryName
}}
</td>
<td
:rowspan=
"item.typeRowSpan
"
>
{{
item
.
typeName
}}
</td>
<td
:rowspan=
"item.row2Span"
"
v-if=
"item.showRow2
"
>
{{
item
.
typeName
}}
</td>
<td>
{{
item
.
description
}}
</td>
<td>
{{
item
.
description
}}
</td>
<td>
{{
item
.
pointValue
}}
</td>
<td>
{{
item
.
pointValue
}}
</td>
<td>
{{
item
.
detail
}}
</td>
<td>
{{
item
.
detail
}}
</td>
...
@@ -21,71 +23,60 @@
...
@@ -21,71 +23,60 @@
</table>
</table>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
point
from
'@/mixin/point'
import
point
from
'@/mixin/point'
import
{
first
}
from
'lodash'
export
default
{
export
default
{
mixins
:
[
point
],
mixins
:
[
point
],
data
()
{
data
()
{
return
{
return
{
selectItem
:
{},
selectItem
:
{},
tabelTh
:
[
tabelTh
:
[
{
title
:
'分类'
,
width
:
12
},
{
title
:
'分类'
,
width
:
7
},
{
title
:
'积分类型'
,
width
:
12
},
{
title
:
'积分类型'
,
width
:
8
},
{
title
:
'积分描述'
,
width
:
12
},
{
title
:
'积分描述'
,
width
:
14
},
{
title
:
'积分值'
,
width
:
12
},
{
title
:
'积分值'
,
width
:
6
},
{
title
:
'说明'
,
width
:
12
},
{
title
:
'说明'
,
width
:
50
},
{
title
:
'说明'
,
width
:
12
}
],
],
tabelTr
:
[],
processedData
:
[],
processedData
:
[],
result
:
[],
show
:
false
show
:
false
}
}
},
},
mounted
()
{
this
.
getRule
()
this
.
getRuleDetail
()
},
methods
:
{
methods
:
{
getRule
()
{
getDetail
()
{
uni
.
$api
.
pointApi
.
pointRuleList
().
then
(
res
=>
{
console
.
log
(
res
)
})
},
getRuleDetail
()
{
uni
.
$api
.
pointApi
.
pointRuleDetail
().
then
(
res
=>
{
uni
.
$api
.
pointApi
.
pointRuleDetail
().
then
(
res
=>
{
const
result
=
[]
let
result
=
[];
let
currentCategory
=
''
let
row1Span
=
0
;
let
currentType
=
''
let
row2Span
=
0
;
let
categoryRowSpan
=
0
const
obj
=
res
||
[]
let
typeRowSpan
=
0
obj
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
(
item
=>
{
if
(
index
===
0
||
obj
[
index
-
1
].
categoryName
!==
item
.
categoryName
)
{
if
(
currentCategory
!==
item
.
categoryName
)
{
row1Span
=
obj
.
filter
(
categoryRowSpan
=
1
(
el
,
idx
)
=>
idx
>=
index
&&
el
.
categoryName
===
item
.
categoryName
currentCategory
=
item
.
categoryName
).
length
;
result
.
push
({
...
item
,
row1Span
,
showRow1
:
true
});
}
else
{
}
else
{
categoryRowSpan
++
result
.
push
({
...
item
,
showRow1
:
false
});
}
}
if
(
if
(
currentType
!==
item
.
typeName
)
{
index
===
0
||
typeRowSpan
=
1
obj
[
index
-
1
].
typeName
!==
item
.
typeName
||
currentType
=
item
.
typeName
obj
[
index
-
1
].
categoryName
!==
item
.
categoryName
)
{
row2Span
=
obj
.
filter
(
(
el
,
idx
)
=>
idx
>=
index
&&
el
.
categoryName
===
item
.
categoryName
&&
el
.
typeName
===
item
.
typeName
).
length
;
result
[
index
].
row2Span
=
row2Span
;
result
[
index
].
showRow2
=
true
;
}
else
{
}
else
{
typeRowSpan
++
result
[
index
].
showRow2
=
false
;
}
}
});
result
.
push
({
this
.
tabelTr
=
result
...
item
,
categoryRowSpan
,
typeRowSpan
})
})
// if (result.length > 0) {
// result[result.length - 1].categoryRowSpan = categoryRowSpan
// result[result.length - 1].typeRowSpan = typeRowSpan
// }
console
.
log
(
result
)
// this.processedData = result
})
})
},
},
handleGo
(
val
)
{
handleGo
(
val
)
{
...
@@ -99,12 +90,14 @@ export default {
...
@@ -99,12 +90,14 @@ export default {
.point-box
{
.point-box
{
position
:
relative
;
position
:
relative
;
}
}
.nav-bar
{
.nav-bar
{
width
:
100%
;
width
:
100%
;
height
:
96
rpx
;
height
:
96
rpx
;
margin-top
:
48
rpx
;
margin-top
:
48
rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.back
{
.back
{
height
:
100%
;
height
:
100%
;
aspect-ratio
:
1
/
1
;
aspect-ratio
:
1
/
1
;
...
@@ -113,54 +106,87 @@ export default {
...
@@ -113,54 +106,87 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
pointer-events
:
auto
;
pointer-events
:
auto
;
}
}
.title
{
.title
{
font-weight
:
700
;
font-weight
:
700
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#1a1a1a
;
color
:
#1a1a1a
;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
text
{
margin-left
:
-96
rpx
;
margin-left
:
-96
rpx
;
}
}
}
}
}
.rule-table
{
.rule-table
{
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
48
rpx
;
border-radius
:
48
rpx
;
padding
:
32
rpx
64
rpx
;
padding
:
32
rpx
64
rpx
;
margin
:
20
rpx
64
rpx
;
margin
:
20
rpx
64
rpx
;
height
:
calc
(
100vh
-
196
rpx
);
.table-box
{
height
:
calc
(
100%
);
overflow-y
:
auto
;
}
.score-table
{
.score-table
{
border-collapse
:
separate
;
/* 防止边框合并 */
border-collapse
:
separate
;
border-spacing
:
0
;
/* 单元格之间没有间距 */
/* 防止边框合并 */
border-spacing
:
0
;
/* 单元格之间没有间距 */
tr
{
tr
{
border
:
none
;
border
:
none
;
text-align
:
center
;
text-align
:
center
;
&.line
{
td
{
border-top
:
16
rpx
solid
#fff
;
}
}
th
{
th
{
border
:
4
rpx
solid
#fff
;
/* 所有单元格都有边框 */
border
:
4
rpx
solid
#fff
;
/* 所有单元格都有边框 */
padding
:
8px
;
padding
:
8px
;
border-top
:
none
;
/* 除了首行外,所有行的上方无边框 */
border-top
:
none
;
border-bottom
:
16
rpx
solid
#fff
;
/* 除了首行外,所有行的上方无边框 */
background
:
#edf2ff
;
background
:
#edf2ff
;
height
:
88
rpx
;
height
:
88
rpx
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
color
:
#333333
;
color
:
#333333
;
&:first-child
{
&:first-child
{
border-left
:
none
;
border-left
:
none
;
}
}
&
:last-child
{
&
:last-child
{
border-right
:
none
;
border-right
:
none
;
}
}
}
}
td
{
td
{
border
:
4
rpx
solid
#fff
;
/* 所有单元格都有边框 */
border
:
4
rpx
solid
#fff
;
/* 所有单元格都有边框 */
padding
:
8px
;
padding
:
8px
;
border-top
:
none
;
/* 除了首行外,所有行的上方无边框 */
border-top
:
none
;
border-bottom
:
none
;
/* 除了首行外,所有行的上方无边框 */
background
:
#f7f8fa
;
background
:
#f7f8fa
;
height
:
88
rpx
;
height
:
88
rpx
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
color
:
#333333
;
color
:
#333333
;
&.line
{
border-bottom
:
16
rpx
solid
#fff
;
}
&
:first-child
{
&
:first-child
{
border-left
:
none
;
border-left
:
none
;
}
}
&
:last-child
{
&
:last-child
{
border-right
:
none
;
border-right
:
none
;
}
}
...
...
components/HomeFrame/index.vue
View file @
75f879e
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<slot
name=
"detail"
/>
<slot
name=
"detail"
/>
</view>
</view>
<view
class=
"point-page"
v-if=
"!showHome"
>
<view
class=
"point-page"
v-if=
"!showHome"
>
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
/>
<component
:is=
"pointComponentName"
@
backHome=
"backHome"
@
jump=
"jump"
:transfer=
"transfer"
/>
</view>
</view>
<!-- 未点击开始接待,弹窗 -->
<!-- 未点击开始接待,弹窗 -->
<MessageBox
ref=
"previewRef"
@
confirm=
"$emit('preview')"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"$emit('previewCancel')"
@
close=
"$emit('previewClose')"
></MessageBox>
<MessageBox
ref=
"previewRef"
@
confirm=
"$emit('preview')"
:popupW=
"704"
content=
"直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText=
"预览素材"
@
cancel=
"$emit('previewCancel')"
@
close=
"$emit('previewClose')"
></MessageBox>
...
@@ -82,6 +82,7 @@ export default {
...
@@ -82,6 +82,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
transfer
:
''
,
showHome
:
true
,
showHome
:
true
,
pointComponentName
:
'dayPoint'
,
pointComponentName
:
'dayPoint'
,
userInfo
:
{},
userInfo
:
{},
...
@@ -117,7 +118,9 @@ export default {
...
@@ -117,7 +118,9 @@ export default {
this
.
showHome
=
true
this
.
showHome
=
true
this
.
$emit
(
'start'
)
this
.
$emit
(
'start'
)
},
},
handleShowPage
(
name
)
{
handleShowPage
(
name
,
transfer
)
{
console
.
log
(
transfer
,
'transfer'
)
this
.
transfer
=
transfer
this
.
showHome
=
false
this
.
showHome
=
false
this
.
pointComponentName
=
name
this
.
pointComponentName
=
name
}
}
...
...
env.js
View file @
75f879e
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
2
const
index
=
1
/**
/**
*
*
0本地
0本地
...
...
mixin/click.js
View file @
75f879e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-1
1-25 16:33:13
* @LastEditTime: 2024-1
2-21 09:54:21
* @FilePath: \gl_tape\mixin\click.js
* @FilePath: \gl_tape\mixin\click.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
*/
*/
...
@@ -141,7 +141,9 @@ export default {
...
@@ -141,7 +141,9 @@ export default {
staffName
:
name
staffName
:
name
})
})
})
})
let
version
=
plus
.
runtime
.
version
let
params
=
{
let
params
=
{
appVersion
:
version
,
staffUuid
:
uuid
,
staffUuid
:
uuid
,
staffName
:
name
,
staffName
:
name
,
serviceMerchantId
:
merchantId
,
serviceMerchantId
:
merchantId
,
...
...
mixin/point.js
View file @
75f879e
...
@@ -13,7 +13,7 @@ export default {
...
@@ -13,7 +13,7 @@ export default {
this
.
year
=
year
this
.
year
=
year
this
.
month
=
month
this
.
month
=
month
this
.
currentMonth
=
month
this
.
currentMonth
=
month
this
.
getDetail
(
`
${
this
.
year
}
-
${
this
.
month
}
`
,
day
)
this
.
getDetail
&&
this
.
getDetail
(
`
${
this
.
year
}
-
${
this
.
month
}
`
,
day
)
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
...
...
pages/equity/index.vue
View file @
75f879e
...
@@ -190,20 +190,20 @@ export default {
...
@@ -190,20 +190,20 @@ export default {
async
start
()
{
async
start
()
{
if
(
this
.
recording
)
return
if
(
this
.
recording
)
return
//
uni.showLoading({
uni
.
showLoading
({
//
mask: true
mask
:
true
//
})
})
//
const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
//
if (result !== 1) {
if
(
result
!==
1
)
{
//
uni.showToast({
uni
.
showToast
({
//
title: '为了记录语音通话,请打开录音权限',
title
:
'为了记录语音通话,请打开录音权限'
,
//
icon: 'none'
icon
:
'none'
//
})
})
//
return
return
//
}
}
this
.
getSoure
()
this
.
getSoure
()
this
.
clearHistory
()
this
.
clearHistory
()
//
this.$refs.home.startAudio()
this
.
$refs
.
home
.
startAudio
()
this
.
id
=
this
.
moduleList
[
0
].
id
this
.
id
=
this
.
moduleList
[
0
].
id
this
.
type
=
'edit'
this
.
type
=
'edit'
this
.
recording
=
true
this
.
recording
=
true
...
...
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