xhj 2 年 前
コミット
d46bc68533

+ 87 - 0
mine/clientDetail/clientDetail.css

@@ -0,0 +1,87 @@
+page{
+	background-color: #fff;
+}
+.user-header{
+	margin: 30rpx 30rpx;
+	padding:30rpx 0 30rpx;
+	border-bottom: 1rpx solid #DEDEDE;
+}
+.user-header .header-pic{
+	width: 100rpx;
+	height: 100rpx;
+	background: #E4E4E4;
+	border-radius: 60rpx 60rpx 60rpx 60rpx;
+	opacity: 1;
+	margin-right: 20rpx;
+}
+.user-name{
+	line-height: 53rpx;
+	font-size: 38rpx;
+	font-family: PingFang SC-Bold, PingFang SC;
+	font-weight: bold;
+	color: #263343;
+	margin-bottom: 5rpx;
+}
+.user-tag{
+	padding: 0 16rpx;
+	line-height: 36rpx;
+	background: #FFE6E8;
+	border-radius: 4rpx 4rpx 4rpx 4rpx;
+	opacity: 1;
+	font-size: 22rpx;
+	font-weight: 400;
+	color: #E95A64;
+}
+.form{
+	padding: 30rpx;
+}
+.form-title{
+	line-height: 45rpx;
+	font-size: 32rpx;
+	font-family: PingFang SC-Bold, PingFang SC;
+	font-weight: bold;
+	color: #263343;
+}
+.form-item{
+	margin-top: 40rpx;
+}
+.form-label{
+	width: 180rpx;
+	margin-right: 25rpx;
+	line-height: 42rpx;
+	font-size: 30rpx;
+	font-family: PingFang SC-Regular, PingFang SC;
+	font-weight: 400;
+	color: #A2A6AF;
+}
+.form-data{
+	line-height: 42rpx;
+	font-size: 30rpx;
+	font-family: PingFang SC-Regular, PingFang SC;
+	font-weight: 400;
+	color: #263343;
+}
+.form-btn{
+	padding:0 26rpx ;
+	height: 60rpx;
+	line-height: 60rpx;
+	text-align: center;
+	border-radius: 30rpx 30rpx 30rpx 30rpx;
+	opacity: 1;
+	border: 2rpx solid var(--main);
+	color: var(--main);
+}
+.c-info{
+	margin: 30rpx 0;
+	padding: 30rpx;
+	background: #E6F2FF;
+	border-radius: 4rpx 4rpx 4rpx 4rpx;
+	opacity: 1;
+	border: 1rpx solid #CAE4FF;
+	line-height: 45rpx;
+	font-size: 32rpx;
+	font-family: PingFang SC-Regular, PingFang SC;
+	font-weight: 400;
+	color: #3D90E5;
+	text-align: center;
+}

+ 128 - 0
mine/clientDetail/clientDetail.vue

