Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
b85f10e6
Commit
b85f10e6
authored
Jul 26, 2023
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改相册首页
parent
fb70dcd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
pages.json
pages.json
+1
-1
albumIndex.vue
pages/album/albumIndex.vue
+22
-5
chooseFavorite.vue
pages/album/chooseFavorite.vue
+1
-2
No files found.
pages.json
View file @
b85f10e6
...
...
@@ -197,7 +197,7 @@
},
{
"path"
:
"pages/album/
i
ndex"
,
"path"
:
"pages/album/
albumI
ndex"
,
"style"
:
{
"navigationBarTitleText"
:
"相册首页"
,
...
...
pages/album/
i
ndex.vue
→
pages/album/
albumI
ndex.vue
View file @
b85f10e6
...
...
@@ -13,7 +13,7 @@
<image
class=
"img"
src=
"../../static/img/coupon/coupon.jpg"
></image>
<text
class=
"title"
>
影像DIY
</text>
</view>
<view
class=
"item"
>
<view
class=
"item"
@
click=
"jumpToCustomClick"
>
<image
class=
"img"
src=
"../../static/img/coupon/coupon.jpg"
></image>
<text
class=
"title"
>
旅拍定制
</text>
</view>
...
...
@@ -27,7 +27,7 @@
<view
class=
"title"
>
私人定制
</view>
<u-waterfall
v-model=
"list"
ref=
"uWaterfall"
>
<template
v-slot:left=
"
{leftList}">
<view
class=
"left demo-water"
v-for=
"(item, index) in leftList"
:key=
"index"
>
<view
class=
"left demo-water"
v-for=
"(item, index) in leftList"
:key=
"index"
@
click=
"jumpToClick(item.title)"
>
<u-lazy-load
threshold=
"-450"
border-radius=
"10"
:image=
"item.image"
:index=
"index"
></u-lazy-load>
<view
class=
"info-box"
:style=
"
{'background-color': item.color}">
<view
class=
"item-title"
>
{{
item
.
title
}}
</view>
...
...
@@ -43,7 +43,7 @@
</view>
</
template
>
<
template
v-slot:right=
"{rightList}"
>
<view
class=
"demo-water"
v-for=
"(item, index) in rightList"
:key=
"index"
>
<view
class=
"demo-water"
v-for=
"(item, index) in rightList"
:key=
"index"
@
click=
"jumpToClick(item.title)"
>
<u-lazy-load
threshold=
"-450"
border-radius=
"10"
:image=
"item.image"
:index=
"index"
></u-lazy-load>
<view
class=
"info-box"
:style=
"
{'background-color': item.color}">
<view
class=
"item-title"
>
{{
item
.
title
}}
</view>
...
...
@@ -136,11 +136,28 @@ export default {
}
},
methods
:
{
jumpToScanFaceClick
()
{
jumpToScanFaceClick
()
{
//---跳转扫脸页面
uni
.
navigateTo
({
url
:
'./getPortrait'
url
:
'./getPortrait'
})
},
jumpToCustomClick
()
{
//---跳转旅拍定制页面
uni
.
navigateTo
({
url
:
'./myPhotoAlbum/myPhotoAlbum'
})
},
jumpToClick
(
title
)
{
if
(
title
===
'精彩瞬间'
)
{
uni
.
navigateTo
({
url
:
'./getPortrait'
})
}
if
(
title
===
'网红旅拍'
)
{
uni
.
navigateTo
({
url
:
'./myPhotoAlbum/myPhotoAlbum'
})
}
},
recordDeviceInfo
()
{
//---记录设备信息
this
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
// 状态栏高度
this
.
capsule
=
uni
.
getMenuButtonBoundingClientRect
()
// 胶囊大小、位置数据
...
...
pages/album/chooseFavorite.vue
View file @
b85f10e6
...
...
@@ -27,7 +27,6 @@
<
script
>
import
UCheckbox
from
'@/uview-ui/components/u-checkbox/u-checkbox.vue'
export
default
{
components
:
{
UCheckbox
,
...
...
@@ -60,7 +59,7 @@ export default {
icon
:
'success'
})
uni
.
navigateTo
({
url
:
'./
i
ndex?tip=true'
url
:
'./
albumI
ndex?tip=true'
})
}
else
{
uni
.
showToast
({
...
...
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