qukaidi 4 年之前
父節點
當前提交
6f9d1996d0
共有 3 個文件被更改,包括 85 次插入57 次删除
  1. 83 55
      luntai/index.html
  2. 1 1
      luntai/settlementDisInfo0_body.html
  3. 1 1
      luntai/settlementDisInfo_body.html

+ 83 - 55
luntai/index.html

@@ -48,8 +48,10 @@
 			<div class="page router fx1" :style="{'padding-bottom':footerHeight+'px'}" id="mescroll">
 				<div class="banner" id="mymain">
 					<van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
-						<van-swipe-item v-if="!storeBrand.length"><img src="image/banner.png"></van-swipe-item>
-						<van-swipe-item v-else v-for="(item,index) in storeBrand" :key="index"><img :src="item.imgPath">
+						<van-swipe-item @click="handleSee" v-if="!storeBrand.length"><img src="image/banner.png">
+						</van-swipe-item>
+						<van-swipe-item @click="handleSee" v-else v-for="(item,index) in storeBrand" :key="index"><img
+								:src="item.imgPath">
 						</van-swipe-item>
 					</van-swipe>
 				</div>
@@ -250,19 +252,19 @@
 				},
 				//  扫码出入库
 				scanInto: function (type) {
-					if (this.agentInfo.status == 3) {
-						api.confirm({
-									title: '系统提示',
-									msg: '门店已冻结,请找相关业务经理解冻!',
-									buttons: ['确定', '激活']
-								}, function (ret, err) {
-									var index = ret.buttonIndex;
-									if(index==2){
-										_this.goWin("activation", "activation_win.html", "");
-									}
-								});
-						return;
-					}
+					// if (this.agentInfo.status == 3) {
+					// 	api.confirm({
+					// 				title: '系统提示',
+					// 				msg: '门店已冻结,请找相关业务经理解冻!',
+					// 				buttons: ['确定', '激活']
+					// 			}, function (ret, err) {
+					// 				var index = ret.buttonIndex;
+					// 				if(index==2){
+					// 					_this.goWin("activation", "activation_win.html", "");
+					// 				}
+					// 			});
+					// 	return;
+					// }
 					var src = type == 1 ? 'saomaruku' : 'saomachuku';
 					this.goWin(src, src + '_win.html', '');
 				},
@@ -272,19 +274,19 @@
 					});
 				},
 				getStoreNet: function () {
-					if (this.agentInfo.status == 3) {
-					api.confirm({
-									title: '系统提示',
-									msg: '门店已冻结,请找相关业务经理解冻!',
-									buttons: ['确定', '激活']
-								}, function (ret, err) {
-									var index = ret.buttonIndex;
-									if(index==2){
-										_this.goWin("activation", "activation_win.html", "");
-									}
-								});
-						return;
-					}
+					// if (this.agentInfo.status == 3) {
+					// api.confirm({
+					// 				title: '系统提示',
+					// 				msg: '门店已冻结,请找相关业务经理解冻!',
+					// 				buttons: ['确定', '激活']
+					// 			}, function (ret, err) {
+					// 				var index = ret.buttonIndex;
+					// 				if(index==2){
+					// 					_this.goWin("activation", "activation_win.html", "");
+					// 				}
+					// 			});
+					// 	return;
+					// }
 					this.goWin("getStoreNet", "getStoreNet_win.html", {})
 				},
 				verifyBusiness: function () {
@@ -295,19 +297,19 @@
 					},
 						_this = this,
 						url = "verifyBusiness";
-					if (this.agentInfo.status == 3) {
-						api.confirm({
-									title: '系统提示',
-									msg: '门店已冻结,请找相关业务经理解冻!',
-									buttons: ['确定', '激活']
-								}, function (ret, err) {
-									var index = ret.buttonIndex;
-									if(index==2){
-										_this.goWin("activation", "activation_win.html", "");
-									}
-						});
-						return;
-					}
+					// if (this.agentInfo.status == 3) {
+					// 	api.confirm({
+					// 				title: '系统提示',
+					// 				msg: '门店已冻结,请找相关业务经理解冻!',
+					// 				buttons: ['确定', '激活']
+					// 			}, function (ret, err) {
+					// 				var index = ret.buttonIndex;
+					// 				if(index==2){
+					// 					_this.goWin("activation", "activation_win.html", "");
+					// 				}
+					// 	});
+					// 	return;
+					// }
 					this.$postuser(url, data, function (ret) {
 						if (ret.code == 0 && ret.data) {
 							_this.goWin("license_body", "license_body.html", {
@@ -346,19 +348,19 @@
 				//  扫码轮胎二维码
 				lipeiList: function () {
 					var _this = this;
-					if (this.agentInfo.status == 3) {
-						api.confirm({
-									title: '系统提示',
-									msg: '门店已冻结,请找相关业务经理解冻!',
-									buttons: ['确定', '激活']
-								}, function (ret, err) {
-									var index = ret.buttonIndex;
-									if(index==2){
-										_this.goWin("activation", "activation_win.html", "");
-									}
-								});
-						return;
-					}
+					// if (this.agentInfo.status == 3) {
+					// 	api.confirm({
+					// 				title: '系统提示',
+					// 				msg: '门店已冻结,请找相关业务经理解冻!',
+					// 				buttons: ['确定', '激活']
+					// 			}, function (ret, err) {
+					// 				var index = ret.buttonIndex;
+					// 				if(index==2){
+					// 					_this.goWin("activation", "activation_win.html", "");
+					// 				}
+					// 			});
+					// 	return;
+					// }
 					// 	this.goWin('settlementInfo', 'settlementInfo_win.html', {
 					// 		 code: '10000351'
 					//  });
@@ -477,6 +479,32 @@
 						}
 					});
 				},
+				handleSee: function () {
+					var _this = this;
+					var dateTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss');
+					api.ajax({
+						url: 'http://b2bcnapi.sailuntire.com/allstell/app/sailun/appNewsCount/save',
+						method: 'post',
+						headers: {
+							"Content-type": "application/json"
+						},
+						data: {
+							"body": {
+								"account": _this.storeId,
+								"appType": "1",
+								"id": 0,
+								"showTime": dateTime,
+								"tapTime": dateTime
+							}
+						}
+					}, function (ret, err) {
+						var obj = {
+							dateTime: dateTime
+						};
+						_this.goWin("news_win", "./news_win.html", obj);
+						// 不做提示
+					});
+				}
 			},
 			mounted: function () {
 				this.init();
@@ -490,4 +518,4 @@
 			}
 		})
 	}
-</script>
+</script>

+ 1 - 1
luntai/settlementDisInfo0_body.html

@@ -284,7 +284,7 @@
 	//  上传文件
 	function uploadFile(src) {
 		api.ajax({
-			url: "http://b2bcnapi.sailuntire.com/api/wx/sailun/insurance/tireImageUpload",
+			url: "http://b2bcnapi.sailuntire.com/api/test/wx/sailun/insurance/tireImageUpload",
 			method: 'post',
 			data: {
 				body: {

+ 1 - 1
luntai/settlementDisInfo_body.html

@@ -251,7 +251,7 @@
 	//  上传文件
 	function uploadFile(src) {
 		api.ajax({
-			url: "http://b2bcnapi.sailuntire.com/api/wx/sailun/insurance/tireImageUpload",
+			url: "http://b2bcnapi.sailuntire.com/api/test/wx/sailun/insurance/tireImageUpload",
 			method: 'post',
 			data: {
 				body: {