@@ -0,0 +1,128 @@
+<template>
+	<view>
+		<view class="user-header dflex">
+			<image class="header-pic" :src="info.avatar?info.avatar:'../../static/images/userimg.png'"></image>
+			<view>
+				<view class="user-name">{{info.nickName}}</view>
+				<view class="ddflex">
+					<view class="user-tag">高价值</view>
+				</view>
+			</view>
+		</view>
+		
+		<view class="form">
+			<view class="form-title">客户资料</view>
+			<view class="ddflex form-item">
+				<view class="form-label">销售员工号</view>
+				<view class="form-data fflex">{{info.manageSaleNo?info.manageSaleNo:'-'}}</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">姓名</view>
+				<view class="form-data fflex">{{info.realName?info.realName:'-'}}</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">性别</view>
+				<view class="form-data fflex">{{info.gender==1?'男':info.gender==2?'女':'-'}}</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">联系电话</view>
+				<view class="form-data ddflex fflex">
+					<view class="fflex ddflex">
+						<text>{{info.mobile?styTelTextFn(info.mobile):'-'}}</text>
+						<image v-if="info.mobile" style="width: 27rpx;height: 27rpx;margin-left: 10rpx;" src="../static/images/copy.png" @click="copy(info.mobile)"></image>
+					</view>
+					<view v-if="info.mobile" class="ddflex form-btn" @click.stop="callPhone(info.mobile)">
+						<image style="width: 22rpx;height: 22rpx;margin-right: 10rpx;" src="../../static/pages/images/phone1.png"></image>
+						联系
+					</view>
+				</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">客户类别</view>
+				<view class="form-data fflex">客户</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">客户来源</view>
+				<view class="form-data fflex">小程序</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">网格地址编码</view>
+				<view class="form-data fflex">-</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">保单</view>
+				<view class="form-data fflex">{{info.warrantyCount?info.warrantyCount:0}}</view>
+			</view>
+			<view class="ddflex form-item">
+				<view class="form-label">共计保费</view>
+				<view class="form-data fflex">{{info.warrantyMoney?info.warrantyMoney:0}}元</view>
+			</view>
+			<view class="dflex form-item" v-if="info.associationProduct&&info.associationProduct.length>0">
+				<view class="form-label">关联产品</view>
+				<view class="form-data fflex">
+					<view v-for="it,idx in info.associationProduct" :key="idx">{{it}}</view>
+				</view>
+			</view>
+			<view class="form-title" style="margin-top: 50rpx;">经营服务策略</view>
+			<view class="c-info">
+				刺激消费频率
+			</view>
+		</view>
+
+	</view>
+</template>
+
+<script>
+	const app = getApp();
+	const req = require("../../utils/request.js");
+	const utils = require("../../utils/util.js")
+	export default {
+		components: {},
+		props: {},
+		data() {
+			return {
+				id:'',
+				info:{}
+			}
+		},
+		onLoad(options) {
+			this.id = options.id
+			this.getDetail()
+		},
+		onShow() {
+			
+		},
+		methods: {
+			getDetail(){
+				req.getRequest('/api/user/getUserInfoBySaleNo',{userId:this.id},res=>{
+					this.info = res
+				})
+			},
+			styTelTextFn(data){
+				return utils.styTelText(data)
+			},
+			// 复制
+			copy(val){
+				uni.setClipboardData({
+					data: val,
+					complete() {
+						req.msg('复制成功')
+					}
+				})
+			},
+			// 拨打电话
+			callPhone(val) {
+				if(!val) return false
+			    uni.makePhoneCall({
+			        phoneNumber: val
+			    });
+			},
+		},
+		mounted() {
+		},
+	}
+</script>
+
+<style>
+	@import "./clientDetail.css";
+</style>

+ 275 - 0
mine/clientManage/clientManage.css

