Commit e1bde05d authored by 华国豪's avatar 华国豪 🙄

合并代码

parents 1b3d3a96 4bdcd71c
...@@ -208,9 +208,6 @@ image{ ...@@ -208,9 +208,6 @@ image{
.commonF .flex1{ .commonF .flex1{
flex: 1; flex: 1;
} }
.commonF .tct{
text-align: center;
}
.num_wrap{ .num_wrap{
width: 220rpx; width: 220rpx;
vertical-align: middle; vertical-align: middle;
...@@ -244,5 +241,4 @@ image{ ...@@ -244,5 +241,4 @@ image{
text-align: center; text-align: center;
border: none; border: none;
margin: 0 2rpx; 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
...@@ -5,7 +5,7 @@ Page({ ...@@ -5,7 +5,7 @@ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
isLogin: app.isLogin, isLogin: app.isLogin,
screenList:[ screenList:[
{ {
...@@ -328,11 +328,11 @@ Page({ ...@@ -328,11 +328,11 @@ Page({
calendarCreatCalendar() { calendarCreatCalendar() {
this.calendar = this.selectComponent('#calendar'); this.calendar = this.selectComponent('#calendar');
this.calendar.getYearMonthDay(this.data.classArray); this.calendar.getYearMonthDay(this.data.classArray);
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
let tit = "机票列表" let tit = "机票列表"
if (options.sName && options.eName){ if (options.sName && options.eName){
tit = options.sName + '——' + options.eName tit = options.sName + '——' + options.eName
...@@ -363,13 +363,13 @@ Page({ ...@@ -363,13 +363,13 @@ Page({
this.openDate() this.openDate()
this.setData({ this.setData({
"msg.qFlightDateStart": i.detail.date_str "msg.qFlightDateStart": i.detail.date_str
}) })
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {
this.initAirlines()
}, },
/** /**
......
<view class='TicketList commonF'> <view class='TicketList commonF'>
<view class='top-date-box clearfix'> <view class='top-date-box clearfix'>
<scroll-view scroll-left="{{(leftpx*160) + 'rpx'}}" scroll-x style='white-space: nowrap;' class='date'> <scroll-view scroll-left="{{(leftpx*160) + 'rpx'}}" scroll-x style='white-space: nowrap;' class='date'>
...@@ -252,4 +253,4 @@ ...@@ -252,4 +253,4 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
\ No newline at end of file
.top-date-box{ .top-date-box{
padding: 17rpx 0; padding: 17rpx 0;
background-color: #fff; background-color: #fff;
...@@ -318,4 +319,4 @@ ...@@ -318,4 +319,4 @@
} }
.margin-top30{ .margin-top30{
margin-top: 30rpx; margin-top: 30rpx;
} }
\ No newline at end of file
...@@ -79,13 +79,14 @@ Page({ ...@@ -79,13 +79,14 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
const scene = decodeURIComponent(options.scene) const scene = decodeURIComponent(options.scene)
if (scene) { if (scene) {
let tcId = scene.split('=')[1] ? scene.split('=')[1] : options.tcid; let tcId = scene.split('=')[1] ? scene.split('=')[1] : options.tcid;
this.setData({ // let tcId = 4006
tcId: tcId // this.setData({
}) // tcId: tcId
// })
}else{ }else{
// this.setData({ // this.setData({
// tcId: 3278 // tcId: 3278
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
"id": 12, "id": 12,
"name": "签证详情", "name": "签证详情",
"pathName": "pages/visa/visaDetails/visaDetails", "pathName": "pages/visa/visaDetails/visaDetails",
"query": "", "query": "id=dRvFC7rQ4Lg%3D%0A",
"scene": null "scene": null
}, },
{ {
...@@ -148,8 +148,8 @@ ...@@ -148,8 +148,8 @@
}, },
{ {
"id": 15, "id": 15,
"name": "机票列表", "name": "跟团游填写订单",
"pathName": "pages/Ticket/TicketList/TicketList", "pathName": "pages/GroupTour/FillOrder/FillOrder",
"query": "", "query": "",
"scene": null "scene": null
} }
......
...@@ -66,7 +66,7 @@ const getDays = (year, month)=>{ ...@@ -66,7 +66,7 @@ const getDays = (year, month)=>{
month = parseInt(month, 10); month = parseInt(month, 10);
var d = new Date(year, month, 0); var d = new Date(year, month, 0);
return d.getDate(); return d.getDate();
} }
// 时间格式化 // 时间格式化
Date.prototype.Format = function (fmt) { Date.prototype.Format = function (fmt) {
var o = { var o = {
...@@ -135,7 +135,7 @@ const getNextMonth = (date) => { ...@@ -135,7 +135,7 @@ const getNextMonth = (date) => {
} }
var t2 = year2 + '-' + month2 + '-' + day2; var t2 = year2 + '-' + month2 + '-' + day2;
return t2; return t2;
} }
module.exports = { module.exports = {
formatTime: formatTime, formatTime: formatTime,
CompareDate: CompareDate, CompareDate: CompareDate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment