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
f6857618
Commit
f6857618
authored
Jun 03, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非企业,个人中心设置水印
parent
4eb6ed68
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
router.ts
src/router/router.ts
+7
-0
menu.ts
src/store/menu.ts
+1
-0
Index.vue
src/views/Market/Index.vue
+2
-3
Layout.vue
src/views/UserCenter/Layout.vue
+7
-3
No files found.
src/router/router.ts
View file @
f6857618
...
@@ -265,6 +265,13 @@ const routes: RouteRecordRaw[] = [
...
@@ -265,6 +265,13 @@ const routes: RouteRecordRaw[] = [
title
:
'账号一览'
title
:
'账号一览'
}
}
},
},
{
path
:
'/u/w'
,
component
:
()
=>
import
(
'@/views/TeamCenter/WaterMaker.vue'
),
meta
:{
title
:
'水印设置'
}
},
{
{
path
:
'/u/order'
,
path
:
'/u/order'
,
component
:
()
=>
import
(
'@/views/UserCenter/Order.vue'
),
component
:
()
=>
import
(
'@/views/UserCenter/Order.vue'
),
...
...
src/store/menu.ts
View file @
f6857618
...
@@ -16,6 +16,7 @@ export interface MenuState {
...
@@ -16,6 +16,7 @@ export interface MenuState {
const
menus
:{
menu
:
Menu
,
owner
:
MenuOwner
}[]
=
[
const
menus
:{
menu
:
Menu
,
owner
:
MenuOwner
}[]
=
[
{
menu
:{
name
:
'账号一览'
,
icon
:
'IconEarth'
,
url
:
'/u'
},
owner
:
'*'
},
{
menu
:{
name
:
'账号一览'
,
icon
:
'IconEarth'
,
url
:
'/u'
},
owner
:
'*'
},
{
menu
:{
name
:
'水印设置'
,
icon
:
'IconTag'
,
url
:
'/u/w'
},
owner
:
'*'
},
{
menu
:{
name
:
'订单/发票'
,
icon
:
'IconCurrency'
,
url
:
'/u/order'
},
owner
:
'*'
},
{
menu
:{
name
:
'订单/发票'
,
icon
:
'IconCurrency'
,
url
:
'/u/order'
},
owner
:
'*'
},
{
menu
:{
name
:
'账户设置'
,
icon
:
'IconProtect'
,
url
:
'/u/setting'
},
owner
:
'*'
},
{
menu
:{
name
:
'账户设置'
,
icon
:
'IconProtect'
,
url
:
'/u/setting'
},
owner
:
'*'
},
{
menu
:{
name
:
'模版管理'
,
icon
:
'IconPageTemplate'
,
url
:
'/m'
},
owner
:
'M'
},
{
menu
:{
name
:
'模版管理'
,
icon
:
'IconPageTemplate'
,
url
:
'/m'
},
owner
:
'M'
},
...
...
src/views/Market/Index.vue
View file @
f6857618
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
ref=
"marketRef"
class=
"Market-from"
>
<div
ref=
"marketRef"
class=
"Market-from"
>
<div
class=
"Market-fromBj"
></div>
<div
class=
"Market-fromBj"
></div>
<div
class=
"relative"
style=
"padding: 22px 17px; max-width:1440px; margin:0 auto;z-index: 2;"
>
<div
class=
"relative"
style=
"padding: 22px 17px; max-width:1440px; margin:0 auto;z-index: 2;"
>
<div
:class=
"[datas.scrollTop>
1
00?'MarketHeader':'']"
>
<div
:class=
"[datas.scrollTop>
2
00?'MarketHeader':'']"
>
<div
class=
"row items-center"
>
<div
class=
"row items-center"
>
<img
class=
"q-pr-36"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713237911000_1.png"
style=
"height: 30px;"
/>
<img
class=
"q-pr-36"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1713237911000_1.png"
style=
"height: 30px;"
/>
<div
class=
"row grow Market-select reactive"
>
<div
class=
"row grow Market-select reactive"
>
...
@@ -194,7 +194,7 @@
...
@@ -194,7 +194,7 @@
</
template
>
</
template
>
</div>
</div>
<div
v-else-if=
"dataList.length == 0 && !loading"
class=
"q-mt-lg bg-white rounded"
<div
v-else-if=
"dataList.length == 0 && !loading"
class=
"q-mt-lg bg-white rounded"
style=
"padding:
60px
10px;"
>
style=
"padding:
3.1vw
10px;"
>
<el-empty
description=
"暂无数据"
:image=
"noDataImg(1)"
/>
<el-empty
description=
"暂无数据"
:image=
"noDataImg(1)"
/>
</div>
</div>
<div
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
class=
"text-center q-pt-lg"
><img
:src=
"noDataImg(2)"
width=
"118"
/></div>
<div
v-if=
'queryObj.pageCount == queryObj.pageIndex && !loading'
class=
"text-center q-pt-lg"
><img
:src=
"noDataImg(2)"
width=
"118"
/></div>
...
@@ -402,7 +402,6 @@ const search = () => {
...
@@ -402,7 +402,6 @@ const search = () => {
* 获取模板市场分页列表
* 获取模板市场分页列表
*/
*/
const
queryTemplateBySearchHandler
=
async
()
=>
{
const
queryTemplateBySearchHandler
=
async
()
=>
{
console
.
log
(
parmas
,
'---------'
)
if
(
parmas
.
value
.
temptype
)
queryObj
.
TempType
=
parseInt
(
parmas
.
value
.
temptype
.
toString
())
if
(
parmas
.
value
.
temptype
)
queryObj
.
TempType
=
parseInt
(
parmas
.
value
.
temptype
.
toString
())
loading
.
value
=
true
loading
.
value
=
true
try
{
try
{
...
...
src/views/UserCenter/Layout.vue
View file @
f6857618
...
@@ -29,20 +29,24 @@
...
@@ -29,20 +29,24 @@
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
UserCard
from
"@/components/User/UserCard.vue"
;
import
UserCard
from
"@/components/User/UserCard.vue"
;
import
{
useMenuStore
}
from
"@/store"
;
import
{
useMenuStore
,
useUserStore
}
from
"@/store"
;
import
{
storeToRefs
}
from
'pinia'
import
{
ref
,
watch
}
from
"vue"
;
import
{
ref
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
const
router
=
useRouter
()
const
router
=
useRouter
()
const
useMenu
=
useMenuStore
();
const
useMenu
=
useMenuStore
();
const
menus
=
ref
(
useMenu
.
getUserMenu
);
const
menus
=
ref
(
[]
as
any
);
const
activeIndex
=
ref
(
0
)
const
activeIndex
=
ref
(
0
)
const
{
userInfo
}
=
storeToRefs
(
useUserStore
())
const
forwardSpace
=
()
=>
router
.
push
(
'/space'
)
const
forwardSpace
=
()
=>
router
.
push
(
'/space'
)
watch
(()
=>
router
.
currentRoute
.
value
.
path
,
(
toPath
)
=>
{
watch
(()
=>
router
.
currentRoute
.
value
.
path
,
(
toPath
)
=>
{
menus
.
value
=
useMenu
.
getUserMenu
if
(
!
userInfo
.
value
.
it
&&
userInfo
.
value
.
iv
)
menus
.
value
=
useMenu
.
getUserMenu
else
menus
.
value
=
useMenu
.
getUserMenu
.
filter
(
x
=>
{
return
x
.
url
!=
'/u/w'
})
if
(
!
menus
.
value
)
return
if
(
!
menus
.
value
)
return
activeIndex
.
value
=
menus
.
value
.
findIndex
(
x
=>
x
.
url
==
router
.
currentRoute
.
value
.
path
)
activeIndex
.
value
=
menus
.
value
.
findIndex
(
x
=>
x
.
url
==
router
.
currentRoute
.
value
.
path
)
},{
immediate
:
true
,
deep
:
true
})
},{
immediate
:
true
,
deep
:
true
})
...
...
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