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 5ae474c7
authored
May 19, 2026
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.0' into 'master'
上线合并 See merge request
!7
2 parents
39453ee0
f2161946
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
285 additions
and
56 deletions
app.json
components/SearchInput/SearchInput.js
packageCustomer/pages/merchantDetail/merchantDetail.js
packageTool/index.wxs
packageTool/pages/salesDailyReport/salesDailyReport.js
pages/tab/customer/components/PotentialSection/PotentialSection.js
pages/tab/customer/components/PotentialSection/PotentialSection.scss
pages/tab/customer/components/PotentialSection/PotentialSection.wxml
pages/tab/customer/components/StoreSection/StoreSection.js
pages/tab/customer/components/StoreSection/StoreSection.scss
pages/tab/customer/components/StoreSection/StoreSection.wxml
utils/request/environment.js
app.json
View file @
5ae474c
...
@@ -98,7 +98,8 @@
...
@@ -98,7 +98,8 @@
"nothing-tips"
:
"/components/Nothing-tips/nothingTips"
,
"nothing-tips"
:
"/components/Nothing-tips/nothingTips"
,
"glsx-image"
:
"/components/image/index"
,
"glsx-image"
:
"/components/image/index"
,
"glsx-privacy"
:
"glsx-applet-component/GlsxPrivacy/index"
,
"glsx-privacy"
:
"glsx-applet-component/GlsxPrivacy/index"
,
"van-popup"
:
"@vant/weapp/popup/index"
"van-popup"
:
"@vant/weapp/popup/index"
,
"search-input"
:
"/components/SearchInput/SearchInput"
},
},
"resolveAlias"
:
{
"resolveAlias"
:
{
"~/*"
:
"/*"
"~/*"
:
"/*"
...
...
components/SearchInput/SearchInput.js
View file @
5ae474c
// components/SearchInput/SearchInput.js
// components/SearchInput/SearchInput.js
Component
({
Component
({
options
:
{
styleIsolation
:
'shared'
// 允许外部样式穿透组件
},
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
packageCustomer/pages/merchantDetail/merchantDetail.js
View file @
5ae474c
// 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
:
{
...
@@ -15,8 +21,21 @@ Page({
...
@@ -15,8 +21,21 @@ Page({
tabIndex
:
0
,
tabIndex
:
0
,
infoDetail
:
{},
infoDetail
:
{},
statusText
:
{
statusText
:
{
1
:
{
label
:
'新店'
,
color
:
'#35C376'
,
background
:
'#35c37614'
},
1
:
{
2
:
{
label
:
'老店'
,
color
:
'#347BFF'
,
background
:
'#347bff14'
}
label
:
'新店'
,
color
:
'#35C376'
,
background
:
'#35c37614'
},
2
:
{
label
:
'老店'
,
color
:
'#347BFF'
,
background
:
'#347bff14'
},
3
:
{
label
:
'关店'
,
color
:
'#666666'
,
background
:
'#66666614'
},
},
},
scrollTop
:
0
scrollTop
:
0
},
},
...
@@ -25,13 +44,19 @@ Page({
...
@@ -25,13 +44,19 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
let
{
query
}
=
options
let
{
query
}
=
options
if
(
query
)
{
if
(
query
)
{
const
pageQuery
=
JSON
.
parse
(
decodeURIComponent
(
query
))
const
pageQuery
=
JSON
.
parse
(
decodeURIComponent
(
query
))
this
.
setData
({
pageQuery
})
this
.
setData
({
pageQuery
})
this
.
getMerchantDetail
(
pageQuery
)
this
.
getMerchantDetail
(
pageQuery
)
if
(
pageQuery
.
currentTab
)
{
if
(
pageQuery
.
currentTab
)
{
this
.
setData
({
tabIndex
:
Number
(
pageQuery
.
currentTab
)})
this
.
setData
({
tabIndex
:
Number
(
pageQuery
.
currentTab
)
})
}
}
}
}
},
},
...
@@ -39,8 +64,7 @@ Page({
...
@@ -39,8 +64,7 @@ Page({
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{
onReady
()
{},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
...
@@ -58,7 +82,9 @@ Page({
...
@@ -58,7 +82,9 @@ Page({
onScroll
(
e
)
{
onScroll
(
e
)
{
const
scrollTop
=
e
.
detail
.
scrollTop
const
scrollTop
=
e
.
detail
.
scrollTop
this
.
setData
({
scrollTop
})
this
.
setData
({
scrollTop
})
},
},
recordTabTop
()
{
recordTabTop
()
{
...
@@ -75,17 +101,43 @@ Page({
...
@@ -75,17 +101,43 @@ Page({
},
},
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
:
'合作模式'
,
value
:
infoDetail
.
coopMode
},
{
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
)
].
filter
(
Boolean
)
this
.
setData
({
infoBoardItems
:
items
})
this
.
setData
({
infoBoardItems
:
items
})
},
},
getMerchantDetail
(
pageQuery
)
{
getMerchantDetail
(
pageQuery
)
{
...
@@ -96,9 +148,13 @@ Page({
...
@@ -96,9 +148,13 @@ Page({
pageQuery
pageQuery
)
)
}
}
CustomerApi
.
getMaterialData
({
id
:
pageQuery
.
merchantId
}).
then
(
res
=>
{
CustomerApi
.
getMaterialData
({
id
:
pageQuery
.
merchantId
}).
then
(
res
=>
{
wx
.
$api
.
hideLoading
()
wx
.
$api
.
hideLoading
()
this
.
setData
({
showPage
:
true
})
this
.
setData
({
showPage
:
true
})
// 处理数据回显
// 处理数据回显
this
.
progressData
(
res
)
this
.
progressData
(
res
)
})
})
...
@@ -116,7 +172,11 @@ Page({
...
@@ -116,7 +172,11 @@ Page({
return
return
}
}
try
{
try
{
const
businessSceneNames
=
{
0
:
'轻改'
,
1
:
'权益'
,
2
:
'延保'
}
const
businessSceneNames
=
{
0
:
'轻改'
,
1
:
'权益'
,
2
:
'延保'
}
// 主营品牌
// 主营品牌
data
.
mainCategory
=
data
.
mainBrand
||
''
data
.
mainCategory
=
data
.
mainBrand
||
''
// 合作模式
// 合作模式
...
@@ -236,11 +296,17 @@ Page({
...
@@ -236,11 +296,17 @@ Page({
tabIndex
:
index
,
tabIndex
:
index
,
showVisitButton
:
index
!=
1
showVisitButton
:
index
!=
1
})
})
wx
.
nextTick
(()
=>
{
this
.
measureLayout
()
})
wx
.
nextTick
(()
=>
{
this
.
measureLayout
()
})
},
},
measureLayout
()
{
measureLayout
()
{
const
{
scrollTop
,
initialTabTop
,
navBarHeight
}
=
this
.
data
const
{
scrollTop
,
initialTabTop
,
navBarHeight
}
=
this
.
data
if
(
scrollTop
>=
(
initialTabTop
-
navBarHeight
))
{
if
(
scrollTop
>=
(
initialTabTop
-
navBarHeight
))
{
this
.
setData
({
this
.
setData
({
setScrollTop
:
(
initialTabTop
-
navBarHeight
)
setScrollTop
:
(
initialTabTop
-
navBarHeight
)
...
...
packageTool/index.wxs
View file @
5ae474c
...
@@ -35,18 +35,29 @@ var isDateWithin7Days = function (date) {
...
@@ -35,18 +35,29 @@ var isDateWithin7Days = function (date) {
return diffDays >= -7
return diffDays >= -7
}
}
var isDateWithin1Days = function (date) {
var isDateWithin1Days = function (date) {
// console.log(date, 'date');
var currentDate = getDate() // 当前日期时间
var oneDay = 24 * 60 * 60 * 1000 // 一天的毫秒数
var currentDate = getDate() // 当前日期
var targetDate = getDate(date) // 给定的日期
var targetDate = getDate(date) // 给定的日期
// 计算给定日期与当前日期的时间差(以毫秒为单位)
// 获取当前日期的零点
var diffMilliseconds = targetDate - currentDate
var currentMidnight = getDate(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()).getTime()
// 获取目标日期的零点
var targetMidnight = getDate(targetDate.getFullYear(), targetDate.getMonth(), targetDate.getDate()).getTime()
// 计算时间差对应的天数
// 当天操作当天的记录,永远允许
var diffDays = Math.floor(diffMilliseconds / oneDay)
if (currentMidnight === targetMidnight) {
// console.log(diffDays, 'diffDays');
return true;
return diffDays >= -1
}
// 如果目标日期是昨天
var oneDay = 24 * 60 * 60 * 1000;
if (currentMidnight - targetMidnight === oneDay) {
// 昨天的数据,判断当前时间是否在凌晨2点之前
var currentHour = currentDate.getHours();
return currentHour < 2;
}
// 目标日期是未来,或者昨天之前的数据,不允许
return false;
}
}
var isDateWithin60Days = function (date) {
var isDateWithin60Days = function (date) {
var oneDay = 24 * 60 * 60 * 1000 // 一天的毫秒数
var oneDay = 24 * 60 * 60 * 1000 // 一天的毫秒数
...
...
packageTool/pages/salesDailyReport/salesDailyReport.js
View file @
5ae474c
...
@@ -136,7 +136,7 @@ Page({
...
@@ -136,7 +136,7 @@ Page({
// reportTypeList: [-1]
// reportTypeList: [-1]
})
})
.
then
(
data
=>
{
.
then
(
data
=>
{
console
.
log
(
data
,
'
getStaffDailyReportDetailWeeklyList
'
)
console
.
log
(
data
,
'
🚀
'
)
// let { code, data, message } = res
// let { code, data, message } = res
// if (code == 0) {
// if (code == 0) {
// console.log(data, 'data')
// console.log(data, 'data')
...
...
pages/tab/customer/components/PotentialSection/PotentialSection.js
View file @
5ae474c
...
@@ -8,6 +8,9 @@ const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).get
...
@@ -8,6 +8,9 @@ const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).get
const
__MIN_YM_TS__
=
new
Date
(
__NOW__
.
getFullYear
(),
__NOW__
.
getMonth
()
-
23
,
1
).
getTime
()
const
__MIN_YM_TS__
=
new
Date
(
__NOW__
.
getFullYear
(),
__NOW__
.
getMonth
()
-
23
,
1
).
getTime
()
Component
({
Component
({
options
:
{
styleIsolation
:
'shared'
},
properties
:
{
properties
:
{
showAddIcon
:
Boolean
,
showAddIcon
:
Boolean
,
navBarHeight
:
Number
,
navBarHeight
:
Number
,
...
@@ -17,9 +20,10 @@ Component({
...
@@ -17,9 +20,10 @@ Component({
},
},
data
:
{
data
:
{
searchKeyword
:
''
,
IMG_URL
,
IMG_URL
,
// 列表与分页(保持原有结构)
// 列表与分页(保持原有结构)
listTabs
:
[
'全部'
,
'跟进中'
,
'已签约'
,
'已绑定'
,
'未签约'
],
listTabs
:
[
'全部'
,
'跟进中'
,
'已签约'
,
'未签约'
],
customerList
:
[],
customerList
:
[],
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
...
@@ -53,6 +57,16 @@ Component({
...
@@ -53,6 +57,16 @@ Component({
},
},
methods
:
{
methods
:
{
onSearchConfirm
(
e
){
let
{
value
}
=
e
.
detail
this
.
setData
({
searchKeyword
:
value
},()
=>
{
this
.
resetAndLoad
(()
=>
{
this
.
triggerEvent
(
'needScrollTop'
,
this
.
data
.
initialTabTop
)
})
})
},
getPageData
()
{
getPageData
()
{
// 获取数据看板数据
// 获取数据看板数据
this
.
getStatic
()
this
.
getStatic
()
...
@@ -65,10 +79,11 @@ Component({
...
@@ -65,10 +79,11 @@ Component({
0
:
0
,
// 全部
0
:
0
,
// 全部
1
:
1
,
// 待跟进
1
:
1
,
// 待跟进
2
:
3
,
// 已签约
2
:
3
,
// 已签约
3
:
4
,
// 已绑定
3
:
2
,
// 已绑定
4
:
2
// 未签约
//
4: 2 // 未签约
}
}
const
obj
=
{
const
obj
=
{
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/PotentialSection/PotentialSection.scss
View file @
5ae474c
...
@@ -5,19 +5,23 @@
...
@@ -5,19 +5,23 @@
background
:
#fff
;
background
:
#fff
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
padding
:
32rpx
;
padding
:
32rpx
;
.board-header
{
.board-header
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
.board-title
{
.board-title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#181A1F
;
color
:
#181A1F
;
}
}
.board-actions
{
.board-actions
{
display
:
flex
;
display
:
flex
;
gap
:
16rpx
;
gap
:
16rpx
;
.board-action
{
.board-action
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -29,33 +33,41 @@
...
@@ -29,33 +33,41 @@
border
:
1rpx
solid
#e0e0e0
;
border
:
1rpx
solid
#e0e0e0
;
color
:
#999EA8
;
color
:
#999EA8
;
position
:
relative
;
position
:
relative
;
image
{
image
{
width
:
28rpx
;
width
:
28rpx
;
height
:
28rpx
;
height
:
28rpx
;
margin-left
:
8rpx
;
margin-left
:
8rpx
;
transform
:
rotate
(
90deg
);
transform
:
rotate
(
90deg
);
}
}
&
.active
{
&
.active
{
color
:
#292D33
;
color
:
#292D33
;
}
}
}
}
}
}
}
}
.board-grid
{
.board-grid
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.grid-item
{
.grid-item
{
margin
:
16rpx
0
;
margin
:
16rpx
0
;
&
.wid-128
{
&
.wid-128
{
width
:
256rpx
;
width
:
256rpx
;
}
}
&
.wid-67
{
&
.wid-67
{
width
:
134rpx
;
width
:
134rpx
;
}
}
.label
{
.label
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#757B85
;
color
:
#757B85
;
}
}
.value
{
.value
{
font-family
:
"numberBold"
;
font-family
:
"numberBold"
;
margin-top
:
8rpx
;
margin-top
:
8rpx
;
...
@@ -66,6 +78,44 @@
...
@@ -66,6 +78,44 @@
}
}
}
}
}
}
.search-wrap
{
padding
:
16rpx
24rpx
0
;
background
:
#fff
;
margin-top
:
24rpx
;
search-input
{
display
:
block
;
width
:
100%
;
.search-box
{
margin
:
0
!
important
;
padding
:
0
!
important
;
border
:
none
!
important
;
height
:
auto
!
important
;
}
.search-input
{
width
:
100%
!
important
;
background
:
#F7F8FA
!
important
;
.input
{
text-align
:
left
!
important
;
padding-left
:
72rpx
!
important
;
box-sizing
:
border-box
!
important
;
}
.placeholder
{
text-align
:
left
!
important
;
}
.icon
{
left
:
28rpx
!
important
;
transform
:
translateY
(
-50%
)
!
important
;
}
}
}
}
.tabbar-anchor
{
.tabbar-anchor
{
width
:
100%
;
width
:
100%
;
min-height
:
88rpx
;
min-height
:
88rpx
;
...
@@ -79,46 +129,55 @@
...
@@ -79,46 +129,55 @@
.list-section
{
.list-section
{
padding
:
24rpx
20rpx
0
;
padding
:
24rpx
20rpx
0
;
background
:
#F7F8FA
;
background
:
#F7F8FA
;
.list-card
{
.list-card
{
background
:
#fff
;
background
:
#fff
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
padding
:
24rpx
;
padding
:
24rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
box-shadow
:
0
8rpx
16rpx
0
rgba
(
0
,
0
,
0
,
0
.04
);
box-shadow
:
0
8rpx
16rpx
0
rgba
(
0
,
0
,
0
,
0
.04
);
.card-header
{
.card-header
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
8rpx
;
margin-bottom
:
8rpx
;
.title
{
.title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#292D33
;
color
:
#292D33
;
}
}
.status-tag
{
.status-tag
{
flex-shrink
:
0
;
flex-shrink
:
0
;
font-size
:
26rpx
;
font-size
:
26rpx
;
margin-left
:
28rpx
;
margin-left
:
28rpx
;
}
}
}
}
.card-row
{
.card-row
{
display
:
flex
;
display
:
flex
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
.label
{
.label
{
margin-right
:
24rpx
;
margin-right
:
24rpx
;
color
:
#999EA8
;
color
:
#999EA8
;
}
}
.value
{
.value
{
flex
:
1
;
flex
:
1
;
color
:
#292D33
;
color
:
#292D33
;
}
}
}
}
.card-actions
{
.card-actions
{
display
:
flex
;
display
:
flex
;
gap
:
16rpx
;
gap
:
16rpx
;
margin-top
:
16rpx
;
margin-top
:
16rpx
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
.btn
{
.btn
{
padding
:
8rpx
16rpx
;
padding
:
8rpx
16rpx
;
border-radius
:
12rpx
;
border-radius
:
12rpx
;
...
@@ -126,12 +185,14 @@
...
@@ -126,12 +185,14 @@
color
:
#fff
;
color
:
#fff
;
font-size
:
28rpx
;
font-size
:
28rpx
;
}
}
.ghost
{
.ghost
{
background
:
#347bff
1a
;
background
:
#347bff
1a
;
color
:
#347BFF
;
color
:
#347BFF
;
}
}
}
}
}
}
.list-footer
{
.list-footer
{
color
:
#999EA8
;
color
:
#999EA8
;
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
...
@@ -140,9 +201,11 @@
...
@@ -140,9 +201,11 @@
justify-content
:
center
;
justify-content
:
center
;
}
}
}
}
.loading
{
.loading
{
pointer-events
:
none
;
pointer-events
:
none
;
}
}
.fixed-btns
{
.fixed-btns
{
position
:
fixed
;
position
:
fixed
;
right
:
20rpx
;
right
:
20rpx
;
...
@@ -152,6 +215,7 @@
...
@@ -152,6 +215,7 @@
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
4rpx
20rpx
0
#000000
1a
;
box-shadow
:
0
4rpx
20rpx
0
#000000
1a
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
.btn
{
.btn
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20rpx
18rpx
;
padding
:
20rpx
18rpx
;
...
@@ -164,6 +228,7 @@
...
@@ -164,6 +228,7 @@
color
:
#347BFF
;
color
:
#347BFF
;
width
:
136rpx
;
width
:
136rpx
;
height
:
136rpx
;
height
:
136rpx
;
image
{
image
{
width
:
60rpx
;
width
:
60rpx
;
height
:
60rpx
;
height
:
60rpx
;
...
@@ -171,6 +236,7 @@
...
@@ -171,6 +236,7 @@
}
}
}
}
}
}
.arrowIcon
{
.arrowIcon
{
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
0
;
...
@@ -184,6 +250,7 @@
...
@@ -184,6 +250,7 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.image
{
.image
{
width
:
32rpx
;
width
:
32rpx
;
height
:
32rpx
;
height
:
32rpx
;
...
...
pages/tab/customer/components/PotentialSection/PotentialSection.wxml
View file @
5ae474c
...
@@ -29,10 +29,6 @@
...
@@ -29,10 +29,6 @@
<view class="value">{{dashboard.signedCount}}</view>
<view class="value">{{dashboard.signedCount}}</view>
</view>
</view>
<view class="grid-item wid-128">
<view class="grid-item wid-128">
<view class="label">已绑定</view>
<view class="value">{{dashboard.bindCount}}</view>
</view>
<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>
...
@@ -40,6 +36,10 @@
...
@@ -40,6 +36,10 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view class="search-wrap">
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
</view>
<view class="tabbar-anchor" >
<view class="tabbar-anchor" >
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" />
</view>
</view>
...
...
pages/tab/customer/components/StoreSection/StoreSection.js
View file @
5ae474c
...
@@ -8,6 +8,9 @@ const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).get
...
@@ -8,6 +8,9 @@ const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).get
const
__MIN_YM_TS__
=
new
Date
(
__NOW__
.
getFullYear
(),
__NOW__
.
getMonth
()
-
23
,
1
).
getTime
()
const
__MIN_YM_TS__
=
new
Date
(
__NOW__
.
getFullYear
(),
__NOW__
.
getMonth
()
-
23
,
1
).
getTime
()
Component
({
Component
({
options
:
{
styleIsolation
:
'shared'
},
properties
:
{
properties
:
{
navBarHeight
:
Number
,
navBarHeight
:
Number
,
searchObj
:
Object
,
searchObj
:
Object
,
...
@@ -16,6 +19,7 @@ Component({
...
@@ -16,6 +19,7 @@ Component({
},
},
data
:
{
data
:
{
searchKeyword
:
''
,
IMG_URL
,
IMG_URL
,
// 门店数据看板(示例数据)
// 门店数据看板(示例数据)
boardMonthText
:
`
${
__NOW__
.
getMonth
()
+
1
}
月`
,
boardMonthText
:
`
${
__NOW__
.
getMonth
()
+
1
}
月`
,
...
@@ -36,7 +40,7 @@ Component({
...
@@ -36,7 +40,7 @@ Component({
hasMore
:
true
,
hasMore
:
true
,
loading
:
false
,
loading
:
false
,
// 门店状态 TabBar
// 门店状态 TabBar
listTabs
:
[
'全部'
,
'新店'
,
'老店'
],
listTabs
:
[
'全部'
,
'新店'
,
'老店'
,
'关店'
],
statusIndex
:
0
statusIndex
:
0
},
},
...
@@ -46,6 +50,16 @@ Component({
...
@@ -46,6 +50,16 @@ Component({
},
},
methods
:
{
methods
:
{
onSearchConfirm
(
e
){
let
{
value
}
=
e
.
detail
this
.
setData
({
searchKeyword
:
value
},()
=>
{
this
.
resetAndLoad
(()
=>
{
this
.
triggerEvent
(
'needScrollTop'
,
this
.
data
.
initialTabTop
)
})
})
},
getPageData
()
{
getPageData
()
{
// 获取数据看板数据
// 获取数据看板数据
this
.
getStatic
()
this
.
getStatic
()
...
@@ -55,6 +69,7 @@ Component({
...
@@ -55,6 +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
=
{
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.scss
View file @
5ae474c
...
@@ -109,6 +109,10 @@
...
@@ -109,6 +109,10 @@
color
:
#347BFF
;
color
:
#347BFF
;
background
:
#347bff
14
;
background
:
#347bff
14
;
}
}
.close
{
color
:
#666666
;
background
:
#666666
14
;
}
.title
{
.title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -136,3 +140,39 @@
...
@@ -136,3 +140,39 @@
color
:
#757B85
;
color
:
#757B85
;
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
}
}
.search-wrap
{
padding
:
16rpx
24rpx
0
;
background
:
#fff
;
margin-top
:
24rpx
;
search-input
{
display
:
block
;
width
:
100%
;
.search-box
{
margin
:
0
!
important
;
padding
:
0
!
important
;
border
:
none
!
important
;
height
:
auto
!
important
;
}
.search-input
{
width
:
100%
!
important
;
background
:
#F7F8FA
!
important
;
.input
{
text-align
:
left
!
important
;
padding-left
:
72rpx
!
important
;
box-sizing
:
border-box
!
important
;
}
.placeholder
{
text-align
:
left
!
important
;
}
.icon
{
left
:
28rpx
!
important
;
transform
:
translateY
(
-50%
)
!
important
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/customer/components/StoreSection/StoreSection.wxml
View file @
5ae474c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<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>
...
@@ -35,10 +35,16 @@
...
@@ -35,10 +35,16 @@
<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="label">关店</view>
<view class="value">{{dashboard.closedStoreCount}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="search-wrap">
<search-input value="{{searchKeyword}}" bind:input="onSearchInput" placeholder="搜索" bind:search="onSearchConfirm" />
</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 }}" />
...
@@ -50,7 +56,7 @@
...
@@ -50,7 +56,7 @@
<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' : 'old'}}">{{ 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">
...
@@ -73,6 +79,17 @@
...
@@ -73,6 +79,17 @@
<view class="label">展业时间</view>
<view class="label">展业时间</view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
<view class="value">{{item.expectedOperationDate || '-'}} </view>
</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>
</view>
</view>
</block>
</block>
<view class="list-footer" wx:if="{{loading}}">加载中...</view>
<view class="list-footer" wx:if="{{loading}}">加载中...</view>
...
@@ -85,13 +102,6 @@
...
@@ -85,13 +102,6 @@
<!-- 月份选择弹窗(门店) -->
<!-- 月份选择弹窗(门店) -->
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="50%">
<popup bind:hidePopup="cancel" bind:confirm="popupConfirm" customPopupSlotStyle="{{'height: calc(100% - 210rpx)'}}" show="{{monthPickerShow}}" title="选择月份" height="50%">
<van-datetime-picker
<van-datetime-picker type="year-month" model:value="{{pendingMonthValue}}" min-date="{{minMonthDate}}" max-date="{{maxMonthDate}}" show-toolbar="{{false}}" bind:change="onMonthChange" />
type="year-month"
model:value="{{pendingMonthValue}}"
min-date="{{minMonthDate}}"
max-date="{{maxMonthDate}}"
show-toolbar="{{false}}"
bind:change="onMonthChange"
/>
</popup>
</popup>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
utils/request/environment.js
View file @
5ae474c
...
@@ -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