Commit b97235d9 by 施宇

11

parent 48687601
......@@ -143,6 +143,28 @@ export default {
}
},
created() {
if (!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
let url = "";
switch (window.location.hostname) {
case "m.ichunt.com":
url = "https://www.ichunt.com";
break;
case "szm.ichunt.com":
url = "https://sz.ichunt.com";
break;
case "tm.ichunt.com":
url = "https://t.ichunt.com";
break;
case "m.liexin.com":
url = "http://www.liexin.com";
break;
default:
url = "https://www.ichunt.com";
break;
}
window.location.href = url+'/v3/sample'
}
this.$store.dispatch({
type: "getClasslist"
});
......@@ -198,25 +220,24 @@ export default {
.catch(function(err) {});
},
yaoqing(item) {
let loginpta = util.isLogin() //1强登入态
if (loginpta!=1) {
let loginpta = util.isLogin(); //1强登入态
if (loginpta != 1) {
window.location.href =
"/v3/login?referer=" + encodeURIComponent(window.location.href);
return;
} else {
if (this.applyCount!=0) {
if(item.goods_info&&item.goods_info.stock){
if (this.applyCount != 0) {
if (item.goods_info && item.goods_info.stock) {
this.$router.push({
path: "/sampleapply",
query: {
id: item.goods_id
}
});
}else{
Toast("样品库存不足");
} else {
Toast("样品库存不足");
}
}else{
} else {
this.getPop = true;
}
}
......
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