Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-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 f2161946
authored
May 07, 2026
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复标签显示
1 parent
15923b64
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
110 deletions
packageCustomer/pages/merchantDetail/merchantDetail.js
pages/tab/customer/components/PotentialSection/PotentialSection.js
pages/tab/customer/components/StoreSection/StoreSection.js
pages/tab/customer/components/StoreSection/StoreSection.wxml
utils/request/environment.js
packageCustomer/pages/merchantDetail/merchantDetail.js
View file @
f216194
This diff is collapsed.
Click to expand it.
pages/tab/customer/components/PotentialSection/PotentialSection.js
View file @
f216194
...
@@ -83,7 +83,7 @@ Component({
...
@@ -83,7 +83,7 @@ Component({
// 4: 2 // 未签约
// 4: 2 // 未签约
}
}
const
obj
=
{
const
obj
=
{
keyword
:
this
.
data
.
searchKeyword
,
storeName
:
this
.
data
.
searchKeyword
,
isAll
:
boardScopeActive
?
1
:
0
,
isAll
:
boardScopeActive
?
1
:
0
,
year
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getFullYear
(),
year
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getFullYear
(),
month
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getMonth
()
+
1
,
month
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getMonth
()
+
1
,
...
...
pages/tab/customer/components/StoreSection/StoreSection.js
View file @
f216194
...
@@ -69,7 +69,7 @@ Component({
...
@@ -69,7 +69,7 @@ Component({
getParams
()
{
getParams
()
{
let
{
boardScopeActive
,
monthPickerValue
,
searchObj
,
statusIndex
,
userInfo
,
personParams
}
=
this
.
data
let
{
boardScopeActive
,
monthPickerValue
,
searchObj
,
statusIndex
,
userInfo
,
personParams
}
=
this
.
data
const
obj
=
{
const
obj
=
{
keyword
:
this
.
data
.
searchKeyword
,
merchantName
:
this
.
data
.
searchKeyword
,
isAll
:
boardScopeActive
?
1
:
0
,
isAll
:
boardScopeActive
?
1
:
0
,
year
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getFullYear
(),
year
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getFullYear
(),
month
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getMonth
()
+
1
,
month
:
boardScopeActive
?
undefined
:
new
Date
(
monthPickerValue
).
getMonth
()
+
1
,
...
...
pages/tab/customer/components/StoreSection/StoreSection.wxml
View file @
f216194
<view class="store-layout">
<view class="store-layout">
<!-- 数据看板(门店) -->
<!-- 数据看板(门店) -->
<view class="data-board">
<view class="data-board">
<view class="board">
<view class="board">
<view class="board-header">
<view class="board-header">
<view class="board-title">数据看板</view>
<view class="board-title">数据看板</view>
<view class="board-actions">
<view class="board-actions">
<view class="board-action {{boardMonthActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="month">
<view class="board-action {{boardMonthActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="month">
<text>{{boardMonthText}}</text>
<text>{{boardMonthText}}</text>
<image src="{{IMG_URL}}customer/arrow.png" mode=""
/>
<image src="{{IMG_URL}}customer/arrow.png" mode=""
/>
</view>
</view>
<view class="board-action {{boardScopeActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="scope">
<view class="board-action {{boardScopeActive ? 'active' : ''}}" bindtap="chooseBoard" data-type="scope">
<text>{{boardScopeText}}</text>
<text>{{boardScopeText}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="board-grid">
<view class="board-grid">
<view class="grid-item wid-128">
<view class="grid-item wid-128">
<view class="label">门店总数</view>
<view class="label">门店总数</view>
<view class="value">{{dashboard.storeCount}}</view>
<view class="value">{{dashboard.storeCount}}</view>
</view>
</view>
<view class="grid-item wid-128">
<view class="grid-item wid-128">
<view class="label">新店</view>
<view class="label">新店</view>
<view class="value">{{dashboard.newStoreCount}}</view>
<view class="value">{{dashboard.newStoreCount}}</view>
</view>
</view>
<view class="grid-item wid-67">
<view class="grid-item wid-67">
<view class="label">老店</view>
<view class="label">老店</view>
<view class="value">{{dashboard.oldStoreCount}}</view>
<view class="value">{{dashboard.oldStoreCount}}</view>
</view>
</view>
<view class="grid-item wid-128">
<view class="grid-item wid-128">
<view class="label">未出单</view>
<view class="label">未出单</view>
<view class="value">{{dashboard.notSignedCount}}</view>
<view class="value">{{dashboard.notSignedCount}}</view>
</view>
</view>
<view class="grid-item wid-128">
<view class="grid-item wid-128">
<view class="label">已出单</view>
<view class="label">已出单</view>
<view class="value">{{dashboard.signedCount}}</view>
<view class="value">{{dashboard.signedCount}}</view>
</view>
</view>
<view class="grid-item wid-67">
<view class="grid-item wid-67">
<view class="label">关店</view>
<view class="label">关店</view>
<view class="value">{{dashboard.signed
Count}}</view>
<view class="value">{{dashboard.closedStore
Count}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="search-wrap">
<view class="search-wrap">
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
</view>
</view>
<!-- 列表状态筛选 TabBar(与父页吸顶逻辑保持一致类名) -->
<!-- 列表状态筛选 TabBar(与父页吸顶逻辑保持一致类名) -->
<view class="tabbar-anchor" id="storeListTop">
<view class="tabbar-anchor" id="storeListTop">
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
</view>
</view>
<!-- 列表(门店) -->
<!-- 列表(门店) -->
<view class="list-section" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);">
<view class="list-section" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);">
<block wx:if="{{storeList.length}}">
<block wx:if="{{storeList.length}}">
<block wx:for="{{storeList}}" wx:key="index">
<block wx:for="{{storeList}}" wx:key="index">
<view class="list-card" bindtap="goDetail" data-item="{{item}}">
<view class="list-card" bindtap="goDetail" data-item="{{item}}">
<view class="card-header">
<view class="card-header">
<view class="status-tag {{item.storeType == 1 ? 'new': item.storeType == 2? 'old':'close'}}">{{ item.storeType == 1 ? '新店' : '老店' }}</view>
<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 class="title">{{item.merchantName || '-'}} </view>
</view>
</view>
<view class="card-row">
<view class="card-row">
<view class="label">拜访次数</view>
<view class="label">拜访次数</view>
<view class="value">{{item.visitTimes != null ? item.visitTimes + '次' : '-'}}</view>
<view class="value">{{item.visitTimes != null ? item.visitTimes + '次' : '-'}}</view>
</view>
</view>
<view class="card-row">
<view class="card-row">
<view class="label">销售人员</view>
<view class="label">销售人员</view>
<view class="value">{{item.salesUser || '-'}} </view>
<view class="value">{{item.salesUser || '-'}} </view>
</view>
</view>
<view class="card-row">
<view class="card-row">
<view class="label">门店地址</view>
<view class="label">门店地址</view>
<view class="value">{{item.address}}</view>
<view class="value">{{item.address}}</view>
</view>
</view>
<view class="card-row">
<view class="card-row">
<view class="label">签约时间</view>
<view class="label">签约时间</view>
<view class="value">{{item.signedTime || '-'}} </view>
<view class="value">{{item.signedTime || '-'}} </view>
</view>
</view>
<view class="card-row">
<view class="card-row">
<view class="label">展业时间</view>
<view class="label">展业时间</view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
</view>
</view>
<view class="card-row">
<block wx:if="{{item.status == 3}}">
<view class="label">关店时间</view>
<view class="card-row">
<view class="value">{{item.signedTime || '-'}} </view>
<view class="label">关店时间</view>
</view>
<view class="value">{{item.closeTime || '-'}} </view>
<view class="card-row">
</view>
<view class="label">关店原因</view>
<view class="card-row">
<view class="value">{{item.expectedOperationDate || '-'}} </view>
<view class="label">关店原因</view>
</view>
<view class="value">{{item.confirmReason || '-'}} </view>
</view>
</view>
</block>
</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>
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="50%">
</block>
<van-datetime-picker
<view class="list-footer" wx:if="{{loading}}">加载中...</view>
type="year-month"
<view class="list-footer" wx:if="{{!hasMore && storeList.length}}">到底了~</view>
model:value="{{pendingMonthValue}}"
</block>
min-date="{{minMonthDate}}"
<block wx:else>
max-date="{{maxMonthDate}}"
<nothing-tips tips="暂无数据" bgColor="{{'#F7F8FA'}}" emptyDataStyle="height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);" />
show-toolbar="{{false}}"
</block>
bind:change="onMonthChange"
</view>
/>
</popup>
<!-- 月份选择弹窗(门店) -->
<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>
</view>
\ No newline at end of file
\ No newline at end of file
utils/request/environment.js
View file @
f216194
...
@@ -21,7 +21,7 @@ const h5Obj = {
...
@@ -21,7 +21,7 @@ const h5Obj = {
2测试
2测试
3生产
3生产
*/
*/
let
index
=
2
let
index
=
2
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
// console.log(systemInfo);
// console.log(systemInfo);
...
...
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