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 d47a47b4
authored
Aug 24, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式
1 parent
3942d927
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
27 deletions
pages/tab/outputValue/components/merchant/merchant.js
pages/tab/outputValue/components/merchant/merchant.scss
pages/tab/outputValue/components/merchant/merchant.wxml
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
pages/tab/outputValue/outputValue.wxml
pages/tab/outputValue/components/merchant/merchant.js
View file @
d47a47b
...
@@ -20,9 +20,12 @@ Component({
...
@@ -20,9 +20,12 @@ Component({
sceneType
:
''
sceneType
:
''
}
}
}
}
// observer: function (n) {
},
// n && this.merchantRefresh()
tabBarStyle
:
{
// }
type
:
Number
,
observer
:
function
(
n
)
{
if
(
n
)
this
.
setData
({
emptyDataStyle
:
`height: calc(100vh -
${
n
}
px - 88rpx - 24rpx)`
})
}
}
}
},
},
...
@@ -41,6 +44,8 @@ Component({
...
@@ -41,6 +44,8 @@ Component({
},
},
isEnd
:
false
,
isEnd
:
false
,
loading
:
true
,
loading
:
true
,
scrollTop
:
0
,
isAsk
:
false
,
// totalObj: {
// totalObj: {
// scene1Total: '72536',
// scene1Total: '72536',
// scene0Total: '76400',
// scene0Total: '76400',
...
@@ -252,10 +257,14 @@ Component({
...
@@ -252,10 +257,14 @@ Component({
},
},
getMerchantList
(
isReset
=
false
)
{
getMerchantList
(
isReset
=
false
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
searchForm
,
merchantList
}
=
this
.
data
let
{
searchForm
,
merchantList
,
isAsk
}
=
this
.
data
if
(
isAsk
)
{
return
true
}
this
.
setData
({
this
.
setData
({
serviceName
:
userInfo
.
subLoginUser
.
merchantName
,
serviceName
:
userInfo
.
subLoginUser
.
merchantName
,
loading
:
true
loading
:
true
,
isAsk
:
true
})
})
this
.
dealMonth
(
isReset
)
this
.
dealMonth
(
isReset
)
let
params
=
{
let
params
=
{
...
@@ -273,14 +282,15 @@ Component({
...
@@ -273,14 +282,15 @@ Component({
})
})
if
(
isReset
)
{
if
(
isReset
)
{
this
.
setData
({
this
.
setData
({
busiS
crollTop
:
0
s
crollTop
:
0
})
})
}
}
}).
finally
(()
=>
{
}).
finally
(()
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
this
.
setData
({
this
.
setData
({
triggered
:
false
,
triggered
:
false
,
loading
:
false
loading
:
false
,
isAsk
:
false
})
})
})
})
}
}
...
...
pages/tab/outputValue/components/merchant/merchant.scss
View file @
d47a47b
/* pages/tab/outputValue/components/merchant/merchant.wxss */
/* pages/tab/outputValue/components/merchant/merchant.wxss */
.merchantCon
{
box-sizing
:
border-box
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
.merchant
{
.merchant
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
color
:
#323436
;
color
:
#323436
;
// padding-top: 16rpx;
// padding-top: 16rpx;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
height
:
100%
;
padding
:
0
16rpx
;
}
}
.merchant-content
{
.merchant-content
{
...
@@ -18,6 +13,10 @@
...
@@ -18,6 +13,10 @@
margin-bottom
:
44rpx
;
margin-bottom
:
44rpx
;
}
}
.btn-box
{
padding-bottom
:
44rpx
;
}
.btn
{
.btn
{
width
:
256rpx
;
width
:
256rpx
;
height
:
80rpx
;
height
:
80rpx
;
...
@@ -27,7 +26,7 @@
...
@@ -27,7 +26,7 @@
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#5A6066
;
color
:
#5A6066
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
44rpx
;
margin
:
0
auto
;
}
}
.end-txt
{
.end-txt
{
...
...
pages/tab/outputValue/components/merchant/merchant.wxml
View file @
d47a47b
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<
view class="merchantCon"
>
<
!-- <view class="merchantCon"> --
>
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiS
crollTop}}">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{s
crollTop}}">
<!-- 全部 - 服务商总产值 -->
<!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{!searchForm.sceneType && merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<service-total wx:if="{{!searchForm.sceneType && merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<!-- 全部 -->
<!-- 全部 -->
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{ite
m}}"></merchant-all>
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchFor
m}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
<merchant-scene wx:else searchForm="{{searchForm}}" curInfo="{{item}}"></merchant-scene>
</view>
</view>
<view wx:if="{{!loading}}">
<view wx:if="{{!loading}}">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" emptyDataStyle="{{emptyDataStyle}}" />
</view>
<view wx:elif="{{!isEnd}}" class="btn-box">
<view class="btn" bindtap="getMore">加载更多</view>
</view>
</view>
<view class="btn" wx:elif="{{!isEnd}}" bindtap="getMore">加载更多</view>
<view wx:else class="end-txt">
<view wx:else class="end-txt">
<view>到底啦~</view>
<view>到底啦~</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
\ No newline at end of file
\ No newline at end of file
</scroll-view>
<!-- </view> -->
\ No newline at end of file
\ No newline at end of file
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.scss
View file @
d47a47b
...
@@ -94,6 +94,11 @@
...
@@ -94,6 +94,11 @@
right
:
0
;
right
:
0
;
top
:
66rpx
;
top
:
66rpx
;
right
:
24rpx
;
right
:
24rpx
;
text-align
:
right
;
}
.business-total-other
{
text-align
:
right
;
}
}
.top-num-box
{
.top-num-box
{
...
...
pages/tab/outputValue/components/merchantCom/MerchantScene/MerchantScene.wxml
View file @
d47a47b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="merchant-scene">
<view class="merchant-scene">
<view class="top">
<view class="top">
<view class="scene-label">{{sceneObj.label}}</view>
<view class="scene-label">{{sceneObj.label}}</view>
<view wx:if="{{sceneObj.name == 'membranes'}}" class="business-total label">业务产值
<view wx:if="{{sceneObj.name == 'membranes'
&& searchForm.startTime && searchForm.endTime
}}" class="business-total label">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
</view>
<view>
<view>
...
@@ -15,9 +15,10 @@
...
@@ -15,9 +15,10 @@
<!-- <view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view> -->
<!-- <view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view> -->
</view>
</view>
<view>
<view>
<view wx:if="{{sceneObj.name != 'membranes'
}}" class="label m-b-12
">业务产值
<view wx:if="{{sceneObj.name != 'membranes'
&& searchForm.startTime && searchForm.endTime}}" class="label m-b-12 business-total-other
">业务产值
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
<text class="num-red">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.bizTotal || 0)}}</text>
</view>
</view>
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="num-grey">
<view class="num-grey">
...
@@ -29,6 +30,7 @@
...
@@ -29,6 +30,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 门店列表 -->
<!-- 门店列表 -->
<view class="contanier">
<view class="contanier">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list" bindtap="jump" data-info="{{item}}">
<view wx:for="{{curInfo.merchantDataList}}" wx:key="index" class="list" bindtap="jump" data-info="{{item}}">
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.js
View file @
d47a47b
...
@@ -14,7 +14,20 @@ Component({
...
@@ -14,7 +14,20 @@ Component({
this
.
dealCompare
()
this
.
dealCompare
()
}
}
}
}
},
searchForm
:
{
type
:
Object
,
value
:
()
=>
{
return
{
// 服务商商户号
partnerMerchantId
:
''
,
// 4S店商户号
merchantId
:
''
,
startTime
:
''
,
endTime
:
''
}
}
}
},
},
},
/**
/**
...
...
pages/tab/outputValue/components/merchantCom/merchantAll/merchantAll.wxml
View file @
d47a47b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<wxs src="/pages/tab/outputValue/index.wxs" module="filter" />
<view class="merchant-all">
<view class="merchant-all">
<view class="top">
<view class="top">
<view class="switch-box">对比上月
<view class="switch-box"
wx:if="{{curInfo.merchantDataList.length}}"
>对比上月
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
</view>
</view>
<view>
<view>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
</view>
</view>
<view>
<view
wx:if="{{searchForm.startTime && searchForm.endTime}}"
>
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view wx:for="{{sceneFormList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
<view class="num-grey">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}</view>
...
...
pages/tab/outputValue/outputValue.wxml
View file @
d47a47b
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<view class="layout" style="padding-top:calc({{tabBarStyle}}px + 88rpx);">
<!-- 我的门店 -->
<!-- 我的门店 -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<view class="comCom" hidden="{{tabIndx != 0}}">
<merchant id="merchant" searchForm="{{screenFormData}}" />
<merchant id="merchant" searchForm="{{screenFormData}}"
tabBarStyle="{{tabBarStyle}}"
/>
</view>
</view>
<!-- 我的员工 -->
<!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<view class="comCom" hidden="{{tabIndx != 1}}">
...
...
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