Commit 5ae474c7 by 前端

Merge branch 'SAAS+V5.8.0' into 'master'

上线合并

See merge request !7
2 parents 39453ee0 f2161946
...@@ -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 // components/SearchInput/SearchInput.js
Component({ Component({
options: {
styleIsolation: 'shared' // 允许外部样式穿透组件
},
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -7,7 +11,7 @@ Component({ ...@@ -7,7 +11,7 @@ Component({
maxlength: { maxlength: {
type: Number, type: Number,
value: -1 value: -1
}, },
placeholder: String, placeholder: String,
disabled: Boolean, disabled: Boolean,
value: String, value: String,
......
...@@ -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)
// console.log(diffDays, 'diffDays'); // 当天操作当天的记录,永远允许
return diffDays >= -1 if (currentMidnight === targetMidnight) {
return true;
}
// 如果目标日期是昨天
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 // 一天的毫秒数
......
...@@ -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')
......
...@@ -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.wxss */ /* pages/tab/customer/components/PotentialSection/PotentialSection.wxss */
.potential-page { .potential-page {
.data-board { .data-board {
margin: 0 20rpx; margin: 0 20rpx;
background: #fff; background: #fff;
border-radius: 16rpx; border-radius: 16rpx;
padding: 32rpx; padding: 32rpx;
.board-header {
display: flex; .board-header {
align-items: center; display: flex;
justify-content: space-between; align-items: center;
margin-bottom: 16rpx; justify-content: space-between;
.board-title { margin-bottom: 16rpx;
font-size: 32rpx;
font-weight: 600; .board-title {
color: #181A1F; font-size: 32rpx;
} font-weight: 600;
.board-actions { color: #181A1F;
display: flex; }
gap: 16rpx;
.board-action { .board-actions {
display: flex; display: flex;
align-items: center; gap: 16rpx;
height: 48rpx;
padding: 0 16rpx; .board-action {
font-size: 28rpx; display: flex;
border-radius: 4rpx; align-items: center;
opacity: 1; height: 48rpx;
border: 1rpx solid #e0e0e0; padding: 0 16rpx;
color: #999EA8; font-size: 28rpx;
position: relative; border-radius: 4rpx;
image { opacity: 1;
width: 28rpx; border: 1rpx solid #e0e0e0;
height: 28rpx; color: #999EA8;
margin-left: 8rpx; position: relative;
transform: rotate(90deg);
} image {
&.active { width: 28rpx;
color: #292D33; height: 28rpx;
} margin-left: 8rpx;
} transform: rotate(90deg);
} }
}
.board-grid { &.active {
display: flex; color: #292D33;
flex-wrap: wrap; }
.grid-item { }
margin: 16rpx 0; }
&.wid-128 { }
width: 256rpx;
} .board-grid {
&.wid-67 { display: flex;
width: 134rpx; flex-wrap: wrap;
}
.label { .grid-item {
font-size: 24rpx; margin: 16rpx 0;
color: #757B85;
} &.wid-128 {
.value { width: 256rpx;
font-family: "numberBold"; }
margin-top: 8rpx;
font-size: 40rpx; &.wid-67 {
font-weight: 700; width: 134rpx;
color: #292D33; }
}
} .label {
} font-size: 24rpx;
} color: #757B85;
.tabbar-anchor { }
width: 100%;
min-height: 88rpx; .value {
margin-top: 24rpx; font-family: "numberBold";
position: sticky; margin-top: 8rpx;
top: 0; font-size: 40rpx;
z-index: 99; font-weight: 700;
} color: #292D33;
}
/* 列表卡片 */ }
.list-section { }
padding: 24rpx 20rpx 0; }
background: #F7F8FA;
.list-card { .search-wrap {
background: #fff; padding: 16rpx 24rpx 0;
border-radius: 16rpx; background: #fff;
padding: 24rpx; margin-top:24rpx;
margin-bottom: 20rpx; search-input {
box-shadow: 0 8rpx 16rpx 0 rgba(0,0,0,0.04); display: block;
.card-header { width: 100%;
display: flex;
align-items: center; .search-box {
justify-content: space-between; margin: 0 !important;
margin-bottom: 8rpx; padding: 0 !important;
.title { border: none !important;
font-size: 32rpx; height: auto !important;
font-weight: 600; }
color: #292D33;
} .search-input {
.status-tag { width: 100% !important;
flex-shrink: 0; background: #F7F8FA !important;
font-size: 26rpx;
margin-left: 28rpx; .input {
} text-align: left !important;
} padding-left: 72rpx !important;
.card-row { box-sizing: border-box !important;
display: flex; }
margin-top: 10rpx;
font-size: 28rpx; .placeholder {
.label { text-align: left !important;
margin-right: 24rpx; }
color: #999EA8;
} .icon {
.value { left: 28rpx !important;
flex: 1; transform: translateY(-50%) !important;
color: #292D33; }
} }
} }
.card-actions { }
display: flex;
gap: 16rpx; .tabbar-anchor {
margin-top: 16rpx; width: 100%;
justify-content: flex-end; min-height: 88rpx;
.btn { margin-top: 24rpx;
padding: 8rpx 16rpx; position: sticky;
border-radius: 12rpx; top: 0;
background: #347BFF; z-index: 99;
color: #fff; }
font-size: 28rpx;
} /* 列表卡片 */
.ghost { .list-section {
background: #347bff1a; padding: 24rpx 20rpx 0;
color: #347BFF; background: #F7F8FA;
}
} .list-card {
} background: #fff;
.list-footer { border-radius: 16rpx;
color: #999EA8; padding: 24rpx;
padding-bottom: 20rpx; margin-bottom: 20rpx;
font-size: 24rpx; box-shadow: 0 8rpx 16rpx 0 rgba(0, 0, 0, 0.04);
display: flex;
justify-content: center; .card-header {
} display: flex;
} align-items: center;
.loading { justify-content: space-between;
pointer-events: none; margin-bottom: 8rpx;
}
.fixed-btns { .title {
position: fixed; font-size: 32rpx;
right: 20rpx; font-weight: 600;
bottom: 66rpx; color: #292D33;
display: flex; }
justify-content: center;
background: #FFFFFF; .status-tag {
box-shadow: 0 4rpx 20rpx 0 #0000001a; flex-shrink: 0;
border-radius: 16rpx; font-size: 26rpx;
.btn { margin-left: 28rpx;
box-sizing: border-box; }
padding: 20rpx 18rpx; }
display: flex;
flex-flow: column; .card-row {
align-items: center; display: flex;
font-family: PingFangSC-Medium; margin-top: 10rpx;
font-weight: 500; font-size: 28rpx;
font-size: 24rpx;
color: #347BFF; .label {
width: 136rpx; margin-right: 24rpx;
height: 136rpx; color: #999EA8;
image { }
width: 60rpx;
height: 60rpx; .value {
flex-shrink: 0; flex: 1;
} color: #292D33;
} }
} }
.arrowIcon {
position: fixed; .card-actions {
right: 0; display: flex;
bottom: 66rpx; gap: 16rpx;
width: 36rpx; margin-top: 16rpx;
height: 136rpx; justify-content: flex-end;
background: #FFFFFF;
border: 2rpx solid #EFF0F2; .btn {
box-shadow: 0 4rpx 20rpx 0 #0000001a; padding: 8rpx 16rpx;
border-radius: 16rpx 0 0 16rpx; border-radius: 12rpx;
display: flex; background: #347BFF;
align-items: center; color: #fff;
justify-content: center; font-size: 28rpx;
.image { }
width: 32rpx;
height: 32rpx; .ghost {
} background: #347bff1a;
} color: #347BFF;
}
}
}
.list-footer {
color: #999EA8;
padding-bottom: 20rpx;
font-size: 24rpx;
display: flex;
justify-content: center;
}
}
.loading {
pointer-events: none;
}
.fixed-btns {
position: fixed;
right: 20rpx;
bottom: 66rpx;
display: flex;
justify-content: center;
background: #FFFFFF;
box-shadow: 0 4rpx 20rpx 0 #0000001a;
border-radius: 16rpx;
.btn {
box-sizing: border-box;
padding: 20rpx 18rpx;
display: flex;
flex-flow: column;
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 24rpx;
color: #347BFF;
width: 136rpx;
height: 136rpx;
image {
width: 60rpx;
height: 60rpx;
flex-shrink: 0;
}
}
}
.arrowIcon {
position: fixed;
right: 0;
bottom: 66rpx;
width: 36rpx;
height: 136rpx;
background: #FFFFFF;
border: 2rpx solid #EFF0F2;
box-shadow: 0 4rpx 20rpx 0 #0000001a;
border-radius: 16rpx 0 0 16rpx;
display: flex;
align-items: center;
justify-content: center;
.image {
width: 32rpx;
height: 32rpx;
}
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -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>
......
...@@ -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,
......
...@@ -108,7 +108,11 @@ ...@@ -108,7 +108,11 @@
.old { .old {
color: #347BFF; color: #347BFF;
background: #347bff14; background: #347bff14;
} }
.close{
color: #666666;
background: #66666614;
}
.title { .title {
font-size: 32rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
...@@ -135,4 +139,40 @@ ...@@ -135,4 +139,40 @@
text-align: center; text-align: center;
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
<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> <view class="grid-item wid-67">
</view> <view class="label">关店</view>
</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>
<!-- 列表状态筛选 TabBar(与父页吸顶逻辑保持一致类名) --> <!-- 列表(门店) -->
<view class="tabbar-anchor" id="storeListTop"> <view class="list-section" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);">
<tab-bar tabList="{{ listTabs }}" notInitialLoading="{{true}}" bindclick="tabClick" activeIndex="{{ statusIndex }}" /> <block wx:if="{{storeList.length}}">
</view> <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>
<!-- 列表(门店) --> </view>
<view class="list-section" style="min-height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);"> </block>
<block wx:if="{{storeList.length}}"> <view class="list-footer" wx:if="{{loading}}">加载中...</view>
<block wx:for="{{storeList}}" wx:key="index"> <view class="list-footer" wx:if="{{!hasMore && storeList.length}}">到底了~</view>
<view class="list-card" bindtap="goDetail" data-item="{{item}}"> </block>
<view class="card-header"> <block wx:else>
<view class="status-tag {{item.storeType == 1 ? 'new' : 'old'}}">{{ item.storeType == 1 ? '新店' : '老店' }}</view> <nothing-tips tips="暂无数据" bgColor="{{'#F7F8FA'}}" emptyDataStyle="height: calc(100vh - {{tabHeight}}px - {{navBarHeight}}px - 24rpx - 172rpx);" />
<view class="title">{{item.merchantName || '-'}} </view> </block>
</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>
</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%"> <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" </popup>
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
...@@ -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);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!