| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 | 
							- <!DOCTYPE html>
 
- <html class="">
 
- <!--STATUS OK-->
 
- <head>
 
-     <meta name="referrer" content="always" />
 
-     <meta charset='utf-8' />
 
-     <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
 
-     <meta http-equiv="x-dns-prefetch-control" content="on">
 
-     <meta name="description" content="">
 
-     <meta name="format-detection" content="telephone=no" />
 
-     <link rel="stylesheet" type="text/css" href="../css/api.css" />
 
-     <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
 
-     <link rel="stylesheet" type="text/css" href="css/vant-ui.css" />
 
-     <link rel="stylesheet" type="text/css" href="css/iconfont.css">
 
-     <link rel="stylesheet" type="text/css" href="css/main.css" />
 
-     <script type="text/javascript" src="../script/aui-tab.js"></script>
 
-     <script src="js/vue.js"></script>
 
-     <script src="js/vant-ui.js"></script>
 
-     <script src="js/main.js"></script>
 
-     <title></title>
 
- </head>
 
- <style>
 
- </style>
 
- <body>
 
-     <div id="app" style="background-color:#EDEDED">
 
-         <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
 
-             <div>
 
-                 <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span
 
-                         class="aui-iconfont aui-icon-left"></span> </a>
 
-                 <div class="aui-title" id="aui-title">
 
-                     签约地址管理
 
-                 </div>
 
-                 <a class="aui-btn aui-btn-info aui-pull-right" tapmode v-on:click="updatesign">确定</a>
 
-             </div>
 
-         </header>
 
-         <div class="card-list">
 
-             <van-cell is-link v-on:click="getSignLv" v-if="contractTask==0">{{valueLv}}</van-cell>
 
-             <van-cell is-link v-on:click="goMap" v-if="addressModify==0">{{address}}</van-cell>
 
-             <van-popup v-model="showPicker" position="bottom" :style="{ height: '30%' }">
 
-                 <van-picker title="签约等级" show-toolbar v-bind:columns="signList" value-key="signLv"
 
-                     v-on:cancel="onCancel" v-on:confirm="onConfirm" />
 
-             </van-popup>
 
-             <div style="background-color: #fff;margin: .2rem;padding: .2rem;border-radius: .2rem;">
 
-                 说明:<br>
 
-                  1,更改后的签约任务自2020年10月1日起生效,即自10月1日起考核签约任务完成量,2020年10月1日后不允许再次更改签约任务。<br>
 
-                  2,修改签约地址后电子围栏即刻生效,2020年10月1日之前您可多次调整门店地址直至合适。2020年10月1日之后不能再更改。<br>
 
-             </div>
 
-         </div>
 
-     </div>
 
- </body>
 
- <link rel="stylesheet" href="./mescroll/mescroll.min.css">
 
- <script type="text/javascript" src="./js/qrcode.min.js"></script>
 
- <script type="text/javascript" src="../script/aui-scroll.js"></script>
 
- <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
 
- <script type="text/javascript" src="../script/api.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">
 
-     function closeWin() {
 
-         api.closeWin({});
 
-     }
 
