Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
7cc80b24
Commit
7cc80b24
authored
Nov 10, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增首页大轮播图接口
parent
a46b7619
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
api.js
src/axios/api.js
+0
-0
fetch.js
src/axios/fetch.js
+1
-1
home.js
src/axios/module/home.js
+13
-0
index.vue
src/views/Home/index.vue
+13
-0
vue.config.js
vue.config.js
+2
-2
No files found.
src/axios/api.js
View file @
7cc80b24
This diff is collapsed.
Click to expand it.
src/axios/fetch.js
View file @
7cc80b24
...
...
@@ -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
)
=>
{
...
...
src/axios/module/home.js
0 → 100644
View file @
7cc80b24
import
{
POST
}
from
"../fetch.js"
// 根据业主id查询报名表
const
homeBigImages
=
async
(
params
=
{})
=>
{
return
await
POST
(
"/office/indexCarouselManage/api/bigImages"
,
params
)
}
export
default
{
homeBigImages
,
}
src/views/Home/index.vue
View file @
7cc80b24
...
...
@@ -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
({
...
...
vue.config.js
View file @
7cc80b24
...
...
@@ -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
"
:
"/"
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment