Commit 595a8ec3 authored by 黄奎's avatar 黄奎

页面修改

parent 6ee74389
...@@ -117,7 +117,6 @@ ...@@ -117,7 +117,6 @@
</q-item> </q-item>
<q-item> <q-item>
<q-item-section> <q-item-section>
<q-item-label class="text-grey">報名</q-item-label>
<q-btn type="a" :label="props.row.seat>0||props.row.isSubstitution?'報名GO!':'無法預訂'" <q-btn type="a" :label="props.row.seat>0||props.row.isSubstitution?'報名GO!':'無法預訂'"
:color="props.row.seat>0||props.row.isSubstitution?'indigo':'grey'" rounded unelevated :color="props.row.seat>0||props.row.isSubstitution?'indigo':'grey'" rounded unelevated
:disable="props.row.seat==0&&props.row.isSubstitution" @click="goSignUp(props.row.seat)" /> :disable="props.row.seat==0&&props.row.isSubstitution" @click="goSignUp(props.row.seat)" />
......
...@@ -86,12 +86,10 @@ ...@@ -86,12 +86,10 @@
if (localStorage.ToDay) { if (localStorage.ToDay) {
if (localStorage.ToDay != this.ToDay) { if (localStorage.ToDay != this.ToDay) {
localStorage.removeItem("groupinfo"); localStorage.removeItem("groupinfo");
localStorage.removeItem("site");
localStorage.ToDay = this.ToDay; localStorage.ToDay = this.ToDay;
} }
} else { } else {
localStorage.removeItem("groupinfo"); localStorage.removeItem("groupinfo");
localStorage.removeItem("site");
localStorage.ToDay = this.ToDay; localStorage.ToDay = this.ToDay;
} }
...@@ -101,12 +99,8 @@ ...@@ -101,12 +99,8 @@
if (localStorage.groupinfo) { if (localStorage.groupinfo) {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo')); var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId; this.RB_Group_Id = jObj.GroupId;
if (localStorage.site) {} else {
this.getSite();
}
this.getConfigData(); this.getConfigData();
} else { } else {
this.getSite();
this.getGroupData(); this.getGroupData();
//获取网站基础配置 //获取网站基础配置
if (localStorage.baseifo) { if (localStorage.baseifo) {
...@@ -139,31 +133,16 @@ ...@@ -139,31 +133,16 @@
this.isShowTop = false; this.isShowTop = false;
} }
}, },
changeHeadHandler(t) { changeHeadHandler(t) {
this.headType = t; this.headType = t;
}, },
getSite() {
if (this.RB_Group_Id > 0) {
this.apipost(
"b2b_get_site", {},
res => {
if (res.data.resultCode == 1) {
var jsonData = JSON.stringify(res.data.data);
window.localStorage.setItem("site", jsonData);
}
},
err => {}
);
}
},
//获取集团数据 //获取集团数据
getGroupData() { getGroupData() {
let locationName = window.location.hostname; let locationName = window.location.hostname;
var msg = { var msg = {
GroupId: 0, GroupId: 0,
B2BDomain: locationName B2BDomain: locationName,
IsGetConfigSite:1,
}; };
this.apipost( this.apipost(
"admin_get_GetGroupDomain", msg, "admin_get_GetGroupDomain", msg,
......
...@@ -1331,9 +1331,9 @@ ...@@ -1331,9 +1331,9 @@
} }
} }
var companyId = -1; var companyId = -1;
if (localStorage.site) { if (localStorage.groupinfo) {
var siteArray = JSON.parse(localStorage.site); var groupinfo = JSON.parse(localStorage.groupinfo);
companyId = siteArray[0].companyId; companyId = groupinfo.siteList[0].companyId;
} }
this.SearchResult=this.qMsg.startDate+'-'+this.qMsg.endDate+' '+this.qMsg.searchKey; this.SearchResult=this.qMsg.startDate+'-'+this.qMsg.endDate+' '+this.qMsg.searchKey;
let msg = { let msg = {
......
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