|
@@ -1,23 +1,53 @@
|
|
<template>
|
|
<template>
|
|
<view class="container club clearfix" :style="{ paddingBottom: isIphoneX ? '140rpx' : '98rpx' }">
|
|
<view class="container club clearfix" :style="{ paddingBottom: isIphoneX ? '140rpx' : '98rpx' }">
|
|
- <view class="club-search clearfix">
|
|
|
|
- <view class="search-top">
|
|
|
|
- <view class="search-from name">
|
|
|
|
- <text class="iconfont icon-iconfonticonfontsousuo1"></text>
|
|
|
|
|
|
+ <view class="club-search clearfix" :style="{ paddingTop: StatusBar + 'px' }">
|
|
|
|
+ <view class="search-top" :style="{ height: CustomBar - StatusBar + 'px' }">
|
|
|
|
+ <view
|
|
|
|
+ class="search-icon"
|
|
|
|
+ :style="{
|
|
|
|
+ width: CustomBar - StatusBar + 'px',
|
|
|
|
+ height: CustomBar - StatusBar + 'px',
|
|
|
|
+ lineHeight: CustomBar - StatusBar + 'px;'
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
|
|
+ <text @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
|
|
|
|
+ </view>
|
|
|
|
+ <view
|
|
|
|
+ class="search-from name"
|
|
|
|
+ :style="{ height: capsule.height + 'px', borderRadius: capsule.height / 2 + 'px' }"
|
|
|
|
+ >
|
|
|
|
+ <text
|
|
|
|
+ :style="{
|
|
|
|
+ width: capsule.height + 'px',
|
|
|
|
+ height: capsule.height + 'px',
|
|
|
|
+ lineHeight: capsule.height + 'px;'
|
|
|
|
+ }"
|
|
|
|
+ class="iconfont icon-iconfonticonfontsousuo1"
|
|
|
|
+ ></text>
|
|
<input
|
|
<input
|
|
class="input"
|
|
class="input"
|
|
type="text"
|
|
type="text"
|
|
confirm-type="search"
|
|
confirm-type="search"
|
|
- v-model="searchInputVal"
|
|
|
|
|
|
+ v-model="listQuery.name"
|
|
@input="onShowClose"
|
|
@input="onShowClose"
|
|
- @confirm="initclubList()"
|
|
|
|
|
|
+ @confirm="GetSellerClubList()"
|
|
placeholder="机构名称/联系人"
|
|
placeholder="机构名称/联系人"
|
|
maxlength="16"
|
|
maxlength="16"
|
|
|
|
+ :style="{ lineHeight: capsule.height + 'px' }"
|
|
/>
|
|
/>
|
|
<text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
|
|
<text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
|
|
</view>
|
|
</view>
|
|
- <view class="search-btn">
|
|
|
|
- <button class="search-btn" type="default" @click.stop="searchClubList">搜索</button>
|
|
|
|
|
|
+ <view
|
|
|
|
+ class="search-btn"
|
|
|
|
+ :style="{
|
|
|
|
+ width: CustomBar - StatusBar + 'px',
|
|
|
|
+ height: capsule.height + 'px',
|
|
|
|
+ lineHeight: capsule.height + 'px;'
|
|
|
|
+ }"
|
|
|
|
+ v-if="isManage && tabSmallCurrentIndex == 1"
|
|
|
|
+ @click="showRightDrawer"
|
|
|
|
+ >
|
|
|
|
+ <text class="iconfont icon-shaixuan"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="search-tab">
|
|
<view class="search-tab">
|
|
@@ -31,8 +61,19 @@
|
|
<text class="item-text">{{ item.name }}<text class="line"></text></text>
|
|
<text class="item-text">{{ item.name }}<text class="line"></text></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="search-smalltab" v-if="isManage">
|
|
|
|
+ <view
|
|
|
|
+ class="tab-item"
|
|
|
|
+ v-for="(item, index) in listItemTab"
|
|
|
|
+ :key="index"
|
|
|
|
+ :class="{ current: tabSmallCurrentIndex === index }"
|
|
|
|
+ @click="tabSmallCurrentClick(index)"
|
|
|
|
+ >
|
|
|
|
+ <text class="item-text">{{ item.name }}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="club-main">
|
|
|
|
|
|
+ <view class="club-main" :style="{ paddingTop: isManage ? '374rpx' : '254rpx' }">
|
|
<view v-if="isEmpty" class="empty-container">
|
|
<view v-if="isEmpty" class="empty-container">
|
|
<image
|
|
<image
|
|
class="club-empty-image"
|
|
class="club-empty-image"
|
|
@@ -44,41 +85,49 @@
|
|
<view v-else class="club-list">
|
|
<view v-else class="club-list">
|
|
<scroll-view scroll-y="true">
|
|
<scroll-view scroll-y="true">
|
|
<view class="list" v-for="(club, index) in clubList" :key="index">
|
|
<view class="list" v-for="(club, index) in clubList" :key="index">
|
|
- <view class="list-logo">
|
|
|
|
- <image
|
|
|
|
- :src="
|
|
|
|
- club.headpic
|
|
|
|
- ? club.headpic
|
|
|
|
- : 'https://static.caimei365.com/app/img/icon/icon-club@3x.png'
|
|
|
|
- "
|
|
|
|
- mode=""
|
|
|
|
- ></image>
|
|
|
|
- </view>
|
|
|
|
- <view class="list-content">
|
|
|
|
- <view class="list-name">
|
|
|
|
- {{ club.userIdentity === 2 ? club.name : club.linkMan }}
|
|
|
|
- <text class="tags" v-if="club.vipFlag == 0 && club.userIdentity === 2 ">VIP</text>
|
|
|
|
- <text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
|
|
|
|
- <text class="tags xf" v-if="club.newDeal === 1">新分配</text>
|
|
|
|
|
|
+ <view class="list-cell-top">
|
|
|
|
+ <view class="list-logo">
|
|
|
|
+ <image
|
|
|
|
+ :src="
|
|
|
|
+ club.headpic
|
|
|
|
+ ? club.headpic
|
|
|
|
+ : 'https://static.caimei365.com/app/img/icon/icon-club@3x.png'
|
|
|
|
+ "
|
|
|
|
+ mode=""
|
|
|
|
+ ></image>
|
|
</view>
|
|
</view>
|
|
- <view class="list-ntel">
|
|
|
|
- <text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
|
|
|
|
- <text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="list-opera">
|
|
|
|
- <button class="btn org" @click.stop="checkData(club)">修改资料</button>
|
|
|
|
- <view class="btn gre" @click.stop="orderHistory(club)">
|
|
|
|
- 历史订单
|
|
|
|
- <text
|
|
|
|
- v-if="club.orderNum > 0"
|
|
|
|
- class="opea-badge uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
|
- >
|
|
|
|
- {{ showBadge(club.orderNum) }}
|
|
|
|
- </text>
|
|
|
|
|
|
+ <view class="list-content">
|
|
|
|
+ <view class="list-name">
|
|
|
|
+ {{ club.userIdentity === 2 ? club.name : club.linkMan }}
|
|
|
|
+ <text class="tags" v-if="club.vipFlag == 0 && club.userIdentity === 2">VIP</text>
|
|
|
|
+ <text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
|
|
|
|
+ <text class="tags xf" v-if="club.newDeal === 1">新分配</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-ntel" v-if="tabSmallCurrentIndex === 1">
|
|
|
|
+ <text class="list-link">销售:{{ club.serviceName ? club.serviceName : '' }}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-ntel" v-else>
|
|
|
|
+ <text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
|
|
|
|
+ <text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="btn org" @click.stop="handleClubinfo(club)" v-if="club.recordCount === 1">注册行为记录</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="list-cell-btn">
|
|
|
|
+ <view class="btn" @click.stop="checkData(club)">修改资料</view>
|
|
|
|
+ <view class="btn" @click.stop="orderHistory(club)">
|
|
|
|
+ 历史订单
|
|
|
|
+ <text
|
|
|
|
+ v-if="club.orderNum > 0"
|
|
|
|
+ class="opea-badge uni-badge uni-badge-error uni-small uni-badge--small icon-num"
|
|
|
|
+ >
|
|
|
|
+ {{ showBadge(club.orderNum) }}
|
|
|
|
+ </text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="btn" v-if="isManage && club.serviceProviderId != 1342" @click.stop="handleReplaceClub(club)">更换协销</view>
|
|
|
|
+ <view class="btn" @click.stop="handleClubinfo(club)" v-if="club.recordCount === 1"
|
|
|
|
+ >注册行为记录</view
|
|
|
|
+ >
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<!--加载loadding-->
|
|
<!--加载loadding-->
|
|
<tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
|
|
<tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
|
|
@@ -99,86 +148,96 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <!-- 分享弹窗 -->
|
|
|
|
- <shareModel v-if="isShareModal" :orderID="shareClubUseId" @shareConfirm="onShareAppMessage"></shareModel>
|
|
|
|
|
|
+ <!-- 筛选抽屉 -->
|
|
|
|
+ <cm-clubDrawer
|
|
|
|
+ ref="screendrawer"
|
|
|
|
+ v-if="rightDrawer"
|
|
|
|
+ :rightDrawer="rightDrawer"
|
|
|
|
+ @handSearchConfirm="handSearchConfirmData"
|
|
|
|
+ >
|
|
|
|
+ </cm-clubDrawer>
|
|
|
|
+ <!-- 选择弹窗 -->
|
|
|
|
+ <cm-seller-popup
|
|
|
|
+ ref="cmresellerpopup"
|
|
|
|
+ v-if="isSellerpopup"
|
|
|
|
+ :show="isSellerpopup"
|
|
|
|
+ @handleChoiceaSeller="handleChoiceaSellerData"
|
|
|
|
+ >
|
|
|
|
+ </cm-seller-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { mapState, mapMutations } from 'vuex'
|
|
import authorize from '@/common/config/authorize.js'
|
|
import authorize from '@/common/config/authorize.js'
|
|
import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
-import shareModel from '@/components/cm-module/modelAlert/shareModel.vue' //分享弹窗
|
|
|
|
|
|
+import cmClubDrawer from '../components/cm-club-drawer'
|
|
|
|
+import cmSellerPopup from '../components/cm-seller-popup'
|
|
|
|
|
|
|
|
+const defaultListQuery = {
|
|
|
|
+ userIdentity: 4,
|
|
|
|
+ name: '',
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ spId: 0,
|
|
|
|
+ status: 90,
|
|
|
|
+ type:1,
|
|
|
|
+ groupServiceId:0
|
|
|
|
+
|
|
|
|
+}
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
tuiLoadmore,
|
|
tuiLoadmore,
|
|
tuiNomore,
|
|
tuiNomore,
|
|
- shareModel
|
|
|
|
|
|
+ cmClubDrawer,
|
|
|
|
+ cmSellerPopup
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
listTab: [{ name: '个人机构' }, { name: '资质机构' }],
|
|
listTab: [{ name: '个人机构' }, { name: '资质机构' }],
|
|
- serviceProviderId: '',
|
|
|
|
- shareClubUseId: 0,
|
|
|
|
- shareIdentity: 0,
|
|
|
|
|
|
+ listItemTab: [{ name: '我的机构' }, { name: '组员机构' }, { name: '待分配机构' }],
|
|
|
|
+ listQuery: Object.assign({}, defaultListQuery),
|
|
isShowClose: false,
|
|
isShowClose: false,
|
|
- searchInputVal: '',
|
|
|
|
isEmpty: false,
|
|
isEmpty: false,
|
|
- isShareModal: false,
|
|
|
|
nomoreText: '上拉显示更多',
|
|
nomoreText: '上拉显示更多',
|
|
- userIdentity: 4,
|
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
hasNextPage: false,
|
|
hasNextPage: false,
|
|
loadding: false,
|
|
loadding: false,
|
|
pullUpOn: true,
|
|
pullUpOn: true,
|
|
pullFlag: true,
|
|
pullFlag: true,
|
|
- allowDataStatus: true,
|
|
|
|
- wrapperHeight: '100%',
|
|
|
|
- scrollHeight: '',
|
|
|
|
- deleteAddressId: '',
|
|
|
|
- currPage: '', //当前页面
|
|
|
|
- prevPage: '', //上一个页面
|
|
|
|
tabCurrentNum: 0,
|
|
tabCurrentNum: 0,
|
|
tabCurrentIndex: 0,
|
|
tabCurrentIndex: 0,
|
|
- listStatus: 90,
|
|
|
|
|
|
+ tabSmallCurrentIndex:0,
|
|
clubList: [],
|
|
clubList: [],
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
- show_index: 0 //控制显示那个组件
|
|
|
|
|
|
+ CustomBar: this.CustomBar,
|
|
|
|
+ StatusBar: this.StatusBar,
|
|
|
|
+ capsule: this.capsule,
|
|
|
|
+ show_index: 0 ,//控制显示那个组件
|
|
|
|
+ rightDrawer:false,
|
|
|
|
+ isSellerpopup:false,
|
|
|
|
+ salesParams: {
|
|
|
|
+ clubId: 0,
|
|
|
|
+ spId: 0
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
- this.setScrollHeight()
|
|
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState(['isManage'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- setScrollHeight() {
|
|
|
|
- // 窗口高度 - 底部距离
|
|
|
|
- setTimeout(() => {
|
|
|
|
- const query = wx.createSelectorQuery().in(this)
|
|
|
|
- query.selectAll('.add-btn').boundingClientRect()
|
|
|
|
- query.exec(res => {
|
|
|
|
- if (res[0][0]) {
|
|
|
|
- let winHeight = this.$api.getWindowHeight(),
|
|
|
|
- eleTop = res[0][0].top - 1
|
|
|
|
- this.scrollHeight = eleTop
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }, 500)
|
|
|
|
- },
|
|
|
|
- searchClubList() {
|
|
|
|
- this.pageNum = 1
|
|
|
|
- this.initclubList()
|
|
|
|
|
|
+ async initGetStotage() {// 初始化
|
|
|
|
+ const userInfo = await this.$api.getStorage()
|
|
|
|
+ this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
|
|
+ this.GetSellerClubList()
|
|
},
|
|
},
|
|
- initclubList() {
|
|
|
|
- this.SellerService.GetSellerClubList({
|
|
|
|
- userIdentity: this.userIdentity,
|
|
|
|
- name: this.searchInputVal,
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- spId: this.serviceProviderId,
|
|
|
|
- status: this.listStatus
|
|
|
|
- })
|
|
|
|
|
|
+ GetSellerClubList() {
|
|
|
|
+ this.SellerService.GetSellerClubList(this.listQuery)
|
|
.then(response => {
|
|
.then(response => {
|
|
let data = response.data
|
|
let data = response.data
|
|
if (data.list && data.list.length > 0) {
|
|
if (data.list && data.list.length > 0) {
|
|
@@ -206,15 +265,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getOnReachBottomData() {
|
|
getOnReachBottomData() {
|
|
- this.pageNum += 1
|
|
|
|
- this.SellerService.GetSellerClubList({
|
|
|
|
- userIdentity: this.userIdentity,
|
|
|
|
- name: this.searchInputVal,
|
|
|
|
- pageNum: this.pageNum,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- spId: this.serviceProviderId,
|
|
|
|
- status: this.listStatus
|
|
|
|
- })
|
|
|
|
|
|
+ this.listQuery.pageNum += 1
|
|
|
|
+ this.SellerService.GetSellerClubList(this.listQuery)
|
|
.then(response => {
|
|
.then(response => {
|
|
let data = response.data
|
|
let data = response.data
|
|
if (data.list && data.list.length > 0) {
|
|
if (data.list && data.list.length > 0) {
|
|
@@ -238,21 +290,34 @@ export default {
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ userClubChoseSales(param) {
|
|
|
|
+ //分配或更换协销
|
|
|
|
+ this.SellerService.userClubChoseSales(param)
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.$util.msg('操作成功~', 2000, true, 'success')
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.GetSellerClubList()
|
|
|
|
+ }, 1000)
|
|
|
|
+ })
|
|
|
|
+ .catch(error => {
|
|
|
|
+ console.log('分配协销异常')
|
|
|
|
+ })
|
|
|
|
+ },
|
|
tabClick(index) {
|
|
tabClick(index) {
|
|
//tab切换
|
|
//tab切换
|
|
this.tabCurrentIndex = index
|
|
this.tabCurrentIndex = index
|
|
switch (index) {
|
|
switch (index) {
|
|
case 0:
|
|
case 0:
|
|
- this.listStatus = 90
|
|
|
|
|
|
+ this.listQuery.status = 90
|
|
break
|
|
break
|
|
case 1:
|
|
case 1:
|
|
- this.listStatus = 1
|
|
|
|
|
|
+ this.listQuery.status = 1
|
|
break
|
|
break
|
|
case 2:
|
|
case 2:
|
|
- this.listStatus = 92
|
|
|
|
|
|
+ this.listQuery.status = 92
|
|
break
|
|
break
|
|
}
|
|
}
|
|
- this.initclubList()
|
|
|
|
|
|
+ this.GetSellerClubList()
|
|
},
|
|
},
|
|
tabCurrentClick(index) {
|
|
tabCurrentClick(index) {
|
|
//商品详情&&供应商信息tab切换
|
|
//商品详情&&供应商信息tab切换
|
|
@@ -260,19 +325,67 @@ export default {
|
|
switch (index) {
|
|
switch (index) {
|
|
case 0:
|
|
case 0:
|
|
this.tabCurrentIndex = 0
|
|
this.tabCurrentIndex = 0
|
|
- this.userIdentity = 4
|
|
|
|
- this.listStatus = 90
|
|
|
|
- this.pageNum = 1
|
|
|
|
- this.initclubList()
|
|
|
|
|
|
+ this.listQuery.userIdentity = 4
|
|
|
|
+ this.listQuery.status = 90
|
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
|
+ this.GetSellerClubList()
|
|
|
|
+ break
|
|
|
|
+ case 1:
|
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.userIdentity = 2
|
|
|
|
+ this.listQuery.status = 90
|
|
|
|
+ this.GetSellerClubList()
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ tabSmallCurrentClick(index){
|
|
|
|
+ //商品详情&&供应商信息tab切换
|
|
|
|
+ this.tabSmallCurrentIndex = index
|
|
|
|
+ switch (index) {
|
|
|
|
+ case 0:
|
|
|
|
+ this.tabCurrentIndex = 0
|
|
|
|
+ this.listQuery.type = 1
|
|
|
|
+ this.listQuery.status = 90
|
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.groupServiceId = 0
|
|
|
|
+ this.GetSellerClubList()
|
|
break
|
|
break
|
|
case 1:
|
|
case 1:
|
|
- this.pageNum = 1
|
|
|
|
- this.userIdentity = 2
|
|
|
|
- this.listStatus = 90
|
|
|
|
- this.initclubList()
|
|
|
|
|
|
+ this.listQuery.type = 2
|
|
|
|
+ this.listQuery.status = 90
|
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.groupServiceId = 0
|
|
|
|
+ this.GetSellerClubList()
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.listQuery.type = 3
|
|
|
|
+ this.listQuery.status = 90
|
|
|
|
+ this.listQuery.pageNum = 1
|
|
|
|
+ this.listQuery.groupServiceId = 0
|
|
|
|
+ this.GetSellerClubList()
|
|
break
|
|
break
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ handSearchConfirmData(data) {
|
|
|
|
+ console.log('确定筛选', data)
|
|
|
|
+ //确定筛选
|
|
|
|
+ this.listQuery.groupServiceId = data.serviceProviderId
|
|
|
|
+ this.GetSellerClubList()
|
|
|
|
+ },
|
|
|
|
+ handleChoiceaSellerData(data) {
|
|
|
|
+ // 确定搜索
|
|
|
|
+ this.salesParams.spId = data.serviceProviderId
|
|
|
|
+ this.userClubChoseSales(this.salesParams)
|
|
|
|
+ },
|
|
|
|
+ handleReplaceClub(club){
|
|
|
|
+ //更换协销
|
|
|
|
+ this.salesParams.clubId = club.clubId
|
|
|
|
+ this.isSellerpopup = true
|
|
|
|
+ },
|
|
|
|
+ showRightDrawer() {
|
|
|
|
+ //显示筛选抽屉
|
|
|
|
+ this.rightDrawer = true
|
|
|
|
+ },
|
|
checkData(club) {
|
|
checkData(club) {
|
|
//修改机构资料
|
|
//修改机构资料
|
|
switch (this.tabCurrentNum) {
|
|
switch (this.tabCurrentNum) {
|
|
@@ -287,15 +400,19 @@ export default {
|
|
orderHistory(club) {
|
|
orderHistory(club) {
|
|
//跳转机构历史订单
|
|
//跳转机构历史订单
|
|
this.$api.setStorage('orderUserInfo', club)
|
|
this.$api.setStorage('orderUserInfo', club)
|
|
- this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
|
|
|
|
|
|
+ if(this.tabSmallCurrentIndex === 1 || this.tabSmallCurrentIndex === 2){// 查看组员机构历史订单
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0&authType=${this.tabSmallCurrentIndex}`)
|
|
|
|
+ }else{
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- handleClubinfo(club){
|
|
|
|
|
|
+ handleClubinfo(club) {
|
|
//跳转机构信息
|
|
//跳转机构信息
|
|
this.$api.navigateTo(`/pages/seller/club/club-info?clubId=${club.clubId}`)
|
|
this.$api.navigateTo(`/pages/seller/club/club-info?clubId=${club.clubId}`)
|
|
},
|
|
},
|
|
onShowClose() {
|
|
onShowClose() {
|
|
//输入框失去焦点时触发
|
|
//输入框失去焦点时触发
|
|
- if (this.searchInputVal != '') {
|
|
|
|
|
|
+ if (this.listQuery.name != '') {
|
|
this.isShowClose = true
|
|
this.isShowClose = true
|
|
} else {
|
|
} else {
|
|
this.isShowClose = false
|
|
this.isShowClose = false
|
|
@@ -303,7 +420,7 @@ export default {
|
|
},
|
|
},
|
|
delInputText() {
|
|
delInputText() {
|
|
//清除输入框内容
|
|
//清除输入框内容
|
|
- this.searchInputVal = ''
|
|
|
|
|
|
+ this.listQuery.name = ''
|
|
this.isShowClose = false
|
|
this.isShowClose = false
|
|
},
|
|
},
|
|
showBadge(n) {
|
|
showBadge(n) {
|
|
@@ -314,6 +431,9 @@ export default {
|
|
num = n
|
|
num = n
|
|
}
|
|
}
|
|
return num
|
|
return num
|
|
|
|
+ },
|
|
|
|
+ handleNavigateBack() {
|
|
|
|
+ this.$api.navigateBack(1)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
@@ -324,11 +444,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- this.$api.getStorage().then(response => {
|
|
|
|
- this.serviceProviderId = response.serviceProviderId
|
|
|
|
- this.pageNum = 1
|
|
|
|
- this.initclubList()
|
|
|
|
- })
|
|
|
|
|
|
+ this.initGetStotage()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -348,38 +464,39 @@ page,
|
|
.club-search {
|
|
.club-search {
|
|
height: auto;
|
|
height: auto;
|
|
width: 100%;
|
|
width: 100%;
|
|
- padding: 24rpx 0 0 0;
|
|
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
position: fixed;
|
|
top: 0;
|
|
top: 0;
|
|
left: 0;
|
|
left: 0;
|
|
- z-index: 999;
|
|
|
|
|
|
+ z-index: 99;
|
|
.search-top {
|
|
.search-top {
|
|
flex: 1;
|
|
flex: 1;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- padding: 24rpx;
|
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ .search-icon {
|
|
|
|
+ text-align: center;
|
|
|
|
+ float: left;
|
|
|
|
+ .icon-fanhui {
|
|
|
|
+ font-size: 44rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.search-from {
|
|
.search-from {
|
|
- width: 582rpx;
|
|
|
|
- height: 64rpx;
|
|
|
|
|
|
+ width: 382rpx;
|
|
background: #f7f7f7;
|
|
background: #f7f7f7;
|
|
- border-radius: 32rpx;
|
|
|
|
float: left;
|
|
float: left;
|
|
position: relative;
|
|
position: relative;
|
|
.input {
|
|
.input {
|
|
- width: 500rpx;
|
|
|
|
- height: 64rpx;
|
|
|
|
|
|
+ width: 300rpx;
|
|
|
|
+ height: 100%;
|
|
float: left;
|
|
float: left;
|
|
- line-height: 64rpx;
|
|
|
|
color: $text-color;
|
|
color: $text-color;
|
|
font-size: $font-size-24;
|
|
font-size: $font-size-24;
|
|
}
|
|
}
|
|
.icon-iconfonticonfontsousuo1 {
|
|
.icon-iconfonticonfontsousuo1 {
|
|
- width: 64rpx;
|
|
|
|
- height: 64rpx;
|
|
|
|
- line-height: 64rpx;
|
|
|
|
text-align: center;
|
|
text-align: center;
|
|
display: block;
|
|
display: block;
|
|
font-size: $font-size-38;
|
|
font-size: $font-size-38;
|
|
@@ -400,13 +517,15 @@ page,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.search-btn {
|
|
.search-btn {
|
|
- width: 120rpx;
|
|
|
|
- line-height: 64rpx;
|
|
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size: $font-size-28;
|
|
font-size: $font-size-28;
|
|
color: $color-system;
|
|
color: $color-system;
|
|
float: left;
|
|
float: left;
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
|
|
+ .icon-shaixuan {
|
|
|
|
+ font-size: 44rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.search-tab {
|
|
.search-tab {
|
|
@@ -443,118 +562,133 @@ page,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .search-smalltab{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 104rpx;
|
|
|
|
+ background: #ffffff;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ padding:20rpx 10rpx;
|
|
|
|
+ .tab-item {
|
|
|
|
+ width: 180rpx;
|
|
|
|
+ height: 64rpx;
|
|
|
|
+ line-height: 64rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: $text-color;
|
|
|
|
+ font-size: $font-size-28;
|
|
|
|
+ float: left;
|
|
|
|
+ &.current {
|
|
|
|
+ background-color: $color-system;
|
|
|
|
+ color: #fff;
|
|
|
|
+ border-radius: 32rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.club-main {
|
|
.club-main {
|
|
- padding-top: 224rpx;
|
|
|
|
.list {
|
|
.list {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 228rpx;
|
|
|
|
|
|
+ height: 268rpx;
|
|
padding: 24rpx;
|
|
padding: 24rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
position: relative;
|
|
position: relative;
|
|
border-bottom: 1px solid #ebebeb;
|
|
border-bottom: 1px solid #ebebeb;
|
|
- .list-logo {
|
|
|
|
- width: 180rpx;
|
|
|
|
- height: 180rpx;
|
|
|
|
- float: left;
|
|
|
|
- image {
|
|
|
|
- width: 180rpx;
|
|
|
|
- height: 180rpx;
|
|
|
|
- border-radius: 8rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .list-content {
|
|
|
|
- width: 498rpx;
|
|
|
|
- height: 180rpx;
|
|
|
|
- float: right;
|
|
|
|
- .list-name {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 50rpx;
|
|
|
|
|
|
+ .list-cell-top{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 140rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ .list-logo {
|
|
|
|
+ width: 140rpx;
|
|
|
|
+ height: 140rpx;
|
|
float: left;
|
|
float: left;
|
|
- line-height: 50rpx;
|
|
|
|
- text-align: left;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- color: #333333;
|
|
|
|
- .tags {
|
|
|
|
- display: inline-block;
|
|
|
|
- height: 36rpx;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding: 0 15rpx;
|
|
|
|
|
|
+ image {
|
|
|
|
+ width: 140rpx;
|
|
|
|
+ height: 140rpx;
|
|
border-radius: 8rpx;
|
|
border-radius: 8rpx;
|
|
- background: #f0cb72;
|
|
|
|
- font-size: $font-size-22;
|
|
|
|
- color: #4e4539;
|
|
|
|
- text-align: center;
|
|
|
|
- line-height: 36rpx;
|
|
|
|
- margin-left: 20rpx;
|
|
|
|
- margin-top: 7rpx;
|
|
|
|
- &.sv {
|
|
|
|
- background: #333333;
|
|
|
|
- color: #f0cb72;
|
|
|
|
- }
|
|
|
|
- &.xf {
|
|
|
|
- background-color: #F94B4B;
|
|
|
|
- color: #ffffff;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .list-ntel {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 50rpx;
|
|
|
|
|
|
+ .list-content {
|
|
|
|
+ width: 498rpx;
|
|
|
|
+ height: 140rpx;
|
|
float: left;
|
|
float: left;
|
|
- line-height: 50rpx;
|
|
|
|
- text-align: left;
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- color: #666666;
|
|
|
|
- .list-link {
|
|
|
|
- display: inline-block;
|
|
|
|
|
|
+ padding-left: 30rpx;
|
|
|
|
+ .list-name {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 50rpx;
|
|
float: left;
|
|
float: left;
|
|
- margin-right: 40rpx;
|
|
|
|
|
|
+ line-height: 50rpx;
|
|
|
|
+ text-align: left;
|
|
|
|
+ font-size: $font-size-26;
|
|
|
|
+ color: #333333;
|
|
|
|
+ .tags {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ height: 36rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ padding: 0 15rpx;
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
+ background: #f0cb72;
|
|
|
|
+ font-size: $font-size-22;
|
|
|
|
+ color: #4e4539;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 36rpx;
|
|
|
|
+ margin-left: 20rpx;
|
|
|
|
+ margin-top: 7rpx;
|
|
|
|
+ &.sv {
|
|
|
|
+ background: #333333;
|
|
|
|
+ color: #f0cb72;
|
|
|
|
+ }
|
|
|
|
+ &.xf {
|
|
|
|
+ background-color: #f94b4b;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- .list-texl {
|
|
|
|
- display: inline-block;
|
|
|
|
|
|
+ .list-ntel {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 50rpx;
|
|
float: left;
|
|
float: left;
|
|
- }
|
|
|
|
- }
|
|
|
|
- .list-opera {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 60rpx;
|
|
|
|
- display: flex;
|
|
|
|
- color: #166ce1;
|
|
|
|
- flex-direction: row;
|
|
|
|
- align-items: center;
|
|
|
|
- float: left;
|
|
|
|
- margin-top: 20rpx;
|
|
|
|
- .btn {
|
|
|
|
- height: 60rpx;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding: 0 15rpx;
|
|
|
|
- line-height: 60rpx;
|
|
|
|
- border-radius: 30rpx;
|
|
|
|
|
|
+ line-height: 50rpx;
|
|
|
|
+ text-align: left;
|
|
font-size: $font-size-24;
|
|
font-size: $font-size-24;
|
|
- color: $text-color;
|
|
|
|
- text-align: center;
|
|
|
|
- margin: 0 20rpx 0 0;
|
|
|
|
- position: relative;
|
|
|
|
- .opea-badge {
|
|
|
|
- position: absolute;
|
|
|
|
- right: -10rpx;
|
|
|
|
- top: -20rpx;
|
|
|
|
- }
|
|
|
|
- &.org {
|
|
|
|
- border: 1px solid #2769d5;
|
|
|
|
- color: #2769d5;
|
|
|
|
- }
|
|
|
|
- &.gre {
|
|
|
|
- border: 1px solid #e15616;
|
|
|
|
- color: #e15616;
|
|
|
|
|
|
+ color: #666666;
|
|
|
|
+ .list-link {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ float: left;
|
|
|
|
+ margin-right: 40rpx;
|
|
}
|
|
}
|
|
- &.doc {
|
|
|
|
- border: 1px solid #627386;
|
|
|
|
- color: #627386;
|
|
|
|
|
|
+ .list-texl {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ float: left;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .list-cell-btn{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 60rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ color: #166ce1;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ align-items: center;
|
|
|
|
+ float: left;
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ .btn {
|
|
|
|
+ height: 60rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ padding: 0 20rpx;
|
|
|
|
+ line-height: 60rpx;
|
|
|
|
+ border-radius: 30rpx;
|
|
|
|
+ font-size: $font-size-24;
|
|
|
|
+ color: $text-color;
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin: 0 20rpx 0 0;
|
|
|
|
+ position: relative;
|
|
|
|
+ border: 1px solid #999999;
|
|
|
|
+ .opea-badge {
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: -10rpx;
|
|
|
|
+ top: -20rpx;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -568,7 +702,7 @@ page,
|
|
bottom: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
right: 0px;
|
|
- z-index: 99;
|
|
|
|
|
|
+ z-index: 99;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|