liujq 2 年之前
父节点
当前提交
0fb9c89801

+ 3 - 0
api/estate.js

@@ -9,4 +9,7 @@ export default {
 	apireportlist: (params) => { // 报备 - 报备列表
 	  return request('api/report/list', params, 'loading')
 	},
+	apireportdetail: (params) => { // 报备 - 报备详情
+	  return request('api/report/detail', params, 'loading')
+	},
 }

+ 12 - 16
pages/agent/recommend/detail.vue

@@ -5,26 +5,26 @@
 			<view class="left">
 				<view class="customer">
 					<view class="relname u-skeleton-rect">
-						{{ detail.customerInfo.name }}
+						{{ detail.name }}
 						<u-icon
 							class="u-m-l-10"
-							:name="detail.customerInfo.gender == 'male' ? 'man' : 'woman'"
+							:name="detail.sex == 'male' ? 'man' : 'woman'"
 							size="24"
-							:color="detail.customerInfo.gender == 'male' ? '#2080f0' : '#f85f69'"
+							:color="detail.sex == 'male' ? '#2080f0' : '#f85f69'"
 						></u-icon>
 					</view>
-					<view class="mobile u-skeleton-rect">{{ detail.mobile }}</view>
+					<view class="mobile u-skeleton-rect">{{ detail.phone }}</view>
 				</view>
 			</view>
-			<view class="right"><u-icon name="phone" size="32" @click="dial(detail.mobile)"></u-icon></view>
+			<view class="right"><u-icon name="phone" size="32" @click="dial(detail.phone)"></u-icon></view>
 		</view>
 		<!-- 项目信息 -->
 		<view class="property-info u-skeleton-fillet box-shadow">
-			<view class="name u-skeleton-rect">{{ detail.propertyInfo.name }}</view>
+			<view class="name u-skeleton-rect">{{ detail.estate_name }}</view>
 			<u-line margin="10rpx"></u-line>
-			<view class="saler u-skeleton-rect" v-if="detail.salerInfo !== undefined">
+			<!-- <view class="saler u-skeleton-rect" v-if="detail.salerInfo !== undefined">
 				当前置业顾问:{{ detail.salerInfo.name }}-{{ detail.salerInfo.job }}({{ detail.salerInfo.mobile }})
-			</view>
+			</view> -->
 			<view v-if="detail.current_step <= 2" class="date u-skeleton-rect">
 				保护期截止:保护期未生效 }}
 			</view>
@@ -64,13 +64,6 @@ export default {
 		return {
 			skeletonLoading: true,
 			detail: {
-				customerInfo: {
-					name: '加载中',
-					mobile: '加载中'
-				},
-				propertyInfo: {
-					name: '加载中'
-				}
 			}, // 客户详情
 			currentStep: 0,
 			buystepList: [
@@ -97,7 +90,10 @@ export default {
 		};
 	},
 	onLoad(params) {
-		that = this;
+		uni.api.estate.apireportdetail({id:params.id}).then(res =>{
+			this.detail = res || {}
+			this.skeletonLoading = false
+		})
 		// if (!xxxxx.vuex.get('$app.systemConfig.use_skeleton')) {
 		// 	that.skeletonLoading = false;
 		// }

+ 29 - 59
pages/agent/recommend/list.vue

@@ -15,7 +15,7 @@
 		<view class="customer-list-wrap">
 			<view v-if="customerList.length == 0" class="empty-wrap"><u-empty mode="list" text="暂无相关客户"></u-empty></view>
 			<view v-for="(item, index) in customerList" class="customer-item" :key="index">
-				<view class="info">
+				<view class="info" @click="pageTo('/pages/agent/recommend/detail?id=' + item.id)">
 					<view class="customer">
 						<view class="relname">
 							{{ item.name }}
@@ -33,16 +33,16 @@
 						</view>
 						<view class="item">
 							<u-icon class="u-m-r-5" name="home" size="22"></u-icon>
-							{{ item.propertyInfo.name }}
+							{{ item.estate_name }}
 						</view>
-						<view class="item">
+						<!-- <view class="item">
 							<u-icon class="u-m-r-5" name="rmb" size="22"></u-icon>
 							预期最高收益{{ item.commission }}元
-						</view>
+						</view> -->
 					</view>
 					<view class="data-wrap">
-						<view class="date u-m-t-5">报备时间:xxx</view>
-						<view class="date">保护期截止:xxxx</view>
+						<view class="date u-m-t-5">报备时间:{{item.create_at}}</view>
+						<view class="date">保护期截止:{{item.lock_at}}</view>
 					</view>
 				</view>
 				<view class="tool-wrap">
@@ -87,7 +87,7 @@
 				</view>
 				<view class="popup-footer" style="position: absolute;">
 					<u-button size="medium" @click="searchPopupShow = false">取消</u-button>
-					<u-button size="medium" type="primary" @click="search()">搜索</u-button>
+					<u-button size="medium" type="primary" @click="searchHandle()">搜索</u-button>
 				</view>
 			</view>
 		</u-popup>
@@ -212,14 +212,14 @@ export default {
 							name: '时间远到近',
 							value: 1
 						},
-						{
-							name: '预期佣金高到底',
-							value: 2
-						},
-						{
-							name: '预期佣金低到高',
-							value: 3
-						}
+						// {
+						// 	name: '预期佣金高到底',
+						// 	value: 2
+						// },
+						// {
+						// 	name: '预期佣金低到高',
+						// 	value: 3
+						// }
 					]
 				}
 			],
