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
0d1ac6e0
Commit
0d1ac6e0
authored
Jun 03, 2024
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的相册
parent
f8e85439
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
995 deletions
+85
-995
albumIndex.vue
pages/album/albumIndex/albumIndex.vue
+40
-6
myPhotoAlbum - 副本.vue
pages/album/myPhotoAlbum/myPhotoAlbum - 副本.vue
+0
-0
myPhotoAlbum.vue
pages/album/myPhotoAlbum/myPhotoAlbum.vue
+45
-989
icon02.png
pages/album/static/album/icon02.png
+0
-0
icon03.png
pages/album/static/album/icon03.png
+0
-0
No files found.
pages/album/albumIndex/albumIndex.vue
View file @
0d1ac6e0
...
@@ -23,10 +23,13 @@
...
@@ -23,10 +23,13 @@
<view
class=
"acquire-box acquire-boxBlue"
@
click=
"jumpToScanFaceClick"
>
<view
class=
"acquire-box acquire-boxBlue"
@
click=
"jumpToScanFaceClick"
>
<view
class=
"box-title"
>
获取相片
</view>
<view
class=
"box-title"
>
获取相片
</view>
<view
class=
"box-text"
>
获取拍摄相片
</view>
<view
class=
"box-text"
>
获取拍摄相片
</view>
<image
class=
"box-img"
src=
"./../static/album/icon02.png"
></image>
</view>
</view>
<view
class=
"acquire-box acquire-boxGreen"
>
<view
class=
"acquire-box acquire-boxGreen"
>
<view
class=
"box-title"
>
相片DIY
</view>
<view
class=
"box-title"
>
相片DIY
</view>
<view
class=
"box-text"
>
编辑手机相片
</view>
<view
class=
"box-text"
>
编辑手机相片
</view>
<button
class=
"acquire-input"
@
click=
"chooseImg"
></button>
<image
class=
"box-img"
src=
"./../static/album/icon03.png"
></image>
</view>
</view>
</view>
</view>
...
@@ -86,37 +89,37 @@ export default {
...
@@ -86,37 +89,37 @@ export default {
list
:
[{
list
:
[{
title
:
'精彩瞬间'
,
title
:
'精彩瞬间'
,
count
:
'10W+'
,
count
:
'10W+'
,
image
:
'./static/album/wonderfulMoment.png'
,
image
:
'./
../
static/album/wonderfulMoment.png'
,
color
:
'#037EFF'
color
:
'#037EFF'
},
},
{
{
title
:
'网红旅拍'
,
title
:
'网红旅拍'
,
count
:
'8W+'
,
count
:
'8W+'
,
image
:
'./static/album/travalphoto.png'
,
image
:
'./
../
static/album/travalphoto.png'
,
color
:
'#826847'
color
:
'#826847'
},
},
{
{
title
:
'抱枕DIY'
,
title
:
'抱枕DIY'
,
count
:
'4W+'
,
count
:
'4W+'
,
image
:
'./static/album/pillow.png'
,
image
:
'./
../
static/album/pillow.png'
,
color
:
'#1175B4'
color
:
'#1175B4'
},
},
{
{
title
:
'明信片'
,
title
:
'明信片'
,
count
:
'4W+'
,
count
:
'4W+'
,
image
:
'./static/album/postcard.png'
,
image
:
'./
../
static/album/postcard.png'
,
color
:
'#3478DC'
color
:
'#3478DC'
},
},
{
{
title
:
'旅游台历定制'
,
title
:
'旅游台历定制'
,
count
:
'4W+'
,
count
:
'4W+'
,
image
:
'./static/album/deskCalender.png'
,
image
:
'./
../
static/album/deskCalender.png'
,
color
:
'#1A9B45'
color
:
'#1A9B45'
},
},
{
{
title
:
'定制相册'
,
title
:
'定制相册'
,
count
:
'4W+'
,
count
:
'4W+'
,
image
:
'./static/album/customPic.png'
,
image
:
'./
../
static/album/customPic.png'
,
color
:
'#D48D46'
color
:
'#D48D46'
}
}
],
],
...
@@ -128,6 +131,16 @@ export default {
...
@@ -128,6 +131,16 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
chooseImg
(){
uni
.
chooseImage
({
count
:
6
,
//默认9
sizeType
:
[
'original'
,
'compressed'
],
//可以指定是原图还是压缩图,默认二者都有
sourceType
:
[
'album'
],
//从相册选择
success
:
function
(
res
)
{
console
.
log
(
JSON
.
stringify
(
res
.
tempFilePaths
))
}
})
},
returnClick
()
{
returnClick
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
...
@@ -471,6 +484,27 @@ export default {
...
@@ -471,6 +484,27 @@ export default {
color
:
#A5D3FF
;
color
:
#A5D3FF
;
line-height
:
28rpx
;
line-height
:
28rpx
;
text-align
:
center
;
text-align
:
center
;
position
:
relative
;
z-index
:
8
;
}
.acquire-input
{
width
:
334rpx
;
height
:
240rpx
;
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
0
;
z-index
:
19
;
}
.box-img
{
width
:
168rpx
;
height
:
144rpx
;
margin
:
auto
;
position
:
absolute
;
left
:
0
;
right
:
0
;
bottom
:
0
;
z-index
:
3
;
}
}
}
}
.acquire-boxBlue
{
.acquire-boxBlue
{
...
...
pages/album/myPhotoAlbum/myPhotoAlbum - 副本.vue
0 → 100644
View file @
0d1ac6e0
This diff is collapsed.
Click to expand it.
pages/album/myPhotoAlbum/myPhotoAlbum.vue
View file @
0d1ac6e0
This diff is collapsed.
Click to expand it.
pages/album/static/album/icon02.png
0 → 100644
View file @
0d1ac6e0
6.44 KB
pages/album/static/album/icon03.png
0 → 100644
View file @
0d1ac6e0
7.22 KB
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