Commit b5a45946 by 施宇

Merge branch 'XK_sample20190923'

# Conflicts:
#	view/14.js
parents d0c1e932 04738305
...@@ -142,6 +142,19 @@ export default { ...@@ -142,6 +142,19 @@ export default {
} }
} }
}, },
beforeCreate() {
if (!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
let url = "";
switch (window.location.hostname) {
case "m.liexin.com":
window.location.href = "http://www.liexin.com/v3/sample";
break;
default:
window.location.href = window.location.origin + "/v3/sample";
break;
}
}
},
created() { created() {
this.$store.dispatch({ this.$store.dispatch({
type: "getClasslist" type: "getClasslist"
...@@ -198,25 +211,24 @@ export default { ...@@ -198,25 +211,24 @@ export default {
.catch(function(err) {}); .catch(function(err) {});
}, },
yaoqing(item) { yaoqing(item) {
let loginpta = util.isLogin() //1强登入态 let loginpta = util.isLogin(); //1强登入态
if (loginpta!=1) { if (loginpta != 1) {
window.location.href = window.location.href =
"/v3/login?referer=" + encodeURIComponent(window.location.href); "/v3/login?referer=" + encodeURIComponent(window.location.href);
return; return;
} else { } else {
if (this.applyCount!=0) { if (this.applyCount != 0) {
if(item.goods_info&&item.goods_info.stock){ if (item.goods_info && item.goods_info.stock) {
this.$router.push({ this.$router.push({
path: "/sampleapply", path: "/sampleapply",
query: { query: {
id: item.goods_id id: item.goods_id
} }
}); });
}else{ } else {
Toast("样品库存不足"); Toast("样品库存不足");
} }
} else {
}else{
this.getPop = true; this.getPop = true;
} }
} }
......
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment