Commit 6ebf37b5 by zhangxw

Merge branch 'v4.27.0_0831' of http://192.168.3.233:8090/saas_plus/business-assi…

…stant into v4.27.0_0831
2 parents 672b7747 08649df9
// 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
// })
})
},
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* 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-->
<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
......@@ -2,7 +2,7 @@
"usingComponents": {
"navigation-bar": "../../../components/NavigationBar/NavigationBar",
"client": "./components/client/client",
"merchant": "./components/merchant/mrechant",
"myMerchant": "./components/myMerchant/myMerchant",
"staff": "./components/staff/staff",
"search-input": "../../../components/SearchInput/SearchInput",
"accountSwitchingPop": "./components/accountSwitchingPop/accountSwitchingPop",
......
......@@ -27,9 +27,9 @@
<client id="client" />
</view> -->
<!-- 我的门店 -->
<!-- <view class="comCom" hidden="{{tabIndx != 1}}">
<merchant id="merchant" />
</view> -->
<view class="comCom" hidden="{{tabIndx != 0}}">
<myMerchant id="merchant" />
</view>
<!-- 我的员工 -->
<view class="comCom" hidden="{{tabIndx != 1}}">
<staff id="staff" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!