Commit e834bab2 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents fbc6b632 c7ae9f7e
...@@ -5,7 +5,8 @@ import md5 from 'js-md5' ...@@ -5,7 +5,8 @@ import md5 from 'js-md5'
//域名管理对象 //域名管理对象
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = ''; let domainUrl = '';
domainUrl = "http://192.168.0.110"; domainUrl = "http://192.168.2.214:8082";
//domainUrl="http://192.168.0.110";
let locationName = window.location.hostname; let locationName = window.location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) { if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com"; domainUrl = "http://testapi.oytour.com";
...@@ -68,7 +69,7 @@ Vue.prototype.getLocalStorage = function () { ...@@ -68,7 +69,7 @@ Vue.prototype.getLocalStorage = function () {
} }
//向外跳转 //向外跳转
Vue.prototype.OpenNewUrl = function (URL){ Vue.prototype.OpenNewUrl = function (URL) {
if (URL != '') { if (URL != '') {
if (URL.indexOf("https") != -1) { if (URL.indexOf("https") != -1) {
var str = 'http://' + URL.substring(8); var str = 'http://' + URL.substring(8);
...@@ -81,3 +82,11 @@ Vue.prototype.OpenNewUrl = function (URL){ ...@@ -81,3 +82,11 @@ Vue.prototype.OpenNewUrl = function (URL){
} }
} }
} }
//公用跳转
Vue.prototype.CommonJump = function (path, obj) {
this.$router.push({
path: path,
query: obj
});
}
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<ul class="hor_footuu"> <ul class="hor_footuu">
<li>{{dataList.Config.Name}}</li> <li>{{dataList.Config.Name}}</li>
<li class="other_li" v-for="(item,index) in dataList.FooterList" :key="index"> <li class="other_li" v-for="(item,index) in dataList.FooterList" :key="index">
<a :href="item.Url" target="_blank">{{item.Title}}</a> <a @click="CommonJump(item.url,{})">{{item.title}}</a>
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -35,37 +35,77 @@ ...@@ -35,37 +35,77 @@
}, },
desc: "這是一家非常牛逼的旅遊網站" desc: "這是一家非常牛逼的旅遊網站"
}, },
headType: 0, headType: 1,
dataList:{} dataList: {},
//集团编号
RB_Group_Id: 0,
}; };
}, },
created() { created() {
this.$root.$on('change-head-style', param => { this.$root.$on('change-head-style', param => {
this.changeHeadHandler(param); this.changeHeadHandler(param);
this.getData();
}) })
}, },
mounted() {
//获取集团数据
if (localStorage.baseifo) {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
} else {
this.getGroupData();
}
//获取网站基础配置
if (localStorage.baseifo) {
var jObj = JSON.parse(window.localStorage.getItem('baseifo'));
this.baseinfo.logo = jObj.Config.Logo;
this.baseinfo.name = jObj.Config.Name;
this.baseinfo.nav.navs = jObj.HeaderList;
this.baseinfo.nav.bg = jObj.Config.BgColor;
this.dataList=jObj;
} else {
this.getData();
}
},
methods: { methods: {
changeHeadHandler(t) { changeHeadHandler(t) {
this.headType = t; this.headType = t;
}, },
//获取集团数据
getGroupData() {
let locationName = window.location.hostname;
var msg = {
GroupId: 0,
B2BDomain: locationName
};
this.apipost(
"admin_get_GetGroupDomain", msg,
res => {
if (res.data.resultCode == 1) {
var jsonData = JSON.stringify(res.data.data);
window.localStorage.setItem("groupinfo", jsonData);
}
},
err => {}
);
},
getData() { getData() {
this.apipost( this.apipost(
"ws_get_GetHomePage", { "ws_get_GetWebSiteConfig", {
RB_Group_Id: 2 RB_Group_Id: this.RB_Group_Id
}, },
res => { res => {
console.log(res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList=res.data.data; this.dataList = res.data.data;
if(this.dataList){ if (this.dataList) {
this.baseinfo.logo=this.dataList.Config.Logo; var jsonData = JSON.stringify(res.data.data);
this.baseinfo.name=this.dataList.Config.Name; window.localStorage.setItem("baseifo", jsonData);
this.baseinfo.nav.navs=this.dataList.HeaderList; this.baseinfo.logo = this.dataList.Config.Logo;
this.baseinfo.nav.bg=this.dataList.Config.BgColor; this.baseinfo.name = this.dataList.Config
.Name;
this.baseinfo.nav.navs = this.dataList.HeaderList;
this.baseinfo.nav.bg = this.dataList
.Config.BgColor;
} }
} else {
} }
}, },
err => {} err => {}
......
<template>
<q-page>
<div>
{{AboutData}}
</div>
</q-page>
</template>
<script>
export default {
name: "PageAbout",
data() {
return {
RB_Group_Id: 0,
AboutData: {},
};
},
created() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
},
mounted() {
this.getAbout();
},
methods: {
getAbout() {
this.apipost(
"ws_get_GetAboutPage", {
RB_Group_Id: this.RB_Group_Id
},
res => {
if (res.data.resultCode == 1) {
if (res.data.data) {
this.AboutData = res.data.data;
console.log("AboutData", this.AboutData);
}
}
},
err => {}
);
}
},
};
</script>
<style scoped>
.contract {
padding-top: 70px;
padding-bottom: 40px;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.contract .title {
font-size: 25px;
}
</style>
<template>
<q-page>
<div class="contract">
<h1 class="title">旅遊合約書下載</h1>
<ul class="download-block">
<li v-for="(item,index) in ContractList" :key="index">
<a :href="item.Url" target="_blank">
<i class="material-icons"> </i>
<p>{{item.Name}}</p>
</a></li>
</ul>
</div>
</q-page>
</template>
<script>
export default {
props: [],
data() {
return {
RB_Group_Id: 0,
ContractList: [],
};
},
created() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
},
mounted() {
this.getContract();
},
methods: {
getContract() {
this.apipost(
"ws_get_GetContractPage", {
RB_Group_Id: this.RB_Group_Id
},
res => {
if (res.data.resultCode == 1) {
if (res.data.data) {
this.ContractList = res.data.data;
}
}
},
err => {}
);
}
},
};
</script>
<style>
.tour_visa {
padding-top: 70px;
padding-bottom: 40px;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.tour_visa .title {
font-size: 25px;
}
.tour_visa .tourtable {
width: 100%;
font-size: 14px;
color: #666;
border-collapse: collapse;
}
.tour_visa .tourtable thead th {
background-color: #03A9F4;
color: #fff;
padding: 10px 0;
margin: 0;
border: 0;
vertical-align: baseline;
font-weight: 700;
text-align: center;
}
.tour_visa .tourtable thead th:nth-child(6) {
width: 50%;
}
.tour_visa .tourtable tbody td {
vertical-align: middle;
padding: 8px;
border-bottom: 1px solid #ddd;
text-align: center;
}
</style>
<template>
<q-page>
<div class="tour_visa">
<h1 class="title">護照簽證費用說明</h1>
<table class="tourtable">
<thead>
<tr>
<th>項目</th>
<th>工作天</th>
<th>證件效期</th>
<th>可停留天數</th>
<th>辦證費用</th>
<th>備註</th>
</tr>
</thead>
<tbody>
<tr v-for="(item,index) in CertificateList" :key="index">
<td>
{{item.Name}}
</td>
<td>
{{item.WorkDay}}
</td>
<td>
{{item.Validity}}
</td>
<td>
{{item.StayDay}}
</td>
<td>
{{item.Fee}}
</td>
<td>
<span v-html="item.Notice"></span>
</td>
</tr>
</tbody>
</table>
</div>
</q-page>
</template>
<script>
export default {
props: [],
data() {
return {
RB_Group_Id: 0,
CertificateList: [],
};
},
created() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
},
mounted() {
this.getCertificate();
},
methods: {
getCertificate() {
this.apipost(
"ws_get_GetTourVisaPage", {
RB_Group_Id: this.RB_Group_Id
},
res => {
if (res.data.resultCode == 1) {
if (res.data.data) {
this.CertificateList = res.data.data;
}
}
},
err => {}
);
}
},
};
</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',
component: () =>
import('pages/Index.vue')
},
{
path: '/About', //关于我们
component: () =>
import('pages/About.vue')
}, {
path: '/contract', //契约管理
component: () =>
import('pages/contract.vue')
}, {
path: '/tour_visa', //签证护照管理
component: () =>
import('pages/tour_visa.vue')
}
]
},
]
// Always leave this as last one // Always leave this as last one
if (process.env.MODE !== 'ssr') { 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