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
35c78e84
Commit
35c78e84
authored
Oct 20, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单个退单
parent
700f5ad9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
51 deletions
+76
-51
applyAfterSale.vue
pages/my/order/afterSale/applyAfterSale/applyAfterSale.vue
+74
-49
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+1
-1
orderList.vue
pages/my/order/orderList/orderList.vue
+1
-1
No files found.
pages/my/order/afterSale/applyAfterSale/applyAfterSale.vue
View file @
35c78e84
...
@@ -11,20 +11,21 @@
...
@@ -11,20 +11,21 @@
</view>
</view>
<view
class=
"ticket-timer"
>
游玩当日
{{
orderRefundRuleTimer
}}
之前未使用可退
</view>
<view
class=
"ticket-timer"
>
游玩当日
{{
orderRefundRuleTimer
}}
之前未使用可退
</view>
</view>
</view>
<
!--
<
view
class=
"apply-user general-Box"
>
<view
class=
"apply-user general-Box"
>
<view
class=
"user-title"
>
<view
class=
"user-title"
>
<view
class=
"title-name"
>
用户选择
</view>
<view
class=
"title-name"
>
用户选择
</view>
<u-checkbox
@
change=
"checkedAll"
v-model=
"applyClickAll"
>
全选
</u-checkbox>
<checkbox-group
@
change=
"checkedAll"
>
<label>
<checkbox
value=
"val"
:checked=
"applyClickAll"
style=
"transform:scale(0.7);"
class=
"list-uCheck"
:class=
"applyClickAll==true?'list-uCheckAct':''"
/>
全选
</label>
</checkbox-group>
</view>
</view>
<u-checkbox-group
@
change=
"checkboxGroupChange"
>
<checkbox-group
@
change=
"checkboxGroupChange"
v-if=
"applyUserListType"
>
<u-checkbox
<label
style=
"margin-right: 15rpx;margin-bottom: 15rpx;"
v-for=
"(item,index) in applyUserList"
:key=
"index"
>
@
change=
"checkboxChange"
<checkbox
:value=
"item.id"
:checked=
"item.checkType"
style=
"transform:scale(0.7);"
class=
"list-uCheck"
:class=
"item.checkType==true?'list-uCheckAct':''"
/>
{{
item
.
name
}}
v-model=
"item.checked"
</label>
v-for=
"(item, index) in applyUserList"
:key=
"index"
</checkbox-group>
:name=
"item.name"
</view>
>
{{
item
.
name
}}
</u-checkbox>
</u-checkbox-group>
</view>
-->
<view
class=
"apply-moneyBox general-Box"
>
<view
class=
"apply-moneyBox general-Box"
>
<view
class=
"moneyBox-list"
>
<view
class=
"moneyBox-list"
>
<view
class=
"list-name"
>
订单实付
</view>
<view
class=
"list-name"
>
订单实付
</view>
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
</view>
</view>
<view
class=
"moneyBox-list"
>
<view
class=
"moneyBox-list"
>
<view
class=
"list-name"
>
退款金额
</view>
<view
class=
"list-name"
>
退款金额
</view>
<view
class=
"list-money list-clolrOrange"
>
¥
{{
parseFloat
(
orderInfo
.
pdOrderMoney
)
-
parseFloat
(
orderInfo
.
refundFee
)
}}
</view>
<view
class=
"list-money list-clolrOrange"
>
¥
{{
orderInfo
.
unitPrice
*
refundNum
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"apply-cause general-Box"
>
<view
class=
"apply-cause general-Box"
>
...
@@ -71,15 +72,17 @@ export default {
...
@@ -71,15 +72,17 @@ export default {
merchantId
:
''
,
//景区ID
merchantId
:
''
,
//景区ID
applyClickAll
:
false
,
//是否全选
applyClickAll
:
false
,
//是否全选
applyUserList
:[
applyUserList
:[
{
//
{
name
:
'张三'
,
//
name:'张三',
checked
:
false
,
//
checked:false,
},
//
},
{
//
{
name
:
'李四'
,
//
name:'李四',
checked
:
false
,
//
checked:false,
},
//
},
],
//用户信息
],
//用户信息
applyUserListType
:
true
,
refundNum
:
0
,
//选择多少人
causeList
:[
causeList
:[
{
{
name
:
'更改出行日期'
,
name
:
'更改出行日期'
,
...
@@ -116,7 +119,7 @@ export default {
...
@@ -116,7 +119,7 @@ export default {
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
id
=
option
.
orderId
||
''
this
.
id
=
option
.
orderId
||
''
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
//this.openId = 'o
roHZ5FaUQ_SOOC_uQQP92fJpBRE
'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
//this.openId = 'o
h2UV1lyYABHMZ1rMlgjhVHyyYDQ
'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this
.
getDetail
()
this
.
getDetail
()
},
},
methods
:
{
methods
:
{
...
@@ -153,15 +156,22 @@ export default {
...
@@ -153,15 +156,22 @@ export default {
})
})
return
false
return
false
}
}
var
orderTouristVoList
=
[]
this
.
applyUserList
.
forEach
((
item
)
=>
{
if
(
item
.
checkType
==
true
){
orderTouristVoList
.
push
(
item
)
}
})
var
data
=
{
var
data
=
{
orderId
:
this
.
orderInfo
.
id
,
orderId
:
this
.
orderInfo
.
id
,
userId
:
this
.
openId
,
userId
:
this
.
openId
,
refundReason
:
this
.
reason
,
refundReason
:
this
.
reason
,
refundNum
:
this
.
orderInfo
.
order
Num
,
refundNum
:
this
.
refund
Num
,
refundMoney
:
parseFloat
(
this
.
orderInfo
.
pdOrderMoney
)
-
parseFloat
(
this
.
orderInfo
.
depositReceived
)
,
refundMoney
:
this
.
orderInfo
.
unitPrice
*
this
.
refundNum
,
pdRefundMoney
:
parseFloat
(
this
.
orderInfo
.
pdOrderMoney
),
pdRefundMoney
:
parseFloat
(
this
.
orderInfo
.
pdOrderMoney
),
refundType
:
0
,
refundType
:
0
,
pdRefundFee
:
this
.
orderInfo
.
depositReceived
,
pdRefundFee
:
this
.
orderInfo
.
depositReceived
,
orderTouristVoList
:
orderTouristVoList
,
}
}
this
.
$request
(
'order/userOrder/refundTicket'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'order/userOrder/refundTicket'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
...
@@ -223,6 +233,10 @@ export default {
...
@@ -223,6 +233,10 @@ export default {
if
(
this
.
getNowTime
()
>
this
.
orderRefundRuleTimer
){
if
(
this
.
getNowTime
()
>
this
.
orderRefundRuleTimer
){
this
.
orderRefundRuleTimerType
=
true
this
.
orderRefundRuleTimerType
=
true
}
}
this
.
orderInfo
.
orderTouristList
.
forEach
((
item
)
=>
{
item
[
'checkType'
]
=
false
})
this
.
applyUserList
=
this
.
orderInfo
.
orderTouristList
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
...
@@ -235,32 +249,35 @@ export default {
...
@@ -235,32 +249,35 @@ export default {
clickNewFun
(
labelNum
){
clickNewFun
(
labelNum
){
this
.
causeNum
=
labelNum
this
.
causeNum
=
labelNum
},
},
// // 选中某个复选框时,由checkbox时触发 可以获取当前选择值的所有信息
checkboxGroupChange
(
e
){
//刷新显示
// checkboxChange(e) {
this
.
applyUserListType
=
false
// // console.log(e)
this
.
applyUserList
.
forEach
((
item
)
=>
{
// },
item
.
checkType
=
false
// // 选中任一checkbox时,由checkbox-group触发 已经选择了多少选项
e
.
detail
.
value
.
forEach
(
item2
=>
{
// checkboxGroupChange(e) {
if
(
item
.
id
==
item2
){
// // console.log(e)
this
.
$set
(
item
,
'checkType'
,
true
)
// if(this.applyUserList.length==e.length){
}
// this.applyClickAll = true
})
// }else{
})
// this.applyClickAll =false
this
.
refundNum
=
e
.
detail
.
value
.
length
// }
this
.
applyUserListType
=
true
// },
},
// // 全选
checkedAll
(
e
){
//全选
// checkedAll(e) {
if
(
this
.
applyClickAll
==
false
){
// console.log(e)
this
.
applyClickAll
=
true
// if(e.value==true){
this
.
applyUserList
.
forEach
((
item
)
=>
{
// this.applyUserList.map(val => {
item
.
checkType
=
true
// val.checked = true
})
// })
this
.
refundNum
=
this
.
applyUserList
.
length
// }else{
}
else
{
// this.applyUserList.map(val => {
this
.
applyClickAll
=
false
// val.checked = false
this
.
applyUserList
.
forEach
((
item
)
=>
{
// })
item
.
checkType
=
false
// }
})
// },
this
.
refundNum
=
0
}
},
getNowTime
()
{
//获取当前时间(HH-MM-SS)
getNowTime
()
{
//获取当前时间(HH-MM-SS)
var
date
=
new
Date
()
var
date
=
new
Date
()
var
seperator1
=
'-'
var
seperator1
=
'-'
...
@@ -361,6 +378,14 @@ export default {
...
@@ -361,6 +378,14 @@ export default {
/
deep
/
.u-checkbox__label
{
/
deep
/
.u-checkbox__label
{
width
:
160rpx
;
width
:
160rpx
;
}
}
.list-uCheckAct
{
/
deep
/
.wx-checkbox-input
,
/
deep
/
.uni-checkbox-input
{
background-color
:
#3688FF
!
important
;
border-color
:
#3688FF
!
important
;
color
:
#ffffff
!
important
;
}
}
}
}
.apply-moneyBox
{
.apply-moneyBox
{
padding
:
0
24rpx
0
24rpx
;
padding
:
0
24rpx
0
24rpx
;
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
35c78e84
...
@@ -635,7 +635,7 @@ export default {
...
@@ -635,7 +635,7 @@ export default {
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
//this.id = "z00167956572219584dc15634b62cf75"
//this.id = "z00167956572219584dc15634b62cf75"
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
//this.openId = 'o
roHZ5FaUQ_SOOC_uQQP92fJpBRE
'//'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' oroHZ5FaUQ_SOOC_uQQP92fJpBRE
//this.openId = 'o
h2UV1lyYABHMZ1rMlgjhVHyyYDQ
'//'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this
.
getDetail
()
this
.
getDetail
()
},
},
onUnload
()
{
onUnload
()
{
...
...
pages/my/order/orderList/orderList.vue
View file @
35c78e84
...
@@ -440,7 +440,7 @@ export default {
...
@@ -440,7 +440,7 @@ export default {
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//this.openId = 'o
roHZ5FaUQ_SOOC_uQQP92fJpBRE
'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
//this.openId = 'o
h2UV1lyYABHMZ1rMlgjhVHyyYDQ
'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this
.
orderStatus
=
option
.
orderStatus
||
''
this
.
orderStatus
=
option
.
orderStatus
||
''
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
this
.
getData
(
1
)
this
.
getData
(
1
)
...
...
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