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

页面修改

parent 6ee74389
......@@ -117,7 +117,6 @@
</q-item>
<q-item>
<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!':'無法預訂'"
: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)" />
......
......@@ -86,12 +86,10 @@
if (localStorage.ToDay) {
if (localStorage.ToDay != this.ToDay) {
localStorage.removeItem("groupinfo");
localStorage.removeItem("site");
localStorage.ToDay = this.ToDay;
}
} else {
localStorage.removeItem("groupinfo");
localStorage.removeItem("site");
localStorage.ToDay = this.ToDay;
}
......@@ -101,12 +99,8 @@
if (localStorage.groupinfo) {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
if (localStorage.site) {} else {
this.getSite();
}
this.getConfigData();
} else {
this.getSite();
this.getGroupData();
//获取网站基础配置
if (localStorage.baseifo) {
......@@ -139,31 +133,16 @@
this.isShowTop = false;
}
},
changeHeadHandler(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() {
let locationName = window.location.hostname;
var msg = {
GroupId: 0,
B2BDomain: locationName
B2BDomain: locationName,
IsGetConfigSite:1,
};
this.apipost(
"admin_get_GetGroupDomain", msg,
......
......@@ -1331,9 +1331,9 @@
}
}
var companyId = -1;
if (localStorage.site) {
var siteArray = JSON.parse(localStorage.site);
companyId = siteArray[0].companyId;
if (localStorage.groupinfo) {
var groupinfo = JSON.parse(localStorage.groupinfo);
companyId = groupinfo.siteList[0].companyId;
}
this.SearchResult=this.qMsg.startDate+'-'+this.qMsg.endDate+' '+this.qMsg.searchKey;
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