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;
background: #0096DF;
margin: auto;
margin-top: 3.4375rem;
margin-top: 2rem;
}
.fwmw-text {
max-width: 90%;
font-size: 1.125rem;
color: #666666;
margin: auto;
margin-top: 0.5rem;
}
.ywfw-ul {

17
src/pages/home.vue

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

10
src/units/home.vue

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

Loading…
Cancel
Save