Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f9b94d29
authored
Sep 22, 2020
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
LL - 我的预约导航栏返回
parent
573bd2f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
pages/mine/appointment/appointment.js
pages/mine/appointment/appointment.wxml
pages/mine/appointment/appointment.js
View file @
f9b94d29
...
...
@@ -12,6 +12,7 @@ Page({
* 页面的初始数据
*/
data
:
{
option
:
{},
isDoing
:
false
,
pageNo
:
1
,
// 导航栏相关属性
...
...
@@ -72,6 +73,7 @@ Page({
onLoad
:
function
(
options
)
{
let
type
=
options
.
tab
?
1
*
options
.
tab
:
0
this
.
setData
({
option
:
options
,
height
:
wx
.
getSystemInfoSync
().
windowHeight
,
//获取屏幕的高度
active
:
type
})
...
...
@@ -356,4 +358,16 @@ Page({
},
// 导航栏返回事件。
onNavBack
:
function
()
{
if
(
this
.
data
.
option
.
fromPage
)
{
wx
.
switchTab
({
url
:
'/pages/mine/home/home'
,
})
}
else
{
wx
.
navigateBack
({
'delta'
:
1
})
}
},
})
\ No newline at end of file
pages/mine/appointment/appointment.wxml
View file @
f9b94d29
<!--pages/myAppointment/myAppointment.wxml-->
<navigation class="navigation" titleText="我的预约" backIcon="/image/back.png" scrollStyle="{{navigationStyle}}"
scrollHeight="{{navigationScroll}}"></navigation>
<navigation class="navigation" titleText="我的预约" backIcon="/image/back.png" scrollStyle="{{navigationStyle}}" scrollHeight="{{navigationScroll}}" bind:navBack="onNavBack"></navigation>
<view class="container all">
<view class="myActivity-container" style="min-height:{{height}}px;">
<view class="myAppointment-nav">
...
...
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