Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
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
张冬
web-site
Commits
20017cb3
Commit
20017cb3
authored
Nov 05, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播图
parent
c6c4bb65
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
list.js
common/list.js
+3
-4
index.vue
pages/index/index.vue
+12
-8
examine.vue
pages/login/examine.vue
+7
-3
No files found.
common/list.js
View file @
20017cb3
...
...
@@ -198,11 +198,10 @@ export function getChangeDetails(id){
})
}
//轮播图
export
function
getLoopPic
(
params
){
export
function
getLoopPic
(){
return
request
({
url
:
'/banner/list'
,
method
:
'get'
,
params
:
params
url
:
'/banner/banner/1'
,
method
:
'get'
})
}
//二次验证
...
...
pages/index/index.vue
View file @
20017cb3
...
...
@@ -4,7 +4,7 @@
<div
class=
"banner"
>
<el-carousel
trigger=
"click"
height=
"5.3rem"
width=
"100%"
>
<el-carousel-item
v-for=
"(item,index) in picArr"
:key=
"index"
>
<img
:src=
"item.pic
Url
"
alt=
""
class=
"src-img"
>
<img
:src=
"item.pic"
alt=
""
class=
"src-img"
>
</el-carousel-item>
</el-carousel>
<!--
<img
src=
"~/assets/images/back.png"
style=
"height:5.3rem;width:100%"
>
-->
...
...
@@ -97,10 +97,10 @@ import Cookies from "js-cookie"
this
.
getListSite2
()
},
async
asyncData
({
params
,
route
,
error
}){
let
mes
=
{
status
:
1
}
const
{
data
}
=
await
getLoopPic
(
mes
)
/*
let mes = {
bannerWeb
:1
}
*/
const
{
data
}
=
await
getLoopPic
()
return
{
picArr
:
data
,
}
...
...
@@ -196,9 +196,9 @@ import Cookies from "js-cookie"
this
.
$router
.
push
(
"/login/user"
)
},
async
getLoopPic
(){
let
message
=
{}
message
.
status
=
1
const
{
data
}
=
await
getLoopPic
(
message
)
/*
let message = {}
message.status =1
*/
const
{
data
}
=
await
getLoopPic
(
/* message */
)
this
.
picArr
=
data
},
//添加退出按钮 清空token
...
...
@@ -266,6 +266,10 @@ import Cookies from "js-cookie"
<
style
scoped
>
.src-img
{
cursor
:
pointer
;
/* background-size: cover; */
position
:
absolute
;
width
:
100%
;
height
:
100%
;
}
.banner
{
width
:
100%
;
...
...
pages/login/examine.vue
View file @
20017cb3
...
...
@@ -389,16 +389,16 @@
<!-- 完善 -->
<div
class=
"perfect content"
v-if=
"active == 1"
>
<div
class=
"flex-between perfect-head"
>
<div
class=
"y2 flex"
>
<div
class=
"y2 flex
contentText
"
>
<div>
单位名称:
</div>
<div>
{{
form
.
companyName
}}
</div>
</div>
<div
class=
"y3 flex"
>
<div
class=
"y3 flex"
contentText
>
<div>
注册角色:
</div>
<div
v-if=
"form.type=='1'"
>
采购商
</div>
<div
v-else
>
供应商
</div>
</div>
<div
class=
"t2 flex"
v-if =
"1
<0
"
>
<div
class=
"t2 flex
contentText
"
v-if =
"1
<0
"
>
<div>
行政区域:
</div>
<div>
浙江省 杭州市 滨江区
</div>
</div>
...
...
@@ -1493,4 +1493,7 @@ export default {
left
:
4rem
;
cursor
:
pointer
;
}
.contentText
>
div
{
font-size
:
14px
;
}
</
style
>
\ No newline at end of file
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