| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 | <!DOCTYPE html><html>	<head>		<meta charset="UTF-8">		<title>应用下载</title>		<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>		<meta content="yes" name="apple-mobile-web-app-capable"/>		<meta content="black" name="apple-mobile-web-app-status-bar-style"/>		<meta content="telephone=no" name="format-detection"/>		<link href="../../css/styleK.css" rel="stylesheet" type="text/css"/>		<link href="../../css/html.css" rel="stylesheet" type="text/css"/>		<style>			.aui-app-flex-1 {				color: #005AA9;				font-size: 0.7rem;				text-decoration: underline;				margin-right: 10px;			}			.searchBar {				width: 100%;				padding: 5px;			}			.seatchBar-input {				font-size: .7rem;				padding: 9px 15px;				border-radius: 5px;				text-align: center;				border: 1px solid #ddd;			}			.aui-app-flex-text {				display: flex;				display: -webkit-flex;			}			.aui-app-flex-text div {				flex: 1;				border-right: 1px dotted #ddd;				text-align: center;			}			.aui-app-flex-text div:last-of-type {				border-right: 0px dotted #ddd;			}		</style>	</head>	<body>		<section class="aui-flexView" id="app" v-cloak>			<!--<div class="searchBar">				<input type="text" class="seatchBar-input zmq-width-90" placeholder="输入姓名进行搜索"/>			</div>-->			<div class="aui-app-box zmq-width-90" >				<div class="aui-app-flex-box box-line" v-for="(i,index) in list" v-on:click="lookInfo">					<div class="aui-app-flex ">						<!--<div class="aui-app-flex-hd">							<img src="../../image/drawable-xhdpi/store.png" alt="">						</div>-->						<div class="aui-app-flex-bd"><!-- {{i.bizCustomDto.customName}} -->							<h2> {{i.bizCustomDto.customName}}</h2>							<p>								<span>手机号:{{i.bizCustomDto.customMobile}}</span>							</p>							<p>								<span>车辆信息:{{i.bizCustomDto.jtcls}}</span>							</p>						</div>						<!--<div class="zmq-btn-border zmq-padding-status zmq-text-font-06 zmq-text-msg">							查看个人中心						</div>-->					</div>			<!--		<div class="aui-app-flex-text">						<div>							<p class="zmq-text-msg zmq-font-weight">								36.4万英里							</p>							<p class="zmq-text-font-07 zmq-margin-top-5">								行驶里程							</p>						</div>						<div>							<p class="zmq-text-msg zmq-font-weight">								12条							</p>							<p class="zmq-text-font-07 zmq-margin-top-5">								最近更换轮胎							</p>						</div>						<div>							<p class="zmq-text-msg zmq-font-weight">								2018-08-08							</p>							<p class="zmq-text-font-07 zmq-margin-top-5">								最近消费时间							</p>						</div>					</div>-->				</div>			</div>			<img class="zmq-img-nodata" v-show="hasData == false" src="../../image/nodata.png" />			<div v-show="upLock == false" class="zmq-text-explain zmq-margin-top-10 zmq-textAlign-center zmq-margin-bottom-10 zmq-block-text">				已无更多数据			</div>		</section>	</body>	<script type="text/javascript" src="../../script/api.js"></script>	<script type="text/javascript" src="../../script/aui-scroll.js"></script>	<script type="text/javascript" src="../../script/vue.js"></script>	<script type="text/javascript" src="../../script/httpRequest.js"></script>	<script type="text/javascript" src="../../script/vue_plugins.js"></script>	<script type="text/javascript">		apiready = function() {			var type = api.pageParam.type;			new Vue({				el : '#app',				data : {					type : type,					list : [],					retariler_id : '',					//  获取客户列表					customListUrl : 'customListUrl',					//  是否有数据					hasData : false,					//  分页					upLock : true,					current : 1,					total : 1,					agentId : '',				},				methods : {					init : function() {					    var _this = this;					    this.retariler_id = $api.getStorage("retailerid");					    this.getCustomList();						this.configHeaderRefush(function() {								_this.downData = 'down';								_this.upLock = true;								_this.current = 1;								_this.getCustomList();						})						this.configBottomRefush(function(status) {							//  开启上拉加载							if (_this.hasData == true) {								//  开启上拉加载								if (_this.total > _this.current) {									_this.downData = 'up';									_this.current = _this.current + 1;									_this.getCustomList();								} else {									//  上啦没有数据了									_this.upLock = false;								}							}						})					},					//  获取客户列表					getCustomList : function(){					    var data = {							retailerId : this.retariler_id,							current : this.current,						}, _this = this;						this.$post(this.customListUrl, data, function(ret) {							if (ret.code == 0) {								_this.total = ret.page.pages;								if (_this.downData == 'up') {									_this.list = _this.list.concat(ret.page.records);								} else {									_this.list = ret.page.records;									if (_this.list.length > 0) {										_this.hasData = true;									}								}							}						})					},					//  查看客户信息					lookInfo : function() {						api.openWin({							name : 'customerInfo_win',							url : './customerInfo_win.html'						});					}				},				mounted : function() {					this.init();				}			})		}	</script></html>
 |