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
5eac190c
Commit
5eac190c
authored
Aug 15, 2023
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页新增劵使用规则提示
parent
6a8f1949
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1824 additions
and
4 deletions
+1824
-4
package-lock.json
package-lock.json
+1788
-0
albumIndex.vue
pages/album/albumIndex.vue
+36
-4
coupon.png
pages/album/static/album/coupon.png
+0
-0
postcardTip.png
pages/album/static/album/postcardTip.png
+0
-0
useRule.png
pages/album/static/album/useRule.png
+0
-0
No files found.
package-lock.json
0 → 100644
View file @
5eac190c
This diff is collapsed.
Click to expand it.
pages/album/albumIndex.vue
View file @
5eac190c
<
template
>
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-show="show">
<view
class=
"nav-bar"
:style=
"
{'top': statusBarHeight + 'px', 'height': navHeight + 'px','line-height': navHeight + 'px'}">
摄影/旅拍
</view>
<view
class=
"body"
>
<view
class=
"scroll-view"
>
<view
class=
"item"
@
click=
"jumpToScanFaceClick"
>
...
...
@@ -63,15 +65,21 @@
</u-waterfall>
</view>
</view>
<u-mask
:show=
"showtip"
>
<image
class=
"coupon"
src=
"./static/album/coupon.png"
mode=
"aspectFit"
@
click=
"showUseRule = true"
></image>
<u-mask
:show=
"showtip || showUseRule"
>
<view
class=
"mask"
>
<view
class=
"img-box"
>
<image
src=
"./static/album/postcardTip.png"
mode=
"aspectFit"
></image>
<u-icon
class=
"close"
name=
"close-circle"
@
click=
"showtip = false"
></u-icon>
<image
src=
"./static/album/postcardTip.png"
mode=
"aspectFit"
v-if=
"showtip"
></image>
<image
src=
"./static/album/useRule.png"
mode=
"aspectFit"
v-if=
"showUseRule"
></image>
<u-icon
class=
"close"
name=
"close-circle"
@
click=
"closeMask"
></u-icon>
<view
class=
"use-rule"
@
click=
"useRuleClick"
v-if=
"showtip"
></view>
</view>
<u-button
type=
"primary"
shape=
"circle"
@
click=
"showtip = false"
>
知道了
</u-button>
<u-button
type=
"primary"
shape=
"circle"
@
click=
"showtip = false"
v-if=
"showtip"
>
知道了
</u-button>
</view>
</u-mask>
</view>
</template>
...
...
@@ -89,6 +97,7 @@ export default {
data
()
{
return
{
showtip
:
false
,
//领取提示
showUseRule
:
false
,
//使用规则提示
statusBarHeight
:
0
,
capsule
:
0
,
navHeight
:
0
,
...
...
@@ -135,6 +144,14 @@ export default {
}
},
methods
:
{
closeMask
()
{
//---关闭遮罩
this
.
showtip
=
false
this
.
showUseRule
=
false
},
useRuleClick
()
{
//---查看使用规则
this
.
showtip
=
false
this
.
showUseRule
=
true
},
jumpToScanFaceClick
()
{
//---跳转扫脸页面
const
openid
=
uni
.
getStorageSync
(
'openid'
)
...
...
@@ -276,6 +293,13 @@ export default {
justify-content
:
center
;
align-items
:
center
;
}
.coupon
{
position
:
fixed
;
right
:
-30rpx
;
bottom
:
200rpx
;
width
:
120rpx
;
height
:
120rpx
;
}
}
.nav-bar
{
font-size
:
36rpx
;
...
...
@@ -405,6 +429,14 @@ export default {
border-left
:
1px
dashed
#fff
;
}
}
.use-rule
{
position
:
absolute
;
left
:
50%
;
bottom
:
40px
;
transform
:
translateX
(
-50%
);
width
:
66px
;
height
:
16px
;
}
}
image
{
width
:
504rpx
;
...
...
pages/album/static/album/coupon.png
0 → 100644
View file @
5eac190c
3.39 KB
pages/album/static/album/postcardTip.png
View replaced file @
6a8f1949
View file @
5eac190c
166 KB
|
W:
|
H:
166 KB
|
W:
|
H:
2-up
Swipe
Onion skin
pages/album/static/album/useRule.png
0 → 100644
View file @
5eac190c
159 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