|
|
@@ -103,7 +103,7 @@
|
|
|
// import xhPrivacy from "@/components/xh-privacy/xh-privacy.vue"; //隐私保护指引
|
|
|
import swiperBanner from "@/components/swiperBanner/index.vue"; //轮播
|
|
|
import hAddress from "@/components/h-address/address.vue"; //城市选择
|
|
|
-import tabs from '@/static/js/tabs' //专区入口
|
|
|
+// import tabs from '@/static/js/tabs' //专区入口
|
|
|
import { post } from "@/request/api.js";
|
|
|
import { formatBytes } from "@/utils/index";
|
|
|
export default {
|
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
searchKey: "", //搜索关键词
|
|
|
LocationCity: "深圳",
|
|
|
showAddress: false,
|
|
|
- tabs,
|
|
|
+ tabs: [],
|
|
|
totalBytesWritten: "0B", // 已经下载的数据长度
|
|
|
totalBytesExpectedToWrite: "0B", // 预期需要下载的数据总长度
|
|
|
filePath:"",
|
|
|
@@ -142,6 +142,7 @@ export default {
|
|
|
this.getBanner(); //获取轮播图
|
|
|
this.getAnnounce(); //获取公告列表
|
|
|
this.gethomeImg(); //活动列表
|
|
|
+ this.getTabs(); //获取专区
|
|
|
},
|
|
|
onHide() {},
|
|
|
methods: {
|
|
|
@@ -187,6 +188,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 获取专区
|
|
|
+ getTabs() {
|
|
|
+ post("local/menu/list").then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.tabs = res.data
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 活动列表
|
|
|
gethomeImg() {
|
|
|
post("v1/homeImg").then((res) => {
|