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 08649df9
authored
Aug 17, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看产值-我的门店
1 parent
d54bcf2b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
132 additions
and
4 deletions
pages/tab/output/components/myMerchant/myMerchant.js
pages/tab/output/components/myMerchant/myMerchant.json
pages/tab/output/components/myMerchant/myMerchant.scss
pages/tab/output/components/myMerchant/myMerchant.wxml
pages/tab/output/output.json
pages/tab/output/output.wxml
pages/tab/output/components/myMerchant/myMerchant.js
0 → 100644
View file @
08649df
// pages/tab/output/components/myMerchant/myMerchant.js
import
{
IMG_URL
}
from
'~/utils/constantData'
import
outputApi
from
'~/api/outputApi/index'
Component
({
/**
* 组件的属性列表
*/
properties
:
{
},
/**
* 组件的初始数据
*/
data
:
{
IMG_URL
,
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
formData
:
{},
// 1精品升级,3众筹,0会员权益)
// 服务商-多4s店
merchantList
:
[{
yearMonth
:
'2023年8月'
,
curMonthTotalData
:
{
scene1Total
:
'72536'
,
scene0Total
:
'76400'
,
scene3Total
:
'15486'
,
total
:
'164422'
},
merchantDataList
:
[]
}]
},
lifetimes
:
{
attached
()
{
this
.
getMerchant
()
}
},
/**
* 组件的方法列表
*/
methods
:
{
getMerchant
(
isReset
=
false
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
params
=
{
partnerMerchantId
:
userInfo
.
subLoginUser
.
merchantId
}
outputApi
.
getStaffList
(
params
).
then
(
res
=>
{
if
(
isReset
)
{
this
.
setData
({
busiScrollTop
:
0
})
}
this
.
setData
({
triggered
:
false
})
// let _list = []
// _list = res || []
// this.setData({
// merchantList: _list
// })
})
},
}
})
pages/tab/output/components/myMerchant/myMerchant.json
0 → 100644
View file @
08649df
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
pages/tab/output/components/myMerchant/myMerchant.scss
0 → 100644
View file @
08649df
/* pages/tab/output/components/myMerchant/myMerchant.wxss */
.merchantCon
{
box-sizing
:
border-box
;
background-color
:
#fff
;
height
:
100%
;
}
.merchant
{
box-sizing
:
border-box
;
color
:
#323436
;
// padding-top: 16rpx;
// background-color: #F2F3F7;
background-color
:
#FFFFFF
;
.title
{
height
:
80rpx
;
line-height
:
80rpx
;
font-size
:
28rpx
;
color
:
#323436
;
}
.
title
:
:
before
{
display
:
inline-block
;
content
:
''
;
width
:
6rpx
;
height
:
28rpx
;
background
:
#3666FE
;
border-radius
:
0
4rpx
4rpx
0
;
margin-right
:
16rpx
;
}
}
.merchant-content
{
margin
:
0
16rpx
;
}
.end-txt
{
font-size
:
24rpx
;
text-align
:
center
;
color
:
#CCCED1
;
padding-bottom
:
60rpx
;
}
\ No newline at end of file
pages/tab/output/components/myMerchant/myMerchant.wxml
0 → 100644
View file @
08649df
<!--pages/tab/output/components/myMerchant/myMerchant.wxml-->
<view class="merchantCon">
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="handleSearch" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content">
<view class="title">{{item.yqMerchantName || ''}}</view>
<view wx:for="{{item.list}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<busi-card info="{{subItem}}" fromPage="merchant" sceneCode="{{formData.sceneCode}}" formData="{{formData}}"></busi-card>
</view>
</view>
<view wx:if="{{!merchantList.length}}" class="end-txt">
<nothing-tips tips="暂无数据~" bgColor="{{'#FFFFFF'}}" bg="{{bgUrl}}" />
</view>
<view wx:else class="end-txt">
<view>到底啦~</view>
</view>
</scroll-view>
</view>
\ No newline at end of file
pages/tab/output/output.json
View file @
08649df
...
...
@@ -2,7 +2,7 @@
"usingComponents"
:
{
"navigation-bar"
:
"../../../components/NavigationBar/NavigationBar"
,
"client"
:
"./components/client/client"
,
"m
erchant"
:
"./components/merchant/mre
chant"
,
"m
yMerchant"
:
"./components/myMerchant/myMer
chant"
,
"staff"
:
"./components/staff/staff"
,
"search-input"
:
"../../../components/SearchInput/SearchInput"
,
"accountSwitchingPop"
:
"./components/accountSwitchingPop/accountSwitchingPop"
,
...
...
pages/tab/output/output.wxml
View file @
08649df
...
...
@@ -27,9 +27,9 @@
<client id="client" />
</view> -->
<!-- 我的门店 -->
<
!-- <view class="comCom" hidden="{{tabIndx != 1
}}">
<merchant id="merchant" />
</view>
-->
<
view class="comCom" hidden="{{tabIndx != 0
}}">
<m
yM
erchant id="merchant" />
</view>
<!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<staff id="staff" />
...
...
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