qukaidi před 4 roky
rodič
revize
8f1632493e

+ 8 - 8
luntai/cartList_body.html

@@ -209,14 +209,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

@@ -364,14 +364,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,
@@ -406,14 +406,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) {

+ 52 - 52
luntai/index.html

@@ -252,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', '');
 				},
@@ -274,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 () {
@@ -297,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", {
@@ -348,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'
 					//  });

+ 16 - 16
luntai/integral_details.html

@@ -314,14 +314,14 @@
                     });
                 },
                 addShopCart: function () {
-                    // if (this.status == 3) {
-                    //     api.alert({
-                    //         title: '系统提示',
-                    //         msg: '门店已冻结,请找相关业务经理解冻!',
-                    //     }, function (ret, err) {
-                    //     });
-                    //     return;
-                    // }
+                    if (this.status == 3) {
+                        api.alert({
+                            title: '系统提示',
+                            msg: '门店已冻结,请找相关业务经理解冻!',
+                        }, function (ret, err) {
+                        });
+                        return;
+                    }
                     if (this.list.productQtyStock == 0) {
                         api.toast({
                             msg: '很抱歉,当前商品暂时缺货'
@@ -358,14 +358,14 @@
                     })
                 },
                 showPopup: function () {
-                    // if (this.status == 3) {
-                    //     api.alert({
-                    //         title: '系统提示',
-                    //         msg: '门店已冻结,请找相关业务经理解冻!',
-                    //     }, function (ret, err) {
-                    //     });
-                    //     return;
-                    // }
+                    if (this.status == 3) {
+                        api.alert({
+                            title: '系统提示',
+                            msg: '门店已冻结,请找相关业务经理解冻!',
+                        }, function (ret, err) {
+                        });
+                        return;
+                    }
                     if (this.list.productQtyStock == 0) {
                         api.toast({
                             msg: '很抱歉,当前商品暂时缺货'

+ 8 - 8
luntai/integral_index.html

@@ -297,14 +297,14 @@
                     this.activeId = index;
                 },
                 addShopCart: function (list) {
-                    // if (this.status == 3) {
-                    //     api.alert({
-                    //         title: '系统提示',
-                    //         msg: '门店已冻结,请找相关业务经理解冻!',
-                    //     }, function (ret, err) {
-                    //     });
-                    //     return;
-                    // }
+                    if (this.status == 3) {
+                        api.alert({
+                            title: '系统提示',
+                            msg: '门店已冻结,请找相关业务经理解冻!',
+                        }, function (ret, err) {
+                        });
+                        return;
+                    }
                     if (list.productQtyStock == 0 || list.productQtyStock == null) {
                         api.toast({
                             msg: '很抱歉,当前商品暂时缺货'

+ 7 - 7
luntai/integral_shop.html

@@ -540,13 +540,13 @@
                         this.showToast('至少选择一件商品');
                         return;
                     }
-                    // if (this.status == 3) {
-                    //     api.alert({
-                    //         title: '系统提示',
-                    //         msg: '门店已冻结,请找相关业务经理解冻!'
-                    //     });
-                    //     return;
-                    // }
+                    if (this.status == 3) {
+                        api.alert({
+                            title: '系统提示',
+                            msg: '门店已冻结,请找相关业务经理解冻!'
+                        });
+                        return;
+                    }
                     this.show = true;
                     var data = {
                         "url": "json",

+ 41 - 41
luntai/meber.html

@@ -434,21 +434,21 @@
 				 *  查看二维码
 				 */
 				inFanli: function () {
-					// var _this = this
-					// if (this.agentInfo.status == 5) {
-						// api.confirm({
-						// 	title: '系统提示',
-						// 	msg: '门店已冻结,请找相关业务经理解冻!',
-						// 	buttons: ['确定', '激活']
-						// }, function (ret, err) {
-						// 	var index = ret.buttonIndex;
-						// 	if (index == 2) {
-						// 		_this.goWin("activation", "activation_win.html", "");
-						// 	}
-						// });
-						// _this.show = false;
-						// return;
-					// }
+					var _this = this
+					if (this.agentInfo.status == 5) {
+						api.confirm({
+							title: '系统提示',
+							msg: '门店已冻结,请找相关业务经理解冻!',
+							buttons: ['确定', '激活']
+						}, function (ret, err) {
+							var index = ret.buttonIndex;
+							if (index == 2) {
+								_this.goWin("activation", "activation_win.html", "");
+							}
+						});
+						_this.show = false;
+						return;
+					}
 					this.show = true
 				},
 				lookAgentQrcode: function () {
@@ -617,19 +617,19 @@
 				},
 				insignAddress: 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('sign_address', 'sign_address.html', {
 						addressModify: this.agentInfo.addressModify,
 						contractTask: this.agentInfo.contractTask
@@ -637,20 +637,20 @@
 				},
 				inaddress: 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('address', 'address_win.html');
 				},
 				//IOS获取动态ICON