|
@@ -13,7 +13,7 @@
|
|
<text v-if="isShowIndex" @click="handleNavigateIndex" class="iconfont icon-shouye"></text>
|
|
<text v-if="isShowIndex" @click="handleNavigateIndex" class="iconfont icon-shouye"></text>
|
|
<text v-else @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
|
|
<text v-else @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
|
|
</view>
|
|
</view>
|
|
- <view class="title">机构列表</view>
|
|
|
|
|
|
+ <view class="title">咨询记录填写提醒</view>
|
|
</view>
|
|
</view>
|
|
<view class="search-main">
|
|
<view class="search-main">
|
|
<view class="search-from name">
|
|
<view class="search-from name">
|
|
@@ -22,7 +22,7 @@
|
|
class="input"
|
|
class="input"
|
|
type="text"
|
|
type="text"
|
|
confirm-type="search"
|
|
confirm-type="search"
|
|
- v-model="listQuery.name"
|
|
|
|
|
|
+ v-model="listQuery.nameOrMobile"
|
|
@input="onShowClose"
|
|
@input="onShowClose"
|
|
@confirm="getList"
|
|
@confirm="getList"
|
|
placeholder="机构名称/联系人/手机号"
|
|
placeholder="机构名称/联系人/手机号"
|
|
@@ -148,14 +148,11 @@ import authorize from '@/common/config/authorize.js'
|
|
import wxLogin from '@/common/config/wxLogin.js'
|
|
import wxLogin from '@/common/config/wxLogin.js'
|
|
|
|
|
|
const defaultListQuery = {
|
|
const defaultListQuery = {
|
|
- userIdentity: '',
|
|
|
|
- name: '',
|
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- spId: 0,
|
|
|
|
- status: '',
|
|
|
|
|
|
+ nameOrMobile: '',
|
|
type: 1,
|
|
type: 1,
|
|
- groupServiceId: 0
|
|
|
|
|
|
+ serviceProviderId: 0
|
|
}
|
|
}
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -167,27 +164,14 @@ export default {
|
|
isShowClose: false,
|
|
isShowClose: false,
|
|
isEmpty: false,
|
|
isEmpty: false,
|
|
nomoreText: '上拉显示更多',
|
|
nomoreText: '上拉显示更多',
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 10,
|
|
|
|
hasNextPage: false,
|
|
hasNextPage: false,
|
|
loadding: false,
|
|
loadding: false,
|
|
pullUpOn: true,
|
|
pullUpOn: true,
|
|
pullFlag: true,
|
|
pullFlag: true,
|
|
- tabCurrentNum: 0,
|
|
|
|
- tabCurrentIndex: 0,
|
|
|
|
clubList: [],
|
|
clubList: [],
|
|
- isIphoneX: this.$store.state.isIphoneX,
|
|
|
|
CustomBar: this.CustomBar,
|
|
CustomBar: this.CustomBar,
|
|
StatusBar: this.StatusBar,
|
|
StatusBar: this.StatusBar,
|
|
capsule: this.capsule,
|
|
capsule: this.capsule,
|
|
- show_index: 0, //控制显示那个组件
|
|
|
|
- rightDrawer: false,
|
|
|
|
- salesParams: {
|
|
|
|
- choseServiceId: 0,
|
|
|
|
- clubId: 0,
|
|
|
|
- spId: 0
|
|
|
|
- },
|
|
|
|
- isShowIndex: false,
|
|
|
|
currentIndex: 0
|
|
currentIndex: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -201,9 +185,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
- if (option.type === 'wechat') {
|
|
|
|
- this.isShowIndex = true
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['isManage'])
|
|
...mapState(['isManage'])
|
|
@@ -212,14 +194,13 @@ export default {
|
|
async initGetStotage() {
|
|
async initGetStotage() {
|
|
// 初始化
|
|
// 初始化
|
|
const userInfo = await this.$api.getStorage()
|
|
const userInfo = await this.$api.getStorage()
|
|
- this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
|
|
- this.salesParams.choseServiceId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
|
|
|
|
+ this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
try{
|
|
try{
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
- const res = await this.SellerService.GetSellerClubList(this.listQuery)
|
|
|
|
|
|
+ const res = await this.SellerService.getActiveClub(this.listQuery)
|
|
const data = res.data
|
|
const data = res.data
|
|
if (data.list && data.list.length > 0) {
|
|
if (data.list && data.list.length > 0) {
|
|
this.isEmpty = false
|
|
this.isEmpty = false
|
|
@@ -251,7 +232,7 @@ export default {
|
|
async getOnReachBottomData() {
|
|
async getOnReachBottomData() {
|
|
try{
|
|
try{
|
|
this.listQuery.pageNum++
|
|
this.listQuery.pageNum++
|
|
- const res = await this.SellerService.GetSellerClubList(this.listQuery)
|
|
|
|
|
|
+ const res = await this.SellerService.getActiveClub(this.listQuery)
|
|
const data = res.data
|
|
const data = res.data
|
|
if (data.list && data.list.length > 0) {
|
|
if (data.list && data.list.length > 0) {
|
|
this.hasNextPage = data.hasNextPage
|
|
this.hasNextPage = data.hasNextPage
|