Commit 7cc80b24 by 林家欣

feat: 新增首页大轮播图接口

parent a46b7619
......@@ -18,7 +18,7 @@ import {
getToken
} from "@/utils/cookie.js"
const baseUrl = process.env.BASE_URL + "api"
const baseUrl = process.env.BASE_URL + "gs1"
function fetch(options) {
return new Promise((resolve, reject) => {
......
import {
POST
} from "../fetch.js"
// 根据业主id查询报名表
const homeBigImages = async (params = {}) => {
return await POST("/office/indexCarouselManage/api/bigImages", params)
}
export default {
homeBigImages,
}
......@@ -1086,8 +1086,21 @@ export default {
created() {
console.log(this.$route, "this.$route");
this.dzfw.push(this.dzfLastChild);
this.init();
},
methods: {
// 初始化
init() {
// 首页大轮播图
this.homeBigImages();
},
// 首页大轮播图
homeBigImages() {
console.log(this.$api, 'this.$api');
const homeBigImagesRes = this.$api.home.homeBigImages();
console.log(homeBigImagesRes, 'homeBigImagesRes');
},
// 我要申请商品条码
wysqsptmHandelClick() {
this.$router.push({
......
......@@ -54,13 +54,13 @@ module.exports = {
compress: true,
disableHostCheck: true,
proxy: {
"/api": {
"/gs1": {
target: process.env.VUE_APP_HOST_URL, // 原地址
// target: 'http://192.168.0.207:8080', // 渊炜
changeOrigin: true,
ws: true,
pathRewrite: {
"^/api": "/"
"^/gs1": "/"
}
}
}
......
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