Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8dbad01f
authored
Mar 31, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据处理
1 parent
586477ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
pages/tab/output/components/BusiCard/BusiCard.js
pages/tab/output/components/BusiCard/BusiCard.wxml
pages/tab/output/components/client/client.js
pages/tab/output/components/BusiCard/BusiCard.js
View file @
8dbad01
...
@@ -56,7 +56,8 @@ Component({
...
@@ -56,7 +56,8 @@ Component({
name
:
'noUpgradeCount'
name
:
'noUpgradeCount'
},
{
},
{
label
:
'转化率'
,
label
:
'转化率'
,
name
:
'conversionRate'
name
:
'conversionRate'
,
suffix
:
'%'
}],
}],
'SC001'
:
[{
'SC001'
:
[{
label
:
'营业额'
,
label
:
'营业额'
,
...
@@ -82,7 +83,7 @@ Component({
...
@@ -82,7 +83,7 @@ Component({
},
{
},
{
label
:
'转化率'
,
label
:
'转化率'
,
name
:
'conversionRate'
,
name
:
'conversionRate'
,
isNum
:
true
suffix
:
'%'
}]
}]
}
}
},
},
...
...
pages/tab/output/components/BusiCard/BusiCard.wxml
View file @
8dbad01
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<view class="price">
<view class="price">
{{item.prefix || ''}}
{{item.prefix || ''}}
{{item.isNum ? filter.money_three_for_two_thousands(info[item.name] || 0.00) : (info[item.name] || 0)}}
{{item.isNum ? filter.money_three_for_two_thousands(info[item.name] || 0.00) : (info[item.name] || 0)}}
{{item.suffix || ''}}
</view>
</view>
<view>{{item.label}}</view>
<view>{{item.label}}</view>
</view>
</view>
...
...
pages/tab/output/components/client/client.js
View file @
8dbad01
...
@@ -144,7 +144,6 @@ Component({
...
@@ -144,7 +144,6 @@ Component({
this
.
setData
({
this
.
setData
({
crowdOrderObj
:
_obj
crowdOrderObj
:
_obj
})
})
console
.
log
(
this
.
data
.
crowdOrderObj
,
'crowdOrderObj-'
)
},
},
getBusiStatistics
(
isReset
=
false
,
isBusiTab
=
false
)
{
getBusiStatistics
(
isReset
=
false
,
isBusiTab
=
false
)
{
...
@@ -194,11 +193,15 @@ Component({
...
@@ -194,11 +193,15 @@ Component({
break
break
case
'SC001'
:
case
'SC001'
:
res
.
merchantList
.
forEach
(
item
=>
{
res
.
merchantList
.
forEach
(
item
=>
{
_list
.
push
(
item
.
quotationMerchantStatisticsDTO
)
let
_dto
=
item
.
quotationMerchantStatisticsDTO
_dto
.
turnover
=
(
_dto
.
turnover
/
100
).
toFixed
(
2
)
_dto
.
fuseCustomerPrice
=
(
_dto
.
fuseCustomerPrice
/
100
).
toFixed
(
2
)
_dto
.
equityCustomerPrice
=
(
_dto
.
equityCustomerPrice
/
100
).
toFixed
(
2
)
_dto
.
conversionRate
=
(
_dto
.
equityCustomerPrice
*
100
).
toFixed
(
0
)
_list
.
push
(
_dto
)
})
})
break
break
}
}
console
.
log
(
_list
)
this
.
setData
({
this
.
setData
({
busiObj
:
res
,
busiObj
:
res
,
busiTotalList
:
_list
busiTotalList
:
_list
...
@@ -220,7 +223,6 @@ Component({
...
@@ -220,7 +223,6 @@ Component({
},
},
clientRefresh
(
isPull
=
false
)
{
clientRefresh
(
isPull
=
false
)
{
this
.
getPMerchantInfo
()
this
.
getPMerchantInfo
()
console
.
log
(
'clientRefresh'
);
this
.
setData
({
this
.
setData
({
[
'pageObj.currentPage'
]:
1
,
[
'pageObj.currentPage'
]:
1
,
list
:
[]
list
:
[]
...
@@ -306,7 +308,6 @@ Component({
...
@@ -306,7 +308,6 @@ Component({
},
},
/**长按海报 */
/**长按海报 */
async
longtouch
(
e
)
{
async
longtouch
(
e
)
{
console
.
log
(
'长按海报'
,
e
)
this
.
clientRefresh
()
this
.
clientRefresh
()
let
{
activityId
}
=
e
.
detail
let
{
activityId
}
=
e
.
detail
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
...
...
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