Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
61e03296
Commit
61e03296
authored
Oct 16, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码调整
parent
69e61473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
10 deletions
+31
-10
Index-sy.vue
src/views/index/Index-sy.vue
+31
-10
No files found.
src/views/index/Index-sy.vue
View file @
61e03296
<
template
>
<div
class=
"index"
>
<van-image
src=
"@/assets/indexbanner.png"
fit=
"contain"
width=
"100%;"
style=
"margin: 18px 10px 0;"
></van-image>
<van-image
src=
"@/assets/indexbanner.png"
fit=
"contain"
width=
"100%"
style=
"margin: 18px 10px 0;"
></van-image>
<!--
<div
class=
"header"
>
<div
class=
"login"
v-if=
"!isLogin"
>
<p>
~ 欢迎来到
{{
APP_NAME
}}
平台
</p>
...
...
@@ -28,13 +32,22 @@
<div
style=
"display:flex;flex-direction:row;justify-content:space-between;font-size:16px;color:#353535;margin:16px 0;"
>
<span
style=
"font-weight:500;color:#353535;"
>
我的模版
</span>
<span
style=
"color:#3F79FE;"
@
click=
"showAddFolder = true;"
>
+添加文件夹
</span>
<!--
<router-link
to=
"addTemplate"
tag=
"p"
style=
"color:#3F79FE;"
>
+添加文件夹
</router-link>
-->
<span
style=
"font-weight:500;color:#353535;"
>
我的模版
</span>
<span
style=
"color:#3F79FE;"
@
click=
"showAddFolder = true;"
>
+添加文件夹
</span>
</div>
<empty
v-if=
"!list.length && !loading"
name=
"moban"
tip=
"您还未添加模板"
></empty>
<empty
v-if=
"!list.length && !loading"
name=
"moban"
tip=
"您还未添加模板"
></empty>
<div>
<div
class=
"folder-item"
v-for=
"
{folder_id, folder_simg_url, folder_name, detail} of list" :key="folder_id" @click="goTemplList(detail, folder_name, folder_id)">
<div
v-for=
"
{folder_id, folder_simg_url, folder_name, detail} of list"
:key="folder_id"
@click="goTemplList(detail, folder_name, folder_id)"
class="folder-item">
<van-image
class=
"thumb"
:src=
"folder_simg_url"
...
...
@@ -42,10 +55,16 @@
></van-image>
<div
class=
"title"
style=
"#353535;font-size:18px;font-weight:500;"
>
{{
folder_name
}}
</div>
<div
class=
"desc"
style=
"color: #AAAAAA;"
>
{{
(
detail
||
[]).
length
}}
条模版
</div>
<common-svg
@
click
.
stop
.
native=
"showMoreAction(folder_name, folder_id)"
class=
"more"
name=
"cunzhengliebiao-gengduo"
></common-svg>
<common-svg
@
click
.
stop
.
native=
"showMoreAction(folder_name, folder_id)"
class=
"more"
name=
"cunzhengliebiao-gengduo"
></common-svg>
</div>
</div>
<more-action
:show
.
sync=
"show"
:menuList=
"actionList"
@
cb=
"callbackAction"
></more-action>
<more-action
:show
.
sync=
"show"
:menuList=
"actionList"
@
cb=
"callbackAction"
></more-action>
</div>
<van-dialog
title=
"重命名"
...
...
@@ -57,13 +76,15 @@
v-model=
"currentFolder.folder_name"
/>
</van-dialog>
<add-folder
:show
.
sync=
"showAddFolder"
@
cancel=
"showAddFolder = false"
@
next=
"addFolder"
></add-folder>
<add-folder
:show
.
sync=
"showAddFolder"
@
cancel=
"showAddFolder = false"
@
next=
"addFolder"
></add-folder>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Watch
,
Inject
,
Mixins
}
from
'vue-property-decorator'
;
import
{
TEMPLATETYPE
}
from
'@/const/enum'
;
import
{
State
,
Action
,
namespace
}
from
'vuex-class'
;
import
IndexMixin
from
'@/mixins/Index'
;
import
AddFolder
from
'@/views/template/components/AddFolder.vue'
;
...
...
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