123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <!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;
- }
- .aui-access {
- border: 1px solid #00787B !important;
- color: #00787B !important;
- }
- .aui-noaccess {
- border: 1px solid #c00;
- color: #c00;
- }
- </style>
- </head>
- <body>
- <section class="aui-flexView" id="app">
- <!-- <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(i)" v-cloak>
- <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 ">
- <h2> {{i.retailerDto.storeName}} <em class="zmq-float-right" v-bind:class="reatailerStatus[i.status].c">{{reatailerStatus[i.status].n}}</em></h2>
- <p>
- <span>门店经理:{{i.retailerDto.storeJl}} - {{i.retailerDto.storeJlPhone}}</span>
- </p>
- <p>
- <span>提交时间:{{i.retailerDto.createTime}}</span>
- </p>
- </div>
- <!--<div class="zmq-btn-border zmq-padding-status zmq-text-font-06 zmq-text-msg">
- 联系他
- </div>-->
- </div>
- </div>
- </div>
- <img v-show="hasData == false" src="../../image/nodata.png" class="zmq-img-nodata" />
- </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 : {
- agentId : '',
- kunnr : '',
- type : type,
- list : [],
- // 客户url
- getCustomUrl : 'getRetailerUrl',
- // 分页展示
- upLock : true,
- current : 1,
- total : 1,
- // 订单状态
- orderStatus : '',
- // 门店状态
- reatailerStatus : [{
- c : '',
- n : '待审核',
- }, {
- c : 'aui-access',
- n : '审核通过',
- }, {
- c : 'aui-noaccess',
- n : '审核不通过',
- }],
- // 根据状态获取数据
- statusList : ["","0","1","2"],
- chooseStatus : "",
- hasData : false,
- },
- methods : {
- init : function() {
- // 配置筛选
- var _this = this;
- this.kunnr = $api.getStorage('kunnr');
- this.getCustom();
- this.configHeaderRefush(function() {
- // if (_this.agentId != '') {
- // _this.downData = 'down';
- // _this.upLock = true;
- // _this.current = 1;
- _this.getCustom();
- // } else {
- // api.refreshHeaderLoadDone();
- // }
- })
- this.addEvent("tabClick", function(e) {
- var index = e.value.index - 1, newList = new Array();
- _this.chooseStatus = _this.statusList[index];
- _this.getCustom();
- // if (index < 0) {
- // newList = _this.allList;
- // } else {
- // _this.allList.map(function(l, d) {
- // if (l.status == index) {
- // newList.push(l);
- // }
- // })
- // }
- })
- this.addEvent("checkRetailer", function() {
- _this.getCustom();
- })
- // this.configBottomRefush(function(status) {
- // // 开启上拉加载
- // if (_this.hasData == true) {
- // // 开启上拉加载
- // if (_this.total > _this.current) {
- // _this.downData = 'up';
- // _this.current = _this.current + 1;
- // _this.getCustom();
- // } else {
- // // 上啦没有数据了
- // _this.upLock = false;
- // }
- // }
- // })
- },
- // 获取门店
- getCustom : function() {
- // var data = {
- // agent_id : this.agentId,
- // status : parseInt(this.chooseStatus),
- // url : 'json',
- // type : 'body',
- // }, _this = this;
- var data = {
- kunnr : this.kunnr,
- url : 'json',
- type : 'body'
- },_this = this;
- this.$post(this.getCustomUrl, data, function(ret) {
- if (ret.code == 0) {
- _this.list = ret.list;
- _this.allList = ret.list;
- if (_this.list.length > 0) {
- _this.hasData = true;
- } else {
- _this.hasData = false;
- }
- // _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;
- // } else {
- // _this.hasData = false;
- // }
- // }
- }
- })
- },
- // 查看门店审核
- lookInfo : function(i) {
- var p = JSON.stringify(i);
- api.openWin({
- name : 'shenhe_win',
- url : './shenhe_win.html',
- pageParam : {
- p : p
- }
- });
- }
- // lookInfo : function() {
- // api.openWin({
- // name : 'customerInfo_win',
- // url : './customerInfo_win.html'
- // });
- // }
- },
- mounted : function() {
- this.init();
- }
- })
- }
- </script>
- </html>
|