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
0f007bcb
Commit
0f007bcb
authored
Mar 28, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修改
新增退票按钮
parent
d7faf185
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
applyAfterSales.vue
pages/my/order/applyAfterSales/applyAfterSales.vue
+2
-2
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+15
-6
No files found.
pages/my/order/applyAfterSales/applyAfterSales.vue
View file @
0f007bcb
...
...
@@ -12,13 +12,13 @@ export default {
}
},
onLoad
(
option
)
{
let
=
option
.
orderId
||
''
let
orderId
=
option
.
orderId
||
''
let
pdOpenid
=
uni
.
getStorageSync
(
'openid'
)
//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let
pdToken
=
uni
.
getStorageSync
(
'token'
)
let
pdCreateUserId
=
uni
.
getStorageSync
(
'createUserId'
)
let
pdUserId
=
uni
.
getStorageSync
(
'userId'
)
let
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
this
.
outUrl
=
'https://wx.pangdly.com/#/applyAfterSales?id='
+
orderId
+
'&pdOpenid='
+
pdOpenid
+
'&pdToken='
+
pdToken
+
'&pdCreateUserId='
+
pdCreateUserId
+
'&pdUserId='
+
pdUserId
+
'&ifyukuaiCode='
+
ifyukuaiCode
+
'&enterpriseWechat='
+
enterpriseWechat
this
.
outUrl
=
'https://wx.pangdly.com/#/applyAfterSales?id='
+
orderId
+
'&pdOpenid='
+
pdOpenid
+
'&pdToken='
+
pdToken
+
'&pdCreateUserId='
+
pdCreateUserId
+
'&pdUserId='
+
pdUserId
+
'&ifyukuaiCode='
+
ifyukuaiCode
},
methods
:
{
}
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
0f007bcb
...
...
@@ -215,12 +215,10 @@
</
template
>
<
template
v-else-if=
"orderInfo.isRefund==2"
>
随时可退
</
template
>
<
template
v-if=
"ticketStatus"
>
<router-link
class=
"list-btnRefund"
:to=
"'/applyAfterSales?id='+orderInfo.id"
v-if=
"orderInfo.orderStatus==2&&orderInfo.isRefund!=0&&ticketStatus==0"
>
退款/售后
</router-link>
<view
class=
"list-btnRefund"
v-if=
"orderInfo.orderStatus==2&&orderInfo.isRefund!=0&&ticketStatus==0"
@
click=
"refundJump(orderInfo.id)"
>
退款/售后
</view>
</
template
>
<
template
v-else
>
<router-link
class=
"list-btnRefund"
:to=
"'/applyAfterSales?id='+orderInfo.id"
v-if=
"orderInfo.orderStatus==2&&orderInfo.isRefund!=0"
>
退款/售后
</router-link>
<view
class=
"list-btnRefund"
v-if=
"orderInfo.orderStatus==2&&orderInfo.isRefund!=0"
@
click=
"refundJump(orderInfo.id)"
>
退款/售后
</view>
</
template
>
</view>
</view>
...
...
@@ -436,6 +434,7 @@
Brightness
:
''
,
//屏幕亮度
qrCodeType
:
false
,
//是否是多个二维码
btnRefundType
:
false
,
//是否可退款
ifyukuaiCode
:
''
,
}
},
onShow
()
{
...
...
@@ -459,6 +458,7 @@
},
onLoad
(
option
)
{
this
.
id
=
option
.
orderId
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
//this.id = "z00167956572219584dc15634b62cf75"
//this.openId = uni.getStorageSync("openid") //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this
.
openId
=
"oh2UV1lyYABHMZ1rMlgjhVHyyYDQ"
...
...
@@ -485,6 +485,9 @@
if
(
res
.
code
==
"00"
){
this
.
orderInfo
=
res
.
data
this
.
orderExtendList
=
res
.
data
.
orderExtendList
if
(
this
.
orderInfo
.
orderType
==
1
){
this
.
orderTypeNum
=
0
}
if
(
this
.
orderInfo
.
orderTicketDetailList
&&
this
.
orderInfo
.
orderTicketDetailList
.
length
>
0
){
this
.
verifyCode
=
this
.
orderInfo
.
orderTicketDetailList
[
0
].
verifyCode
this
.
ticketStatus
=
this
.
orderInfo
.
orderTicketDetailList
[
0
].
ticketStatus
...
...
@@ -781,6 +784,11 @@
this
.
countTime
(
timer
)
},
1000
)
},
refundJump
(
id
){
//-------------------景区跳转
uni
.
reLaunch
({
url
:
'/pages/my/order/applyAfterSales/applyAfterSales?orderId='
+
id
+
'&ifyukuaiCode='
+
this
.
ifyukuaiCode
})
},
}
}
</
script
>
...
...
@@ -837,9 +845,10 @@
.order-allType
{
width
:
710
rpx
;
background-color
:
#fff
;
box-shadow
:
0
rpx
0
rpx
16
rpx
2
rpx
rgba
(
0
,
0
,
0
,
0.08
);
box-shadow
:
0
rpx
0
rpx
6
rpx
0
rpx
rgba
(
0
,
0
,
0
,
0.04
);
border-radius
:
16
rpx
16
rpx
16
rpx
16
rpx
;
margin
:
0
auto
16
rpx
auto
;
overflow
:
hidden
;
}
.order-allType
.alltype-title
{
...
...
@@ -848,7 +857,7 @@
align-items
:
center
;
height
:
92
rpx
;
padding
:
24
rpx
24
rpx
24
rpx
24
rpx
;
box-shadow
:
0
rpx
2
rpx
0
rpx
2
rpx
rgba
(
0
,
0
,
0
,
0.0
8
);
box-shadow
:
0
rpx
2
rpx
0
rpx
2
rpx
rgba
(
0
,
0
,
0
,
0.0
4
);
position
:
relative
;
}
...
...
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