-     apiready = function () {
 
-         var addressModify = api.pageParam.addressModify;
 
-         var contractTask = api.pageParam.contractTask
 
-         api.parseTapmode();
 
-         var header = $api.byId('aui-header');
 
-         $api.fixStatusBar(header);
 
-         new Vue({
 
-             el: '#app',
 
-             data: {
 
-                 showPicker: false,
 
-                 signList: [],
 
-                 valueLv: "请选择签约等级",
 
-                 userDistrct: '',
 
-                 address: '请选择地址',
 
-                 addressModify: addressModify,
 
-                 contractTask: contractTask
 
-             },
 
-             methods: {
 
-                 init: function () {
 
-                     this.storeId = $api.getStorage('userid');
 
-                     this.SignlvList();
 
-                     this.getsignAddress();
 
-                     var _this = this;
 
-                     this.addEvent('chooseDistict', function (ret) {
 
-                         if (ret) {
 
-                             _this.userDistrct = ret.value.p + ret.value.c + ret.value.d;
 
-                             _this.userAddress = ret.value.a;
 
-                             _this.userLat = ret.value.lat;
 
-                             _this.userlon = ret.value.lon;
 
-                             _this.address = _this.userDistrct + _this.userAddress;
 
-                             _this.province = ret.value.p
 
-                             _this.city = ret.value.c
 
-                             _this.district = ret.value.d
 
-                             _this.addressInfo = ret.value.a
 
-                         }
 
-                         api.closeWin({
 
-                             name: 'map_win'
 
-                         });
 
-                     })
 
-                 },
 
-                 onCancel: function () {
 
-                     this.showPicker = false;
 
-                 },
 
-                 getSignLv: function () {
 
-                     this.showPicker = true;
 
-                     var url = "getSignLvU",
 
-                         _this = this;
 
-                     this.$post(url, {
 
-                         "status": 0,
 
-                         url: "json",
 
-                         type: 'body'
 
-                     }, function (ret) {
 
-                         if (ret.code == 0 || ret.code == '0') {
 
-                             _this.signList = ret.date;
 
-                         }
 
-                     })
 
-                 },
 
-                 onConfirm: function (value) {
 
-                     this.valueLv = value.signLv;
 
-                     this.numTask = value.numTask;
 
-                     this.showPicker = false;
 
-                 },
 
-                 SignlvList:function(){
 
-                     var _this = this,
 
-                         url = "SignlvList",
 
-                         data = {
 
-                             "STORE_ID": this.storeId,
 
-                             "IS_DELETE": 0,
 
-                             "type": 'body',
 
-                             "url": 'json'
 
-                         }
 
-                     this.$post(url, data, function (ret) {
 
-                         if (ret.code == 0) {
 
-                             if (ret.list.length != 0) {
 
-                                 _this.valueLv = ret.list[0].signLv;
 
-                                 _this.numTask = ret.list[0].numTask;
 
-                                 if(!_this.valueLv){
 
-                                     _this.valueLv="请选择签约等级"
 
-                                 }
 
-                                 _this.oldvalueLv = ret.list[0].signLv;
 
-                             }
 
-                         }
 
-                     });
 
-                 },
 
-                 getsignAddress: function () {
 
-                     var _this = this,
 
-                         url = "getsignAddress",
 
-                         data = {
 
-                             "STORE_ID": this.storeId,
 
-                             "IS_DELETE": 0,
 
-                             "type": 'body',
 
-                             "url": 'json'
 
-                         }
 
-                     this.$post(url, data, function (ret) {
 
-                         if (ret.code == 0) {
 
-                             if (ret.list.length != 0) {
 
-                                 _this.address = ret.list[0].province + ret.list[0].city + ret.list[0].district + ret.list[0].addressInfo;
 
-                                 if (!_this.address) {
 
-                                     _this.address="请选择地址"
 
-                                 }
 
-                                 _this.oldaddress = ret.list[0].province + ret.list[0].city + ret.list[0].district + ret.list[0].addressInfo;
 
-                                 var reg = new RegExp("null", "g");
 
-                                 _this.address = _this.address.replace(reg, "")                
 
-                             }
 
-                         }
 
-                     });
 
-                 },
 
-                 updatesign:function(){
 
-                     if(this.valueLv!=this.oldvalueLv&&this.valueLv!="请选择签约等级"){
 
-                         this.SignlvUpdate();
 
-                     }
 
-                     if(this.address!=this.oldaddress&&this.address!="请选择地址"){
 
-                         this.AddressUpdate();
 
-                     }
 
-                     if(this.valueLv==this.oldvalueLv&&this.address==this.oldaddress){
 
-                         api.toast({
 
-                                 msg: "请勿重复修改"
 
-                          });
 
-                     } 
 
-                     if(this.valueLv=="请选择签约等级"&&this.address==this.oldaddress){
 
-                         api.toast({
 
-                             msg: "请勿重复修改"
 
-                         });
 
-                     }
 
-                     if(this.valueLv==this.oldvalueLv&&this.address=="请选择地址"){
 
-                         api.toast({
 
-                             msg: "请勿重复修改"
 
-                         });
 
-                     }
 
-                     if(this.valueLv=="请选择签约等级"&&this.address=="请选择地址"){
 
-                         api.toast({
 
-                                 msg: "请按所需修订您的签约等级或地址后,再提交"
 
-                         });
 
-                     }
 
-                  
 
-                 },
 
-                 SignlvUpdate: function () {
 
-                     var _this = this,
 
-                         url = "SignlvUpdate",
 
-                         data = {
 
-                             "storeId": this.storeId,
 
-                             "numTask": this.numTask,
 
-                             "signLv": this.valueLv,
 
-                             "type": 'body',
 
-                             "url": 'json'
 
-                         }
 
-                     this.$post(url, data, function (ret) {
 
-                         if (ret.code == 0) {
 
-                             api.toast({
 
-                                 msg: "修改成功"
 
-                             });
 
-                             setTimeout(function () {
 
-                                 api.sendEvent({
 
-                                     name: 'refushMeber',
 
-                                     extra: {}
 
-                                 });
 
-                                 api.closeWin({});
 
-                             }, 1000);
 
-                         }
 
-                     });
 
-                 },
 
-                 AddressUpdate: function () {
 
-                     var _this = this,
 
-                         url = "updatesign",
 
-                         data = {
 
-                             "storeId": this.storeId,
 
-                             "jd": this.userlon,
 
-                             "wd": this.userLat,
 
-                             "province": this.province,
 
-                             "city": this.city,
 
-                             "district": this.district,
 
-                             "addressInfo": this.addressInfo,
 
-                             "type": 'body',
 
-                             "url": 'json'
 
-                         }
 
-                     this.$post(url, data, function (ret) {
 
-                         if (ret.code == 0) {
 
-                             api.toast({
 
-                                 msg: "修改成功"
 
-                             });
 
-                             setTimeout(function () {
 
-                                 api.sendEvent({
 
-                                     name: 'refushMeber',
 
-                                     extra: {}
 
-                                 });
 
-                                 api.closeWin({});
 
-                             }, 1000);
 
-                         }
 
-                     });
 
-                 },
 
-                 goMap: function () {
 
-                     this.goWin('map_win', 'map_win.html');
 
-                 },
 
-             },
 
-             mounted: function () {
 
-                 this.init();
 
-             }
 
-         })
 
-     }
 
- </script>
 
- </html>
 
 
  |