Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
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
viitto
pptist
Commits
18524785
Commit
18524785
authored
Nov 27, 2023
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化首页列表 图
parent
1a7dd09f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
App.vue
src/App.vue
+12
-2
Index.vue
src/views/Market/Index.vue
+8
-7
No files found.
src/App.vue
View file @
18524785
...
@@ -45,8 +45,8 @@ const userLoginHandler = async ()=>{
...
@@ -45,8 +45,8 @@ const userLoginHandler = async ()=>{
let
param
=
query
()
let
param
=
query
()
let
userId
=
1
let
userId
=
1
let
ConfigId
=
0
let
ConfigId
=
9117
// 9117
let
model
=
1
let
model
=
0
if
(
param
.
uid
)
userId
=
parseInt
(
param
.
uid
)
if
(
param
.
uid
)
userId
=
parseInt
(
param
.
uid
)
if
(
ConfigId
)
ConfigIdStore
.
setConfigId
(
ConfigId
)
if
(
ConfigId
)
ConfigIdStore
.
setConfigId
(
ConfigId
)
if
(
model
)
modelStore
.
setModel
(
model
)
if
(
model
)
modelStore
.
setModel
(
model
)
...
@@ -56,6 +56,16 @@ const userLoginHandler = async ()=>{
...
@@ -56,6 +56,16 @@ const userLoginHandler = async ()=>{
}
}
isFinish
.
value
=
true
isFinish
.
value
=
true
if
(
!
ConfigId
&&!
model
)
ElMessageBox
.
confirm
(
'当前没有权限进行任何操作,请联系管理员!'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
)
}
}
userLoginHandler
()
userLoginHandler
()
...
...
src/views/Market/Index.vue
View file @
18524785
...
@@ -70,7 +70,8 @@
...
@@ -70,7 +70,8 @@
<div
class=
"MarketIndexListBox"
>
<div
class=
"MarketIndexListBox"
>
<div
class=
"MarketIndexList bg-white rounded"
@
click=
"goToTemplate(item)"
>
<div
class=
"MarketIndexList bg-white rounded"
@
click=
"goToTemplate(item)"
>
<div
class=
"MarketIndexList-img"
>
<div
class=
"MarketIndexList-img"
>
<img
:src=
"item.CoverImg"
style=
"width:100%;height:100%"
/>
<el-image
style=
"width: 100%;height: 100%"
:src=
"item.CoverImg"
fit=
"cover"
/>
<!--
<img
:src=
"item.CoverImg"
style=
"height:100%"
/>
-->
</div>
</div>
<div
class=
"MarketIndexList-text"
>
{{
item
.
Title
}}
</div>
<div
class=
"MarketIndexList-text"
>
{{
item
.
Title
}}
</div>
</div>
</div>
...
@@ -302,22 +303,22 @@
...
@@ -302,22 +303,22 @@
box-shadow
:
0
5px
6px
-3px
#0003
,
0
9px
12px
1px
#00000024
,
0
3px
16px
2px
#0000001
f
;
box-shadow
:
0
5px
6px
-3px
#0003
,
0
9px
12px
1px
#00000024
,
0
3px
16px
2px
#0000001
f
;
}
}
.MarketIndexList-img
{
.MarketIndexList-img
{
position
:
relative
;
/* position: relative; */
width
:
100%
;
width
:
100%
;
height
:
0
;
height
:
252px
;
padding-top
:
100%
;
/* padding-top: 100%; */
border-top-left-radius
:
6px
;
border-top-left-radius
:
6px
;
border-top-right-radius
:
6px
;
border-top-right-radius
:
6px
;
border-bottom-left-radius
:
2px
;
border-bottom-left-radius
:
2px
;
border-bottom-right-radius
:
2px
;
border-bottom-right-radius
:
2px
;
overflow
:
hidden
;
overflow
:
hidden
;
/* border-bo: 1px solid #eeee; */
}
}
.MarketIndexList-img
img
{
.MarketIndexList-img
img
{
position
:
absolute
;
/*
position: absolute;
top: 0;
top: 0;
left: 0;
left: 0;
width
:
100%
;
height: 100%; */
height
:
100%
;
}
}
.MarketIndexList-text
{
.MarketIndexList-text
{
font-size
:
14px
;
font-size
:
14px
;
...
...
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