Commit 1ebffdad by 施宇

Merge branch 'XK_sample20190923'

# Conflicts:
#	view/14.js
parents 8d2cdba9 1fea6a50
Showing with 7 additions and 2 deletions
......@@ -145,12 +145,17 @@ export default {
beforeCreate() {
if (!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
let url = "";
let paramsStr = '';
for(let k in this.$route.query){
paramsStr+=k+'='+this.$route.query[k]+'&'
}
paramsStr = paramsStr.slice(0,-1);
switch (window.location.hostname) {
case "m.liexin.com":
window.location.href = "http://www.liexin.com/v3/sample";
window.location.href = (paramsStr?("http://www.liexin.com/v3/sample?"+paramsStr):("http://www.liexin.com/v3/sample"));
break;
default:
window.location.href = window.location.origin + "/v3/sample";
window.location.href = window.location.origin + (paramsStr?("/v3/sample?"+paramsStr):("/v3/sample"));
break;
}
}
......
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