|
@@ -1,24 +1,46 @@
|
|
<template>
|
|
<template>
|
|
<view class="container product clearfix">
|
|
<view class="container product clearfix">
|
|
- <view class="remarks-content" :style="{ paddingBottom: isIphoneX ? '168rpx' : '0' }">
|
|
|
|
|
|
+ <view class="club-search clearfix">
|
|
|
|
+ <view class="search-from name">
|
|
|
|
+ <text class="iconfont icon-iconfonticonfontsousuo1"></text>
|
|
|
|
+ <input class="input"
|
|
|
|
+ type="text"
|
|
|
|
+ confirm-type="search"
|
|
|
|
+ v-model="listQuery.keyWord"
|
|
|
|
+ @input="onShowClose"
|
|
|
|
+ @confirm="GetProductListInfo"
|
|
|
|
+ placeholder="搜索关键词"
|
|
|
|
+ maxlength="16"/>
|
|
|
|
+ <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="remarks-content" :style="{ paddingBottom: isIphoneX ? '216rpx' : '168rpx' }">
|
|
<view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
|
|
<view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
|
|
<!-- 空白页 -->
|
|
<!-- 空白页 -->
|
|
<view class="empty-container" v-if="isEmpty">
|
|
<view class="empty-container" v-if="isEmpty">
|
|
<image class="empty-container-image" :src="StaticUrl + '/icon/icon-remarks-empty@2x.png'"></image>
|
|
<image class="empty-container-image" :src="StaticUrl + '/icon/icon-remarks-empty@2x.png'"></image>
|
|
- <text class="error-text">暂无任何资料备注~</text>
|
|
|
|
|
|
+ <text class="error-text">暂无任何数据~</text>
|
|
</view>
|
|
</view>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<view class="tui-remarks-cell tui-mtop" v-for="(remark, index) in remarksList" :key="index" @click.stop="details(remark.remarksId)">
|
|
<view class="tui-remarks-cell tui-mtop" v-for="(remark, index) in remarksList" :key="index" @click.stop="details(remark.remarksId)">
|
|
- <view class="tui-remarks-time">{{ remark.addTime }}</view>
|
|
|
|
- <view class="tui-remarks-content">{{ remark.remarks }}</view>
|
|
|
|
|
|
+ <view class="tui-remarks-title">
|
|
|
|
+ <view class="tui-remarks-time tt">{{ remark.clubName }}</view>
|
|
|
|
+ <view class="tui-remarks-time sm">{{ remark.addTime }}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tui-remarks-name">咨询人:{{ remark.questionMan ? remark.questionMan : '' }}</view>
|
|
|
|
+ <view class="tui-remarks-content">
|
|
|
|
+ <text class="tui-remarks-span" v-for="(label, labelIndex) in remark.remarks" :key="labelIndex">
|
|
|
|
+ {{ label }}
|
|
|
|
+ </text>
|
|
|
|
+ </view>
|
|
<view class="tui-remarks-button">
|
|
<view class="tui-remarks-button">
|
|
- <view class="btn" @click.stop="handEditRemark(remark.remarksId)">修改</view>
|
|
|
|
- <view class="btn" @click.stop="deleteRemark(remark.remarksId)">删除</view>
|
|
|
|
|
|
+ <view class="btn edit" @click.stop="handEditRemark(remark.remarksId)">修改</view>
|
|
|
|
+ <view class="btn del" @click.stop="deleteRemark(remark.remarksId)">删除</view>
|
|
</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>
|
|
- <tui-nomore :visible="!pullUpOn" :backgroundColor="'#ffffff'" :text="nomoreText"></tui-nomore>
|
|
|
|
|
|
+ <tui-nomore :visible="!pullUpOn" :backgroundColor="'#F7F7F7'" :text="nomoreText"></tui-nomore>
|
|
<!--加载loadding-->
|
|
<!--加载loadding-->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -27,11 +49,20 @@
|
|
<view class="tui-popup-box clearfix">
|
|
<view class="tui-popup-box clearfix">
|
|
<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
<view class="tui-flex-1">
|
|
<view class="tui-flex-1">
|
|
- <view class="tui-button" @click="handleAllUnder">添加资料备注</view>
|
|
|
|
|
|
+ <view class="tui-button" @click="handleShowClubpopup">添加画像</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tui-flex-1">
|
|
|
|
+ <view class="tui-button-text" @click="handleAllUnder">潜在客户信息 ></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</tui-bottom-popup>
|
|
</tui-bottom-popup>
|
|
|
|
+ <!-- 添加记录 -->
|
|
|
|
+ <cm-clubpopup ref="clubpopup"
|
|
|
|
+ v-if="isClubpopupShow"
|
|
|
|
+ :show="isClubpopupShow"
|
|
|
|
+ @handleChoiceaClub="handleChoiceaClubData">
|
|
|
|
+ </cm-clubpopup>
|
|
<!-- 弹窗提示 -->
|
|
<!-- 弹窗提示 -->
|
|
<tui-modal
|
|
<tui-modal
|
|
:show="modal"
|
|
:show="modal"
|
|
@@ -48,19 +79,18 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
|
|
|
|
-import tuiNomore from '@/components/tui-components/nomore/nomore'
|
|
|
|
|
|
+import cmClubpopup from '@/components/cm-module/cm-seller/cm-clubpopup'
|
|
|
|
+
|
|
|
|
|
|
import { mapState, mapMutations } from 'vuex'
|
|
import { mapState, mapMutations } from 'vuex'
|
|
const defaultListQuery = {
|
|
const defaultListQuery = {
|
|
- clubId: 0,
|
|
|
|
|
|
+ serviceProviderId: 0,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10
|
|
pageSize: 10
|
|
}
|
|
}
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- tuiLoadmore,
|
|
|
|
- tuiNomore
|
|
|
|
|
|
+ cmClubpopup
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -96,7 +126,8 @@ export default {
|
|
nomoreText: '上拉显示更多',
|
|
nomoreText: '上拉显示更多',
|
|
contentModalText: '', //操作文字提示语句
|
|
contentModalText: '', //操作文字提示语句
|
|
modal: false,
|
|
modal: false,
|
|
- handleRemarksId:0
|
|
|
|
|
|
+ handleRemarksId:0,
|
|
|
|
+ isClubpopupShow:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -116,8 +147,8 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(['login', 'logout']),
|
|
...mapMutations(['login', 'logout']),
|
|
async initGetStotage() {
|
|
async initGetStotage() {
|
|
- const clubInfo = await this.$api.getComStorage('orderUserInfo')
|
|
|
|
- this.listQuery.clubId = clubInfo.clubId ? clubInfo.clubId : 0
|
|
|
|
|
|
+ const userInfo = await this.$api.getStorage()
|
|
|
|
+ this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
},
|
|
},
|
|
GetProductListInfo() {
|
|
GetProductListInfo() {
|
|
@@ -186,18 +217,25 @@ export default {
|
|
deleteRemark(remarksId) {
|
|
deleteRemark(remarksId) {
|
|
this.handleRemarksId = remarksId
|
|
this.handleRemarksId = remarksId
|
|
this.modal = true
|
|
this.modal = true
|
|
- this.contentModalText = '确定删除这条备注信息吗?'
|
|
|
|
|
|
+ this.contentModalText = '确定删除这条记录吗?'
|
|
},
|
|
},
|
|
handEditRemark(remarksId){
|
|
handEditRemark(remarksId){
|
|
- //跳转修改资料备注
|
|
|
|
|
|
+ //跳转修改客户画像
|
|
this.$api.navigateTo(`/pages/seller/remarks/add?type=edit&remarksId=${remarksId}`)
|
|
this.$api.navigateTo(`/pages/seller/remarks/add?type=edit&remarksId=${remarksId}`)
|
|
},
|
|
},
|
|
handleAllUnder() {
|
|
handleAllUnder() {
|
|
- //跳转添加资料备注
|
|
|
|
- this.$api.navigateTo('/pages/seller/remarks/add')
|
|
|
|
|
|
+ //跳转潛在客戶頁
|
|
|
|
+ this.$api.navigateTo('/pages/seller/remarks/customer-list')
|
|
|
|
+ },
|
|
|
|
+ handleShowClubpopup(){
|
|
|
|
+ this.isClubpopupShow = true
|
|
|
|
+ },
|
|
|
|
+ handleChoiceaClubData(data){
|
|
|
|
+ console.log(data)
|
|
|
|
+ this.$api.navigateTo(`/pages/seller/remarks/add?userId=${data.userId}`)
|
|
},
|
|
},
|
|
handleClick(e) {
|
|
handleClick(e) {
|
|
- //取消收藏
|
|
|
|
|
|
+ //确认删除
|
|
if (e.index == 1) {
|
|
if (e.index == 1) {
|
|
this.handleDeleteUserLike()
|
|
this.handleDeleteUserLike()
|
|
}
|
|
}
|
|
@@ -209,7 +247,7 @@ export default {
|
|
remarksId: this.handleRemarksId
|
|
remarksId: this.handleRemarksId
|
|
})
|
|
})
|
|
.then(response => {
|
|
.then(response => {
|
|
- this.$util.msg('删除成功', 2000, true, 'success')
|
|
|
|
|
|
+ this.$util.msg('已删除', 2000, true, 'success')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.GetProductListInfo()
|
|
this.GetProductListInfo()
|
|
}, 2000)
|
|
}, 2000)
|
|
@@ -218,6 +256,21 @@ export default {
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ onShowClose () {//输入框失去焦点时触发
|
|
|
|
+ if(this.listQuery.keyWord != ''){
|
|
|
|
+ this.isShowClose = true
|
|
|
|
+ }else{
|
|
|
|
+ this.isShowClose = false
|
|
|
|
+ this.listQuery.pageNum=1
|
|
|
|
+ this.GetProductListInfo()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ delInputText(){//清除输入框内容
|
|
|
|
+ this.listQuery.keyWord = ''
|
|
|
|
+ this.isShowClose = false
|
|
|
|
+ this.listQuery.pageNum=1
|
|
|
|
+ this.GetProductListInfo()
|
|
|
|
+ },
|
|
hideMobel() {
|
|
hideMobel() {
|
|
this.modal = false
|
|
this.modal = false
|
|
},
|
|
},
|
|
@@ -255,6 +308,55 @@ page {
|
|
.empty-container {
|
|
.empty-container {
|
|
z-index: 99;
|
|
z-index: 99;
|
|
}
|
|
}
|
|
|
|
+.club-search{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 112rpx;
|
|
|
|
+ padding: 24rpx;
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ position: fixed;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 20;
|
|
|
|
+ .search-from{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ background: #F7F7F7;
|
|
|
|
+ border-radius: 32rpx;
|
|
|
|
+ float: left;
|
|
|
|
+ position: relative;
|
|
|
|
+ .input{
|
|
|
|
+ width: 500rpx;
|
|
|
|
+ height: 64rpx;
|
|
|
|
+ float: left;
|
|
|
|
+ line-height: 64rpx;
|
|
|
|
+ color: $text-color;
|
|
|
|
+ font-size: $font-size-24;
|
|
|
|
+ }
|
|
|
|
+ .icon-iconfonticonfontsousuo1{
|
|
|
|
+ width: 64rpx;
|
|
|
|
+ height: 64rpx;
|
|
|
|
+ line-height: 64rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ display: block;
|
|
|
|
+ font-size: $font-size-38;
|
|
|
|
+ float: left;
|
|
|
|
+ color: #999999;
|
|
|
|
+ }
|
|
|
|
+ .icon-shanchu1{
|
|
|
|
+ font-size: $font-size-32;
|
|
|
|
+ color: #999999;
|
|
|
|
+ position: absolute;
|
|
|
|
+ width: 64rpx;
|
|
|
|
+ height: 64rpx;
|
|
|
|
+ line-height: 64rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ top: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ z-index: 10;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
.remarks-content {
|
|
.remarks-content {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: auto;
|
|
height: auto;
|
|
@@ -262,6 +364,7 @@ page {
|
|
padding: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 24rpx;
|
|
padding: 24rpx;
|
|
|
|
+ padding-top: 136rpx;
|
|
.empty-container-image {
|
|
.empty-container-image {
|
|
width: 260rpx;
|
|
width: 260rpx;
|
|
height: 260rpx;
|
|
height: 260rpx;
|
|
@@ -269,49 +372,87 @@ page {
|
|
}
|
|
}
|
|
.tui-remarks-cell {
|
|
.tui-remarks-cell {
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 316rpx;
|
|
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
background: #ffffff;
|
|
background: #ffffff;
|
|
margin-bottom: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- padding: 25rpx 32rpx;
|
|
|
|
- .tui-remarks-time {
|
|
|
|
|
|
+ padding: 24rpx;
|
|
|
|
+ .tui-remarks-title{
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 37rpx;
|
|
|
|
- line-height: 37rpx;
|
|
|
|
- text-align: left;
|
|
|
|
|
|
+ height: 48rpx;
|
|
|
|
+ line-height: 48rpx;
|
|
|
|
+ .tui-remarks-time {
|
|
|
|
+ float: left;
|
|
|
|
+ &.tt{
|
|
|
|
+ width: 60%;
|
|
|
|
+ font-size: $font-size-32;
|
|
|
|
+ color: #333333;
|
|
|
|
+ text-align: left;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ display: -webkit-box;
|
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
|
+ line-clamp: 1;
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
|
|
+ &.sm{
|
|
|
|
+ width: 40%;
|
|
|
|
+ font-size: $font-size-26;
|
|
|
|
+ color: #999999;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .tui-remarks-name{
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 48rpx;
|
|
|
|
+ line-height: 48rpx;
|
|
font-size: $font-size-26;
|
|
font-size: $font-size-26;
|
|
color: #666666;
|
|
color: #666666;
|
|
- margin-bottom: 24rpx;
|
|
|
|
|
|
+ text-align: left;
|
|
|
|
+ margin-bottom: 20rpx;
|
|
}
|
|
}
|
|
.tui-remarks-content {
|
|
.tui-remarks-content {
|
|
width: 100%;
|
|
width: 100%;
|
|
- line-height: 44rpx;
|
|
|
|
- text-align: justify;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- color: #333333;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- overflow: hidden;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- -webkit-line-clamp: 3;
|
|
|
|
- line-clamp: 3;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
|
|
+ height: auto;
|
|
|
|
+ border-bottom: 1px solid #E1E1E1;
|
|
margin-bottom: 24rpx;
|
|
margin-bottom: 24rpx;
|
|
|
|
+ .tui-remarks-span{
|
|
|
|
+ height: 48rpx;
|
|
|
|
+ line-height: 48rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ padding: 0 20rpx;
|
|
|
|
+ background-color: #FEF6F3;
|
|
|
|
+ font-size: $font-size-26;
|
|
|
|
+ color: #E15616;
|
|
|
|
+ border-radius: 25rpx;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ margin-right:24rpx;
|
|
|
|
+ margin-bottom: 24rpx;
|
|
|
|
+ &:nth-child(4n){
|
|
|
|
+ margin-right: none;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.tui-remarks-button {
|
|
.tui-remarks-button {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 48rpx;
|
|
height: 48rpx;
|
|
.btn {
|
|
.btn {
|
|
- width: 104rpx;
|
|
|
|
|
|
+ width: 50%;
|
|
line-height: 48rpx;
|
|
line-height: 48rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- border: 1px solid #707070;
|
|
|
|
text-align: center;
|
|
text-align: center;
|
|
- border-radius: 30rpx;
|
|
|
|
- color: #666666;
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- float: right;
|
|
|
|
- margin-left: 24rpx;
|
|
|
|
|
|
+ font-size: $font-size-34;
|
|
|
|
+ float: left;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ &.edit{
|
|
|
|
+ color: #1890F9;
|
|
|
|
+ border-right: 1px solid #E1E1E1;
|
|
|
|
+ }
|
|
|
|
+ &.del{
|
|
|
|
+ color: #F94B4B;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -342,5 +483,15 @@ page {
|
|
border-radius: 44rpx;
|
|
border-radius: 44rpx;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
+ .tui-button-text{
|
|
|
|
+ width: 600rpx;
|
|
|
|
+ height: 48rpx;
|
|
|
|
+ line-height: 48rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ color: #E15616;
|
|
|
|
+ font-size: $font-size-26;
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ margin-top: 15rpx;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|