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 720284c0
authored
Jun 23, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改个人收入新绩效规则显示问题
1 parent
58ae5591
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
16 deletions
components/HomeFrame/components/Income/MyStore.vue
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/StudyCenter.vue
components/HomeFrame/components/Income/MyStore.vue
View file @
720284c
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
<view
class=
"value-title"
>
产值
</view>
<view
class=
"value-title"
>
产值
</view>
<view
class=
"value-price"
>
<view
class=
"value-price"
>
<text>
¥
</text>
<text>
¥
</text>
{{
item
.
orderTotalPrice
||
'0'
}}
<!-- 新规则没有值显示-,老规则没有值显示0(原来没有值显示0) -->
{{
(
item
.
configType
&&
item
.
configType
==
4
)
?
(
item
.
orderTotalPrice
||
'-'
)
:
(
item
.
orderTotalPrice
||
'0'
)
}}
</view>
</view>
</view>
</view>
<view
class=
"value-desc flex"
>
<view
class=
"value-desc flex"
>
...
@@ -55,6 +56,10 @@
...
@@ -55,6 +56,10 @@
<text>
产品明细
</text>
<text>
产品明细
</text>
<view
class=
"link-icon"
></view>
<view
class=
"link-icon"
></view>
</view>
</view>
<view
v-else-if=
"item.configType && item.configType == 4 && v.label == '提成系数'"
class=
"detail-num"
>
-
</view>
<view
v-else-if=
"item.configType && item.configType == 4 && v.label == '提成比例'"
class=
"detail-num"
>
<view
class=
"detail-num-text"
>
每单
</view>
{{
item
[
v
.
value
]
||
'0'
}}
<view
class=
"detail-num-text"
>
元
</view>
</view>
<view
class=
"detail-num"
v-else
>
{{
item
[
v
.
value
]
||
'0'
}}{{
v
.
unit
}}
</view>
<view
class=
"detail-num"
v-else
>
{{
item
[
v
.
value
]
||
'0'
}}{{
v
.
unit
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -116,6 +121,20 @@
...
@@ -116,6 +121,20 @@
</template>
</template>
<
script
>
<
script
>
const
_tabList
=
[
{
name
:
'问界'
,
value
:
1
},
{
name
:
'鸿蒙'
,
value
:
3
},
{
name
:
'其他'
,
value
:
2
},
]
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
Detail
from
'./Detail'
import
Detail
from
'./Detail'
import
baseDialog
from
'./baseDialog'
import
baseDialog
from
'./baseDialog'
...
@@ -199,6 +218,10 @@ export default {
...
@@ -199,6 +218,10 @@ export default {
value
:
1
value
:
1
},
},
{
{
name
:
'鸿蒙'
,
value
:
3
},
{
name
:
'其他'
,
name
:
'其他'
,
value
:
2
value
:
2
}
}
...
@@ -328,7 +351,7 @@ export default {
...
@@ -328,7 +351,7 @@ export default {
uni
.
$api
.
pointApi
.
incomeCalculationDetail
({
merchantId
}).
then
(
res
=>
{
uni
.
$api
.
pointApi
.
incomeCalculationDetail
({
merchantId
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
&&
res
.
commissions
)
{
if
(
res
&&
res
.
commissions
)
{
const
commissions
=
res
.
commissions
.
find
(
i
=>
i
.
configType
==
3
)
const
commissions
=
res
.
commissions
.
find
(
i
=>
i
.
configType
==
3
||
i
.
configType
==
4
)
const
commissionsOther
=
res
.
commissions
.
filter
(
i
=>
i
.
configType
==
1
)
const
commissionsOther
=
res
.
commissions
.
filter
(
i
=>
i
.
configType
==
1
)
if
(
commissions
||
commissionsOther
.
length
>
0
)
{
if
(
commissions
||
commissionsOther
.
length
>
0
)
{
...
@@ -339,6 +362,8 @@ export default {
...
@@ -339,6 +362,8 @@ export default {
})
})
console
.
log
(
this
.
commissionsInfoQG
,
'commissionsInfoQG'
)
console
.
log
(
this
.
commissionsInfoQG
,
'commissionsInfoQG'
)
this
.
scene0PenetrationRateCommissions
=
commissions
?.
scene0PenetrationRateCommissions
||
[]
this
.
scene0PenetrationRateCommissions
=
commissions
?.
scene0PenetrationRateCommissions
||
[]
this
.
tabList
=
_tabList
.
filter
(
i
=>
this
.
scene0PenetrationRateCommissions
.
some
(
item
=>
item
.
configCarType
===
i
.
value
))
console
.
log
(
commissions
,
'commissions'
)
this
.
getCommissionsInfo
()
this
.
getCommissionsInfo
()
}
else
{
}
else
{
this
.
commissionsInfo
=
[{}]
this
.
commissionsInfo
=
[{}]
...
@@ -629,6 +654,7 @@ export default {
...
@@ -629,6 +654,7 @@ export default {
margin-top
:
toRpx
(
4
);
margin-top
:
toRpx
(
4
);
font-size
:
toRpx
(
24
);
font-size
:
toRpx
(
24
);
color
:
#3773f8
;
color
:
#3773f8
;
line-height
:
toRpx
(
48
);
.link-icon
{
.link-icon
{
border-left
:
toRpx
(
10
)
solid
#3773f8
;
border-left
:
toRpx
(
10
)
solid
#3773f8
;
border-bottom
:
toRpx
(
10
)
solid
transparent
;
border-bottom
:
toRpx
(
10
)
solid
transparent
;
...
@@ -640,6 +666,11 @@ export default {
...
@@ -640,6 +666,11 @@ export default {
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
32
);
color
:
#292d33
;
color
:
#292d33
;
line-height
:
toRpx
(
48
);
line-height
:
toRpx
(
48
);
&-text
{
display
:
inline-block
;
font-size
:
toRpx
(
24
);
color
:
#808291
;
}
}
}
}
}
}
}
...
...
components/HomeFrame/components/LeftSide.vue
View file @
720284c
...
@@ -147,14 +147,12 @@ export default {
...
@@ -147,14 +147,12 @@ export default {
uni
.
$on
(
'pageBack'
,
()
=>
{
uni
.
$on
(
'pageBack'
,
()
=>
{
console
.
log
(
'pageBack'
)
console
.
log
(
'pageBack'
)
this
.
getMessageInfo
();
this
.
getMessageInfo
();
this
.
getSopCount
()
});
});
uni
.
$on
(
'studyCenter'
,
()
=>
{
uni
.
$on
(
'studyCenter'
,
()
=>
{
console
.
log
(
'studyCenter'
)
console
.
log
(
'studyCenter'
)
this
.
changeIndex
(
3
,
this
.
tabs
[
3
])
this
.
changeIndex
(
3
,
this
.
tabs
[
3
])
});
});
this
.
getUnreadCount
()
this
.
getUnreadCount
()
this
.
getSopCount
()
// 获取Ai集市未读个数
this
.
findBeiSenSSOToken
().
then
(()
=>
{
this
.
findBeiSenSSOToken
().
then
(()
=>
{
this
.
getMessageInfo
()
this
.
getMessageInfo
()
})
// 获取北森token后再获取消息
})
// 获取北森token后再获取消息
...
@@ -243,7 +241,6 @@ export default {
...
@@ -243,7 +241,6 @@ export default {
this
.
$emit
(
'update:tabIndex'
,
index
)
this
.
$emit
(
'update:tabIndex'
,
index
)
this
.
$emit
(
"changeTab"
,
index
,
jumpUrl
)
this
.
$emit
(
"changeTab"
,
index
,
jumpUrl
)
this
.
getMessageInfo
()
this
.
getMessageInfo
()
this
.
getSopCount
()
},
},
async
haveCustomerAccess
(
val
)
{
async
haveCustomerAccess
(
val
)
{
const
{
shopMerchantId
,
sceneType
:
scene
}
=
val
const
{
shopMerchantId
,
sceneType
:
scene
}
=
val
...
@@ -350,15 +347,6 @@ export default {
...
@@ -350,15 +347,6 @@ export default {
this
.
$emit
(
'update:tabIndex'
,
99
)
this
.
$emit
(
'update:tabIndex'
,
99
)
}
}
},
},
async
getSopCount
()
{
const
{
sceneType
}
=
uni
.
$storage
.
get
(
"userInfo"
)
this
.
sopCount
=
await
uni
.
$api
.
commonApi
.
getSopAiAgentMessageCount
({
moduleType
:
4
,
// 0-系统通知,1-优秀话术,2-话术预警,3-AI导师
businessType
:
sceneType
,
status
:
0
})
console
.
log
(
this
.
sopCount
,
'sopCount'
)
}
},
},
beforeCreate
()
{
beforeCreate
()
{
clearInterval
(
this
.
trackInterval
)
clearInterval
(
this
.
trackInterval
)
...
...
components/HomeFrame/components/StudyCenter.vue
View file @
720284c
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
async
getUnreadCount
()
{
async
getUnreadCount
()
{
try
{
try
{
const
{
undoCount
}
=
await
uni
.
$api
.
commonApi
.
getStudyCenterStatistics
();
const
{
undoCount
}
=
await
uni
.
$api
.
commonApi
.
getStudyCenterStatistics
();
this
.
typeList
[
1
].
num
=
()
=>
`(
${
undoCount
}
)`
;
this
.
typeList
[
1
].
num
=
()
=>
undoCount
===
0
?
''
:
`(
${
undoCount
}
)`
;
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'获取未读数失败:'
,
error
);
console
.
error
(
'获取未读数失败:'
,
error
);
this
.
typeList
[
1
].
num
=
()
=>
''
;
this
.
typeList
[
1
].
num
=
()
=>
''
;
...
@@ -559,7 +559,7 @@ export default {
...
@@ -559,7 +559,7 @@ export default {
padding
:
toRpx
(
16
)
toRpx
(
20
);
padding
:
toRpx
(
16
)
toRpx
(
20
);
background-color
:
#F5F9FF
;
background-color
:
#F5F9FF
;
border-radius
:
toRpx
(
6
);
border-radius
:
toRpx
(
6
);
font-size
:
toRpx
(
24
)
啊,
;
font-size
:
toRpx
(
24
);
.value-wrapper
{
.value-wrapper
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
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