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