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

页面修改

parent 4858a214
......@@ -4,28 +4,28 @@
<h2 class="block-title q-mb-lg">專人服務</h2>
<q-form @submit="onSubmit" class="q-gutter-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 || '請填寫您的稱呼']" />
<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 || '請填寫您的聯絡電話哦']" />
</div>
<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 || '請填寫您的稱呼']" />
</div>
<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 || '請填寫您的聯絡電話哦']" />
</div>
<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哦']" />
</div>
<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 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>
</q-form>
</div>
......@@ -37,21 +37,36 @@
data() {
return {
params: {
name: "",
phone: "",
eMail: "",
remark: ""
Name: "",
Mobile: "",
EMail: "",
Remarks: "",
RB_Group_Id: 0,
}
};
},
methods: {
onSubmit() {
this.$q.notify({
color: "green-4",
textColor: "white",
icon: "cloud_done",
message: "提交成功"
});
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({
color: "green-4",
textColor: "white",
icon: "cloud_done",
message: "提交成功"
});
}
},
err => {}
);
}
}
};
......
......@@ -273,7 +273,7 @@
<div class="footer-top">
<div class="footer-link">
<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">
<a @click="CommonJump(item.url,{})">{{item.title}}</a>
</li>
......
......@@ -234,7 +234,6 @@
data() {
return {
slide: 0,
searchKey: "",
searchDate: "",
searchEndDate: "",
......
......@@ -39,6 +39,7 @@
dataList: {},
//集团编号
RB_Group_Id: 0,
};
},
created() {
......@@ -47,23 +48,24 @@
})
},
mounted() {
localStorage.clear();
//获取集团数据
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();
//获取网站基础配置
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.getConfigData();
}
}
},
methods: {
......@@ -81,6 +83,7 @@
"admin_get_GetGroupDomain", msg,
res => {
if (res.data.resultCode == 1) {
this.RB_Group_Id = res.data.data.GroupId;
var jsonData = JSON.stringify(res.data.data);
window.localStorage.setItem("groupinfo", jsonData);
}
......@@ -88,10 +91,13 @@
err => {}
);
},
getData() {
//获取网站配置数据
getConfigData() {
let locationName = window.location.hostname;
this.apipost(
"ws_get_GetWebSiteConfig", {
RB_Group_Id: this.RB_Group_Id
RB_Group_Id: this.RB_Group_Id,
B2BDomain: locationName
},
res => {
if (res.data.resultCode == 1) {
......
......@@ -99,11 +99,11 @@
</template>
<script>
//出團表 group -Start
import travelList from "../components/group/travel-list";
import travelList from "../components/group/travel-list";
//出團表 group -End
//搜尋區塊(輪播橫)search_s -Start
import searchs1 from "../components/search_s/search_s1";
import searchs1 from "../components/search_s/search_s1";
import searchs2 from "../components/search_s/search_s2";
import searchs3 from "../components/search_s/search_s3";
//搜尋區塊(輪播橫)search_s -End
......@@ -236,10 +236,11 @@
};
},
created() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
},
mounted() {
var jObj = JSON.parse(window.localStorage.getItem('groupinfo'));
this.RB_Group_Id = jObj.GroupId;
this.getAbout();
},
methods: {
......@@ -252,7 +253,6 @@
if (res.data.resultCode == 1) {
if (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