qukaidi 4 سال پیش
والد
کامیت
5a4ec72e38
9فایلهای تغییر یافته به همراه182 افزوده شده و 183 حذف شده
  1. 0 1
      luntai/addressfix_body.html
  2. 8 8
      luntai/cartList_body.html
  3. 16 16
      luntai/getStoreNet_body.html
  4. 8 8
      luntai/index.html
  5. 5 5
      luntai/login.html
  6. 16 16
      luntai/meber.html
  7. 4 4
      luntai/sign_address.html
  8. 90 90
      script/httpRequest.js
  9. 35 35
      script/vue_plugins.js

+ 0 - 1
luntai/addressfix_body.html

@@ -275,7 +275,6 @@
 							"url": 'json',
 							"type": 'body'
 						},
-						
 						_this = this;
 					this.$post('updateAddress', params, function(ret) {
 						if (ret.code == 0 || ret.code == '0') {

+ 8 - 8
luntai/cartList_body.html

@@ -205,14 +205,14 @@
 							api.toast({msg : '至少选择一件商品'});
 							return;
 						}
-						// if(this.status==3){
-						// 	api.alert({
-						// 		title: '系统提示',
-						// 		msg: '门店已冻结,请找相关业务经理解冻!',
-						// 		}, function (ret, err) {								
-						// 	});
-						// return;
-						// }
+						if(this.status==3){
+							api.alert({
+								title: '系统提示',
+								msg: '门店已冻结,请找相关业务经理解冻!',
+								}, function (ret, err) {								
+							});
+						return;
+						}
 						var data = {
 							"retailerId" : this.userId,
 							"amount" : count,

+ 16 - 16
luntai/getStoreNet_body.html

@@ -358,14 +358,14 @@
 				},
 				//  添加购物车
 				addStoreCar: function(index) {
-					// if(this.status==3){
-					// 	api.alert({
-					// 			title: '系统提示',
-					// 			msg: '门店已冻结,请找相关业务经理解冻!',
-					// 		}, function (ret, err) {								
-					// 	});
-					// 	return;
-					// }
+					if(this.status==3){
+						api.alert({
+								title: '系统提示',
+								msg: '门店已冻结,请找相关业务经理解冻!',
+							}, function (ret, err) {								
+						});
+						return;
+					}
 					var storeInfo = this.list[index];
 					var data = {
 							"matnr": storeInfo.matnr,
@@ -394,14 +394,14 @@
 				},
 				//  立即抢购
 				buyStore: function(index) {
-					// if(this.status==3){
-					// 	api.alert({
-					// 			title: '系统提示',
-					// 			msg: '门店已冻结,请找相关业务经理解冻!',
-					// 		}, function (ret, err) {								
-					// 	});
-					// 	return;
-					// }
+					if(this.status==3){
+						api.alert({
+								title: '系统提示',
+								msg: '门店已冻结,请找相关业务经理解冻!',
+							}, function (ret, err) {								
+						});
+						return;
+					}
 					var _this = this;
 					this.showModal("下单提示", "是否确认立即购买该商品?", ["确认", "取消"], function(type) {
 						if (type == 1) {

+ 8 - 8
luntai/index.html

@@ -266,15 +266,15 @@
 					});
 				},
 				getStoreNet: function () {
-					// if (this.agentInfo.status == 3) {
-					// 	api.alert({
-					// 		title: '系统提示',
-					// 		msg: '门店已冻结,请找相关业务经理解冻!',
-					// 	}, function (ret, err) {
+					if (this.agentInfo.status == 3) {
+						api.alert({
+							title: '系统提示',
+							msg: '门店已冻结,请找相关业务经理解冻!',
+						}, function (ret, err) {
 
-					// 	});
-					// 	return;
-					// }
+						});
+						return;
+					}
 					this.goWin("getStoreNet", "getStoreNet_win.html", {})
 				},
 				verifyBusiness: function () {

+ 5 - 5
luntai/login.html

@@ -148,11 +148,11 @@
 						this.showToast("验证码不能为空");
 						return;
 					}
-					// if(this.version!=parseFloat(api.appVersion)){
-					// 	_this.getNewVersionUrl(function () {
-					// 	});
-					// 	return;
-					// }
+					if(this.version!=parseFloat(api.appVersion)){
+						_this.getNewVersionUrl(function () {
+						});
+						return;
+					}
 					var data = {
 						mobile: this.userCode,
 						mobileCode: this.userPassword,

+ 16 - 16
luntai/meber.html

@@ -602,30 +602,30 @@
 					});
 				},
 				insignAddress: function () {
-					// if(this.agentInfo.status==3){
-					// 	api.alert({
-					// 			title: '系统提示',
-					// 			msg: '门店已冻结,请找相关业务经理解冻!',
-					// 		}, function (ret, err) {
+					if(this.agentInfo.status==3){
+						api.alert({
+								title: '系统提示',
+								msg: '门店已冻结,请找相关业务经理解冻!',
+							}, function (ret, err) {
 
-					// 	});
-					// 	return;
-					// }
+						});
+						return;
+					}
 					this.goWin('sign_address', 'sign_address.html', {
 						addressModify: this.agentInfo.addressModify,
 						contractTask: this.agentInfo.contractTask
 					});
 				},
 				inaddress: function () {
-					// if(this.agentInfo.status==3){
-					// 	api.alert({
-					// 			title: '系统提示',
-					// 			msg: '门店已冻结,请找相关业务经理解冻!',
-					// 		}, function (ret, err) {
+					if(this.agentInfo.status==3){
+						api.alert({
+								title: '系统提示',
+								msg: '门店已冻结,请找相关业务经理解冻!',
+							}, function (ret, err) {
 
-					// 	});
-					// 	return;
-					// }
+						});
+						return;
+					}
 					this.goWin('address', 'address_win.html');
 				},
 				//IOS获取动态ICON

+ 4 - 4
luntai/sign_address.html

@@ -37,8 +37,8 @@
             </div>
         </header>
         <div class="card-list">
-            <van-cell is-link v-on:click="getSignLv">{{valueLv}}</van-cell>
-            <van-cell is-link v-on:click="goMap">{{address}}</van-cell>
+            <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" />
@@ -230,8 +230,8 @@
                         url = "updatesign",
                         data = {
                             "storeId": this.storeId,
-                            "jd": this.userLat,
-                            "wd": this.userlon,
+                            "jd": this.userlon,
+                            "wd": this.userLat,
                             "province": this.province,
                             "city": this.city,
                             "district": this.district,

+ 90 - 90
script/httpRequest.js

@@ -5,18 +5,18 @@ var $http = function () {
 	this.ajaxLock = false;
 	// this.ip = "http://192.168.43.144/api";
 
-	this.ip = "http://192.168.242.16:9002";
+	// this.ip = "http://192.168.237.5:9002";
 	//this.ip = "http://b2bcnapi.sailuntire.com/api";
-	// this.ip = "http://b2bcnapi.sailuntire.com/api/test";
+	this.ip = "http://b2bcnapi.sailuntire.com/api/test";
 	/******  用户相关   ******/
 	//  选择图片生成地址
-	this.getUrlByFileUrl = "/file/upload";
+	this.getUrlByFileUrl = "/web/file/upload";
 	//  根据省获取经销商
-	this.getUpuserByProvideUrl = "/bizLogin/testPostApi";
+	this.getUpuserByProvideUrl = "/web/bizLogin/testPostApi";
 	//  注册用户
-	this.regizeUrl = "/bizLogin/registRetailer";
+	this.regizeUrl = "/web/bizLogin/registRetailer";
 	//  登录用户
-	this.loginUrl = "/bizLogin/login";
+	this.loginUrl = "/web/bizLogin/login";
 	//  根据loginid获取用户信息
 	// this.getUserInfoUrl = "/base/retailer/loginToInfo";
 
@@ -81,9 +81,9 @@ var $http = function () {
 
 	/*********  0706  ***********/
 	//  收取短信验证码
-	this.getPhoneCode = '/bizLogin/sendCode';
+	this.getPhoneCode = '/web/bizLogin/sendCode';
 	// 获取客户信息
-	this.customListUrl = '/bizCustomRetailer/page';
+	this.customListUrl = '/web/bizCustomRetailer/page';
 	// 获取门店详情
 	this.getMDInfo = "/base/retailer/retailerInfo";
 	// 获取所有的轮胎服务类目
@@ -107,175 +107,175 @@ var $http = function () {
 	//  查看兑换记录
 	this.exchangeListUrl = "/jinyu/bizMallOrder/page";
 	//  检查版本
-	this.getVersionUrl = "/biz/getAppVersion";
+	this.getVersionUrl = "/web/biz/getAppVersion";
 	//  活动banner
 	this.getBannerUrl = "/biz/bizBanner/list";
 	//  获取参加活动的商品
 	this.getStoreBannerUrl = "/biz/bizActivity/activityInfo";
 	//  根据条形码获取商品
-	this.getStoreByScan = "/biz/bizGoods/Scancoderemotecall";
+	this.getStoreByScan = "/web/biz/bizGoods/Scancoderemotecall";
 	//  获取经销商对应物料列表
-	this.getStoreListU = "/biz/bizCoupon/select";
+	this.getStoreListU = "/web/biz/bizCoupon/select";
 	//  添加商品至购物车
-	this.addStoreToCarU = "/biz/bizCart/save";
+	this.addStoreToCarU = "/web/biz/bizCart/save";
 	//  获取购物车列表
-	this.getCarListU = "/biz/bizCart/selectCart";
+	this.getCarListU = "/web/biz/bizCart/selectCart";
 	//线上订货修改购物车数量
-	this.updateCarNum = "/biz/bizCart/update"
+	this.updateCarNum = "/web/biz/bizCart/update"
 	//  从购物车下单
-	this.downOrderU = "/base/bizOrder/save";
+	this.downOrderU = "/web/base/bizOrder/save";
 	//  扫码确定
-	this.scanDoneU = "/biz/bizGoods/Scancode";
+	this.scanDoneU = "/web/biz/bizGoods/Scancode";
 	//签约级别
-	this.signLv = "/bizLogin/enum";
+	this.signLv = "/web/bizLogin/enum";
 	//  门店立即抢购
-	this.rushToBuyU = "/base/bizOrder/directSave";
+	this.rushToBuyU = "/web/base/bizOrder/directSave";
 	//  门店查询订单
-	this.getOrderListU = "/base/bizOrder/selectStore";
+	this.getOrderListU = "/web/base/bizOrder/selectStore";
 	//  门店获取订单详情
-	this.getOrderInfoU = "/biz/bizOrderInfo/selectOrderInfo";
+	this.getOrderInfoU = "/web/biz/bizOrderInfo/selectOrderInfo";
 	//  获取门店参保列表接口
-	this.getInsuranceU = "/sailun/insurance/getInsuranceList";
+	this.getInsuranceU = "/web/sailun/insurance/getInsuranceList";
 	//  获取门店详情
-	this.getAgentInfoU = "/biz/bizAudit/store";
+	this.getAgentInfoU = "/web/biz/bizAudit/store";
 	//  扫码入库
-	this.sacaCodeIn = "/biz/bizGoods/ScanCodeIn";
+	this.sacaCodeIn = "/web/biz/bizGoods/ScanCodeIn";
 	//  获取轮胎理赔详情
-	this.getLipeiList = "/sailun/insurance/getInsuranceList";
+	this.getLipeiList = "/web/sailun/insurance/getInsuranceList";
 	//  通过胎号获取理赔单详情
-	this.getLipeiInfoU = "/sailun/insurance/getTireClaimInfo";
+	this.getLipeiInfoU = "/web/sailun/insurance/getTireClaimInfo";
 	//  理赔图片的上传
-	this.uploadLipeU = "/sailun/insurance/tireImageUpload";
+	this.uploadLipeU = "/web/sailun/insurance/tireImageUpload";
 	//  提交轮胎保理赔记录
-	this.sumbiltLipeiU = "/sailun/insurance/submitTireClaim";
+	this.sumbiltLipeiU = "/web/sailun/insurance/submitTireClaim";
 	//  获取入库记录
-	this.getIntoListU = "/sailun/insurance/getStoreClaimList";
+	this.getIntoListU = "/web/sailun/insurance/getStoreClaimList";
 	//  获取出入库记录
-	this.getinOrOutU = "/biz/bizGoods/Incomingandoutgoingrecordsquery";
+	this.getinOrOutU = "/web/biz/bizGoods/Incomingandoutgoingrecordsquery";
 	//  获取赔付记录
-	this.peifuListU = "/sailun/insurance/getStoreClaimList";
+	this.peifuListU = "/web/sailun/insurance/getStoreClaimList";
 	//  扫码出库
-	this.outStoreU = "/biz/bizGoods/ScanCodeOut";
+	this.outStoreU = "/web/biz/bizGoods/ScanCodeOut";
 	//  获取签约等级
-	this.getSignLvU = "/bizLogin/enum";
+	this.getSignLvU = "/web/bizLogin/enum";
 	//  门店查询经销商库存
-	this.getStockListU = "/biz/bizAudit/QueryStoreAgentStock";
+	this.getStockListU = "/web/biz/bizAudit/QueryStoreAgentStock";
 	//  删除购物车记录
-	this.delCarMataxU = "/biz/bizCart/deleteOne";
+	this.delCarMataxU = "/web/biz/bizCart/deleteOne";
 	//  获取理赔单详情
-	this.getTlementInfoU = "/sailun/insurance/getTireInfo";
+	this.getTlementInfoU = "/web/sailun/insurance/getTireInfo";
 	//  生成核销code
-	this.getHxCodeU = "/biz/bizCoupon/save";
+	this.getHxCodeU = "/web/biz/bizCoupon/save";
 	//  获取门店门店核销码列表
-	this.getHxListU = "/biz/bizCoupon/selectCoupon";
+	this.getHxListU = "/web/biz/bizCoupon/selectCoupon";
 	//  获取物料筛选条件
-	this.getWuliaoAntionU = "/biz/bizCoupon/condition";
+	this.getWuliaoAntionU = "/web/biz/bizCoupon/condition";
 	//请求文章 根据id
-	this.getOneDetails = "/biz/bizArticle/getOneDetails";
+	this.getOneDetails = "/web/biz/bizArticle/getOneDetails";
 	//厂家宣传
-	// this.getArticle="/biz/bizArticle/list"
+	// this.getArticle="/web/biz/bizArticle/list"
 	// 获取地址管理
 	// this.getAddress="/sys/bizReceiptAddress/paget"
 
 	//  获取地址列表
-	this.getAddressListU = "/sys/bizReceiptAddress/page";
+	this.getAddressListU = "/web/sys/bizReceiptAddress/page";
 	//  门店新增收货地址
-	this.addAddressU = "/sys/bizReceiptAddress/save";
+	this.addAddressU = "/web/sys/bizReceiptAddress/save";
 	//  查看门店自己的优惠券
-	// this.searchKuCunU = "/sys/bizStoreRegistrationSpree/page";
+	// this.searchKuCunU = "/web/sys/bizStoreRegistrationSpree/page";
 	///  查看门店自己的库存
-	this.searchKuCunU = "/biz/bizGoods/storeSelectStock";
+	this.searchKuCunU = "/web/biz/bizGoods/storeSelectStock";
 	//  门店查询返利明细
-	this.lookUserTotalU = "/biz/bizStoreReward/page";
+	this.lookUserTotalU = "/web/biz/bizStoreReward/page";
 	// 获取优惠券
-	this.getCouponListU = "/sys/bizStoreRegistrationSpree/page";
+	this.getCouponListU = "/web/sys/bizStoreRegistrationSpree/page";
 	// 查询门店进货分析
-	this.getStoreIntoListU = "/base/bizOrder/caculateStore";
+	this.getStoreIntoListU = "/web/base/bizOrder/caculateStore";
 	// 检查版本
-	this.checkVersionU = "/biz/getAppVersion?type=1";
+	this.checkVersionU = "/web/biz/getAppVersion?type=1";
 	//  上传门店车辆图片接口
-	this.uploadCarPhotoU = "/sailun/insurance/carPictureUpload";
+	this.uploadCarPhotoU = "/web/sailun/insurance/carPictureUpload";
 	//我的供应商
-	this.getSupplier = "/biz/bizStoreAgent/mySuppliers";
+	this.getSupplier = "/web/biz/bizStoreAgent/mySuppliers";
 	//获取跑马灯list
-	this.getMessageList = "/mobile/sysMessage/getMessageList";
+	this.getMessageList = "/web/mobile/sysMessage/getMessageList";
 	//获取新版本
-	this.getNewVersionU = "/file/getShopApk";
+	this.getNewVersionU = "/web/file/getShopApk";
 	//上传门店行驶证照片
-	this.uploadUserCarU = "/sailun/insurance/carPictureUpload";
+	this.uploadUserCarU = "/web/sailun/insurance/carPictureUpload";
 	//离线缓存工单
 	this.saveJxItemU = "/event/queryEventLX/";
 	//轮播图
-	this.getbannerLists = "/biz/bizStoreBrand/selectStoreBrandBanner";
+	this.getbannerLists = "/web/biz/bizStoreBrand/selectStoreBrandBanner";
 	//获取商品分类
-	this.getTypes = "/biz/bizGoodsType/selectProductCategory";
+	this.getTypes = "/web/biz/bizGoodsType/selectProductCategory";
 	// 获取商品
-	this.getshopLists = "/biz/bizGoodsType/selectCategoryItem";
+	this.getshopLists = "/web/biz/bizGoodsType/selectCategoryItem";
 	//加入购物车
-	this.addShopCart = "/sailun/bizIntegralCart/save";
+	this.addShopCart = "/web/sailun/bizIntegralCart/save";
 	//查看购物车
-	this.getShopCart = "/sailun/bizIntegralCart/page";
+	this.getShopCart = "/web/sailun/bizIntegralCart/page";
 	//修改购物车数量
-	this.fixCartNum = "/sailun/bizIntegralCart/update";
+	this.fixCartNum = "/web/sailun/bizIntegralCart/update";
 	//删除购物车
-	this.delCart = "/sailun/bizIntegralCart/deletes";
+	this.delCart = "/web/sailun/bizIntegralCart/deletes";
 	//下单
-	this.addOrder = "/biz/bizShopIntegralOrder/save";
+	this.addOrder = "/web/biz/bizShopIntegralOrder/save";
 	//查看兑换记录
-	this.getOrderannal = "/biz/bizIntegralOrderItem/page";
+	this.getOrderannal = "/web/biz/bizIntegralOrderItem/page";
 	//积分商场详情
-	this.getProductImage = "//sailun/bizProductImage/storeProductItem";
+	this.getProductImage = "/web//sailun/bizProductImage/storeProductItem";
 	//收货地址查询
-	this.getReceiptAddress = "/sys/bizReceiptAddress/list";
+	this.getReceiptAddress = "/web/sys/bizReceiptAddress/list";
 	// 立即下单
-	this.immediatelyOrder = "/biz/bizShopIntegralOrder/immediatelyOrder";
+	this.immediatelyOrder = "/web/biz/bizShopIntegralOrder/immediatelyOrder";
 	//查找更换收后地址
-	this.updateAddress = "/sys/bizReceiptAddress/update";
+	this.updateAddress = "/web/sys/bizReceiptAddress/update";
 	//删除收货地址
-	this.addressDel="/sys/bizReceiptAddress/delete";
+	this.addressDel="/web/sys/bizReceiptAddress/delete";
 	//根据商品名搜索积分商品
-	this.searchShop="/biz/bizCart/appSelectProduct";
+	this.searchShop="/web/biz/bizCart/appSelectProduct";
 	//查找订单
-	this.searchOrder="/biz/bizIntegralOrderItem/selectIntegralOrderProduct"
+	this.searchOrder="/web/biz/bizIntegralOrderItem/selectIntegralOrderProduct"
 	//消息列表
-	this.getMsg="/sailun/bizMessageForUser/getMessageCategory";
+	this.getMsg="/web/sailun/bizMessageForUser/getMessageCategory";
 	//消息详情
-	this.getMsgdetails="/sailun/bizMessageForUser/list";
+	this.getMsgdetails="/web/sailun/bizMessageForUser/list";
 	//消息已阅
-	this.updateMessage="/sailun/bizMessageForUser/updateMessage";
+	this.updateMessage="/web/sailun/bizMessageForUser/updateMessage";
 	//修改签约地址
-	this.updatesign="/biz/bizStoreUpdateMessage/save";
+	this.updatesign="/web/biz/bizStoreUpdateMessage/save";
 	//查看签约地址
-	this.getsignAddress="/biz/bizStoreUpdateMessage/list";
+	this.getsignAddress="/web/biz/bizStoreUpdateMessage/list";
 	//查看核销详情页
-	this.hexiaoInfo="/biz/bizCoupon/list";
+	this.hexiaoInfo="/web/biz/bizCoupon/list";
 	//季度任务数据
-	this.selectQuarter="/biz/bizScanRecord/selectQuarter";
+	this.selectQuarter="/web/biz/bizScanRecord/selectQuarter";
 	//提交用户信息
-	this.MobileMessage="/biz/bizMobileMessage/save";
+	this.MobileMessage="/web/biz/bizMobileMessage/save";
 	//修改签约
-	this.SignlvUpdate="/biz/bizStoreUpdateSignlv/save";
+	this.SignlvUpdate="/web/biz/bizStoreUpdateSignlv/save";
 	//查看签约
-	this.SignlvList="/biz/bizStoreUpdateSignlv/list";
+	this.SignlvList="/web/biz/bizStoreUpdateSignlv/list";
 
 	/**********************************车主下单功能***********************************/
 	//根据门店id获取所有门店微信订单信息
-	this.getAllUndealCarOrder="/sailun/wxCarorderHead/caroder/getAllUndealCarOrderByStoreId";
-	this.getOrderInfo = "/sailun/wxCarorderHead/carorder/getOrderInfoById";
-	this.getStoreToMaktxInfoByBSP = "/biz/bizGoods/getStoreToMaktxInfoByBSP";
-	this.updateStoreToMaktxInfoByBSP = "/biz/bizGoods/updateStoreToMaktxInfoByBSP";
-	this.changeWxCarOrderStatus = "/sailun/wxCarorderHead/carorder/changeWxCarOrderStatus";
+	this.getAllUndealCarOrder="/web/sailun/wxCarorderHead/caroder/getAllUndealCarOrderByStoreId";
+	this.getOrderInfo = "/web/sailun/wxCarorderHead/carorder/getOrderInfoById";
+	this.getStoreToMaktxInfoByBSP = "/web/biz/bizGoods/getStoreToMaktxInfoByBSP";
+	this.updateStoreToMaktxInfoByBSP = "/web/biz/bizGoods/updateStoreToMaktxInfoByBSP";
+	this.changeWxCarOrderStatus = "/web/sailun/wxCarorderHead/carorder/changeWxCarOrderStatus";
 		/**********************************对账功能***********************************/
-	this.getConfirmMonth = "/biz/bizMonthDetail/getConfirmMonth";//获取已确认的月份
-	this.getMonthDetail = "/biz/bizMonthDetail/getMonthDetail";//获取月结明细
-	this.confirmMonthDetail = "/biz/bizMonthDetail/confirmMonthDetail";//确认月结明细
+	this.getConfirmMonth = "/web/biz/bizMonthDetail/getConfirmMonth";//获取已确认的月份
+	this.getMonthDetail = "/web/biz/bizMonthDetail/getMonthDetail";//获取月结明细
+	this.confirmMonthDetail = "/web/biz/bizMonthDetail/confirmMonthDetail";//确认月结明细
 
     //通过图片获取信息
-	this.licenseDiscern="/bizLogin/licenseDiscern";
+	this.licenseDiscern="/web/bizLogin/licenseDiscern";
 	//运营执行信息是否有效
-	this.verifyBusiness="/bizLogin/verifyBusiness";
+	this.verifyBusiness="/web/bizLogin/verifyBusiness";
 	//上传运营图片
-	this.storeUpdatalicense="/biz/bizStoreBasicInfo/storeUpdateLicense"
+	this.storeUpdatalicense="/web/biz/bizStoreBasicInfo/storeUpdateLicense"
 }
 $http.prototype.$postFile = function (url, data, callback) {
 	var urlT = this.ip + eval('this.' + url);

+ 35 - 35
script/vue_plugins.js

@@ -717,41 +717,41 @@ Vue.prototype.getCarNum = function(id, callback) {
     }
     //  获取新版本,然后下载安装
 Vue.prototype.getNewVersionUrl = function(c) {
-        // var data = '',
-        //     url = "checkVersionU",
-        //     _this = this;
-        // this.$get(url, data, function(ret) {
-        //     if (ret.code == 0 || ret.code == '0') {
-        //         if (ret.version != _this.getVersion()) {
-        //             if (api.systemType == 'ios') {
-        //                 api.alert({
-        //                     title: '新版本提示',
-        //                     msg: '检测到有新版本,请及时到APP Store 更新!',
-        //                     buttons:'我知道了!'
-        //                 }, function(ret, err) {
-        //                     if(ret){
-        //                       $api.clearStorage();
-        //                        _this.goWin("login ", "login.html", "");
-        //                     }
-        //                 });
-        //             } else {
-        //                 api.alert({
-        //                     title: '新版本提示',
-        //                     msg:ret.plus_msg,
-        //                     buttons:'立即更新'
-        //                 }, function(res) {
-        //                     if(res){
-        //                         _this.downLoadApp(ret.url, c);
-        //                     }
-        //                 });
-        //             }
-        //         } else {
-        //             api.toast({
-        //                 msg: '已是最新版本'
-        //             })
-        //         }
-        //     }
-        // })
+        var data = '',
+            url = "checkVersionU",
+            _this = this;
+        this.$get(url, data, function(ret) {
+            if (ret.code == 0 || ret.code == '0') {
+                if (ret.version != _this.getVersion()) {
+                    if (api.systemType == 'ios') {
+                        api.alert({
+                            title: '新版本提示',
+                            msg: '检测到有新版本,请及时到APP Store 更新!',
+                            buttons:'我知道了!'
+                        }, function(ret, err) {
+                            if(ret){
+                              $api.clearStorage();
+                               _this.goWin("login ", "login.html", "");
+                            }
+                        });
+                    } else {
+                        api.alert({
+                            title: '新版本提示',
+                            msg:ret.plus_msg,
+                            buttons:'立即更新'
+                        }, function(res) {
+                            if(res){
+                                _this.downLoadApp(ret.url, c);
+                            }
+                        });
+                    }
+                } else {
+                    api.toast({
+                        msg: '已是最新版本'
+                    })
+                }
+            }
+        })
     }
     //  下载版本
 Vue.prototype.downLoadApp = function(url, callback) {