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
f0816231
Commit
f0816231
authored
Jan 23, 2022
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点亮电子门票
parent
3d41bb19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+20
-0
intelTicket.vue
pages/my/order/intelTicket/intelTicket.vue
+20
-0
No files found.
pages/my/order/electronicTicket/electronicTicket.vue
View file @
f0816231
...
...
@@ -9,8 +9,28 @@
data
()
{
return
{
outUrl
:
""
,
//跳出地址
Brightness
:
""
,
//屏幕亮度
}
},
onShow
()
{
let
_this
=
this
uni
.
getScreenBrightness
({
success
:
function
(
res
){
// 这里是把获取到的手机屏幕亮度,存储到data里面,方便给到页面生命周期隐藏和卸载方法里面用
_this
.
Brightness
=
res
.
value
;
if
(
res
.
value
!=
1
){
uni
.
setScreenBrightness
({
value
:
1
});
}
}
})
},
onHide
:
function
()
{
uni
.
setScreenBrightness
({
// 恢复之前屏幕亮度
value
:
this
.
Brightness
})
},
onLoad
(
option
)
{
let
pdOpenid
=
uni
.
getStorageSync
(
"openid"
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
"token"
)
...
...
pages/my/order/intelTicket/intelTicket.vue
View file @
f0816231
...
...
@@ -10,8 +10,28 @@
data
()
{
return
{
outUrl
:
""
,
//跳出地址
Brightness
:
""
,
//屏幕亮度
}
},
onShow
()
{
let
_this
=
this
uni
.
getScreenBrightness
({
success
:
function
(
res
){
// 这里是把获取到的手机屏幕亮度,存储到data里面,方便给到页面生命周期隐藏和卸载方法里面用
_this
.
Brightness
=
res
.
value
;
if
(
res
.
value
!=
1
){
uni
.
setScreenBrightness
({
value
:
1
});
}
}
})
},
onHide
:
function
()
{
uni
.
setScreenBrightness
({
// 恢复之前屏幕亮度
value
:
this
.
Brightness
})
},
onLoad
(
option
)
{
//#ifdef MP-WEIXIN
this
.
enterUrl
=
option
.
q
...
...
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