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
5fc70d92
Commit
5fc70d92
authored
Jul 17, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善机票下单
parent
e1bde05d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
75 additions
and
24 deletions
+75
-24
Common.wxss
Common.wxss
+4
-0
app.js
app.js
+2
-2
app.json
app.json
+2
-1
Ticket.js
pages/Ticket/Ticket.js
+12
-3
TicketList.js
pages/Ticket/TicketList/TicketList.js
+25
-6
TicketList.wxml
pages/Ticket/TicketList/TicketList.wxml
+1
-1
visaOrder.wxml
pages/visa/visaOrder/visaOrder.wxml
+6
-10
visaOrder.wxss
pages/visa/visaOrder/visaOrder.wxss
+1
-0
project.config.json
project.config.json
+22
-1
No files found.
Common.wxss
View file @
5fc70d92
...
...
@@ -241,4 +241,8 @@ image{
text-align: center;
border: none;
margin: 0 2rpx;
}
.flex-ter{
display: flex;
align-items: center;
}
\ No newline at end of file
app.js
View file @
5fc70d92
...
...
@@ -51,8 +51,8 @@ App({
let
timestamp
=
(
new
Date
()).
valueOf
()
let
sign
=
md5
(
'cmd='
+
url
+
'&'
+
'msg='
+
encodeURIComponent
(
data
).
toLowerCase
()
+
'&'
+
'timestamp='
+
timestamp
+
'&'
+
'token='
+
getApp
().
state
.
admin
.
token
+
'&'
+
'key='
+
''
)
wx
.
request
({
//
url: 'http://192.168.2.214:8082/api/Common/Post',
url
:
'http://192.168.2.65:8025/api/Common/Post'
,
//春姐
url
:
'http://192.168.2.214:8082/api/Common/Post'
,
//
url: 'http://192.168.2.65:8025/api/Common/Post', //春姐
// url: 'https://reborn.oytour.com/api/common/post', //线上
// url: ' http://test.viitto.com/api/common/post',
...
...
app.json
View file @
5fc70d92
...
...
@@ -39,7 +39,8 @@
"pages/Voucher/write/write"
,
"pages/Ticket/Ticket"
,
"pages/Ticket/TicketList/TicketList"
,
"pages/Ticket/TicketDate/TicketDate"
,
"pages/Ticket/TicketOrder/TicketOrder"
,
"pages/Ticket/TicketSetpp/TicketSetpp"
,
"pages/login/smsLogin/smsLogin"
,
"pages/login/revisePwd/revisePwd"
,
"pages/product/SametradeZW/prizelist/prizelist"
,
...
...
pages/Ticket/Ticket.js
View file @
5fc70d92
...
...
@@ -54,9 +54,18 @@ Page({
// 搜索进入机票列表
seachTiket
:
function
()
{
let
_this
=
this
;
wx
.
navigateTo
({
url
:
'/pages/Ticket/TicketList/TicketList?date='
+
_this
.
data
.
msg
.
qFlightDateStart
+
"&sName="
+
_this
.
data
.
msg
.
departureName
+
"&sId="
+
_this
.
data
.
msg
.
departure_city
+
"&eName="
+
_this
.
data
.
msg
.
arrivalName
+
"&eId="
+
_this
.
data
.
msg
.
arrival_city
+
"&type="
+
_this
.
data
.
msg
.
ticketType
})
if
(
_this
.
data
.
msg
.
departure_city
!=
0
||
_this
.
data
.
msg
.
arrival_city
!=
0
)
{
wx
.
navigateTo
({
url
:
'/pages/Ticket/TicketList/TicketList?date='
+
_this
.
data
.
msg
.
qFlightDateStart
+
"&sName="
+
_this
.
data
.
msg
.
departureName
+
"&sId="
+
_this
.
data
.
msg
.
departure_city
+
"&eName="
+
_this
.
data
.
msg
.
arrivalName
+
"&eId="
+
_this
.
data
.
msg
.
arrival_city
+
"&type="
+
_this
.
data
.
msg
.
ticketType
})
}
else
{
wx
.
showToast
({
title
:
"请选择出发地或目的地"
,
icon
:
'none'
,
duration
:
1000
})
return
}
},
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
)
...
...
pages/Ticket/TicketList/TicketList.js
View file @
5fc70d92
...
...
@@ -89,6 +89,13 @@ Page({
detailMsg
:
msg
})
},
// 跳转下订单页面
setOreder
:
function
(
e
){
let
id
=
e
.
currentTarget
.
dataset
.
id
wx
.
navigateTo
({
url
:
'/pages/Ticket/TicketOrder/TicketOrder?id='
+
id
,
})
},
// 加载更多
scrollGetMore
:
function
()
{
this
.
setData
({
...
...
@@ -336,7 +343,12 @@ Page({
let
tit
=
"机票列表"
if
(
options
.
sName
&&
options
.
eName
){
tit
=
options
.
sName
+
'——'
+
options
.
eName
}
else
if
(
options
.
sName
){
tit
=
options
.
sName
+
'——出发'
}
else
if
(
options
.
eName
)
{
tit
=
'目的地——'
+
options
.
eName
}
console
.
log
(
options
)
wx
.
setNavigationBarTitle
({
title
:
tit
})
...
...
@@ -345,11 +357,17 @@ Page({
'getMonthMsg.qFlightDateStart'
:
new
Date
().
Format
(
"yyyy-MM-dd"
)
+
" 00:00:00"
,
"msg.qFlightDateStart"
:
util
.
AddDays
(
new
Date
().
Format
(
"yyyy-MM-dd"
),
6
),
qitianhou
:
util
.
AddDays
(
new
Date
().
Format
(
"yyyy-MM-dd"
),
6
),
// "getMonthMsg.departure_city": options.sId,
// "getMonthMsg.departure_cityname": options.sName,
// "getMonthMsg.arrival_city": options.eId,
// "getMonthMsg.ticketType": options.type,
// "msg.ticketType": options.type,
"getMonthMsg.departure_city"
:
options
.
sId
,
"getMonthMsg.departure_cityname"
:
options
.
sName
,
"getMonthMsg.arrival_cityname"
:
options
.
eName
,
"getMonthMsg.arrival_city"
:
options
.
eId
,
"getMonthMsg.ticketType"
:
options
.
type
,
"msg.departure_city"
:
options
.
sId
,
"msg.departure_cityname"
:
options
.
sName
,
"msg.arrival_cityname"
:
options
.
eName
,
"msg.arrival_city"
:
options
.
eId
,
"msg.ticketType"
:
options
.
type
,
"msg.ticketType"
:
options
.
type
,
})
this
.
getMinPrice
()
this
.
getForMonthMinPrice
()
...
...
@@ -360,10 +378,11 @@ Page({
this
.
data
.
getMonthMsg
.
flithtMonthDate
=
i
.
detail
.
date_str
this
.
data
.
getMonthMsg
.
qFlightDateStart
=
i
.
detail
.
date_str
+
" 00:00:00"
this
.
getMinPrice
(
i
.
detail
.
date_str
)
this
.
openDate
()
this
.
openDate
()
this
.
setData
({
"msg.qFlightDateStart"
:
i
.
detail
.
date_str
})
this
.
getList
()
},
/**
* 生命周期函数--监听页面初次渲染完成
...
...
pages/Ticket/TicketList/TicketList.wxml
View file @
5fc70d92
...
...
@@ -88,7 +88,7 @@
</view> -->
</view>
</view>
<view class='list-item-right'>
<view class='list-item-right'
bindtap='setOreder' data-id='{{item.id}}'
>
<view class='f22 cee'>
¥ <text class='f40 blod'>{{isLogin!=1 ? item.scatterB2CPrice : item.scatterB2BPrice}}</text>
</view>
...
...
pages/visa/visaOrder/visaOrder.wxml
View file @
5fc70d92
...
...
@@ -74,19 +74,15 @@
<view class='tit'>
<text class='f30'>配送方式</text>
<text class='f24 cee'>顺丰快递</text>
</view>
<!-- <view class='tips bb1e9'>
<image class='tips-img' src='../../../images/visa/info.png'></image>
<text class='f22'>出签后将按照您填写的地址投递出签护照,请务必保证地址准确性。</text>
</view> -->
</view>
<view class='bb1e9 info-item bb1e9'>
<text class='f30 name c11'>收件人</text>
<input class='f24
c88
' placeholder='请输入联系人名称' value='{{saveMsg.VisaOrderRelation.Receiver}}' data-type="Receiver" bindinput='lianxirenChange'></input>
<input class='f24 ' placeholder='请输入联系人名称' value='{{saveMsg.VisaOrderRelation.Receiver}}' data-type="Receiver" bindinput='lianxirenChange'></input>
</view>
<view class='bb1e9 info-item bb1e9'>
<text class='f30 name c11'>联系电话</text>
<text class='f24 c11 mg10'>+86</text>
<input class='f24
c88
' placeholder='请输入联系人电话' value='{{saveMsg.VisaOrderRelation.ReceiverPhone}}' data-type="ReceiverPhone" type='number' bindinput='lianxirenChange'></input>
<input class='f24 ' placeholder='请输入联系人电话' value='{{saveMsg.VisaOrderRelation.ReceiverPhone}}' data-type="ReceiverPhone" type='number' bindinput='lianxirenChange'></input>
</view>
<view class='info-item'>
<text class='f30 name c11'>邮寄地址</text>
...
...
@@ -110,12 +106,12 @@
</view>
<view class='bb1e9 info-item bb1e9'>
<text class='f30 name c11'>联系人</text>
<input class='f24
c88
' placeholder='请输入联系人名称' data-type="RelationName" bindinput='lianxirenChange'></input>
<input class='f24 ' placeholder='请输入联系人名称' data-type="RelationName" bindinput='lianxirenChange'></input>
</view>
<view class='bb1e9 info-item bb1e9'>
<text class='f30 name c11'>手机号码</text>
<text class='f24 c11 mg10'>+86</text>
<input class='f24
c88
' type='number' data-type="RelationPhone" bindinput='lianxirenChange' placeholder='请输入联系人电话'></input>
<input class='f24 ' type='number' data-type="RelationPhone" bindinput='lianxirenChange' placeholder='请输入联系人电话'></input>
</view>
</view>
</scroll-view>
...
...
@@ -123,7 +119,7 @@
<view style="width:310rpx;">
<text class="f20">¥</text>
<text class="f46 cee">{{isLogin!=1 ? ppList.length * dataList.visaB2CPrice : ppList.length * dataList.visaB2CPrice}}</text>
<text class="f20
c88
">/人起</text>
<text class="f20 ">/人起</text>
</view>
<view style="width:100rpx;border-left:1px solid #E9E9E9;padding-top:29rpx;">
<image style="width:45rpx;height:45rpx" src="/images/group/pay.png"></image>
...
...
pages/visa/visaOrder/visaOrder.wxss
View file @
5fc70d92
...
...
@@ -49,6 +49,7 @@
.addpeople-btn view.btn view image{
width: 28rpx;
height: 28rpx;
margin-right: 10rpx;
}
.peisong,.fapiao-info-item{
background-color: white;
...
...
project.config.json
View file @
5fc70d92
...
...
@@ -39,7 +39,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
1
,
"current"
:
1
8
,
"list"
:
[
{
"id"
:
2
,
...
...
@@ -152,6 +152,27 @@
"pathName"
:
"pages/GroupTour/FillOrder/FillOrder"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"机票列表"
,
"pathName"
:
"pages/Ticket/TicketList/TicketList"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
17
,
"name"
:
"机票详情"
,
"pathName"
:
"pages/Ticket/TicketOrder/TicketOrder"
,
"query"
:
"id=940"
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"机票加人"
,
"pathName"
:
"pages/Ticket/TicketSetpp/TicketSetpp"
,
"query"
:
"id=940"
,
"scene"
:
null
}
]
}
...
...
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