Commit 3ca9fed3 authored by 黄奎's avatar 黄奎

页面修改

parent 4858a214
...@@ -4,28 +4,28 @@ ...@@ -4,28 +4,28 @@
<h2 class="block-title q-mb-lg">專人服務</h2> <h2 class="block-title q-mb-lg">專人服務</h2>
<q-form @submit="onSubmit" class="q-gutter-md"> <q-form @submit="onSubmit" class="q-gutter-md">
<div class="row q-gutter-xl desktop-only q-mb-lg q-pl-md"> <div class="row q-gutter-xl desktop-only q-mb-lg q-pl-md">
<q-input filled v-model="params.name" label="如何稱呼您" class="col" lazy-rules <q-input filled v-model="params.Name" label="如何稱呼您" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" /> :rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" />
<q-input filled v-model="params.phone" label="聯絡電話" class="col" lazy-rules <q-input filled v-model="params.Mobile" label="聯絡電話" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的聯絡電話哦']" /> :rules="[ val => val && val.length > 0 || '請填寫您的聯絡電話哦']" />
</div> </div>
<div class="row mobile-only q-mb-lg"> <div class="row mobile-only q-mb-lg">
<q-input filled v-model="params.name" label="如何稱呼您" class="col" lazy-rules <q-input filled v-model="params.Name" label="如何稱呼您" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" /> :rules="[ val => val && val.length > 0 || '請填寫您的稱呼']" />
</div> </div>
<div class="row mobile-only q-mb-lg"> <div class="row mobile-only q-mb-lg">
<q-input filled v-model="params.phone" label="聯絡電話" class="col" lazy-rules <q-input filled v-model="params.Mobile" label="聯絡電話" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的聯絡電話哦']" /> :rules="[ val => val && val.length > 0 || '請填寫您的聯絡電話哦']" />
</div> </div>
<div class="row q-mb-lg"> <div class="row q-mb-lg">
<q-input filled v-model="params.eMail" label="聯絡E-Mail" type="email" class="col" lazy-rules <q-input filled v-model="params.EMail" label="聯絡E-Mail" type="email" class="col" lazy-rules
:rules="[ val => val && val.length > 0 || '請填寫您的聯絡E-Mail哦']" /> :rules="[ val => val && val.length > 0 || '請填寫您的聯絡E-Mail哦']" />
</div> </div>
<div class="row q-mb-lg"> <div class="row q-mb-lg">
<q-input filled v-model="params.remark" label="備註" class="col" type="textarea" /> <q-input filled v-model="params.Remarks" label="備註" class="col" type="textarea" />
</div> </div>
<div class="row q-mb-lg"> <div class="row q-mb-lg">
<q-btn type="submit" unelevated color="primary" size="lg" label="送出" class="col" /> <q-btn type="submit" unelevated color="primary" size="lg" label="送出" class="col" @click="onSubmit" />
</div> </div>
</q-form> </q-form>
</div> </div>
...@@ -37,15 +37,26 @@ ...@@ -37,15 +37,26 @@
data() { data() {
return { return {
params: { params: {
name: "", Name: "",
phone: "", Mobile: "",
eMail: "", EMail: "",
remark: "" Remarks: "",
RB_Group_Id: 0,
} }
}; };
}, },
methods: { methods: {
onSubmit() { onSubmit() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.params.RB_Group_Id = jObj.GroupId;
this.apipost(
"ws_post_SetService", this.params,
res => {
if (res.data.resultCode == 1) {
this.params.Name = '';
this.params.Mobile = '';
this.params.EMail = '';
this.params.Remarks = '';
this.$q.notify({ this.$q.notify({
color: "green-4", color: "green-4",
textColor: "white", textColor: "white",
...@@ -53,6 +64,10 @@ ...@@ -53,6 +64,10 @@
message: "提交成功" message: "提交成功"
}); });
} }
},
err => {}
);
}
} }
}; };
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
<div class="footer-top"> <div class="footer-top">
<div class="footer-link"> <div class="footer-link">
<ul class="hor_footuu"> <ul class="hor_footuu">
<li>{{dataList.Config.Name}}</li> <li><a @click="CommonJump('/index',{})">{{dataList.Config.Name}}</a></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 @click="CommonJump(item.url,{})">{{item.title}}</a> <a @click="CommonJump(item.url,{})">{{item.title}}</a>
</li> </li>
......
...@@ -234,7 +234,6 @@ ...@@ -234,7 +234,6 @@
data() { data() {
return { return {
slide: 0, slide: 0,
searchKey: "", searchKey: "",
searchDate: "", searchDate: "",
searchEndDate: "", searchEndDate: "",
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
dataList: {}, dataList: {},
//集团编号 //集团编号
RB_Group_Id: 0, RB_Group_Id: 0,
}; };
}, },
created() { created() {
...@@ -47,13 +48,13 @@ ...@@ -47,13 +48,13 @@
}) })
}, },
mounted() { mounted() {
localStorage.clear();
//获取集团数据 //获取集团数据
if (localStorage.baseifo) { if (localStorage.baseifo) {
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;
} else { } else {
this.getGroupData(); this.getGroupData();
}
//获取网站基础配置 //获取网站基础配置
if (localStorage.baseifo) { if (localStorage.baseifo) {
var jObj = JSON.parse(window.localStorage.getItem('baseifo')); var jObj = JSON.parse(window.localStorage.getItem('baseifo'));
...@@ -61,9 +62,10 @@ ...@@ -61,9 +62,10 @@
this.baseinfo.name = jObj.Config.Name; this.baseinfo.name = jObj.Config.Name;
this.baseinfo.nav.navs = jObj.HeaderList; this.baseinfo.nav.navs = jObj.HeaderList;
this.baseinfo.nav.bg = jObj.Config.BgColor; this.baseinfo.nav.bg = jObj.Config.BgColor;
this.dataList=jObj; this.dataList = jObj;
} else { } else {
this.getData(); this.getConfigData();
}
} }
}, },
methods: { methods: {
...@@ -81,6 +83,7 @@ ...@@ -81,6 +83,7 @@
"admin_get_GetGroupDomain", msg, "admin_get_GetGroupDomain", msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.RB_Group_Id = res.data.data.GroupId;
var jsonData = JSON.stringify(res.data.data); var jsonData = JSON.stringify(res.data.data);
window.localStorage.setItem("groupinfo", jsonData); window.localStorage.setItem("groupinfo", jsonData);
} }
...@@ -88,10 +91,13 @@ ...@@ -88,10 +91,13 @@
err => {} err => {}
); );
}, },
getData() { //获取网站配置数据
getConfigData() {
let locationName = window.location.hostname;
this.apipost( this.apipost(
"ws_get_GetWebSiteConfig", { "ws_get_GetWebSiteConfig", {
RB_Group_Id: this.RB_Group_Id RB_Group_Id: this.RB_Group_Id,
B2BDomain: locationName
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
......
...@@ -236,10 +236,11 @@ ...@@ -236,10 +236,11 @@
}; };
}, },
created() { created() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
}, },
mounted() { mounted() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
this.getAbout(); this.getAbout();
}, },
methods: { methods: {
...@@ -252,7 +253,6 @@ ...@@ -252,7 +253,6 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if (res.data.data) { if (res.data.data) {
this.AboutData = res.data.data; this.AboutData = res.data.data;
console.log("AboutData", this.AboutData);
} }
} }
}, },
......
This diff is collapsed.
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