Quellcode durchsuchen

客户记录测试修复

zhengjinyi vor 3 Jahren
Ursprung
Commit
3e9674c729

+ 14 - 16
pages/seller/remarks/customer-list.vue

@@ -10,7 +10,7 @@
 						confirm-type="search"
 						v-model="listQuery.keyWord"
 						@input="onShowClose"
-						@confirm="GetProductListInfo"
+						@confirm="getUserClubVisitorList"
 						placeholder="搜索关键词"
 						maxlength="16"
 					/>
@@ -34,7 +34,7 @@
 							<view class="tui-remarks-name-ri">
 								<view
 									class="checkbox iconfont"
-									:class="[list.ischecked ? 'icon-yixuanze' : 'icon-weixuanze']"
+									:class="[checkedIndex == index ? 'icon-yixuanze' : 'icon-weixuanze']"
 								>
 								</view>
 							</view>
@@ -52,7 +52,7 @@
 			<view class="tui-popup-box clearfix">
 				<view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
 					<view class="tui-flex-1">
-						<view class="tui-button" @click="handleShowClubpopup">下一步</view>
+						<view class="tui-button" @click="handleShowClubpopup" v-if="!isEmpty">下一步</view>
 					</view>
 				</view>
 			</view>
@@ -100,6 +100,7 @@ export default {
 				}
 			],
 			totalRecord: 0,
+			questionManId:'',
 			popupShow: true,
 			popupShow1: false,
 			listQuery: Object.assign({}, defaultListQuery),
@@ -116,7 +117,7 @@ export default {
 			modalType: 1,
 			checkedIndex: 0,
 			isClubModalShow: false,
-			isClubpopupShow: false
+			isClubpopupShow: false,
 		}
 	},
 	onLoad() {},
@@ -136,9 +137,9 @@ export default {
 		async initGetStotage() {
 			const userInfo = await this.$api.getStorage()
 			this.listQuery.serviceProviderId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
-			this.GetProductListInfo()
+			this.getUserClubVisitorList()
 		},
-		GetProductListInfo() {
+		getUserClubVisitorList() {
 			this.remarksList = []
 			this.listQuery.pageNum = 1
 			this.UserService.getUserClubVisitorList(this.listQuery)
@@ -234,7 +235,7 @@ export default {
 			} else {
 				this.isShowClose = false
 				this.listQuery.pageNum = 1
-				this.GetProductListInfo()
+				this.getUserClubVisitorList()
 			}
 		},
 		delInputText() {
@@ -242,19 +243,13 @@ export default {
 			this.listQuery.keyWord = ''
 			this.isShowClose = false
 			this.listQuery.pageNum = 1
-			this.GetProductListInfo()
+			this.getUserClubVisitorList()
 		},
 		checkedCoustomer(list,idx) {
 			// 选择机构
 			this.checkedIndex = idx
-			this.remarksList.forEach((el, index) => {
-				if (this.checkedIndex == index) {
-					el.ischecked = !el.ischecked
-					this.questionManId = el.questionManId
-				} else {
-					el.ischecked = false
-				}
-			})
+			this.questionManId = list.questionManId
+			console.log('questionManId',this.questionManId)
 		},
 	},
 	onPageScroll(e) {
@@ -446,6 +441,9 @@ page {
 		font-size: $font-size-28;
 		border-radius: 44rpx;
 		margin: 0 auto;
+		&.none{
+			background: #E1E1E1;
+		}
 	}
 	.tui-button-text {
 		width: 600rpx;

+ 2 - 2
pages/seller/remarks/list.vue

@@ -456,7 +456,7 @@ page {
 				.tui-remarks-time {
 					float: left;
 					&.tt{
-						width: 60%;
+						width: 50%;
 						font-size: $font-size-32;
 						color: #333333;
 						text-align: left;
@@ -469,7 +469,7 @@ page {
 						font-weight: bold;
 					}
 					&.sm{
-						width: 40%;
+						width: 50%;
 						font-size: $font-size-26;
 						color: #999999;
 						text-align: right;

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

@@ -10,7 +10,7 @@
 						confirm-type="search"
 						v-model="listQuery.keyWord"
 						@input="onShowClose"
-						@confirm="GetProductListInfo"
+						@confirm="getUserClubVisitorRecordlist"
 						placeholder="搜索关键词"
 						maxlength="16"
 					/>
@@ -300,7 +300,7 @@ export default {
 			this.listQuery.leaderId = data.leaderId
 			this.listQuery.groupId = data.groupId
 			console.log('确定筛选',this.listQuery)
-			this.GetProductListInfo()
+			this.getUserClubVisitorRecordlist()
 		},
 		handleShowClubpopup() {
 			//跳转选择咨询人
@@ -356,7 +356,7 @@ export default {
 				.then(response => {
 					this.$util.msg('已删除', 2000, true, 'success')
 					setTimeout(() => {
-						this.GetProductListInfo()
+						this.getUserClubVisitorRecordlist()
 					}, 2000)
 				})
 				.catch(error => {
@@ -374,7 +374,7 @@ export default {
 			} else {
 				this.isShowClose = false
 				this.listQuery.pageNum = 1
-				this.GetProductListInfo()
+				this.getUserClubVisitorRecordlist()
 			}
 		},
 		delInputText() {
@@ -382,7 +382,7 @@ export default {
 			this.listQuery.keyWord = ''
 			this.isShowClose = false
 			this.listQuery.pageNum = 1
-			this.GetProductListInfo()
+			this.getUserClubVisitorRecordlist()
 		},
 		hideMobel() {
 			this.modal = false