Explorar el Código

commit -m 客户画像

zhengjinyi hace 3 años
padre
commit
d656489861

+ 4 - 3
components/cm-module/cm-seller/cm-clubpopup.vue

@@ -41,7 +41,7 @@
 							</view>
 							<view class="list-cell-ri">
 								<view class="list-name">
-									{{ club.userIdentity === 2 ? club.name : club.linkMan }}
+									{{ club.userIdentity === 2 ? club.name : club.name }}
 									<text class="tags" v-if="club.vipFlag == 0 && club.userIdentity === 2">VIP</text>
 									<text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
 								</view>
@@ -275,8 +275,8 @@ export default {
 					float: left;
 					border: 1px dashed #e1e1e1;
 					.logo {
-						width: 126rpx;
-						height: 126rpx;
+						width: 125rpx;
+						height: 125rpx;
 						border-radius: 8rpx;
 					}
 				}
@@ -344,6 +344,7 @@ export default {
 						text-decoration: none;
 						-webkit-tap-highlight-color: transparent;
 						overflow: hidden;
+						font-size: $font-size-34;
 						&.icon-weixuanze {
 							color: #b2b2b2;
 						}

+ 2 - 4
pages/seller/remarks/add.vue

@@ -156,13 +156,11 @@ export default {
 				.then(response => {
 					let data = response.data
 					this.clubUserId = data.userId
-					this.remarksParams.remarks = data.remarks
+					this.remarksParams.remarks = data.remarks.join(',')
+					this.remarksParams.questionMan = data.questionMan
 					this.remarksParams.remarksId = data.remarksId
-					console.log('00000000000')
 					this.remarksParams.fileList = data.fileList
-					console.log('11111111111111')
 					this.remarksParams.imageList = data.imageList
-					console.log('2222222222222')
 					this.initGetStotage()
 				})
 				.catch(error => {

+ 1 - 5
pages/seller/remarks/customer-list.vue

@@ -36,7 +36,7 @@
 					</view>
 					<!--加载loadding-->
 					<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-->
 				</template>
 			</view>
@@ -63,8 +63,6 @@
 	</view>
 </template>
 <script>
-import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
-import tuiNomore from '@/components/tui-components/nomore/nomore'
 import cmClubmodal from '@/components/cm-module/cm-seller/cm-clubmodal'
 
 import { mapState, mapMutations } from 'vuex'
@@ -75,8 +73,6 @@ const defaultListQuery = {
 }
 export default {
 	components: {
-		tuiLoadmore,
-		tuiNomore,
 		cmClubmodal
 	},
 	data() {

+ 129 - 93
pages/seller/remarks/details.vue

@@ -3,29 +3,30 @@
 		<view class="remarks-content-club" @click="handleClickClunInfo">
 			<view class="content-club-le">
 				<view class="club-le-text">
-					<text class="label">机构名称:</text>
-					<text class="text">{{ clubInfo.name  }}</text>
+					<text class="label">机构名称:</text> <text class="text">{{ clubInfo.name }}</text>
 				</view>
 				<view class="club-le-text">
-					<text class="label">联系人:</text>
-					<text class="text">{{ clubInfo.linkMan  }}</text>
-					<text class="label phone">手机号:</text>
-					<text class="text">{{ clubInfo.contractMobile  }}</text>
+					<text class="label">联系人:</text> <text class="text">{{ clubInfo.linkMan }}</text>
+					<text class="label phone">手机号:</text> <text class="text">{{ clubInfo.contractMobile }}</text>
 				</view>
 				<view class="club-le-text">
 					<text class="label">地址:</text>
-					<text class="text">{{ clubInfo.provincialAddress  }}{{ clubInfo.address  }}</text>
+					<text class="text">{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text>
 				</view>
 			</view>
-			<view class="content-club-ri">
-				<text class="iconfont icon-xiayibu"></text>
-			</view>
+			<view class="content-club-ri"> <text class="iconfont icon-xiayibu"></text> </view>
 		</view>
 		<view class="remarks-content clearfix">
-			<view class="list-view-title"> <view class="list-view-h1">文字备注</view> </view>
-			<view class="remarks-textarea"> {{ remarksParams.remarks }} </view>
-			<view class="list-view-title" v-if="remarksParams.imageList.length>0"> <view class="list-view-h1">图片</view> </view>
-			<view class="list-view-upload clearfix" v-if="remarksParams.imageList.length>0">
+			<view class="list-view-title"> <view class="list-view-h1">关键词记录:</view> </view>
+			<view class="tui-remarks-content">
+				<text class="tui-remarks-span" v-for="(label, labelIndex) in remarksParams.remarks" :key="labelIndex">
+					{{ label }}
+				</text>
+			</view>
+			<view class="list-view-title" v-if="remarksParams.imageList.length > 0">
+				<view class="list-view-h1">图片</view>
+			</view>
+			<view class="list-view-upload clearfix" v-if="remarksParams.imageList.length > 0">
 				<view class="photo-item" v-for="(image, imageIndex) in remarksParams.imageList" :key="imageIndex">
 					<image
 						:src="image"
@@ -34,12 +35,19 @@
 					></image>
 				</view>
 			</view>
-			<view class="list-view-title" v-if="remarksParams.fileList.length>0"> <view class="list-view-h1">文件</view> </view>
-			<view class="list-view" v-for="(file, fileIndex) in remarksParams.fileList" :key="fileIndex" v-if="remarksParams.fileList.length>0">
+			<view class="list-view-title" v-if="remarksParams.fileList.length > 0">
+				<view class="list-view-h1">文件</view>
+			</view>
+			<view
+				class="list-view"
+				v-for="(file, fileIndex) in remarksParams.fileList"
+				:key="fileIndex"
+				v-if="remarksParams.fileList.length > 0"
+			>
 				<view class="list-view-text">
 					<view class="input">{{ file.fileName }}</view>
 					<view class="delbtn" @click.stop="previewFile(file)">预览</view>
-					<!-- <view class="delbtn down" @click.stop="previewFile(file)">下载</view> -->
+					<!-- <view class="delbtn down" @click.stop="downloadFile(file)">下载</view> -->
 				</view>
 			</view>
 		</view>
@@ -58,9 +66,9 @@ export default {
 			isIphoneX: this.$store.state.isIphoneX,
 			productActions: [],
 			remarksParams: {},
-			remarksId:0,
-			clubUserId:0,
-			clubInfo:{},
+			remarksId: 0,
+			clubUserId: 0,
+			clubInfo: {},
 			userInfo: {}
 		}
 	},
@@ -106,61 +114,82 @@ export default {
 				longPressActions: ''
 			})
 		},
-		previewFile(file){//预览文件
+		previewFile(file) {
+			//预览文件
 			this.openDocument(file)
 		},
-		openDocument(file) {// 打开文档
-		    uni.showLoading({
-		        title:'加载中'
-		    })
-		    // 获取文件后缀
-		    const index = file.fileName.lastIndexOf('.')
-		    const suffix = file.fileName.substring(index + 1)
-		    // 下载文件
-		    uni.downloadFile({
-		        url: file.fileUrl,
-		        success(res) {
-		            const filePath = res.tempFilePath
-		            console.log(filePath) 
-		            // 打开文件
-		            uni.openDocument({
-		                filePath: filePath,
-		                fileType: suffix,
-		                success(res) {
-		                    uni.showToast({
-		                        icon:'success',
-		                        title:'打开成功',
-		                        duration: 1200
-		                    })
-		                    uni.hideLoading()
-		                },
-		                fail(err) {
-		                    if(err.errMsg.indexOf('fail filetype not supported')){
-		                        uni.showModal({
-		                            content: '不支持的文件预览',
-		                            cancelColor: '#666',
-		                            confirmColor: '#E15616'
-		                        })
-		                    }
-		                    uni.hideLoading()
-		                }
-		            })
-		        },
-		        fail(err){
-		            uni.showToast({
-		                title: JSON.stringify(err),
-		                icon:'none',
-		                duration: 5000
-		            })
-		            uni.hideLoading()
-		        },
-		    })
+		openDocument(file) {
+			// 打开文档
+			uni.showLoading({title: '加载中'})
+			// 获取文件后缀
+			const index = file.fileName.lastIndexOf('.')
+			const suffix = file.fileName.substring(index + 1)
+			// 下载文件
+			uni.downloadFile({
+				url: file.fileUrl,
+				success(res) {
+					const filePath = res.tempFilePath
+					// 打开文件
+					uni.openDocument({
+						filePath: filePath,
+						fileType: suffix,
+						success(res) {
+							uni.showToast({
+								icon: 'success',
+								title: '打开成功',
+								duration: 1200
+							})
+							uni.hideLoading()
+						},
+						fail(err) {
+							if (err.errMsg.indexOf('fail filetype not supported')) {
+								uni.showModal({
+									content: '不支持的文件预览',
+									cancelColor: '#666',
+									confirmColor: '#E15616'
+								})
+							}
+							uni.hideLoading()
+						}
+					})
+		 	},
+				fail(err) {
+					uni.showToast({
+						title: JSON.stringify(err),
+						icon: 'none',
+						duration: 5000
+					})
+					uni.hideLoading()
+				}
+			})
+		},
+		downloadFile(file) {
+			let self = this
+			// 下载文件
+			wx.downloadFile({
+			    url: file.fileUrl,
+			    success (res) {
+					console.log('保存文件路勁============>',res.tempFilePath)
+			        wx.saveFile({
+			            tempFilePath: res.tempFilePath,
+			            success (res) {
+							self.$util.msg('下载成功', 2000)
+							setTimeout(()=>{
+								self.openDocument(file)
+							},2000)
+			            },
+			            fail(error){
+			                self.$util.msg('下载失败', 2000)
+			            }
+			        })
+			    }
+			})
 		},
-		handleClickClunInfo(){
+		handleClickClunInfo() {
 			//修改机构资料
-			if(this.userInfo.userIdentity === 2){
+			if (this.userInfo.userIdentity === 2) {
 				this.$api.navigateTo(`/pages/seller/login/apply?userID=${this.userInfo.userId}`)
-			}else if(this.userInfo.userIdentity === 4){
+			} else if (this.userInfo.userIdentity === 4) {
 				this.$api.navigateTo(`/pages/seller/login/information?userID=${this.userInfo.userId}`)
 			}
 		}
@@ -174,36 +203,36 @@ page {
 	height: auto;
 	background: #ffffff;
 }
-.remarks-content-club{
+.remarks-content-club {
 	width: 100%;
 	height: 252rpx;
 	padding: 24rpx;
 	box-sizing: border-box;
-	border-bottom: 20rpx solid #F7F7F7;
-	.content-club-le{
+	border-bottom: 20rpx solid #f7f7f7;
+	.content-club-le {
 		width: 660rpx;
 		float: left;
-		.club-le-text{
+		.club-le-text {
 			width: 100%;
 			height: 60rpx;
 			line-height: 60rpx;
 			font-size: $font-size-28;
 			color: #333333;
-			.label{
+			.label {
 				color: #999999;
-				&.phone{
+				&.phone {
 					margin-left: 48rpx;
 				}
 			}
 		}
 	}
-	.content-club-ri{
+	.content-club-ri {
 		width: 40rpx;
 		height: 160rpx;
 		float: right;
 		line-height: 160rpx;
 		text-align: center;
-		color: #B2B2B2;
+		color: #b2b2b2;
 	}
 }
 .remarks-content {
@@ -224,19 +253,26 @@ page {
 			text-align: left;
 		}
 	}
-	.remarks-textarea {
+	.tui-remarks-content {
 		width: 100%;
-		height: 340rpx;
-		padding: 16rpx;
-		margin: 20rpx 0 0 0;
-		border-radius: 6rpx;
-		position: relative;
-		border: 1px solid #b2b2b2;
-		box-sizing: border-box;
-		overflow-y: scroll;
-		line-height: 38rpx;
-		font-size: $font-size-26;
-		color: #333333;
+		height: auto;
+		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;
+			}
+		}
 	}
 	.list-view {
 		width: 100%;
@@ -260,7 +296,7 @@ page {
 				float: left;
 				font-size: 26rpx;
 			}
-			.delbtn{
+			.delbtn {
 				width: 96rpx;
 				height: 44rpx;
 				font-size: $font-size-24;
@@ -268,8 +304,8 @@ page {
 				line-height: 44rpx;
 				text-align: center;
 				float: left;
-				&.down{
-					color: #1890F9;
+				&.down {
+					color: #1890f9;
 				}
 			}
 		}

+ 3 - 6
pages/seller/remarks/list.vue

@@ -27,7 +27,7 @@
 						<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 }}</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 }}
@@ -40,7 +40,7 @@
 				</view>
 				<!--加载loadding-->
 				<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-->
 			</view>
 		</view>
@@ -79,8 +79,6 @@
 	</view>
 </template>
 <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'
 
 
@@ -92,8 +90,6 @@ const defaultListQuery = {
 }
 export default {
 	components: {
-		tuiLoadmore,
-		tuiNomore,
 		cmClubpopup
 	},
 	data() {
@@ -495,6 +491,7 @@ page {
 		color: #E15616;
 		font-size: $font-size-26;
 		margin: 0 auto;
+		margin-top: 15rpx;
 	}
 }
 </style>

+ 24 - 13
pages/seller/remarks/record-details.vue

@@ -6,7 +6,11 @@
 			</view>
 			<view class="remarks-input">啊啊啊</view>
 			<view class="list-view-title"> <view class="list-view-h1">文字备注</view> </view>
-			<view class="remarks-textarea"> {{ remarksParams.remarks }} </view>
+			<view class="tui-remarks-content">
+				<text class="tui-remarks-span" v-for="(label, labelIndex) in remarksParams.remarks" :key="labelIndex">
+					{{ label }}
+				</text>
+			</view>
 			<view class="list-view-title" v-if="remarksParams.imageList.length>0"> <view class="list-view-h1">图片</view> </view>
 			<view class="list-view-upload clearfix" v-if="remarksParams.imageList.length>0">
 				<view class="photo-item" v-for="(image, imageIndex) in remarksParams.imageList" :key="imageIndex">
@@ -151,19 +155,26 @@ page {
 			text-align: left;
 		}
 	}
-	.remarks-textarea {
+	.tui-remarks-content {
 		width: 100%;
-		height: 340rpx;
-		padding: 16rpx;
-		margin: 20rpx 0 0 0;
-		border-radius: 6rpx;
-		position: relative;
-		border: 1px solid #b2b2b2;
-		box-sizing: border-box;
-		overflow-y: scroll;
-		line-height: 38rpx;
-		font-size: $font-size-26;
-		color: #333333;
+		height: auto;
+		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;
+			}
+		}
 	}
 	.list-view {
 		width: 100%;

+ 1 - 1
pages/seller/remarks/record-list.vue

@@ -50,7 +50,7 @@
 					</view>
 					<!--加载loadding-->
 					<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-->
 				</template>
 			</view>