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
e2b1dd75
Commit
e2b1dd75
authored
Oct 16, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://192.168.0.204/panyongping/uni-pdtravel
into develop
parents
8eecc718
db9acfa2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
47 deletions
+14
-47
albumIndex.vue
pages/album/albumIndex.vue
+8
-26
chooseFavorite.vue
pages/album/chooseFavorite.vue
+1
-8
getPortrait.vue
pages/album/getPortrait.vue
+5
-13
No files found.
pages/album/albumIndex.vue
View file @
e2b1dd75
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-if="show">
<view
class=
"big-box"
:style=
"
{'padding-top': statusBarHeight + 'px'}" v-if="show">
<view
class=
"nav-bar"
<view
class=
"nav-bar"
:style=
"
{'top': statusBarHeight + 'px', 'height': navHeight + 'px','line-height': navHeight + 'px'}">
:style=
"
{'
display': 'flex','
top': statusBarHeight + 'px', 'height': navHeight + 'px','line-height': navHeight + 'px'}">
<u-icon
name=
"arrow-left"
v-if=
"options.index"
@
click=
"returnClick"
></u-icon>
<u-icon
name=
"arrow-left"
color=
"#333"
v-if=
"options.index"
@
click=
"returnClick"
></u-icon>
摄影/旅拍
摄影/旅拍
</view>
</view>
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
<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)"
>
@
click=
"jumpToClick(item.title)"
>
<image
:src=
"item.image"
mode=
"aspectFill"
></image>
<image
:src=
"item.image"
mode=
"aspectFill"
></image>
<!--
<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=
"info-box"
:style=
"
{'background-color': item.color}">
<view
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
class=
"slogan"
>
快来定制吧
</view>
<view
class=
"slogan"
>
快来定制吧
</view>
...
@@ -52,7 +51,6 @@
...
@@ -52,7 +51,6 @@
<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)"
>
@
click=
"jumpToClick(item.title)"
>
<image
:src=
"item.image"
mode=
"aspectFill"
></image>
<image
:src=
"item.image"
mode=
"aspectFill"
></image>
<!--
<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=
"info-box"
:style=
"
{'background-color': item.color}">
<view
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
class=
"item-title"
>
{{
item
.
title
}}
</view>
<view
class=
"slogan"
>
快来定制吧
</view>
<view
class=
"slogan"
>
快来定制吧
</view>
...
@@ -78,8 +76,8 @@
...
@@ -78,8 +76,8 @@
</text>
</text>
</view>
</view>
<
!-- <u-mask :show="couponTip || showUseRule"> --
>
<
u-overlay
:show=
"couponTip || showUseRule"
>
<view
class=
"mask"
>
<view
class=
"mask"
@
tap
.
stop
>
<view
class=
"img-box"
>
<view
class=
"img-box"
>
<image
class=
"bg"
src=
"@/static/img/my/backgroundIcon01.png"
mode=
"aspectFit"
></image>
<image
class=
"bg"
src=
"@/static/img/my/backgroundIcon01.png"
mode=
"aspectFit"
></image>
<view
class=
"coupon-box"
v-if=
"couponTip"
>
<view
class=
"coupon-box"
v-if=
"couponTip"
>
...
@@ -88,10 +86,6 @@
...
@@ -88,10 +86,6 @@
免费获得 2 寸照片
免费获得 2 寸照片
</view>
</view>
<image
class=
"my-card"
src=
"./static/album/myCard.png"
mode=
"aspectFit"
></image>
<image
class=
"my-card"
src=
"./static/album/myCard.png"
mode=
"aspectFit"
></image>
<!-- <view class="use-rule" @click="showUseRuleClick">
使用规则
<u-icon name="arrow-right"></u-icon>
</view> -->
<view
class=
"address"
>
(使用地址:长江索道南站观景台旁)
</view>
<view
class=
"address"
>
(使用地址:长江索道南站观景台旁)
</view>
</view>
</view>
<view
class=
"rules"
v-if=
"showUseRule"
>
<view
class=
"rules"
v-if=
"showUseRule"
>
...
@@ -106,26 +100,17 @@
...
@@ -106,26 +100,17 @@
</view>
</view>
</view>
</view>
</view>
</view>
<u-icon
class=
"close"
name=
"close-circle"
@
click=
"closeMask"
></u-icon>
<u-icon
class=
"close"
name=
"close-circle"
color=
"#fff"
@
click=
"closeMask"
></u-icon>
</view>
</view>
<u-button
type=
"primary"
shape=
"circle"
@
click=
"closeMask"
>
知道了
</u-button>
<u-button
type=
"primary"
shape=
"circle"
@
click=
"closeMask"
>
知道了
</u-button>
</view>
</view>
<
!-- </u-mask> --
>
<
/u-overlay
>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
// import UWaterfall from '@/uview-ui/components/u-waterfall/u-waterfall.vue'
// import ULazyLoad from '@/uview-ui/components/u-lazy-load/u-lazy-load.vue'
// import UMask from '@/uview-ui/components/u-mask/u-mask.vue'
export
default
{
export
default
{
components
:
{
// UWaterfall,
// ULazyLoad,
// UMask
},
data
()
{
data
()
{
return
{
return
{
couponTip
:
false
,
//券领取提示
couponTip
:
false
,
//券领取提示
...
@@ -376,8 +361,6 @@ export default {
...
@@ -376,8 +361,6 @@ export default {
if
(
this
.
options
.
template
===
'true'
)
{
// 从模板选择页进入
if
(
this
.
options
.
template
===
'true'
)
{
// 从模板选择页进入
this
.
show
=
true
this
.
show
=
true
this
.
couponTip
=
true
this
.
couponTip
=
true
// this.getCoupon()
// this.couponIsUse()
}
else
if
(
this
.
options
.
channelId
)
{
// 扫码进入本页
}
else
if
(
this
.
options
.
channelId
)
{
// 扫码进入本页
this
.
handleWhetherToVotePage
()
this
.
handleWhetherToVotePage
()
}
else
if
(
this
.
options
.
index
==
1
)
{
// 从vlog首页进入
}
else
if
(
this
.
options
.
index
==
1
)
{
// 从vlog首页进入
...
@@ -418,7 +401,7 @@ export default {
...
@@ -418,7 +401,7 @@ export default {
background
:
linear-gradient
(
to
top
,
#f7f7f7
,
#f7f7f7
80%
,
transparent
100%
);
background
:
linear-gradient
(
to
top
,
#f7f7f7
,
#f7f7f7
80%
,
transparent
100%
);
}
}
/
deep
/
.u-
mask
{
/
deep
/
.u-
transition
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
...
@@ -589,11 +572,10 @@ export default {
...
@@ -589,11 +572,10 @@ export default {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
.close
{
/
deep
/
.u-icon
{
position
:
absolute
;
position
:
absolute
;
top
:
-64rpx
;
top
:
-64rpx
;
right
:
24rpx
;
right
:
24rpx
;
color
:
#fff
;
font-size
:
40rpx
;
font-size
:
40rpx
;
&
:
:
after
{
&
:
:
after
{
...
...
pages/album/chooseFavorite.vue
View file @
e2b1dd75
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<picker
mode=
"selector"
@
change=
"companyChage"
:value=
"index"
:range=
"companyArr"
range-key=
"merchantName"
>
<picker
mode=
"selector"
@
change=
"companyChage"
:value=
"index"
:range=
"companyArr"
range-key=
"merchantName"
>
<view
class=
"company"
>
{{
companyArr
[
index
]
?
companyArr
[
index
].
merchantName
:
'请选择公司'
}}
</view>
<view
class=
"company"
>
{{
companyArr
[
index
]
?
companyArr
[
index
].
merchantName
:
'请选择公司'
}}
</view>
</picker>
</picker>
<u-icon
name=
"arrow-down"
></u-icon>
<u-icon
name=
"arrow-down"
color=
"#fff"
></u-icon>
</view>
</view>
<view
class=
"outer-container"
>
<view
class=
"outer-container"
>
<view
class=
"inner-container"
>
<view
class=
"inner-container"
>
...
@@ -25,14 +25,7 @@
...
@@ -25,14 +25,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
// import UCheckboxGroup from '@/uview-ui/components/u-checkbox-group/u-checkbox-group.vue'
// import UCheckbox from '@/uview-ui/components/u-checkbox/u-checkbox.vue'
export
default
{
export
default
{
components
:
{
// UCheckboxGroup,
// UCheckbox,
},
data
()
{
data
()
{
return
{
return
{
statusBarHeight
:
0
,
statusBarHeight
:
0
,
...
...
pages/album/getPortrait.vue
View file @
e2b1dd75
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
</view>
</view>
</view>
</view>
<text
class=
"tip"
>
获取照片需先在拍摄点摄影
</text>
<text
class=
"tip"
>
获取照片需先在拍摄点摄影
</text>
<
!--
<u-mask
:show=
"maskShow"
@
click=
"closeClick"
>
--
>
<
u-overlay
:show=
"maskShow"
@
click=
"closeClick"
>
<view
class=
"mask"
>
<view
class=
"mask"
@
tap
.
stop
>
<text
class=
"countdown"
:class=
"
{'hidden': maskCount
<
=
0
}"
>
{{
maskCount
}}
s
</text>
<text
class=
"countdown"
:class=
"
{'hidden': maskCount
<
=
0
}"
>
{{
maskCount
}}
s
</text>
<view
class=
"tip"
>
<view
class=
"tip"
>
<view>
未找到您的照片
</view>
<view>
未找到您的照片
</view>
...
@@ -34,16 +34,12 @@
...
@@ -34,16 +34,12 @@
</view>
</view>
<u-button
type=
"info"
size=
"mini"
shape=
"circle"
@
click=
"returnClick"
>
返回
</u-button>
<u-button
type=
"info"
size=
"mini"
shape=
"circle"
@
click=
"returnClick"
>
返回
</u-button>
</view>
</view>
<
!--
</u-mask>
--
>
<
/u-overlay
>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
// import UMask from '@/uview-ui/components/u-mask/u-mask.vue'
export
default
{
export
default
{
components
:
{
// UMask
},
data
()
{
data
()
{
return
{
return
{
statusBarHeight
:
0
,
statusBarHeight
:
0
,
...
@@ -149,6 +145,7 @@ export default {
...
@@ -149,6 +145,7 @@ export default {
this
.
queryData
=
res
.
data
this
.
queryData
=
res
.
data
this
.
takePhoto
()
this
.
takePhoto
()
}
else
{
}
else
{
this
.
handleNotFound
()
uni
.
showToast
({
uni
.
showToast
({
title
:
'查询参数获取失败'
,
title
:
'查询参数获取失败'
,
icon
:
'none'
icon
:
'none'
...
@@ -189,12 +186,8 @@ export default {
...
@@ -189,12 +186,8 @@ export default {
var
loop
=
setInterval
(()
=>
{
var
loop
=
setInterval
(()
=>
{
this
.
maskCount
-=
1
this
.
maskCount
-=
1
if
(
this
.
maskCount
<=
0
)
{
if
(
this
.
maskCount
<=
0
)
{
// this.maskShow = false
this
.
src
=
''
this
.
src
=
''
clearInterval
(
loop
)
clearInterval
(
loop
)
// uni.navigateBack({
// delta: 1
// })
uni
.
setScreenBrightness
({
uni
.
setScreenBrightness
({
value
:
this
.
defaultBrightness
,
//屏幕亮度值,范围 0~1,0 最暗,1 最亮
value
:
this
.
defaultBrightness
,
//屏幕亮度值,范围 0~1,0 最暗,1 最亮
})
})
...
@@ -288,7 +281,6 @@ export default {
...
@@ -288,7 +281,6 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background-color
:
#fff
;
background-color
:
#fff
;
-webkit-transform
:
rotate
(
0deg
);
-webkit-transform
:
rotate
(
0deg
);
// z-index: 100;
}
}
.surface
{
.surface
{
display
:
flex
;
display
:
flex
;
...
@@ -348,7 +340,7 @@ export default {
...
@@ -348,7 +340,7 @@ export default {
font-weight
:
700
;
font-weight
:
700
;
color
:
#3688FF
;
color
:
#3688FF
;
}
}
/
deep
/
.u-
mask
{
/
deep
/
.u-
transition
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
...
...
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