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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
430 additions
and
368 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
// packageCustomer/pages/merchantDetail/merchantDetail.js
// packageCustomer/pages/merchantDetail/merchantDetail.js
import
CustomerApi
from
"~/api/customerApi/index"
import
CustomerApi
from
"~/api/customerApi/index"
import
{
IMG_URL
,
COOPERATIONMODELIST
,
TRSFFICSTATUSLIST
,
SCENELIST
,
ROLELIST
}
from
'~/utils/constantData'
import
{
IMG_URL
,
COOPERATIONMODELIST
,
TRSFFICSTATUSLIST
,
SCENELIST
,
ROLELIST
}
from
'~/utils/constantData'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
Page
({
Page
({
options
:
{
options
:
{
styleIsolation
:
'shared'
styleIsolation
:
'shared'
},
},
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
:
IMG_URL
,
IMG_URL
:
IMG_URL
,
listTabs
:
[
'KPI进度'
,
'经营指标'
,
'门店信息'
,
'资料详情'
],
listTabs
:
[
'KPI进度'
,
'经营指标'
,
'门店信息'
,
'资料详情'
],
tabIndex
:
0
,
tabIndex
:
0
,
infoDetail
:
{},
infoDetail
:
{},
statusText
:
{
statusText
:
{
1
:
{
label
:
'新店'
,
color
:
'#35C376'
,
background
:
'#35c37614'
},
1
:
{
2
:
{
label
:
'老店'
,
color
:
'#347BFF'
,
background
:
'#347bff14'
}
label
:
'新店'
,
},
color
:
'#35C376'
,
scrollTop
:
0
background
:
'#35c37614'
},
},
2
:
{
label
:
'老店'
,
color
:
'#347BFF'
,
background
:
'#347bff14'
},
3
:
{
label
:
'关店'
,
color
:
'#666666'
,
background
:
'#66666614'
},
},
scrollTop
:
0
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
let
{
query
}
=
options
let
{
if
(
query
)
{
query
const
pageQuery
=
JSON
.
parse
(
decodeURIComponent
(
query
))
}
=
options
this
.
setData
({
pageQuery
})
if
(
query
)
{
this
.
getMerchantDetail
(
pageQuery
)
const
pageQuery
=
JSON
.
parse
(
decodeURIComponent
(
query
))
if
(
pageQuery
.
currentTab
)
{
this
.
setData
({
this
.
setData
({
tabIndex
:
Number
(
pageQuery
.
currentTab
)})
pageQuery
}
})
}
this
.
getMerchantDetail
(
pageQuery
)
},
if
(
pageQuery
.
currentTab
)
{
this
.
setData
({
tabIndex
:
Number
(
pageQuery
.
currentTab
)
})
}
}
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{
onReady
()
{},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
()
{
},
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
this
.
setData
({
navBarHeight
navBarHeight
})
})
},
},
onScroll
(
e
)
{
onScroll
(
e
)
{
const
scrollTop
=
e
.
detail
.
scrollTop
const
scrollTop
=
e
.
detail
.
scrollTop
this
.
setData
({
scrollTop
})
this
.
setData
({
},
scrollTop
})
},
recordTabTop
()
{
recordTabTop
()
{
const
query
=
wx
.
createSelectorQuery
().
in
(
this
)
const
query
=
wx
.
createSelectorQuery
().
in
(
this
)
query
.
select
(
'.tabbar-anchor'
).
boundingClientRect
()
query
.
select
(
'.tabbar-anchor'
).
boundingClientRect
()
query
.
exec
(
res
=>
{
query
.
exec
(
res
=>
{
const
top
=
res
[
0
]?.
top
const
top
=
res
[
0
]?.
top
const
height
=
res
[
0
]?.
height
const
height
=
res
[
0
]?.
height
this
.
setData
({
this
.
setData
({
initialTabTop
:
top
,
initialTabTop
:
top
,
tabHeight
:
height
tabHeight
:
height
})
})
})
})
},
},
buildInfoBoard
()
{
buildInfoBoard
()
{
const
{
infoDetail
}
=
this
.
data
const
{
const
items
=
[
infoDetail
{
label
:
'主营品牌'
,
value
:
infoDetail
.
mainCategory
},
}
=
this
.
data
{
label
:
'合作模式'
,
value
:
infoDetail
.
coopMode
},
const
items
=
[{
{
label
:
'拜访次数'
,
value
:
infoDetail
.
visitCount
!=
null
?
`
${
infoDetail
.
visitCount
}
`
:
''
,
highlight
:
true
},
label
:
'主营品牌'
,
{
label
:
'流量情况'
,
value
:
infoDetail
.
flowScale
},
value
:
infoDetail
.
mainCategory
{
label
:
'展业时间'
,
value
:
infoDetail
.
expectedOperationDate
?
dayjs
(
infoDetail
.
expectedOperationDate
).
format
(
'YYYY-MM-DD'
)
:
''
},
},
{
label
:
'分润规则'
,
value
:
infoDetail
.
profitRule
},
{
{
label
:
'业务类型'
,
value
:
infoDetail
.
bizType
,
full
:
true
}
label
:
'合作模式'
,
].
filter
(
Boolean
)
value
:
infoDetail
.
coopMode
this
.
setData
({
infoBoardItems
:
items
})
},
},
{
label
:
'拜访次数'
,
value
:
infoDetail
.
visitCount
!=
null
?
`
${
infoDetail
.
visitCount
}
`
:
''
,
highlight
:
true
},
{
label
:
'流量情况'
,
value
:
infoDetail
.
flowScale
},
{
label
:
'展业时间'
,
value
:
infoDetail
.
expectedOperationDate
?
dayjs
(
infoDetail
.
expectedOperationDate
).
format
(
'YYYY-MM-DD'
)
:
''
},
{
label
:
'分润规则'
,
value
:
infoDetail
.
profitRule
},
{
label
:
'业务类型'
,
value
:
infoDetail
.
bizType
,
full
:
true
}
].
filter
(
Boolean
)
this
.
setData
({
infoBoardItems
:
items
})
},
getMerchantDetail
(
pageQuery
)
{
getMerchantDetail
(
pageQuery
)
{
wx
.
$api
.
showLoading
()
wx
.
$api
.
showLoading
()
if
(
!
pageQuery
.
merchantId
)
{
if
(
!
pageQuery
.
merchantId
)
{
wx
.
$sentry
.
reportParamError
(
wx
.
$sentry
.
reportParamError
(
'门店详情参数异常: merchantId'
,
'门店详情参数异常: merchantId'
,
pageQuery
pageQuery
)
)
}
}
CustomerApi
.
getMaterialData
({
id
:
pageQuery
.
merchantId
}).
then
(
res
=>
{
CustomerApi
.
getMaterialData
({
wx
.
$api
.
hideLoading
()
id
:
pageQuery
.
merchantId
this
.
setData
({
showPage
:
true
})
}).
then
(
res
=>
{
// 处理数据回显
wx
.
$api
.
hideLoading
()
this
.
progressData
(
res
)
this
.
setData
({
})
showPage
:
true
},
})
// 处理数据回显
this
.
progressData
(
res
)
})
},
progressData
(
data
)
{
progressData
(
data
)
{
if
(
!
data
||
typeof
data
!==
'object'
)
{
if
(
!
data
||
typeof
data
!==
'object'
)
{
wx
.
$sentry
.
reportError
(
wx
.
$sentry
.
reportError
(
'门店详情数据异常: data'
,
'门店详情数据异常: data'
,
data
data
)
)
this
.
setData
({
this
.
setData
({
infoDetail
:
{}
infoDetail
:
{}
})
})
return
return
}
}
try
{
try
{
const
businessSceneNames
=
{
0
:
'轻改'
,
1
:
'权益'
,
2
:
'延保'
}
const
businessSceneNames
=
{
// 主营品牌
0
:
'轻改'
,
data
.
mainCategory
=
data
.
mainBrand
||
''
1
:
'权益'
,
// 合作模式
2
:
'延保'
data
.
coopMode
=
''
}
if
(
Array
.
isArray
(
data
?.
cooperationModeList
))
{
// 主营品牌
data
.
coopMode
=
data
.
cooperationModeList
.
map
(
val
=>
{
data
.
mainCategory
=
data
.
mainBrand
||
''
try
{
// 合作模式
if
(
!
val
||
typeof
val
!==
'object'
)
return
''
data
.
coopMode
=
''
const
sceneName
=
businessSceneNames
[
val
.
businessSceneType
]
||
''
if
(
Array
.
isArray
(
data
?.
cooperationModeList
))
{
const
cooperationItem
=
COOPERATIONMODELIST
?.
find
(
v
=>
data
.
coopMode
=
data
.
cooperationModeList
.
map
(
val
=>
{
val
.
directSalesFlag
&&
v
?.
value
==
val
.
directSalesFlag
try
{
)
if
(
!
val
||
typeof
val
!==
'object'
)
return
''
const
cooperationName
=
cooperationItem
?.
name
||
''
const
sceneName
=
businessSceneNames
[
val
.
businessSceneType
]
||
''
return
sceneName
&&
cooperationName
?
`
${
sceneName
}
:
${
cooperationName
}
`
:
''
const
cooperationItem
=
COOPERATIONMODELIST
?.
find
(
v
=>
}
catch
(
error
)
{
val
.
directSalesFlag
&&
v
?.
value
==
val
.
directSalesFlag
wx
.
$sentry
.
reportError
(
)
'合作模式数据异常: data.cooperationModeList'
,
const
cooperationName
=
cooperationItem
?.
name
||
''
data
.
cooperationModeList
return
sceneName
&&
cooperationName
?
`
${
sceneName
}
:
${
cooperationName
}
`
:
''
)
}
catch
(
error
)
{
return
''
wx
.
$sentry
.
reportError
(
}
'合作模式数据异常: data.cooperationModeList'
,
}).
filter
(
item
=>
item
&&
item
!==
':'
)
// 过滤空项和只有冒号的项
data
.
cooperationModeList
.
join
(
'/'
)
||
''
)
}
return
''
// 流量情况
}
data
.
flowScale
=
''
}).
filter
(
item
=>
item
&&
item
!==
':'
)
// 过滤空项和只有冒号的项
if
(
data
.
flowSituation
)
{
.
join
(
'/'
)
||
''
try
{
}
data
.
flowScale
=
TRSFFICSTATUSLIST
?.
find
(
val
=>
val
?.
value
==
data
.
flowSituation
)?.
name
||
''
// 流量情况
}
catch
(
error
)
{
data
.
flowScale
=
''
wx
.
$sentry
.
reportError
(
if
(
data
.
flowSituation
)
{
'流量情况数据异常: data.flowSituation'
,
try
{
data
.
flowSituation
data
.
flowScale
=
TRSFFICSTATUSLIST
?.
find
(
val
=>
val
?.
value
==
data
.
flowSituation
)?.
name
||
''
)
}
catch
(
error
)
{
}
wx
.
$sentry
.
reportError
(
}
'流量情况数据异常: data.flowSituation'
,
// 业务类型 - 添加保护
data
.
flowSituation
data
.
bizType
=
''
)
if
(
Array
.
isArray
(
data
?.
businessTypeList
))
{
}
data
.
bizType
=
data
.
businessTypeList
.
map
(
val
=>
{
}
try
{
// 业务类型 - 添加保护
return
SCENELIST
?.
find
(
v
=>
v
?.
value
==
val
)?.
name
||
''
data
.
bizType
=
''
}
catch
(
error
)
{
if
(
Array
.
isArray
(
data
?.
businessTypeList
))
{
wx
.
$sentry
.
reportError
(
data
.
bizType
=
data
.
businessTypeList
.
map
(
val
=>
{
'业务类型数据异常: data.businessTypeList'
,
try
{
data
.
businessTypeList
return
SCENELIST
?.
find
(
v
=>
v
?.
value
==
val
)?.
name
||
''
)
}
catch
(
error
)
{
return
''
wx
.
$sentry
.
reportError
(
}
'业务类型数据异常: data.businessTypeList'
,
}).
filter
(
item
=>
item
)
// 过滤空字符串
data
.
businessTypeList
.
join
(
'/'
)
||
''
)
}
return
''
// 人员类型
}
if
(
Array
.
isArray
(
data
?.
salePotentialCustomerPersonnelInfoDTOList
))
{
}).
filter
(
item
=>
item
)
// 过滤空字符串
data
.
salePotentialCustomerPersonnelInfoDTOList
.
forEach
(
val
=>
{
.
join
(
'/'
)
||
''
try
{
}
if
(
val
&&
typeof
val
===
'object'
)
{
// 人员类型
val
.
roleName
=
ROLELIST
?.
find
(
v
=>
v
?.
value
==
val
.
personnelType
)?.
label
||
''
if
(
Array
.
isArray
(
data
?.
salePotentialCustomerPersonnelInfoDTOList
))
{
}
data
.
salePotentialCustomerPersonnelInfoDTOList
.
forEach
(
val
=>
{
}
catch
(
error
)
{
try
{
wx
.
$sentry
.
reportError
(
if
(
val
&&
typeof
val
===
'object'
)
{
'人员信息数据异常: data.salePotentialCustomerPersonnelInfoDTOList'
,
val
.
roleName
=
ROLELIST
?.
find
(
v
=>
v
?.
value
==
val
.
personnelType
)?.
label
||
''
data
.
salePotentialCustomerPersonnelInfoDTOList
}
)
}
catch
(
error
)
{
val
.
roleName
=
''
wx
.
$sentry
.
reportError
(
}
'人员信息数据异常: data.salePotentialCustomerPersonnelInfoDTOList'
,
})
data
.
salePotentialCustomerPersonnelInfoDTOList
}
)
val
.
roleName
=
''
// 店面门头照片
}
data
.
storePhotoList
=
[]
})
if
(
typeof
data
.
storePhoto
===
'string'
)
{
}
try
{
data
.
storePhotoList
=
data
.
storePhoto
.
split
(
','
)
}
catch
(
error
)
{
wx
.
$sentry
.
reportError
(
'店面照片数据异常: data.storePhoto'
,
data
.
storePhoto
)
}
}
// 设置数据
this
.
setData
({
infoDetail
:
data
},
()
=>
{
try
{
this
.
buildInfoBoard
&&
this
.
buildInfoBoard
()
this
.
recordTabTop
&&
this
.
recordTabTop
()
}
catch
(
error
)
{
console
.
error
(
'执行回调函数时出错:'
,
error
)
}
})
}
catch
(
error
)
{
wx
.
$sentry
.
reportParamError
(
'门店详情数据异常: data'
,
data
)
// 确保即使出错也有基本的数据结构
this
.
setData
({
infoDetail
:
{
...
data
,
mainCategory
:
''
,
coopMode
:
''
,
flowScale
:
''
,
bizType
:
''
,
salePotentialCustomerPersonnelInfoDTOList
:
[],
storePhotoList
:
[]
}
})
}
},
tabClick
(
e
)
{
// 店面门头照片
const
index
=
typeof
e
?.
detail
===
'number'
?
e
.
detail
:
0
data
.
storePhotoList
=
[]
this
.
setData
({
if
(
typeof
data
.
storePhoto
===
'string'
)
{
tabIndex
:
index
,
try
{
showVisitButton
:
index
!=
1
data
.
storePhotoList
=
data
.
storePhoto
.
split
(
','
)
})
}
catch
(
error
)
{
wx
.
nextTick
(()
=>
{
this
.
measureLayout
()
})
wx
.
$sentry
.
reportError
(
},
'店面照片数据异常: data.storePhoto'
,
data
.
storePhoto
)
}
}
// 设置数据
this
.
setData
({
infoDetail
:
data
},
()
=>
{
try
{
this
.
buildInfoBoard
&&
this
.
buildInfoBoard
()
this
.
recordTabTop
&&
this
.
recordTabTop
()
}
catch
(
error
)
{
console
.
error
(
'执行回调函数时出错:'
,
error
)
}
})
measureLayout
()
{
}
catch
(
error
)
{
const
{
scrollTop
,
initialTabTop
,
navBarHeight
}
=
this
.
data
wx
.
$sentry
.
reportParamError
(
if
(
scrollTop
>=
(
initialTabTop
-
navBarHeight
))
{
'门店详情数据异常: data'
,
this
.
setData
({
data
setScrollTop
:
(
initialTabTop
-
navBarHeight
)
)
})
// 确保即使出错也有基本的数据结构
}
this
.
setData
({
},
infoDetail
:
{
...
data
,
mainCategory
:
''
,
coopMode
:
''
,
flowScale
:
''
,
bizType
:
''
,
salePotentialCustomerPersonnelInfoDTOList
:
[],
storePhotoList
:
[]
}
})
}
},
/**
tabClick
(
e
)
{
* 生命周期函数--监听页面隐藏
const
index
=
typeof
e
?.
detail
===
'number'
?
e
.
detail
:
0
*/
this
.
setData
({
onHide
()
{
tabIndex
:
index
,
showVisitButton
:
index
!=
1
})
wx
.
nextTick
(()
=>
{
this
.
measureLayout
()
})
},
},
measureLayout
()
{
const
{
scrollTop
,
initialTabTop
,
navBarHeight
}
=
this
.
data
if
(
scrollTop
>=
(
initialTabTop
-
navBarHeight
))
{
this
.
setData
({
setScrollTop
:
(
initialTabTop
-
navBarHeight
)
})
}
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面隐藏
*/
*/
onUnload
()
{
onHide
()
{
},
},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 生命周期函数--监听页面卸载
*/
*/
onPullDownRefresh
()
{
onUnload
()
{
},
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onReachBottom
()
{
onPullDownRefresh
()
{
},
},
/**
/**
* 用户点击右上角分享
* 页面上拉触底事件的处理函数
*/
*/
onShareAppMessage
()
{
onReachBottom
()
{
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
})
\ No newline at end of file
\ No newline at end of file
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