Commit 3c415b8a authored by 罗超's avatar 罗超

临时提交

parent 10e26eec
...@@ -7,12 +7,12 @@ Vue.prototype.domainManager = function() { ...@@ -7,12 +7,12 @@ Vue.prototype.domainManager = function() {
let domainUrl = ''; let domainUrl = '';
domainUrl = "http://192.168.2.214:8082"; domainUrl = "http://192.168.2.214:8082";
//domainUrl="http://192.168.0.110"; //domainUrl="http://192.168.0.110";
let locationName = window.location.hostname; //let locationName = location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) { // if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com"; // domainUrl = "http://testapi.oytour.com";
} else if (locationName.indexOf('oytour') !== -1) { // } else if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com"; // domainUrl = "http://reborn.oytour.com";
} // }
var obj = { var obj = {
//主地址 //主地址
DomainUrl: domainUrl, DomainUrl: domainUrl,
...@@ -60,12 +60,17 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) { ...@@ -60,12 +60,17 @@ Vue.prototype.apipost = function(cmd, msg, successCall, faildCall) {
//获取缓存 //获取缓存
Vue.prototype.getLocalStorage = function() { Vue.prototype.getLocalStorage = function() {
try {
var localStorageData = window.localStorage["b2bUser"]; var localStorageData = window.localStorage["b2bUser"];
if (localStorageData !== undefined && localStorageData != 'undefined') { if (localStorageData !== undefined && localStorageData != 'undefined') {
return JSON.parse(localStorageData); return JSON.parse(localStorageData);
} else { } else {
return null; return null;
} }
} catch (error) {
return null;
}
} }
//向外跳转 //向外跳转
......
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
}, },
mounted() { mounted() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo')); var jObj = JSON.parse(localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId; this.RB_Group_Id = jObj.GroupId;
this.getAbout(); this.getAbout();
}, },
......
...@@ -234,8 +234,11 @@ ...@@ -234,8 +234,11 @@
HomeData: {}, HomeData: {},
}; };
}, },
created(){
this.getAbout();
},
mounted() { mounted() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo')); var jObj = JSON.parse(localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId; this.RB_Group_Id = jObj.GroupId;
this.getAbout(); this.getAbout();
}, },
......
<template> <template>
<div>{{r}}</div> <div></div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {};
r: "",
r2: {
code: 0,
msg: "请求成功",
data: {
detail: {
id: 157017,
mall_id: 1285,
user_id: 57936,
token: "JP2RJdnGiUP3Kx-UKJpWVzT3mcBlqu",
data: { id: 167282, user_id: 57936, qr_code_id: 157017 },
created_at: "2020-06-28 11:45:58",
path: "pages/goods/goods",
use_number: 0
}
}
}
};
}, },
mounted() { mounted() {},
this.r = this.format(this.r2.data.detail.data); methods: {}
},
methods: {
format(e, t) {
var n = "";
for (var i in this.r2.data.detail.data)
n += "&" + i + "=" + (t ? encodeURIComponent(e[i]) : e[i]);
return n.substr(1);
}
}
}; };
</script> </script>
......
const routes = [{ const routes = [{
path: '/', path: '/',
component: () => component: () =>
import('layouts/HomeLayout.vue'), import ('layouts/HomeLayout.vue'),
children: [{ children: [{
path: '', path: '',
component: () => component: () =>
import('pages/Index.vue') import ('pages/Index.vue')
}, },
{ {
path: '/Index', path: '/Index',
component: () => component: () =>
import('pages/Index.vue') import ('pages/Index.vue')
}, },
{ {
path: '/About', //关于我们 path: '/About', //关于我们
component: () => component: () =>
import('pages/About.vue') import ('pages/About.vue')
}, { }, {
path: '/contract', //契约管理 path: '/contract', //契约管理
component: () => component: () =>
import('pages/contract.vue') import ('pages/contract.vue')
}, { }, {
path: '/tour_visa', //签证护照管理 path: '/tour_visa', //签证护照管理
component: () => component: () =>
import('pages/tour_visa.vue') import ('pages/tour_visa.vue')
}, { //行程 }, { //行程
path: '/details', path: '/details',
component: () => component: () =>
import('pages/details.vue') import ('pages/details.vue')
}, {
path: '/search', //签证护照管理
component: () =>
import ('pages/search.vue')
} }
] ]
}, },
...@@ -39,7 +43,7 @@ if (process.env.MODE !== 'ssr') { ...@@ -39,7 +43,7 @@ if (process.env.MODE !== 'ssr') {
routes.push({ routes.push({
path: '*', path: '*',
component: () => component: () =>
import('pages/Error404.vue') import ('pages/Error404.vue')
}) })
} }
......
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 to comment