Commit 52aade3a by 林家欣

联调首页上半部

parent 27fa6f5c
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"jquery": "^3.6.0", "jquery": "^3.6.0",
"js-cookie": "^2.2.1", "js-cookie": "^2.2.1",
"js-sha256": "^0.9.0", "js-sha256": "^0.9.0",
"moment": "^2.29.1",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"popper.js": "^1.16.1", "popper.js": "^1.16.1",
"qrcodejs2": "0.0.2", "qrcodejs2": "0.0.2",
......
...@@ -2,12 +2,26 @@ import { ...@@ -2,12 +2,26 @@ import {
POST POST
} from "../fetch.js" } from "../fetch.js"
// 根据业主id查询报名表
const homeBigImages = async (params = {}) => { const Prefix = process.env.NODE_ENV === 'development' ? '/office' : '/office';
return await POST("/office/indexCarouselManage/api/bigImages", params)
// 首页大轮播图
const homeBigImages = (params = {}) => {
return POST(`${Prefix}/indexCarouselManage/api/bigImages`, params)
} }
// 要闻左侧图片资讯
const homePictureImageList = (params = {}) => {
return POST(`${Prefix}/picture/api/pictureImageList`, params)
}
// 要闻右侧标题列表
const homeImportantNewList = (params = {}) => {
return POST(`${Prefix}/news/api/importantNewList`, params)
}
export default { export default {
homeBigImages, homeBigImages,
homePictureImageList,
homeImportantNewList,
} }
...@@ -67,6 +67,9 @@ import "nprogress/nprogress.css"; ...@@ -67,6 +67,9 @@ import "nprogress/nprogress.css";
NProgress.inc(0.3); NProgress.inc(0.3);
NProgress.configure({easing: "ease", speed: 500, showSpinner: false}); NProgress.configure({easing: "ease", speed: 500, showSpinner: false});
import moment from 'moment';
Vue.prototype.$moment = moment;
Vue.config.productionTip = false; Vue.config.productionTip = false;
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg"> <div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div class="col-lg-8 list-left"> <div class="col-lg-8 list-left">
<span></span> <span></span>
<span>{{tmp.name}}</span> <span>{{tmp.title}}</span>
</div> </div>
<div class="col-lg-4 list-right">{{tmp.time}}</div> <div class="col-lg-4 list-right">{{tmp.time}}</div>
</div> </div>
...@@ -22,9 +22,7 @@ export default { ...@@ -22,9 +22,7 @@ export default {
}); });
}, },
handelMore() { handelMore() {
this.$router.push({ window.open('/News/index', '_blank');
path: '/News/index'
});
} }
}, },
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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