@@ -0,0 +1,275 @@
+page{
+	background-color: #f5f5f5;
+}
+.top-fixed{
+	position: fixed;
+	top: 0;
+	right: 0;
+	left: 0;
+	background-color: #fff;
+	z-index: 101;
+}
+.search-box{
+	padding: 30rpx;
+	background-color: #fff;
+}
+
+.search-text{
+	color: #999999;
+}
+
+
+.search-input{
+	height: 76rpx;
+	line-height: 76rpx;;
+	background: #F5F5F5;
+	border-radius: 10rpx 10rpx 10rpx 10rpx;
+	padding: 0 26rpx;
+	font-size: 24rpx;
+}
+.search-input input{
+	font-size: 24rpx;
+}
+.search-input image{
+	width: 34rpx;
+	height: 34rpx;
+	margin-right: 26rpx;
+}
+.search-all{
+	color: #2a82fd;
+	font-size: 30rpx;
+	margin-left: 46rpx;
+}
+
+.filter{
+	padding: 0 30rpx 20rpx;
+	text-align: center;
+	font-size: 28rpx;
+	color: #999999;
+	line-height: 41rpx;
+}
+.filter-item-icon{
+	margin-left: 15rpx;
+	width: 22rpx;
+	height: 13rpx;
+}
+.filter-item{
+	justify-content: center;
+}
+.f-active{
+	color: var(--main);
+}
+
+/* 弹窗 */
+/* 核销弹窗 */
+.ceng{position: fixed;top: 0;left: 0;right: 0;bottom: 0;background-color: rgba(0,0,0,.5);z-index: 99;}
+.hx-pop{overflow: hidden;position: fixed;left: 0;right: 0;top: 0;background-color: #fff;border-radius: 0rpx 0rpx 0rpx 0rpx;z-index: 100;transition: all .3s ease;}
+.default{position: absolute;top: 55rpx;right: 60rpx;font-size: 28rpx;color: #999;}
+.default image{width: 36rpx;height: 36rpx;margin-right: 14rpx;}
+.pop-tit{font-size: 32rpx;color: #263343;font-weight: bold;margin-top: 60rpx;padding: 0 60rpx;}
+.pop-con{padding: 0 60rpx;max-height: 500rpx;overflow: scroll;}
+
+.pop-list{flex-wrap: wrap;}
+.pop-list .li{height: 70rpx;font-size: 30rpx;color: #333;text-align: left;line-height: 70rpx;margin: 30rpx 0;border-bottom: 2rpx solid #ebebeb;}
+.pop-list .li:last-child{border-bottom:none}
+.pop-list .li.active{color: var(--main);}
+.pop-list .opt{padding: 0 20rpx; height: 60rpx;background: #fff;border-radius: 10rpx;font-size: 30rpx;color: #999;text-align: center;line-height: 60rpx;align-items: flex-start;margin: 30rpx 30rpx 0 0;border: 2rpx solid #ebebeb;}
+/* .pop-list .opt:nth-child(3n){margin-right: 0;} */
+.pop-list .opt.opt-active{color: var(--main);border: 2rpx solid var(--main);}
+.pop-time{margin-top: 30rpx;font-size: 30rpx;color: #333;}
+.pop-time text{margin: 0 25rpx;}
+.date-ipt{width: 262rpx;height: 70rpx;background: #F3F5F7;border-radius: 35rpx;box-sizing: border-box;padding: 0 30rpx;font-size: 28rpx;color: #A5A5A5;line-height: 70rpx;}
+.pop-btn{padding: 30rpx;}
+.pop-btn view{height: 90rpx;line-height: 90rpx;font-size: 32rpx;text-align: center;box-sizing: border-box;border-radius: 6rpx;}
+.pop-btn view:first-child{width: 250rpx; color: #fff;border-top: 1rpx solid #f5f5f5;line-height: 79rpx;background-color: #cccccc;margin-right: 30rpx;}
+.pop-btn view:last-child{color: #fff;background: var(--mina);}
+
+
+/* 列表*/
+/* 登记信息 */
+.register-box{
+	background: #FFFFFF;
+	border-radius:10rpx;
+	position: relative;
+	padding: 0 0rpx 30rpx;
+	margin: 30rpx;
+	overflow: hidden;
+}
+.register-title{
+	font-size: 28rpx;
+	font-weight: bold;
+	color: #999999;
+	margin: 30rpx 30rpx;
+	padding-bottom: 21rpx;
+	flex-wrap: nowrap;
+	border-bottom: 1rpx solid #EAEAEA;
+}
+.card-name{
+	line-height: 45rpx;
+	font-size: 32rpx;
+	font-weight: bold;
+	color: #222222;
+}
+.card-tag{
+	padding: 0 10rpx;
+	line-height: 36rpx;
+	border-radius: 5rpx 5rpx 5rpx 5rpx;
+	opacity: 1;
+	border: 2rpx solid #DEDEDE;
+	font-size: 20rpx;
+	color: #A1A1A1;
+	font-weight: 400;
+	text-align: center;
+	margin-right: 10rpx;
+}
+.card-tag:nth-child(2){
+	background: #FFE6E8;
+	color: #E95A64;
+	border: 2rpx solid #FFE6E8;
+}
+.card-area{
+	line-height: 46rpx;
+	background: #F8F8F8;
+	border-radius: 10rpx 10rpx 10rpx 10rpx;
+	padding:0 16rpx ;
+	font-size: 24rpx;
+	font-weight: 400;
+	color: #666666;
+	margin-top: 35rpx;
+}
+.card-area image{
+	width: 20rpx;
+	height: 24rpx;
+	margin-right: 10rpx;
+}
+.card-data{
+	font-size: 39rpx;
+	font-family: Arial-Regular, Arial;
+	font-weight: 400;
+	color: #333333;
+	line-height: 47rpx;
+	text-align: center;
+}
+.card-label{
+	line-height: 33rpx;
+	font-size: 24rpx;
+	font-family: PingFang SC-Medium, PingFang SC;
+	font-weight: 500;
+	color: #A1A1A1;
+	text-align: center;
+}
+.card-line{
+	width: 1rpx;
+	height: 66rpx;
+	background: #DEDEDE;
+}
+.register-state{
+	font-size: 24rpx;
+	font-weight: 500;
+	line-height: 36rpx;
+	color: #999999;
+}
+.register-title-icon{
+	width: 92rpx;
+	height: 92rpx;
+	opacity: 1;
+	margin-right: 20rpx;
+	border-radius: 46rpx;
+}
+.register-info-item{
+	margin-top: 30rpx;
+	align-items: flex-start;
+}
+.register-info-label{
+	line-height: 41rpx;
+	color: #999999;
+	font-size: 28rpx;
+	margin-right: 60rpx;
+}
+.register-info-data{
+	font-size: 28rpx;
+	color: #333333;
+	line-height: 41rpx;
+	text-align: right;
+}
+/* 开通项目 */
+.card-pic{
+	width: 172rpx;
+	height: 172rpx;
+	border-radius: 10rpx 10rpx 10rpx 10rpx;
+	opacity: 1;
+	margin-right: 15rpx;
+}
+.card-info{
+	
+}
+.card-title{
+	line-height: 54rpx;
+	font-size: 32rpx;
+	font-weight: bold;
+}
+.card-time{
+	line-height: 36rpx;
+	font-size: 24rpx;
+	color: #999999;
+}
+.card-price{
+	margin-top: 43rpx;
+	justify-content: space-between;
+}
+.card-price text:first-child{
+	font-size: 32rpx;
+	font-weight: 500;
+	color: #FF0000;
+}
+.card-price text:last-child{
+	font-size: 24rpx;
+	font-weight: 500;
+	color: #999999;
+}
+.register-option{
+	border-top: 1px solid #F5F5F5;
+	justify-content: space-between;
+	margin-top: 30rpx;
+	padding: 20rpx 30rpx 0;
+}
+.order-time{
+	font-size: 24rpx;
+	font-weight: 400;
+	color: #999999;
+}
+.option-btn{
+	padding: 0 40rpx;
+	line-height: 51rpx;
+	border-radius: 27rpx 27rpx 27rpx 27rpx;
+	opacity: 1;
+	border: 2rpx solid #CCCCCC;
+	font-size: 28rpx;
+}
+
+.bottom-btn{
+	background-color: #fff;
+	padding: 30rpx 0;
+	position: fixed;
+	bottom: 0;
+	left: 0;
+	right: 0;
+}
+.btn-icon{
+	width: 29rpx;
+	height: 32rpx;
+	margin-right: 18rpx;
+}
+.bottom-btn .btn{
+	width: 690rpx;
+	height: 96rpx;
+	line-height: 96rpx;
+	background: #2A82FD;
+	border-radius: 48rpx 48rpx 48rpx 48rpx;
+	opacity: 1;
+	text-align: center;
+	color: #FFFFFF;
+	margin: auto;
+	justify-content: center;
+	font-size: 32rpx;
+}

+ 346 - 0
mine/clientManage/clientManage.vue

@@ -0,0 +1,346 @@
+<template>
+	<view>
+		<view class="top-fixed">
+			<view class="search-box ddflex">
+				<view class="search-input ddflex fflex">
+					<image src="/static/images/ssico.png"></image>
+					<input @confirm="searchFn" confirm-type="search" @input="searchFn" v-model="searchVal" class="fflex"
+						placeholder="请输入关键词" />
+				</view>
+			</view>
+			<view class="filter ddflex">
+				<view :class="'filter-item fflex ddflex '+(filterType==2&&isShowPop?'f-active':'')" @click="changeFilterType(2)">
+					<text style="max-width: 150rpx;" class="tover">{{stateIndex!=-1?stateList[stateIndex].label:'智能筛选'}}</text>
+					<image class="filter-item-icon" :style="filterType==2&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
+				</view>
+				<view :class="'filter-item fflex ddflex '+(filterType==1&&isShowPop?'f-active':'')" @click="changeFilterType(1)">
+					筛选
+					<image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
+				</view>
+			</view>
+		</view>
+		
+		
+		<view class="ceng" v-if="isShowPop" @click="hidePop()"></view>
+		
+		<view class="hx-pop" :style="'top:calc(' +popBottom+' + '+(isShowPop?190:0)+'rpx' ">
+			<view class="pop-con" v-if="filterType==1">
+				<view class="pop-list">
+					<view v-for="(item, index) in dateList" :key="index" style="margin-bottom: 30rpx;">
+						<view>{{ item.title }}</view>
+						<view class="ddflex">
+							<view :class="'opt' + (it.isActive? ' opt-active' : '')" v-for="(it, idx) in item.option" :key="idx" @click="switchFilterType(index,idx)">
+								<view>{{ it.label }}</view>
+							</view>
+						</view>
+					</view>
+				</view>
+			</view>
+			<view class="pop-con" v-if="filterType==2">
+				<view class="pop-list">
+					<view :class="'li' + (stateIndex == index ? ' active' : '')" v-for="(item, index) in stateList" :key="index" @click="switchType(index)">
+						{{ item.label }}
+					</view>
+				</view>
+			</view>
+			<view class="pop-btn ddflex" v-if="filterType!=2">
+				<view @click="reset">重置</view>
+				<view class="fflex" @click="confirm">确定</view>
+			</view>
+		</view>
+		
+		<view style="height: 190rpx;"></view>
+		<!-- 订单列表 -->
+		<view style="position: relative;overflow: hidden;" v-if="dataList.length>0">
+			<view class="register-box" v-for="item,index in dataList" :key="index" @click="jumpUrl('/mine/clientDetail/clientDetail?id='+item.id)">
+				<view class="register-title dflex fflex">
+					<image class="register-title-icon" :src="item.avatar?item.avatar:'/static/images/userimg.png'"></image>
+					<view class="flex" style="min-width: 0;">
+						<view class="ddflex">
+							<view class="card-name fflex tover">{{item.nickName?item.nickName:''}}</view>
+						</view>
+						<view class="ddflex" style="margin-top: 4rpx;">
+							<view class="card-tag">客户</view>
+							<view class="card-tag">高价值</view>
+						</view>
+						<view class="ddflex" style="font-size: 24rpx;color: #999;font-weight: 400;margin: 20rpx 0;">
+							<text>保单</text><text style="color: #000000;">{{item.warrantyCount?item.warrantyCount:0}}</text>
+							<view class="card-line" style="height: 23rpx;margin: 0 10rpx;"></view>
+							<text>共计保费</text><text style="color: #FF5700;">{{item.warrantyMoney?item.warrantyMoney:0}}元</text>
+						</view>
+					</view>
+				</view>
+				<view class="ddflex" style="margin-top: 41rpx;font-size: 24rpx;padding: 0 30rpx;">
+					<view class="ddflex fflex">
+						<view style="color: #999;margin-right: 16rpx;">服务策略</view>
+						<view style="color: #333333;">刺激消费频率</view>
+					</view>
+					<view v-if="item.mobile">
+						<image style="width: 140rpx;height: 64rpx;margin-left: 20rpx;" src="/mine/static/images/lx.png" @click.stop="goPhone(item.mobile)"></image>
+					</view>
+				</view>
+			</view>
+		</view>
+		<view v-else class="nodata">
+			<image src="../../card/static/images/empty.png" mode="widthFix"></image>
+			<view>暂无数据</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	const app = getApp();
+	const req = require("../../utils/request.js");
+	const util = require('../../utils/util.js');
+
+	export default {
+		components: {},
+		props: {},
+		data() {
+			return {
+				
+				filterType:null,
+				
+				popBottom: '-100%',
+				isShowPop: false,
+				
+				dateIndex: -1,
+				// 时间类型 1、今日 2、昨日 3、近7日 4、近30天 5、本月 6、本季度 7、本年度
+				dateList: [
+					{
+						title:'性别',
+						key:'sex',
+						option:[
+							{
+								label: '男',
+								value: 1
+							},{
+								label: '女',
+								value: 2
+							},
+						]
+					},{
+						title:'客户标签',
+						key:'job',
+						option:[
+							{
+								label: '经理',
+								value: 1
+							},{
+								label: '负责人',
+								value: 2
+							},{
+								label: '业务员',
+								value: 3
+							}
+						]
+					}
+					
+				],
+				
+				stateIndex: 0,
+				stateList:[{
+						label: '智能推荐',
+						value: null
+					},{
+						label: '保费从高到低',
+						value: 'avage'
+					},
+					{
+						label: '保费从低到高',
+						value: 'bCount',
+						behavior:4
+					},
+					{
+						label: '保单从高到低',
+						value: 'bCount',
+						behavior:3
+					},{
+						label: '保单从低到高',
+						value: 'bCount',
+						behavior:3
+					}],
+				page: 1,
+				limit: 10,
+				isLoad: true,
+				searchVal: '',
+				dataList: [],
+				isReference:false,
+			}
+		},
+		async onLoad(options) {
+			await this.getDict()
+			this.getDataList()
+		},
+		onShow() {
+			if(this.isReference){
+				this.isReference = false
+				this.page=1;
+				this.isLoad = true
+				this.getDataList();
+			}
+		},
+		onReachBottom() {
+			this.page++;
+			this.getDataList();
+		},
+		methods: {
+			jumpUrl(url) {
+				uni.navigateTo({
+					url: url
+				})
+			},
+			getDict(){
+				return new Promise((r,j)=>{
+					req.getRequest('/api/other/dict/info',{dictType:'job'},res=>{
+						this.dateList.map(item=>{
+							if(item.key=='job'){
+								item.option = []
+								res.map(it=>{
+									item.option.push({
+										label:it.dictName,
+										value:it.dictValue
+									})
+								})
+							}
+						})
+						r(res)
+					})
+				})
+			},
+			// 切换筛选类型
+			changeFilterType(type){
+				// if(this.filterType==type) return false
+				this.filterType = type
+				if(type==3) {
+					this.hidePop()
+					return false
+				}
+				this.openPop()
+			},
+			// 打开弹窗
+			openPop(){
+				this.isShowPop = true
+				this.popBottom = '0%'
+			},
+			// 关闭弹窗
+			hidePop() {
+				this.isShowPop = false;
+				this.popBottom = '-100%';
+			},
+			
+			// 筛选
+			switchType(index) {
+				if (this.stateIndex == index) return false;
+				this.stateIndex = index;
+				this.confirm()
+			},
+			switchFilterType(index,idx) {
+				if(!this.dateList[index].option[idx].isActive){
+					this.dateList[index].option.map(item=>{
+						item.isActive = false
+					})
+					this.dateList[index].option[idx].isActive = true
+				}else{
+					this.dateList[index].option[idx].isActive = false
+				}
+				this.dateList = JSON.parse(JSON.stringify(this.dateList))
+			},
+			confirm() {
+				this.hidePop();
+				this.isLoad = true;
+				this.getDataList();
+			},
+			reset() {
+				this.dateIndex = -1;
+				this.stateIndex = 0;
+				this.dateList.map(item=>{
+					item.option.map(it=>{
+						it.isActive = false
+					})
+				})
+				this.dateList = JSON.parse(JSON.stringify(this.dateList))
+			},
+			// 分页查询
+			getDataList() {
+				if (!this.isLoad) return false;
+				this.isLoad = false;
+				let queryParams = {
+					page: this.page,
+					limit: this.limit,
+					latitude: this.latitude,
+					longitude: this.longitude,
+				}
+				if (this.searchVal) {
+					queryParams.realName = this.searchVal
+				}
+				// 筛选
+				if (this.dateIndex != -1) {
+					queryParams.dateType = this.dateList[this.dateIndex].value;
+				}else if (this.dateIndex == -1) {
+				} else {
+					queryParams.dateType = 8
+					queryParams.end = this.endTime?this.endTime:null;
+					queryParams.start = this.startTime?this.startTime:null;
+				}
+				
+				// 状态筛选
+				if (this.stateIndex != -1) {
+					queryParams.orderFiled = this.stateList[this.stateIndex].value;
+					if(this.stateList[this.stateIndex].behavior){
+						queryParams.behavior = this.stateList[this.stateIndex].behavior;
+					}
+				}
+				this.dateList.map(item=>{
+					if(item.key=="sex"){
+						let sl = item.option.filter(it=>{return it.isActive})
+						if(sl.length>0){
+							queryParams.gender = sl[0].value
+						}
+					}
+					if(item.key=="job"){
+						let jl = item.option.filter(it=>{return it.isActive})
+						if(jl.length>0){
+							queryParams.job = jl[0].value
+						}
+					}
+				})
+				req.getRequest('/api/user/getUserBySaleNo', queryParams, data => {
+					data = data.list
+					if (data != null && data.length == this.limit) {
+						this.isLoad = true;
+					}
+					if (this.page == 1) {
+						this.dataList = [];
+					}
+					if (this.page > 0) {
+						data = this.dataList.concat(data);
+					}
+					this.dataList = data;
+					console.log('列表数据>>>', this.dataList);
+				})
+			},
+			// 搜索
+			searchFn() {
+				this.page = 1;
+				this.isLoad = true;
+				this.getDataList();
+			},
+			// 拨打电话
+			goPhone(phone) {
+				if(!phone) return false
+				uni.makePhoneCall({
+					phoneNumber: phone,
+					success(res){
+					}
+				}); // 传参带入号码即可
+			},
+		},
+		mounted() {
+		}
+	}
+</script>
+
+<style>
+	@import "./clientManage.css";
+</style>

BIN
mine/static/images/copy.png


BIN
mine/static/images/down.png


BIN
mine/static/images/gou1.png


BIN
mine/static/images/gou1_h.png


BIN
mine/static/images/lx.png


+ 14 - 0
pages.json

@@ -98,6 +98,20 @@
 					"navigationBarTitleText": "编辑内容"
 				}
 			}]
+		},
+		{
+			"root": "mine",
+			"pages": [{
+				"path": "clientManage/clientManage",
+				"style": {
+					"navigationBarTitleText": "客户管理"
+				}
+			},{
+				"path": "clientDetail/clientDetail",
+				"style": {
+					"navigationBarTitleText": "客户详情"
+				}
+			}]
 		}
 	],
 	"globalStyle": {

BIN
static/pages/images/phone1.png