Commit f2161946 by wangzhihui

修复标签显示

1 parent 15923b64
......@@ -83,7 +83,7 @@ Component({
// 4: 2 // 未签约
}
const obj = {
keyword:this.data.searchKeyword,
storeName:this.data.searchKeyword,
isAll: boardScopeActive ? 1 : 0,
year: boardScopeActive ? undefined : new Date(monthPickerValue).getFullYear(),
month: boardScopeActive ? undefined : new Date(monthPickerValue).getMonth() + 1,
......
......@@ -69,7 +69,7 @@ Component({
getParams() {
let { boardScopeActive, monthPickerValue, searchObj, statusIndex, userInfo, personParams } = this.data
const obj = {
keyword:this.data.searchKeyword,
merchantName:this.data.searchKeyword,
isAll: boardScopeActive ? 1 : 0,
year: boardScopeActive ? undefined : new Date(monthPickerValue).getFullYear(),
month: boardScopeActive ? undefined : new Date(monthPickerValue).getMonth() + 1,
......
<view class="store-layout">
<!-- 数据看板(门店) -->
<view class="data-board">
<view class="board">
<view class="board-header">
<view class="board-title">数据看板</view>
<view class="board-actions">
<view class="board-action {{boardMonthActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="month">
<text>{{boardMonthText}}</text>
<image src="{{IMG_URL}}customer/arrow.png" mode=""/>
</view>
<view class="board-action {{boardScopeActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="scope">
<text>{{boardScopeText}}</text>
</view>
</view>
</view>
<view class="board-grid">
<view class="grid-item wid-128">
<view class="label">门店总数</view>
<view class="value">{{dashboard.storeCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">新店</view>
<view class="value">{{dashboard.newStoreCount}}</view>
</view>
<view class="grid-item wid-67">
<view class="label">老店</view>
<view class="value">{{dashboard.oldStoreCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">未出单</view>
<view class="value">{{dashboard.notSignedCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">已出单</view>
<view class="value">{{dashboard.signedCount}}</view>
</view>
<view class="grid-item wid-67">
<view class="label">关店</view>
<view class="value">{{dashboard.signedCount}}</view>
</view>
</view>
</view>
</view>
<view class="search-wrap">
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
</view>
<!-- 列表状态筛选 TabBar(与父页吸顶逻辑保持一致类名) -->
<view class="tabbar-anchor" id="storeListTop">
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
</view>
<!-- 数据看板(门店) -->
<view class="data-board">
<view class="board">
<view class="board-header">
<view class="board-title">数据看板</view>
<view class="board-actions">
<view class="board-action {{boardMonthActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="month">
<text>{{boardMonthText}}</text>
<image src="{{IMG_URL}}customer/arrow.png" mode="" />
</view>
<view class="board-action {{boardScopeActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="scope">
<text>{{boardScopeText}}</text>
</view>
</view>
</view>
<view class="board-grid">
<view class="grid-item wid-128">
<view class="label">门店总数</view>
<view class="value">{{dashboard.storeCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">新店</view>
<view class="value">{{dashboard.newStoreCount}}</view>
</view>
<view class="grid-item wid-67">
<view class="label">老店</view>
<view class="value">{{dashboard.oldStoreCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">未出单</view>
<view class="value">{{dashboard.notSignedCount}}</view>
</view>
<view class="grid-item wid-128">
<view class="label">已出单</view>
<view class="value">{{dashboard.signedCount}}</view>
</view>
<view class="grid-item wid-67">
<view class="label">关店</view>
<view class="value">{{dashboard.closedStoreCount}}</view>
</view>
</view>
</view>
</view>
<view class="search-wrap">
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
</view>
<!-- 列表状态筛选 TabBar(与父页吸顶逻辑保持一致类名) -->
<view class="tabbar-anchor" id="storeListTop">
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
</view>
<!-- 列表(门店) -->
<view class="list-section" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);">
<block wx:if="{{storeList.length}}">
<block wx:for="{{storeList}}" wx:key="index">
<view class="list-card" bindtap="goDetail" data-item="{{item}}">
<view class="card-header">
<view class="status-tag {{item.storeType == 1 ? 'new': item.storeType == 2? 'old':'close'}}">{{ item.storeType == 1 ? '新店' : '老店' }}</view>
<view class="title">{{item.merchantName || '-'}} </view>
</view>
<view class="card-row">
<view class="label">拜访次数</view>
<view class="value">{{item.visitTimes != null ? item.visitTimes + '次' : '-'}}</view>
</view>
<view class="card-row">
<view class="label">销售人员</view>
<view class="value">{{item.salesUser || '-'}} </view>
</view>
<view class="card-row">
<view class="label">门店地址</view>
<view class="value">{{item.address}}</view>
</view>
<view class="card-row">
<view class="label">签约时间</view>
<view class="value">{{item.signedTime || '-'}} </view>
</view>
<view class="card-row">
<view class="label">展业时间</view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
</view>
<view class="card-row">
<view class="label">关店时间</view>
<view class="value">{{item.signedTime || '-'}} </view>
</view>
<view class="card-row">
<view class="label">关店原因</view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
</view>
</view>
</block>
<view class="list-footer" wx:if="{{loading}}">加载中...</view>
<view class="list-footer" wx:if="{{!hasMore && storeList.length}}">到底了~</view>
</block>
<block wx:else>
<nothing-tips tips="暂无数据" bgColor="{{'#F7F8FA'}}" emptyDataStyle="height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);" />
</block>
</view>
<!-- 列表(门店) -->
<view class="list-section" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);">
<block wx:if="{{storeList.length}}">
<block wx:for="{{storeList}}" wx:key="index">
<view class="list-card" bindtap="goDetail" data-item="{{item}}">
<view class="card-header">
<view class="status-tag {{item.storeType == 1 ? 'new': item.storeType == 2? 'old':'close'}}">{{ item.storeType == 1 ? '新店':item.storeType == 2?'老店' : '关店' }}</view>
<view class="title">{{item.merchantName || '-'}} </view>
</view>
<view class="card-row">
<view class="label">拜访次数</view>
<view class="value">{{item.visitTimes != null ? item.visitTimes + '次' : '-'}}</view>
</view>
<view class="card-row">
<view class="label">销售人员</view>
<view class="value">{{item.salesUser || '-'}} </view>
</view>
<view class="card-row">
<view class="label">门店地址</view>
<view class="value">{{item.address}}</view>
</view>
<view class="card-row">
<view class="label">签约时间</view>
<view class="value">{{item.signedTime || '-'}} </view>
</view>
<view class="card-row">
<view class="label">展业时间</view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
</view>
<block wx:if="{{item.status == 3}}">
<view class="card-row">
<view class="label">关店时间</view>
<view class="value">{{item.closeTime || '-'}} </view>
</view>
<view class="card-row">
<view class="label">关店原因</view>
<view class="value">{{item.confirmReason || '-'}} </view>
</view>
</block>
<!-- 月份选择弹窗(门店) -->
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="50%">
<van-datetime-picker
type="year-month"
model:value="{{pendingMonthValue}}"
min-date="{{minMonthDate}}"
max-date="{{maxMonthDate}}"
show-toolbar="{{false}}"
bind:change="onMonthChange"
/>
</popup>
</view>
</block>
<view class="list-footer" wx:if="{{loading}}">加载中...</view>
<view class="list-footer" wx:if="{{!hasMore && storeList.length}}">到底了~</view>
</block>
<block wx:else>
<nothing-tips tips="暂无数据" bgColor="{{'#F7F8FA'}}" emptyDataStyle="height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);" />
</block>
</view>
<!-- 月份选择弹窗(门店) -->
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="50%">
<van-datetime-picker type="year-month" model:value="{{pendingMonthValue}}" min-date="{{minMonthDate}}" max-date="{{maxMonthDate}}" show-toolbar="{{false}}" bind:change="onMonthChange" />
</popup>
</view>
\ No newline at end of file
......@@ -21,7 +21,7 @@ const h5Obj = {
2测试
3生产
*/
let index = 2
let index =2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!