|
@@ -7,10 +7,10 @@
|
|
|
class="input"
|
|
|
type="text"
|
|
|
confirm-type="search"
|
|
|
- v-model="listQuery.searchName"
|
|
|
+ v-model="listQuery.keyWord"
|
|
|
@input="onShowClose"
|
|
|
- @confirm="initclubList()"
|
|
|
- placeholder="搜索关键词"
|
|
|
+ @confirm="GetProductListInfo"
|
|
|
+ placeholder="搜索咨询人"
|
|
|
maxlength="16"
|
|
|
/>
|
|
|
<text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
|
|
@@ -30,9 +30,7 @@
|
|
|
<view class="tui-remarks-name-le">咨询人:{{ list.questionMan }}</view>
|
|
|
<view class="tui-remarks-name-ri"><text class="iconfont icon-xiayibu"></text></view>
|
|
|
</view>
|
|
|
- <view class="tui-remarks-button" @click.stop="handleShowClubpopup(1,list)">
|
|
|
- 修改姓名
|
|
|
- </view>
|
|
|
+ <view class="tui-remarks-button" @click.stop="handleShowClubpopup(1, list)"> 修改姓名 </view>
|
|
|
</view>
|
|
|
<!--加载loadding-->
|
|
|
<tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
|
|
@@ -107,7 +105,7 @@ export default {
|
|
|
hasNextPage: false,
|
|
|
navbarHeight: '',
|
|
|
nomoreText: '上拉显示更多',
|
|
|
- handleUpdataVisitorId:0,
|
|
|
+ handleUpdataVisitorId: 0,
|
|
|
modalType: 0,
|
|
|
isClubModalShow: false
|
|
|
}
|
|
@@ -194,74 +192,86 @@ export default {
|
|
|
this.$util.msg(error.msg, 2000)
|
|
|
})
|
|
|
},
|
|
|
- handleShowClubpopup(type,el) {// 点击操作
|
|
|
+ handleShowClubpopup(type, el) {
|
|
|
+ // 点击操作
|
|
|
this.modalType = type
|
|
|
- if(this.modalType == 1){
|
|
|
+ if (this.modalType == 1) {
|
|
|
this.handleUpdataVisitorId = el.questionManId
|
|
|
this.isClubModalShow = true
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.isClubModalShow = true
|
|
|
}
|
|
|
},
|
|
|
- handleChoiceaTextData(data) {// 监听获取
|
|
|
+ handleChoiceaTextData(data) {
|
|
|
+ // 监听获取
|
|
|
console.log(data)
|
|
|
- if(this.modalType == 1){
|
|
|
+ if (this.modalType == 1) {
|
|
|
this.handleUpdateVisitor(data)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.handleSaveVisitor(data)
|
|
|
}
|
|
|
},
|
|
|
handleUpdateVisitor(data) {
|
|
|
// 修改咨询人姓名
|
|
|
this.UserService.getUserClubVisitorUpdate({
|
|
|
- questionMan:data,
|
|
|
+ questionMan: data,
|
|
|
questionManId: this.handleUpdataVisitorId,
|
|
|
serviceProviderId: this.listQuery.serviceProviderId
|
|
|
})
|
|
|
- .then(response => {
|
|
|
- this.$util.msg('修改成功', 2000, true, 'success')
|
|
|
- setTimeout(() => {
|
|
|
- this.GetProductListInfo()
|
|
|
- },2000)
|
|
|
- })
|
|
|
- .catch(error => {
|
|
|
- console.log('=======>修改咨询姓名失败~')
|
|
|
- })
|
|
|
+ .then(response => {
|
|
|
+ this.$util.msg('修改成功', 2000, true, 'success')
|
|
|
+ setTimeout(() => {
|
|
|
+ this.GetProductListInfo()
|
|
|
+ }, 2000)
|
|
|
+ })
|
|
|
+ .catch(error => {
|
|
|
+ console.log('=======>修改咨询姓名失败~')
|
|
|
+ })
|
|
|
},
|
|
|
- handleSaveVisitor(data) {
|
|
|
+ handleSaveVisitor(data) {
|
|
|
// 添加咨询人
|
|
|
this.UserService.getUserClubVisitorSave({
|
|
|
name: data,
|
|
|
serviceProviderId: this.listQuery.serviceProviderId
|
|
|
})
|
|
|
- .then(response => {
|
|
|
- setTimeout(() => {
|
|
|
- this.$api.navigateTo(`/pages/seller/remarks/record-list?questionManId=${response.data.questionManId}&questionMan=${response.data.questionMan}`)
|
|
|
- }, 1000)
|
|
|
- })
|
|
|
- .catch(error => {
|
|
|
- console.log('=======>添加咨询人失败~')
|
|
|
- })
|
|
|
+ .then(response => {
|
|
|
+ let VisitorInfo = {
|
|
|
+ questionManId: response.data.questionManId,
|
|
|
+ questionMan: response.data.questionMan
|
|
|
+ }
|
|
|
+ this.$api.setStorage('VisitorInfo', VisitorInfo)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$api.navigateTo('/pages/seller/remarks/record-list')
|
|
|
+ }, 1000)
|
|
|
+ })
|
|
|
+ .catch(error => {
|
|
|
+ console.log('=======>添加咨询人失败~')
|
|
|
+ })
|
|
|
},
|
|
|
onShowClose() {
|
|
|
//输入框失去焦点时触发
|
|
|
- if (this.listQuery.searchName != '') {
|
|
|
+ if (this.listQuery.keyWord != '') {
|
|
|
this.isShowClose = true
|
|
|
} else {
|
|
|
this.isShowClose = false
|
|
|
this.listQuery.pageNum = 1
|
|
|
- this.initclubList()
|
|
|
+ this.GetProductListInfo()
|
|
|
}
|
|
|
},
|
|
|
delInputText() {
|
|
|
//清除输入框内容
|
|
|
- this.listQuery.searchName = ''
|
|
|
+ this.listQuery.keyWord = ''
|
|
|
this.isShowClose = false
|
|
|
this.listQuery.pageNum = 1
|
|
|
- this.initclubList()
|
|
|
+ this.GetProductListInfo()
|
|
|
},
|
|
|
details(list) {
|
|
|
- this.$api.navigateTo(`/pages/seller/remarks/record-list?questionManId=${list.questionManId}&questionMan=${list.questionMan}`)
|
|
|
+ let VisitorInfo = {
|
|
|
+ questionManId: list.questionManId,
|
|
|
+ questionMan: list.questionMan
|
|
|
+ }
|
|
|
+ this.$api.setStorage('VisitorInfo', VisitorInfo)
|
|
|
+ this.$api.navigateTo('/pages/seller/remarks/record-list')
|
|
|
}
|
|
|
},
|
|
|
onPageScroll(e) {
|