Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FlashMan
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
华国豪
FlashMan
Commits
e1bde05d
Commit
e1bde05d
authored
Jul 16, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
合并代码
parents
1b3d3a96
4bdcd71c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
23 deletions
+22
-23
Common.wxss
Common.wxss
+1
-5
TicketList.js
pages/Ticket/TicketList/TicketList.js
+5
-5
TicketList.wxml
pages/Ticket/TicketList/TicketList.wxml
+2
-1
TicketList.wxss
pages/Ticket/TicketList/TicketList.wxss
+2
-1
Voucher.js
pages/Voucher/Voucher.js
+7
-6
project.config.json
project.config.json
+3
-3
util.js
utils/util.js
+2
-2
No files found.
Common.wxss
View file @
e1bde05d
...
...
@@ -208,9 +208,6 @@ image{
.commonF .flex1{
flex: 1;
}
.commonF .tct{
text-align: center;
}
.num_wrap{
width: 220rpx;
vertical-align: middle;
...
...
@@ -244,5 +241,4 @@ image{
text-align: center;
border: none;
margin: 0 2rpx;
}
.clearfix:after {content: "\0020";display: block;height: 0;clear: both;}
\ No newline at end of file
}
\ No newline at end of file
pages/Ticket/TicketList/TicketList.js
View file @
e1bde05d
...
...
@@ -5,7 +5,7 @@ Page({
/**
* 页面的初始数据
*/
data
:
{
data
:
{
isLogin
:
app
.
isLogin
,
screenList
:[
{
...
...
@@ -328,11 +328,11 @@ Page({
calendarCreatCalendar
()
{
this
.
calendar
=
this
.
selectComponent
(
'#calendar'
);
this
.
calendar
.
getYearMonthDay
(
this
.
data
.
classArray
);
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
let
tit
=
"机票列表"
if
(
options
.
sName
&&
options
.
eName
){
tit
=
options
.
sName
+
'——'
+
options
.
eName
...
...
@@ -363,13 +363,13 @@ Page({
this
.
openDate
()
this
.
setData
({
"msg.qFlightDateStart"
:
i
.
detail
.
date_str
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
this
.
initAirlines
()
},
/**
...
...
pages/Ticket/TicketList/TicketList.wxml
View file @
e1bde05d
<view class='TicketList commonF'>
<view class='top-date-box clearfix'>
<scroll-view scroll-left="{{(leftpx*160) + 'rpx'}}" scroll-x style='white-space: nowrap;' class='date'>
...
...
@@ -252,4 +253,4 @@
</view>
</view>
</view>
</view>
\ No newline at end of file
</view>
pages/Ticket/TicketList/TicketList.wxss
View file @
e1bde05d
.top-date-box{
padding: 17rpx 0;
background-color: #fff;
...
...
@@ -318,4 +319,4 @@
}
.margin-top30{
margin-top: 30rpx;
}
\ No newline at end of file
}
pages/Voucher/Voucher.js
View file @
e1bde05d
...
...
@@ -79,13 +79,14 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
const
scene
=
decodeURIComponent
(
options
.
scene
)
onLoad
:
function
(
options
)
{
const
scene
=
decodeURIComponent
(
options
.
scene
)
if
(
scene
)
{
let
tcId
=
scene
.
split
(
'='
)[
1
]
?
scene
.
split
(
'='
)[
1
]
:
options
.
tcid
;
this
.
setData
({
tcId
:
tcId
})
let
tcId
=
scene
.
split
(
'='
)[
1
]
?
scene
.
split
(
'='
)[
1
]
:
options
.
tcid
;
// let tcId = 4006
// this.setData({
// tcId: tcId
// })
}
else
{
// this.setData({
// tcId: 3278
...
...
project.config.json
View file @
e1bde05d
...
...
@@ -129,7 +129,7 @@
"id"
:
12
,
"name"
:
"签证详情"
,
"pathName"
:
"pages/visa/visaDetails/visaDetails"
,
"query"
:
""
,
"query"
:
"
id=dRvFC7rQ4Lg%3D%0A
"
,
"scene"
:
null
},
{
...
...
@@ -148,8 +148,8 @@
},
{
"id"
:
15
,
"name"
:
"
机票列表
"
,
"pathName"
:
"pages/
Ticket/TicketList/TicketList
"
,
"name"
:
"
跟团游填写订单
"
,
"pathName"
:
"pages/
GroupTour/FillOrder/FillOrder
"
,
"query"
:
""
,
"scene"
:
null
}
...
...
utils/util.js
View file @
e1bde05d
...
...
@@ -66,7 +66,7 @@ const getDays = (year, month)=>{
month
=
parseInt
(
month
,
10
);
var
d
=
new
Date
(
year
,
month
,
0
);
return
d
.
getDate
();
}
}
// 时间格式化
Date
.
prototype
.
Format
=
function
(
fmt
)
{
var
o
=
{
...
...
@@ -135,7 +135,7 @@ const getNextMonth = (date) => {
}
var
t2
=
year2
+
'-'
+
month2
+
'-'
+
day2
;
return
t2
;
}
}
module
.
exports
=
{
formatTime
:
formatTime
,
CompareDate
:
CompareDate
,
...
...
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