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
20300255
Commit
20300255
authored
Jun 21, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付页面配合后端参数兼容
parent
b61853e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
33 deletions
+13
-33
orderPayment.vue
pages/payment/orderPayment/orderPayment.vue
+13
-33
No files found.
pages/payment/orderPayment/orderPayment.vue
View file @
20300255
...
...
@@ -2,8 +2,7 @@
<view
v-show=
"bodyShow"
>
<view
class=
"middle"
>
<view
class=
"main"
>
<!-- --------------------------------------复票----------------------------------------------- -->
<view
v-if=
"orderList != ''"
v-for=
"item of orderList"
:key=
"item.id"
class=
"product"
>
<view
v-if=
"orderList.length>0"
v-for=
"item of orderList"
:key=
"item.id"
class=
"product"
>
<view>
<text>
{{
item
.
merchantName
}}
(
{{
item
.
productName
}}
)
</text>
...
...
@@ -16,20 +15,6 @@
<text>
券
</text>
<text>
<text
style=
"font-size:24rpx;"
>
-¥
</text>
{{
item
.
pdDiscountMoney
}}
</text>
</view>
</view>
<!-- --------------------------------------单票----------------------------------------------- -->
<view
v-if=
"orderList == ''"
class=
"product"
>
<view>
<text>
{{
merchantName
}}
(
{{
productName
}}
)
</text>
<text
style=
"text-align: right;"
>
<text
style=
"font-size:24rpx;"
>
¥
</text>
{{
unitPrice
}}
<text>
x
</text>
{{
orderNum
}}
<text
style=
"margin-top:10rpx;font-size:22rpx;display:block;color:#f45803;"
v-if=
"depositReceived"
>
押金:
{{
depositReceived
}}
</text>
</text>
</view>
<view
class=
"coupon"
v-if=
"pdDiscountMoney"
>
<text>
券
</text>
<text>
<text
style=
"font-size:24rpx;"
>
-¥
</text>
{{
pdDiscountMoney
}}
</text>
</view>
</view>
<view
class=
"mainP3"
>
<text>
实际支付
</text>
<text>
...
...
@@ -72,13 +57,7 @@ export default {
data
()
{
return
{
enterUrl
:
''
,
//进入页面路由
merchantName
:
''
,
//商户名称
productName
:
''
,
//产品名称
orderList
:
''
,
//订单列表
unitPrice
:
''
,
//单价
depositReceived
:
0
,
//押金
pdDiscountMoney
:
''
,
//优惠价格
orderNum
:
''
,
//数量
orderList
:[],
//订单列表
pdOrderMoney
:
''
,
//实际总价
totalMoney
:
''
,
//原价总价
errorMessage
:
''
,
//错误信息
...
...
@@ -205,16 +184,17 @@ export default {
}
this
.
errorMessage
=
res
.
data
.
errorMessage
this
.
totalMoney
=
res
.
data
.
totalMoney
this
.
orderList
=
res
.
data
.
orderList
if
(
typeof
this
.
orderList
==
'undefined'
)
{
//单票
this
.
orderList
=
''
this
.
merchantName
=
res
.
data
.
merchantName
this
.
productName
=
res
.
data
.
productName
this
.
unitPrice
=
res
.
data
.
unitPrice
this
.
orderNum
=
res
.
data
.
orderNum
this
.
depositReceived
=
res
.
data
.
depositReceived
this
.
pdDiscountMoney
=
res
.
data
.
pdDiscountMoney
this
.
orderList
=
res
.
data
.
orderList
||
[]
if
(
this
.
orderList
.
length
==
0
)
{
this
.
orderList
.
push
({
merchantName
:
res
.
data
.
merchantName
,
productName
:
res
.
data
.
productName
,
unitPrice
:
res
.
data
.
unitPrice
,
orderNum
:
res
.
data
.
orderNum
,
depositReceived
:
res
.
data
.
depositReceived
,
pdDiscountMoney
:
res
.
data
.
pdDiscountMoney
,
endPlayDate
:
res
.
data
.
endPlayDate
})
}
}
else
{
uni
.
showToast
({
...
...
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