@@ -297,47 +297,32 @@ export default {
 	},
 	onReachBottom() {
 		if (that.loadmore.status == 'nomore') return;
-		that.loadmore.currnetPage++;
-		// xxxx.callFunction({
-		// 	url: 'client/agent/kh/getRecommendLogList',
-		// 	title: '请求中...',
-		// 	data: {
-		// 		pageIndex: that.loadmore.currnetPage,
-		// 		filterHours: that.filterHours,
-		// 		filterPropertyId: that.filterPropertyId,
-		// 		filterVerifyStatus: that.filterVerifyStatus,
-		// 		filterStepStatus: that.filterStepStatus,
-		// 		orderMethod: that.orderMethod,
-		// 	}
-		// })
-		// 	.then(res => {
-		// 		if (res.list.length < 10) {
-		// 			that.loadmore.status = 'nomore';
-		// 		}
-		// 		that.customerList = that.customerList.concat(res.list);
-		// 	})
-		// 	.catch(res => {
-		// 		xxxx.toast(res.msg);
-		// 	});
+		that.loadmore.currnetPage++
+		this.getDataList()
 	},
 	onPullDownRefresh() {
 		// 防止频繁刷新
 	},
 	methods: {
-		getDataList () {
+		getDataList (params, bc) {
 			const that = this
 			uni.api.estate.apireportlist({
-				page: that.loadmore.currnetPage
+				page: that.loadmore.currnetPage,
+				...params,
 			}).then(res => {
 				const list = res.list || []
 				if (list.length < 10) {
 					that.loadmore.status = 'nomore';
 				}
 				if (res.page = 1) {
+					if (list.length == 0) {
+						uni.toast('无搜索结果', 'none');
+					}
 					that.customerList = [...list]
 				} else {
 					that.customerList = that.customerList.concat(list)
 				}
+				if (bc) bc()
 			})
 		},
 		customBack() {
@@ -360,26 +345,11 @@ export default {
 				}
 			});
 		},
-		search() {
-			// xxxxx.callFunction({
-			// 	url: 'client/agent/kh/getRecommendLogList',
-			// 	title: '搜索中...',
-			// 	data: {
-			// 		pageIndex: that.loadmore.currnetPage,
-			// 		filterHours: that.filterHours,
-			// 		filterPropertyId: that.filterPropertyId,
-			// 		filterVerifyStatus: that.filterVerifyStatus,
-			// 		filterStepStatus: that.filterStepStatus,
-			// 		orderMethod: that.orderMethod,
-			// 		searchFormData: that.searchFormData
-			// 	}
-			// }).then(res => {
-			// 	if (res.list.length == 0) {
-			// 		uni.toast('无搜索结果', 'none');
-			// 	}
-			// 	that.searchPopupShow = false;
-			// 	that.customerList = res.list;
-			// });
+		searchHandle() {
+			that.loadmore.currnetPage = 1
+			this.getDataList(this.searchFormData, () => {
+				this.searchPopupShow = false
+			})
 		},
 		// 筛选
 		confirmFilter(e) {

文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/agent/recommend/detail.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pages/agent/recommend/list.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/HM-filterDropdown/components/HM-filterDropdown/HM-filterDropdown.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/vk-uview-ui/components/u-navbar/u-navbar.js.map


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/vk-uview-ui/components/u-tag/u-tag.js.map


+ 3 - 0
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -11860,6 +11860,9 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
   },
   apireportlist: function apireportlist(params) {// 报备 - 报备列表
     return (0, _http.request)('api/report/list', params, 'loading');
+  },
+  apireportdetail: function apireportdetail(params) {// 报备 - 报备详情
+    return (0, _http.request)('api/report/detail', params, 'loading');
   } };exports.default = _default;
 
 /***/ }),

+ 6 - 10
unpackage/dist/dev/mp-weixin/pages/agent/recommend/detail.js

@@ -257,14 +257,7 @@ var that;var _default =
   data: function data() {
     return {
       skeletonLoading: true,
-      detail: {
-        customerInfo: {
-          name: '加载中',
-          mobile: '加载中' },
-
-        propertyInfo: {
-          name: '加载中' } },
-
+      detail: {},
       // 客户详情
       currentStep: 0,
       buystepList: [
@@ -290,8 +283,11 @@ var that;var _default =
       stepsLogList: [] // 进展
     };
   },
-  onLoad: function onLoad(params) {
-    that = this;
+  onLoad: function onLoad(params) {var _this = this;
+    uni.api.estate.apireportdetail({ id: params.id }).then(function (res) {
+      _this.detail = res || {};
+      _this.skeletonLoading = false;
+    });
     // if (!xxxxx.vuex.get('$app.systemConfig.use_skeleton')) {
     // 	that.skeletonLoading = false;
     // }

文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/agent/recommend/detail.wxml


文件差异内容过多而无法显示
+ 0 - 1
unpackage/dist/dev/mp-weixin/pages/agent/recommend/list.js


文件差异内容过多而无法显示
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/agent/recommend/list.wxml


+ 7 - 0
unpackage/dist/dev/mp-weixin/project.private.config.json

@@ -20,6 +20,13 @@
           "query": "",
           "launchMode": "default",
           "scene": null
+        },
+        {
+          "name": "",
+          "pathName": "pages/agent/recommend/detail",
+          "query": "id=3",
+          "launchMode": "default",
+          "scene": null
         }
       ]
     }

部分文件因为文件数量过多而无法显示