Browse Source

测试

master
zhangsiyu 2 years ago
parent
commit
b589520744
  1. BIN
      src/assets/log.png
  2. 5
      src/pages/home.css
  3. 17
      src/pages/home.vue
  4. 10
      src/units/home.vue

BIN
src/assets/log.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

5
src/pages/home.css

@ -442,12 +442,15 @@
height: 0.25rem; height: 0.25rem;
background: #0096DF; background: #0096DF;
margin: auto; margin: auto;
margin-top: 3.4375rem; margin-top: 2rem;
} }
.fwmw-text { .fwmw-text {
max-width: 90%;
font-size: 1.125rem; font-size: 1.125rem;
color: #666666; color: #666666;
margin: auto;
margin-top: 0.5rem;
} }
.ywfw-ul { .ywfw-ul {

17
src/pages/home.vue

@ -386,7 +386,7 @@
</div> </div>
<!-- <div class="foot-dow-list">联系我们</div> --> <!-- <div class="foot-dow-list">联系我们</div> -->
</div> </div>
<div class="last-text"> <div class="last-text" @click="gogxb">
{{ companyInfo.copyright }} {{ companyInfo.copyright }}
</div> </div>
</div> </div>
@ -545,6 +545,9 @@ export default {
}); });
}, },
methods: { methods: {
gogxb(){
window.location.href="https://beian.miit.gov.cn";
},
getSeo() { getSeo() {
this.$axios this.$axios
.post("https://gw.x-embers.com/api/index/seo", {}) .post("https://gw.x-embers.com/api/index/seo", {})
@ -655,12 +658,16 @@ export default {
this.ryzzImg.push(item.image); this.ryzzImg.push(item.image);
}); });
} }
for (let i = 1; i <= this.ywfwList.length; i++) { this.ywfwList.map(item=>{
let arr = this.contentInfo.ServiceCase.content.filter((item) => { let arr = this.contentInfo.ServiceCase.content.filter((ite) => {
return item.type.includes(String(i)); return ite.type.includes(String(item.id));
}); });
this.caseList.push(arr); this.caseList.push(arr);
} })
// for (let i = 1; i <= this.ywfwList.length; i++) {
// this.caseList.push(arr);
// }
for (let i = 0; i < this.caseList.length; i++) { for (let i = 0; i < this.caseList.length; i++) {
this.caseList[i].map((item, i) => { this.caseList[i].map((item, i) => {
item.id = i; item.id = i;

10
src/units/home.vue

@ -423,7 +423,7 @@ export default {
}, },
imgsArr: [], imgsArr: [],
host: "http://gw.x-embers.com/", host: "http://xhm.x-embers.com/",
service: {}, service: {},
flag: false, flag: false,
maskSwitch: false, maskSwitch: false,
@ -501,7 +501,7 @@ export default {
methods: { methods: {
getSeo() { getSeo() {
this.$axios this.$axios
.post("http://gw.x-embers.com/api/index/seo", {}) .post("http://xhm.x-embers.com/api/index/seo", {})
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.description = res.data.data.description; this.description = res.data.data.description;
@ -562,7 +562,7 @@ export default {
getMenu() { getMenu() {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://gw.x-embers.com/api/index/menu", url: "http://xhm.x-embers.com/api/index/menu",
params: {}, params: {},
}).then( }).then(
(res) => { (res) => {
@ -577,7 +577,7 @@ export default {
getContent() { getContent() {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://gw.x-embers.com/api/index/content", url: "http://xhm.x-embers.com/api/index/content",
params: {}, params: {},
}).then( }).then(
(res) => { (res) => {
@ -653,7 +653,7 @@ console.log(viewer);
getCompanyInfo() { getCompanyInfo() {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://gw.x-embers.com/api/index/companyInfo", url: "http://xhm.x-embers.com/api/index/companyInfo",
params: {}, params: {},
}).then( }).then(
(res) => { (res) => {

Loading…
Cancel
Save