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 782741df
authored
May 19, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
个人中心-服务中心和客户管理联调;成功页面样式;次新车转化
1 parent
0235bd4a
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
187 additions
and
82 deletions
api/outputApi/output.js
packageMine/pages/customerManagement/customerList/customerList.js
packageMine/pages/customerManagement/customerList/customerList.wxml
packageMine/pages/customerManagement/editCustomer/editCustomer.js
packageMine/pages/serviceManage/components/StoreApply/StoreApply.js
packageMine/pages/serviceManage/components/StoreApply/StoreApply.scss
packageMine/pages/serviceManage/components/StoreApply/StoreApply.wxml
packageMine/pages/serviceManage/editService/editService.js
packageMine/pages/serviceManage/serviceList/serviceList.js
packageMine/pages/serviceManage/serviceList/serviceList.wxml
packageMine/pages/successPage/successPage.js
packageMine/pages/successPage/successPage.scss
packageMine/pages/successPage/successPage.wxml
packagesList/packageOutput/pages/summary.js
packagesList/packageOutput/pages/summary.wxml
pages/tab/output/components/BusiCard/constant/data.js
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.wxml
pages/tab/output/components/outputCrowdfund/outputCrowdfund.js
pages/tab/output/components/outputCrowdfund/outputCrowdfund.wxml
pages/tab/output/components/sortTab/sortTab.js
api/outputApi/output.js
View file @
782741d
...
...
@@ -133,6 +133,14 @@ class outputApi {
})
}
/** 业务经营汇总列表查询-次新车转化 */
getActivityList
(
data
)
{
return
api
.
post
({
method
:
'scrm.api.boutiquecoupon.partnermerchant.expanded.gold.activity.page'
,
...
data
})
}
// 我的员工
/** 服务商查询园区店员工产值统计 */
getStaffList
(
data
)
{
...
...
packageMine/pages/customerManagement/customerList/customerList.js
View file @
782741d
...
...
@@ -136,7 +136,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
if
(
options
?.
activeTab
)
{
this
.
tabChange
({
detail
:
{
name
:
options
?.
activeTab
}
})
}
},
/**
...
...
packageMine/pages/customerManagement/customerList/customerList.wxml
View file @
782741d
<!--packageMine/pages/customerManagement/customerList/customerList.wxml-->
<!-- <wxs src="../index.wxs" module="format" /> -->
<van-tabs bind:change="tabChange">
<van-tabs
active="{{active}}"
bind:change="tabChange">
<van-tab name="customer" title="客户"></van-tab>
<van-tab name="apply" title="开店申请"></van-tab>
</van-tabs>
...
...
packageMine/pages/customerManagement/editCustomer/editCustomer.js
View file @
782741d
...
...
@@ -166,7 +166,7 @@ Page({
wx
.
$api
.
showToast
(
'请至少选择一个产品'
)
return
}
let
message
=
addOrEdit
==
'add'
?
'是否确定
客户
?'
:
'是否确定修改客户?'
let
message
=
addOrEdit
==
'add'
?
'是否确定
提交客户开通申请
?'
:
'是否确定修改客户?'
delete
formData
.
serviceCenterMerchantName
wx
.
showModal
({
title
:
'提示'
,
...
...
packageMine/pages/serviceManage/components/StoreApply/StoreApply.js
View file @
782741d
// packageMine/pages/serviceManage/components/StoreApply/StoreApply.js
import
{
IMG_URL
}
from
'~/utils/constantData'
import
mineServiceApi
from
'~/api/mineApi/mineService'
import
{
getNowMonth
}
from
'~/utils/format'
Component
({
/**
* 组件的属性列表
...
...
@@ -25,7 +26,21 @@ Component({
currentPage
:
1
,
pageSize
:
10
},
isAsk
:
false
isAsk
:
false
,
reviewStatusObj
:
{
1
:
{
label
:
'审核中'
,
color
:
'#3666FE'
},
2
:
{
label
:
'已通过'
,
color
:
'#21AB60'
},
3
:
{
label
:
'已驳回'
,
color
:
'#F36261'
}
}
},
lifetimes
:
{
...
...
@@ -63,9 +78,12 @@ Component({
this
.
setData
({
isAsk
:
true
})
// mineServiceApi.getServiceList(params).then(res => {
mineServiceApi
.
getReviewList
(
params
).
then
(
res
=>
{
let
{
list
,
total
}
=
res
let
{
list
,
total
}
=
res
.
data
const
dateFormat
=
merchantType
==
1
?
'yyyy-MM-dd hh:mm:ss'
:
'yyyy-MM-dd'
list
.
forEach
(
item
=>
{
item
.
reviewDate
=
item
.
reviewDate
?
new
Date
(
item
.
reviewDate
).
format
(
dateFormat
).
replace
(
/-/g
,
'.'
)
:
''
})
this
.
setData
({
serviceList
:
pageCof
.
currentPage
==
1
?
(
list
||
[])
:
serviceList
.
concat
(
list
),
[
'pageCof.currentPage'
]:
pageCof
.
currentPage
+
1
,
...
...
packageMine/pages/serviceManage/components/StoreApply/StoreApply.scss
View file @
782741d
...
...
@@ -71,21 +71,22 @@
}
}
.reject-reason
{
background
:
#F8F9FC
;
border-radius
:
8rpx
;
padding
:
16rpx
;
margin
:
24rpx
32rpx
;
color
:
#F36261
;
}
.bottom
{
padding
:
0
32rpx
;
height
:
72rpx
;
padding
:
18rpx
32rpx
;
background-color
:
#FFF9F2
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
font-size
:
24rpx
;
color
:
#8A8C90
;
.service_name
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
...
...
packageMine/pages/serviceManage/components/StoreApply/StoreApply.wxml
View file @
782741d
...
...
@@ -9,19 +9,24 @@
<view class="item-box" wx:for="{{serviceList}}" wx:key="index" bindtap="handleEdit" data-type="edit" data-target="{{item}}">
<view class="top">
<view class="message">
<glsx-image src="personal/service_head.png" class="avatar" />
<glsx-image wx:if="{{merchantType == 1}}" src="personal/service_head.png" class="avatar" />
<glsx-image wx:else src="personal/customer_head.png" class="avatar" />
<view class="message-text">
<view class="merchant">{{item.merchantName}}</view>
<view class="contact">联系人:{{item.contactName}} {{item.phone}}</view>
</view>
</view>
<view
>审核中
</view>
<view
style="color: {{reviewStatusObj[item.reviewStatus].color}};">{{item.reviewStatus ? reviewStatusObj[item.reviewStatus].label : ''}}
</view>
</view>
<view class="bottom">
<view class="service_name">
商户号:{{item.merchantId}}
</view>
<view class="time">{{item.createdDate}}</view>
<view wx:if="{{item.reviewStatus == 3}}" class="reject-reason">
驳回原因:{{item.rejectedReason || ''}}
</view>
<view wx:if="{{merchantType == 1}}" class="bottom">
申请时间:{{item.reviewDate || ''}}
</view>
<view wx:else class="bottom">
<view>所属:{{item.serviceCenterMerchantName || '无'}}</view>
<view>{{item.reviewDate || ''}}</view>
</view>
</view>
<view class="bottomTips" wx:if="{{serviceList.length == total}}">到底啦!</view>
...
...
packageMine/pages/serviceManage/editService/editService.js
View file @
782741d
...
...
@@ -52,7 +52,7 @@ Page({
wx
.
$api
.
showToast
(
validObj
.
message
)
return
}
let
message
=
addOrEdit
==
'add'
?
'是否确定
创建服务中心
?'
:
'是否确定修改服务中心信息?'
let
message
=
addOrEdit
==
'add'
?
'是否确定
提交服务中心开通申请
?'
:
'是否确定修改服务中心信息?'
wx
.
showModal
({
title
:
'提示'
,
content
:
message
,
...
...
packageMine/pages/serviceManage/serviceList/serviceList.js
View file @
782741d
...
...
@@ -84,7 +84,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
if
(
options
?.
activeTab
)
{
this
.
tabChange
({
detail
:
{
name
:
options
?.
activeTab
}
})
}
},
/**
...
...
packageMine/pages/serviceManage/serviceList/serviceList.wxml
View file @
782741d
<!--packagesList/mineDetail/pages/serviceManage/serviceList/serviceList.wxml-->
<van-tabs bind:change="tabChange">
<van-tabs
active="{{active}}"
bind:change="tabChange">
<van-tab name="service" title="服务中心"></van-tab>
<van-tab name="apply" title="开店申请"></van-tab>
</van-tabs>
...
...
packageMine/pages/successPage/successPage.js
View file @
782741d
...
...
@@ -2,15 +2,18 @@
const
obj
=
{
service
:
{
navigationTitle
:
'创建服务中心'
,
primaryBtn
:
'继续创建服务中心'
,
primaryCallback
:
'packageMine.editService?addOrEdit=add&isRedirect=true'
,
cancelBtn
:
'S后自动跳转我的服务中心'
primaryBtn
:
'查看我的申请'
,
// primaryCallback: 'packageMine.editService?addOrEdit=add&isRedirect=true',
primaryCallback
:
'packageMine.serviceList?activeTab=apply'
,
cancelBtn
:
'S后自动跳转我的服务中心'
,
tipTxt
:
'工作人员正在加急审核,审核通过后会自动帮你开通门店,请耐心等待。'
},
customer
:
{
navigationTitle
:
'创建客户'
,
primaryBtn
:
'邀请销售顾问'
,
primaryCallback
:
'packageMine.saleList'
,
cancelBtn
:
'S后自动跳转我的客户'
primaryBtn
:
'查看我的申请'
,
primaryCallback
:
'packageMine.customerList?activeTab=apply'
,
cancelBtn
:
'S后自动跳转我的客户'
,
tipTxt
:
'工作人员正在加急审核,审核通过后会自动帮你开通客户,请耐心等待。'
},
staff
:
{
navigationTitle
:
'创建员工'
,
...
...
packageMine/pages/successPage/successPage.scss
View file @
782741d
/* packagesList/mineDetail/pages/successPage/successPage.wxss */
.success-page
{
.success-page
{
box-sizing
:
border-box
;
width
:
100%
;
background-color
:
#ffffff
;
...
...
@@ -8,32 +8,49 @@
align-items
:
center
;
justify-content
:
space-between
;
padding-bottom
:
160rpx
;
.success_icon
{
.success-content
{
display
:
flex
;
flex-flow
:
column
;
align-items
:
center
;
}
.success_icon
{
width
:
160rpx
;
height
:
160rpx
;
}
.success_text
{
.success_text
{
font-family
:
PingFangSC-Medium
;
font-weight
:
5
00
;
font-weight
:
6
00
;
font-size
:
42rpx
;
color
:
#323436
;
margin-top
:
52rpx
;
}
.btn-box
{
view
{
.success_tips
{
font-size
:
24rpx
;
color
:
#5A6066
;
margin
:
20rpx
174rpx
0
;
}
.btn-box
{
view
{
width
:
440rpx
;
height
:
88rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.btn-blue
{
.btn-blue
{
background
:
var
(
--
btnColor
);
border-radius
:
8rpx
;
color
:
#FFFFFF
;
font-size
:
28rpx
;
}
.btn-cancel
{
.btn-cancel
{
width
:
436rpx
;
height
:
84rpx
;
background
:
#FFFFFF
;
...
...
packageMine/pages/successPage/successPage.wxml
View file @
782741d
<!--packagesList/mineDetail/pages/successPage/successPage.wxml-->
<navigation-bar bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back">{{paramsObj.navigationTitle}}</navigation-bar>
<view class="success-page" style="height: 100vh;padding:calc({{tabBarStyle}}px + 160rpx) 0 calc(160rpx + env(safe-area-inset-bottom)) 0;">
<view>
<view
class="success-content"
>
<glsx-image src="personal/success.png" class="success_icon" />
<view class="success_text">创建成功</view>
<view class="success_text">提交成功</view>
<view wx:if="{{paramsObj.tipTxt}}" class="success_tips">{{paramsObj.tipTxt}}</view>
</view>
<view class="btn-box">
<view class="btn-blue" bindtap="jump" data-type="primary">{{paramsObj.primaryBtn}}</view>
<view class="btn-cancel" bindtap="jump" data-type="cancel">{{count}}{{paramsObj.cancelBtn}}</view>
</view>
</view>
</view>
\ No newline at end of file
packagesList/packageOutput/pages/summary.js
View file @
782741d
...
...
@@ -25,14 +25,7 @@ Page({
}]
},
sceneData
:
{},
// sceneObj: {
// scene1: null,
// scene2: null,
// scene3: null,
// scene4: null
// },
sceneCodeActive
:
defaultSceneCode
,
// sceneActive: 3,
scenePriceList
:
[
{
total
:
0.0
...
...
@@ -126,7 +119,7 @@ Page({
// 搜索条件切换
handleSearch
()
{
wx
.
showActionSheet
({
itemList
:
this
.
data
.
sceneCodeActive
!=
'SC00
4'
?
this
.
data
.
baseData
.
timeList
:
this
.
data
.
baseData
.
actStatus
List
,
itemList
:
this
.
data
.
sceneCodeActive
!=
'SC00
2'
?
this
.
data
.
baseData
.
actStatusList
:
this
.
data
.
baseData
.
time
List
,
success
:
res
=>
{
this
.
setData
({
[
'searchForm.scene'
+
this
.
data
.
sceneCodeActive
]:
res
.
tapIndex
...
...
@@ -194,8 +187,8 @@ Page({
sceneCode
:
sceneCode
}
outputApi
.
getSceneProStatus
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'res---'
)
var
data
=
this
.
dealOpenActivity
(
res
)
// var sceneObj = {}
var
sceneActivityObj
=
{}
// sceneStatus:0未开通 1已开通
res
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -206,6 +199,7 @@ Page({
sceneActivityObj
[
'scene'
+
idx
]
=
data
[
index
].
productList
}
})
console
.
log
(
sceneActivityObj
,
'sceneActivityObj--'
)
this
.
setData
({
sceneData
:
res
,
sceneInfo
:
this
.
data
.
sceneInfo
,
...
...
@@ -339,7 +333,7 @@ Page({
let
upgradeObj
=
this
.
data
.
mockObj
.
upgradeObj
[
obj
.
idx
]
item
.
orderTotal
=
upgradeObj
.
orderTotal
}
else
if
(
item
.
orderTotal
)
{
item
.
orderTotal
.
calCustomerUnitPrice
=
orderTotal
.
upgradeCount
?
Math
.
round
(
orderTotal
.
totalSubOrderOrderMoney
/
orderTotal
.
upgradeCount
).
toFixed
(
2
)
:
'0.00'
item
.
orderTotal
.
calCustomerUnitPrice
=
orderTotal
.
upgradeCount
?
Math
.
round
(
(
orderTotal
.
totalSubOrderOrderMoney
/
orderTotal
.
upgradeCount
).
toFixed
(
2
)
*
100
)
/
100
:
'0.00'
item
.
orderTotal
.
calExperience
=
orderTotal
.
toShopCount
?
Math
.
round
((
orderTotal
.
experienceCount
*
100
)
/
orderTotal
.
toShopCount
).
toFixed
(
0
)
:
'0'
item
.
orderTotal
.
calTransform
=
orderTotal
.
experienceCount
?
Math
.
round
((
orderTotal
.
upgradeCount
*
100
)
/
orderTotal
.
experienceCount
).
toFixed
(
0
)
:
'0'
}
...
...
packagesList/packageOutput/pages/summary.wxml
View file @
782741d
...
...
@@ -15,7 +15,8 @@
</view>
</view>
</view>
<!-- 活动 -->
<!-- 产品 -->
<!-- <view wx:if="{{sceneCodeActive != 'SC003'}}" class="p-rl-20 bg-white"> -->
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex">
...
...
@@ -31,13 +32,14 @@
<view class="activity-title title bg-white p-l-20 no-border">
<view>看产值</view>
<view wx:if="{{sceneCodeActive != 'SC001'}}" class="select" bindtap="handleSearch">
<view wx:if="{{(sceneCodeActive == 'SC002' || sceneCodeActive == 'SC003') && !isMock.SC002}}" class="select-txt">
{{baseData.timeList[sceneCodeActive == 'SC002' ? searchForm.sceneSC002 : searchForm.sceneSC003]}}
<view wx:if="{{(sceneCodeActive == 'SC002') && !isMock.SC002}}" class="select-txt">
<!-- {{baseData.timeList[sceneCodeActive == 'SC002' ? searchForm.sceneSC002 : searchForm.sceneSC003]}} -->
{{baseData.timeList[searchForm.sceneSC002]}}
<image class="icon-arrow" src="{{IMGURL}}output/arrow.png?v={{img_version}}" />
</view>
<view wx:if="{{
sceneCodeActive == 'SC004'
&& !isMock.SC004}}" class="select-txt">
{{baseData.actStatusList[s
earchForm.sceneSC004
]}}
<image class="icon-arrow" src="{{IMGURL}}output/arrow.png?v={{img_version}}" />
<view wx:if="{{
(sceneCodeActive == 'SC004' || sceneCodeActive == 'SC003')
&& !isMock.SC004}}" class="select-txt">
{{baseData.actStatusList[s
ceneCodeActive == 'SC004' ? searchForm.sceneSC004 : searchForm.sceneSC003
]}}
<image class="icon-arrow" src="{{IMGURL}}output/arr
ow.png?v={{img_version}}" />
</view>
</view>
</view>
...
...
pages/tab/output/components/BusiCard/constant/data.js
View file @
782741d
...
...
@@ -12,17 +12,17 @@ const clientFormObj = {
prefix
:
'¥'
,
isNum
:
true
},
{
label
:
'
售后众筹
'
,
name
:
'
afterSalesCrowdfunding
'
,
label
:
'
次新车转化
'
,
name
:
'
carTransform
'
,
prefix
:
'¥'
,
isNum
:
true
},
{
label
:
'
会员权益/升级
'
,
name
:
'
vdUpgrade
'
,
label
:
'
售后众筹
'
,
name
:
'
afterSalesCrowdfunding
'
,
prefix
:
'¥'
,
isNum
:
true
},
{
label
:
'
次新车转化
'
,
label
:
'
会员权益/升级
'
,
name
:
'vdUpgrade'
,
prefix
:
'¥'
,
isNum
:
true
...
...
@@ -97,7 +97,7 @@ const staffFormObj = {
isNum
:
true
},
{
label
:
'次新车转化'
,
name
:
'
vdUpgrade
'
,
name
:
'
carTransformAmount
'
,
prefix
:
'¥'
,
isNum
:
true
}],
...
...
pages/tab/output/components/client/client.js
View file @
782741d
...
...
@@ -124,15 +124,12 @@ Component({
})
},
// 众筹数据处理
dealCrowdObj
(
data
)
{
let
_obj
=
{
totalNum
:
data
.
activityTotal
,
totalOrderCount
:
data
.
orderTotal
,
totalAmount
:
data
.
totalAmount
,
activityList
:
data
.
activityList
||
[]
}
_obj
.
activityList
.
forEach
(
k
=>
{
dealToTime
(
list
,
sceneCode
=
'SC004'
)
{
list
.
forEach
(
k
=>
{
// 特殊处理
if
(
sceneCode
==
'SC003'
)
{
k
.
totalOutputValue
=
(
k
.
totalOutputValue
/
100
).
toFixed
(
2
)
}
// 时间
k
.
time
=
k
.
startTime
.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
+
' - '
+
k
.
endTime
.
slice
(
0
,
16
).
replace
(
/-/g
,
'.'
)
let
startTimeFormat
=
k
.
startTime
.
slice
(
0
,
10
).
replace
(
/-/g
,
'/'
)
+
' 00:00:00'
...
...
@@ -155,6 +152,18 @@ Component({
break
}
})
return
list
},
// 众筹数据处理
dealCrowdObj
(
data
)
{
let
_obj
=
{
totalNum
:
data
.
activityTotal
,
totalOrderCount
:
data
.
orderTotal
,
totalAmount
:
data
.
totalAmount
,
activityList
:
data
.
activityList
||
[]
}
_obj
.
activityList
=
this
.
dealToTime
(
_obj
.
activityList
)
this
.
setData
({
crowdOrderObj
:
_obj
})
...
...
@@ -186,7 +195,8 @@ Component({
this
.
setData
({
[
'isAsk.business'
]:
true
})
outputApi
.
getBusiStatistics
(
params
).
then
(
res
=>
{
let
apiName
=
formData
.
sceneCode
==
'SC003'
?
'getActivityList'
:
'getBusiStatistics'
outputApi
[
apiName
](
params
).
then
(
res
=>
{
this
.
resetBusiData
()
if
(
isReset
)
{
this
.
setData
({
...
...
@@ -196,8 +206,14 @@ Component({
this
.
setData
({
triggered
:
false
})
console
.
log
(
res
,
'res----'
)
if
(
formData
.
sceneCode
==
'SC004'
)
{
this
.
dealCrowdObj
(
res
)
}
else
if
(
formData
.
sceneCode
==
'SC003'
)
{
let
list
=
this
.
dealToTime
(
res
?.
list
||
[],
'SC003'
)
this
.
setData
({
[
'crowdOrderObj.activityList'
]:
list
})
}
else
{
let
_list
=
[]
switch
(
formData
.
sceneCode
)
{
...
...
@@ -213,6 +229,9 @@ Component({
},
{
code
:
'SC001'
,
name
:
'vdUpgrade'
},
{
code
:
'SC003'
,
name
:
'carTransform'
}]
_list
.
forEach
(
item
=>
{
_openList
.
forEach
(
k
=>
{
...
...
pages/tab/output/components/client/client.wxml
View file @
782741d
...
...
@@ -61,7 +61,7 @@
<scroll-view wx:if="{{tabActive == 'business'}}" class="client" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="handleSort" lower-threshold='50' bind:scroll="handleBusiScroll" scroll-top="{{busiScrollTop}}">
<view class="client-box">
<!-- 总收益 -->
<view wx:if="{{formData.sceneCode != 'SC004'}}">
<view wx:if="{{formData.sceneCode != 'SC004'
&& formData.sceneCode != 'SC003'
}}">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{filter.money_three_for_two_thousands(busiObj.totalAmount || 0.00)}}</text>
...
...
@@ -71,8 +71,8 @@
</view>
</view>
<!-- 售后众筹 -->
<view class="output-box" wx:if="{{formData.sceneCode == 'SC004'}}">
<output-crowdfund
wx:if="{{formData.sceneCode == 'SC004'}}" orderObj="{{crowdOrderObj}}" proIdx="{{
formData.proIdx}}"></output-crowdfund>
<view class="output-box" wx:if="{{formData.sceneCode == 'SC004'
|| formData.sceneCode == 'SC003'
}}">
<output-crowdfund
wx:if="{{formData.sceneCode == 'SC004' || formData.sceneCode == 'SC003'}}" orderObj="{{crowdOrderObj}}" sceneCode="{{formData.sceneCode}}" proIdx="{{formData.sceneCode == 'SC003' ? '0' :
formData.proIdx}}"></output-crowdfund>
<view class="end-txt">
{{ crowdOrderObj.activityList.length ? '到底啦!' : '暂无数据' }}
</view>
...
...
pages/tab/output/components/outputCrowdfund/outputCrowdfund.js
View file @
782741d
...
...
@@ -16,6 +16,10 @@ Component({
type
:
Boolean
,
value
:
true
},
sceneCode
:
{
type
:
String
,
value
:
'SC004'
},
proIdx
:
{
type
:
String
,
value
:
'0'
...
...
@@ -61,11 +65,13 @@ Component({
{
label
:
'订单数'
,
name
:
'orderCount'
,
SC003Name
:
'totalOrderCount'
,
className
:
'font-number'
},
{
label
:
'产值'
,
name
:
'realAmount'
,
SC003Name
:
'totalOutputValue'
,
className
:
'red font-number'
,
prefix
:
'¥'
,
isNumber
:
true
...
...
@@ -75,11 +81,24 @@ Component({
name
:
'predictAmount'
,
className
:
'font-number'
,
prefix
:
'¥'
,
isNumber
:
true
isNumber
:
true
,
isHide
:
false
}
]
},
lifetimes
:
{
attached
()
{
let
{
sceneCode
,
merchantFormList
}
=
this
.
data
if
(
sceneCode
==
'SC003'
)
{
let
idx
=
merchantFormList
.
findIndex
(
item
=>
item
.
name
==
'predictAmount'
)
this
.
setData
({
[
`merchantFormList[
${
idx
}
].isHide`
]:
true
})
}
}
},
/**
* 组件的方法列表
*/
...
...
pages/tab/output/components/outputCrowdfund/outputCrowdfund.wxml
View file @
782741d
...
...
@@ -25,11 +25,13 @@
<view class="content-title" data-item="{{item}}">
{{item.activityName}}
</view>
<view class="content-row" wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="content-label">{{subItem.label}}</view>
<view class="content-txt {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{subItem.isNumber ? filter.money_three_for_two_thousands(item[subItem.name]) : item[subItem.name]}}
<view wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="content-row" wx:if="{{!subItem.isHide}}">
<view class="content-label">{{subItem.label}}</view>
<view class="content-txt {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{subItem.isNumber ? filter.money_three_for_two_thousands(item[sceneCode == 'SC003' ? (subItem.SC003Name || subItem.name) : subItem.name]) : item[sceneCode == 'SC003' ? (subItem.SC003Name || subItem.name) : subItem.name]}}
</view>
</view>
</view>
</view>
...
...
pages/tab/output/components/sortTab/sortTab.js
View file @
782741d
...
...
@@ -39,6 +39,10 @@ Component({
label
:
'会员权益/升级'
,
asc
:
''
,
value
:
3
},
{
label
:
'次新车转化'
,
asc
:
''
,
value
:
10
}],
'SC002'
:
[{
label
:
'营业额'
,
...
...
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