Commit 42ab8980 by 张立顺

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 625a716e 2dd9f62f
...@@ -255,7 +255,7 @@ Component({ ...@@ -255,7 +255,7 @@ Component({
}, },
reset(e, isresetTime = true) { reset(e, isresetTime = true) {
let { formData, userInfo, sceneList, staffList, tabType, merchantRange, subIndex } = this.data let { formData, userInfo, sceneList, staffList, tabType, merchantRange, subIndex } = this.data
formData.partnerMerchantIds = [userInfo.subLoginUser.merchantId] formData.partnerMerchantIds = [userInfo?.merchantId]
if (isresetTime) { if (isresetTime) {
formData.startTime = '' formData.startTime = ''
formData.endTime = '' formData.endTime = ''
...@@ -275,7 +275,7 @@ Component({ ...@@ -275,7 +275,7 @@ Component({
} }
merchantRange.forEach((item, index) => { merchantRange.forEach((item, index) => {
item.show = true item.show = true
if (item.merchantId == userInfo?.subLoginUser?.merchantId) { if (item.merchantId == userInfo?.merchantId) {
subIndex = index subIndex = index
} }
}) })
......
<wxs src="./Tab.wxs" module="filterUtils" /> <wxs src="./Tab.wxs" module="filterUtils" />
<block> <block>
<scroll-view class="tab-box flex" scroll-x enable-flex scroll-with-animation scroll-into-view="{{to}}" enhanced="{{true}}" show-scrollbar="{{false}}" style="{{tabBoxStyle}}"> <scroll-view class="tab-box flex" scroll-x enable-flex scroll-with-animation scroll-into-view="{{to}}" enhanced="{{true}}" show-scrollbar="{{false}}" style="{{tabBoxStyle}}">
<block wx:for="{{tab}}" wx:key="index"> <block wx:for="{{tab}}" wx:key="index" wx:for-index="index">
<view class="tab {{index==count?'active':''}}" style="width:{{itemWidth}}; margin-left: 32rpx" bindtap="click" data-count="{{index}}"> <view class="tab {{index==count?'active':''}}" style="width:{{itemWidth}}; margin-left: {{index == 0 ? 60 : 32}}rpx" bindtap="click" data-count="{{index}}">
<view class="text text-center" style="{{tabBoxStyle}}">{{item}}</view> <view class="text text-center" style="{{tabBoxStyle}}">{{item}}</view>
<view wx:if="{{!noLine}}" class="line" style="{{tabHeight ? 'margin-top: 6rpx;' : ''}}" /> <view wx:if="{{!noLine}}" class="line" style="{{tabHeight ? 'margin-top: 6rpx;' : ''}}" />
</view> </view>
......
...@@ -257,9 +257,10 @@ Component({ ...@@ -257,9 +257,10 @@ Component({
}) })
}, },
getMerchantList(isReset = false) { getMerchantList(isReset = false) {
console.log('getMerchantList---')
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
let { searchForm, merchantList, isAsk } = this.data let { searchForm, merchantList, isAsk, isEnd } = this.data
if (isAsk) { if (isAsk || isEnd) {
return true return true
} }
this.setData({ this.setData({
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// padding-top: 16rpx; // padding-top: 16rpx;
background-color: #F2F3F7; background-color: #F2F3F7;
height: 100%; height: 100%;
padding: 0 16rpx; padding: 0 16rpx 10rpx;
} }
.btn-box { .btn-box {
......
<!--pages/tab/outputValue/components/merchant/merchant.wxml--> <!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}"> <scroll-view class="merchant" id="scroller" scroll-y enable-back-to-top refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" refresher-threshold="104" scroll-top="{{scrollTop}}" bindscrolltolower="getMore">
<!-- 全部 - 服务商总产值 --> <!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total> <service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index"> <view wx:for="{{merchantList}}" wx:key="index">
......
<!-- pages/tab/output/output.wxml --> <!-- pages/tab/output/output.wxml -->
<navigation-bar navStyle="{{isShowFilterScreen ? 'background: #fff;' : navStyle}}" bindnavbarReady="navbarReady" navBarBoxStyle="{{!isShowFilterScreen ? navBarBoxStyle : 'justify-content: center;align-items: center'}}" navTitleStyle="{{navTitleStyle}}"> <navigation-bar navStyle="{{isShowFilterScreen ? 'background: #fff;' : navStyle}}" bindnavbarReady="navbarReady" navBarBoxStyle="{{!isShowFilterScreen ? navBarBoxStyle : 'justify-content: center;align-items: center'}}" navTitleStyle="{{navTitleStyle}}">
<block> <block>
<tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'38%'}}" tabBoxStyle="{{tabBoxStyle}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" /> <tab wx:if="{{!isShowFilterScreen}}" noLine="{{true}}" tab="{{tabList}}" itemWidth="{{'28%'}}" tabBoxStyle="{{tabBoxStyle}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="screen_box"> <view class="screen_box">
<screen-box id="screenBox" formData="{{screenFormData}}" statusBarHeight="{{statusBarHeight}}" navigationBarHeight="{{navigationBarHeight}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box> <screen-box id="screenBox" formData="{{screenFormData}}" statusBarHeight="{{statusBarHeight}}" navigationBarHeight="{{navigationBarHeight}}" tabType="{{tabIndx}}" tabBarStyle="{{tabBarStyle}}" isShowFilterScreen="{{isShowFilterScreen}}" bindconfirm="screenConfirm"></screen-box>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!