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
44d77aff
Commit
44d77aff
authored
Sep 14, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还原版本
parent
415542f1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
84 deletions
+100
-84
applyUnsubscription.vue
pages/my/applyUnsubscription/applyUnsubscription.vue
+21
-2
electronicTicket-副本.vue
pages/my/order/electronicTicket/electronicTicket-副本.vue
+49
-35
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+30
-47
No files found.
pages/my/applyUnsubscription/applyUnsubscription.vue
View file @
44d77aff
...
...
@@ -40,12 +40,15 @@
退改原因(必填)
</view>
<view
class=
"cause-list"
>
<view
class=
"list-case"
v-for=
"(item,index) in causeList"
:key=
"index"
>
<view
class=
"list-case"
v-for=
"(item,index) in causeList"
:key=
"index"
@
click=
"clickNewFun(item.labelNum)"
>
<view
class=
"case-name"
>
{{
item
.
name
}}
</view>
<view
class=
"case-click"
:class=
"causeNum==item.labelNum?'case-clickAct':''"
@
click=
"clickNewFun(item.labelNum)"
></view>
<view
class=
"case-click"
:class=
"causeNum==item.labelNum?'case-clickAct':''"
></view>
</view>
</view>
</view>
<view
class=
"apply-textarea general-Box"
>
<u-input
v-model=
"causeInput"
type=
"textarea"
placeholder=
"补充详细退改原因以便商家更快帮您处理"
maxlength=
"200"
/>
</view>
</view>
</
template
>
...
...
@@ -87,6 +90,7 @@ export default {
},
],
//退订原因
causeNum
:
null
,
causeInput
:
''
,
//其他原因
}
},
onLoad
(
option
)
{
...
...
@@ -242,10 +246,25 @@ export default {
border
:
2rpx
solid
#3688FF
;
border-radius
:
50%
;
}
.case-clickAct
{
border
:
12rpx
solid
#3688FF
;
}
}
.list-case
:nth-last-child
(
1
)
{
margin-bottom
:
0
;
}
}
}
.apply-textarea
{
padding
:
24rpx
;
/
deep
/
.u-border
{
border
:
none
;
}
/
deep
/
.u-input__textarea
{
height
:
248rpx
!
important
;
background
:
#F6FAFF
;
border-radius
:
8rpx
8rpx
8rpx
8rpx
;
padding
:
24rpx
!
important
;
}
}
</
style
>
pages/my/order/electronicTicket/electronicTicket-副本.vue
View file @
44d77aff
...
...
@@ -2,9 +2,9 @@
<view
class=
"page-box"
>
<view
class=
"order-status"
>
<view
class=
"status-box"
>
<template
v-if=
"
channelType==1
"
>
<template
v-if=
"
orderInfo.channelType==8
"
>
<view
class=
"status-type"
>
携程
<text
style=
"font-size: 28rpx;margin-left: 10rpx;"
>
{{
orderInfo
.
merchantName
}}
(
{{
orderInfo
.
productName
}}
)
</text>
{{
orderInfo
.
channelName
}}
<text
style=
"font-size: 28rpx;margin-left: 10rpx;"
>
{{
orderInfo
.
merchantName
}}
(
{{
orderInfo
.
productName
}}
)
</text>
</view>
</
template
>
...
...
@@ -47,7 +47,9 @@
</view>
<view
class=
"certificate-box"
v-else-if=
"orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5"
>
<view
class=
"box-verificationCode"
>
验证码:
{{
ticketCode
}}
</view>
<canvas
class=
"box-QRcode"
canvas-id=
"qrcode"
/>
<!--
<uqrcode
ref=
"uqrcode"
canvas-id=
"qrcode"
size=
"200"
class=
"box-QRcode"
:value=
"uqrcodeVal"
:options=
"
{ margin: 10 }" >
</uqrcode>
-->
<!--后端生成-->
<!--
<image
:src=
"imgUrlList"
style=
"width: 180px;height: 180px;margin: 0 auto;display: block;"
v-if=
"imgUrlListType"
></image>
-->
<view
class=
"progress-box"
v-if=
"qrCodeType==true"
>
<progress
:percent=
"percentage"
activeColor=
"#3688FF"
stroke-width=
"3"
/>
</view>
...
...
@@ -251,7 +253,7 @@
<view
class=
"case-list"
>
<view
class=
"list-name"
>
订单编号
</view>
<view
class=
"list-text list-text2"
>
{{orderInfo.id}}
</view>
<image
class=
"list-btn"
@
click=
"copyText(orderInfo.id)"
src=
"../../
../../static/img/my
/icon01.png"
></image>
<image
class=
"list-btn"
@
click=
"copyText(orderInfo.id)"
src=
"../../
static/orderList
/icon01.png"
></image>
<!-- <view class="list-btn" @click="copyText(orderInfo.id)">复制</view> -->
</view>
<view
class=
"case-list"
>
...
...
@@ -343,7 +345,7 @@
</template>
<
script
>
import
uQRCode
from
'@/common/
js/uqrcode
.js'
import
uQRCode
from
'@/common/
uqrcode4
.js'
import
UMask
from
'@/uview-ui/components/u-mask/u-mask.vue'
export
default
{
components
:
{
...
...
@@ -507,6 +509,7 @@ export default {
},
data
()
{
return
{
uqrcodeVal
:
''
,
orderDataType
:
false
,
openId
:
''
,
//用户信息
id
:
''
,
//订单ID
...
...
@@ -541,10 +544,11 @@ export default {
btnRefundType
:
false
,
//是否可退款
ifyukuaiCode
:
''
,
visitorIndex
:
''
,
//短信特殊字段
channelType
:
0
,
//渠道状态channelType==0 订单列表跳转 ==1 OTA取票跳转
photoType
:
false
,
//是否显示优惠券
claimStatus
:
1
,
//领取状态 0未领取 1已领取
findCouponPhoto
:{},
//相册优惠券
imgUrlList
:
''
,
imgUrlListType
:
false
,
}
},
onShow
()
{
...
...
@@ -581,9 +585,7 @@ export default {
this
.
ifyukuaiCode
=
option
.
ifyukuaiCode
||
''
//this.id = "z00167956572219584dc15634b62cf75"
this
.
openId
=
uni
.
getStorageSync
(
'openid'
)
//openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
this
.
channelType
=
option
.
channelType
||
0
//this.openId = 'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ'
this
.
openId
=
'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ'
this
.
getDetail
()
},
onUnload
()
{
...
...
@@ -746,8 +748,9 @@ export default {
var
orderNum
=
this
.
orderInfo
.
orderNum
var
userId
=
this
.
openId
var
orderId
=
this
.
orderInfo
.
id
var
verifyCode
=
this
.
ticketCode
let
data
=
{
areaCode
,
orderNum
,
userId
,
orderId
,
verifyCode
,
'againNumber'
:
0
}
// var verifyCode = this.ticketCode
var
thirdId
=
this
.
orderInfo
.
thirdOrderId
let
data
=
{
areaCode
,
orderNum
,
userId
,
orderId
,
thirdId
,
'againNumber'
:
0
}
this
.
$request
(
'distribution/distribution/getNewFetchInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
length
>
0
){
...
...
@@ -845,17 +848,22 @@ export default {
}
else
{
verifyCode
=
this
.
verifyCode
}
uQRCode
.
make
({
canvasId
:
'qrcode'
,
componentInstance
:
this
,
text
:
verifyCode
,
size
:
180
,
margin
:
10
,
backgroundColor
:
'#ffffff'
,
foregroundColor
:
'#000000'
,
fileType
:
'jpg'
,
errorCorrectLevel
:
uQRCode
.
errorCorrectLevel
.
H
})
// uQRCode.make({
// canvasId: 'qrcode',
// componentInstance: this,
// text: verifyCode,
// size: 180,
// margin: 10,
// backgroundColor: '#ffffff',
// foregroundColor: '#000000',
// fileType: 'jpg',
// errorCorrectLevel: uQRCode.errorCorrectLevel.H
// })
// this.uqrcodeVal=verifyCode
//后端生成
// var verifyCodeURL = encodeURI(verifyCode)
// this.imgUrlList = 'http://pay.tuyoyoo.com/distribution/c/'+verifyCodeURL+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlListType = true
}
},
signOverFun
(
item
){
//过号遮罩显示
...
...
@@ -896,17 +904,23 @@ export default {
// height: 180,
// text:this.codeNo
// })
uQRCode
.
make
({
canvasId
:
'qrcode'
,
componentInstance
:
this
,
text
:
this
.
codeNo
,
size
:
180
,
margin
:
10
,
backgroundColor
:
'#ffffff'
,
foregroundColor
:
'#000000'
,
fileType
:
'jpg'
,
errorCorrectLevel
:
uQRCode
.
errorCorrectLevel
.
H
})
// uQRCode.make({
// canvasId: 'qrcode',
// componentInstance: this,
// text: this.codeNo,
// size: 180,
// margin: 10,
// backgroundColor: '#ffffff',
// foregroundColor: '#000000',
// fileType: 'jpg',
// errorCorrectLevel: uQRCode.errorCorrectLevel.H
// })
// this.uqrcodeVal=this.codeNo
//后端生成
// this.imgUrlListType = false
// var verifyCodeURL = 'http://pay.tuyoyoo.com/distribution/c/'+this.codeNo+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlList = encodeURI(verifyCodeURL)
// this.imgUrlListType = true
}
this
.
percentage
+=
1
if
(
this
.
percentage
>=
100
){
...
...
@@ -1330,8 +1344,8 @@ export default {
.order-certificate
.certificate-box
.box-QRcode
{
display
:
block
;
width
:
18
0px
;
height
:
18
0px
;
width
:
20
0px
;
height
:
20
0px
;
margin
:
0
auto
;
}
.order-certificate
.certificate-box
.box-QRcode2
{
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
44d77aff
...
...
@@ -4,7 +4,7 @@
<view
class=
"status-box"
>
<template
v-if=
"orderInfo.channelType==8"
>
<view
class=
"status-type"
>
{{
orderInfo
.
channelName
}}
<text
style=
"font-size: 28rpx;margin-left: 10rpx;"
>
{{
orderInfo
.
merchantName
}}
(
{{
orderInfo
.
productName
}}
)
</text>
携程
<text
style=
"font-size: 28rpx;margin-left: 10rpx;"
>
{{
orderInfo
.
merchantName
}}
(
{{
orderInfo
.
productName
}}
)
</text>
</view>
</
template
>
...
...
@@ -47,9 +47,7 @@
</view>
<view
class=
"certificate-box"
v-else-if=
"orderInfo.exchangeMode==1||orderInfo.exchangeMode==4||orderInfo.exchangeMode==5"
>
<view
class=
"box-verificationCode"
>
验证码:
{{
ticketCode
}}
</view>
<uqrcode
ref=
"uqrcode"
canvas-id=
"qrcode"
size=
"200"
class=
"box-QRcode"
:value=
"uqrcodeVal"
:options=
"
{ margin: 10 }" >
</uqrcode>
<!--后端生成-->
<!--
<image
:src=
"imgUrlList"
style=
"width: 180px;height: 180px;margin: 0 auto;display: block;"
v-if=
"imgUrlListType"
></image>
-->
<canvas
class=
"box-QRcode"
canvas-id=
"qrcode"
/>
<view
class=
"progress-box"
v-if=
"qrCodeType==true"
>
<progress
:percent=
"percentage"
activeColor=
"#3688FF"
stroke-width=
"3"
/>
</view>
...
...
@@ -253,7 +251,7 @@
<view
class=
"case-list"
>
<view
class=
"list-name"
>
订单编号
</view>
<view
class=
"list-text list-text2"
>
{{orderInfo.id}}
</view>
<image
class=
"list-btn"
@
click=
"copyText(orderInfo.id)"
src=
"../../
static/orderList
/icon01.png"
></image>
<image
class=
"list-btn"
@
click=
"copyText(orderInfo.id)"
src=
"../../
../../static/img/my
/icon01.png"
></image>
<!-- <view class="list-btn" @click="copyText(orderInfo.id)">复制</view> -->
</view>
<view
class=
"case-list"
>
...
...
@@ -345,7 +343,7 @@
</template>
<
script
>
import
uQRCode
from
'@/common/
uqrcode4
.js'
import
uQRCode
from
'@/common/
js/uqrcode
.js'
import
UMask
from
'@/uview-ui/components/u-mask/u-mask.vue'
export
default
{
components
:
{
...
...
@@ -509,7 +507,6 @@ export default {
},
data
()
{
return
{
uqrcodeVal
:
''
,
orderDataType
:
false
,
openId
:
''
,
//用户信息
id
:
''
,
//订单ID
...
...
@@ -547,8 +544,6 @@ export default {
photoType
:
false
,
//是否显示优惠券
claimStatus
:
1
,
//领取状态 0未领取 1已领取
findCouponPhoto
:{},
//相册优惠券
imgUrlList
:
''
,
imgUrlListType
:
false
,
}
},
onShow
()
{
...
...
@@ -748,9 +743,8 @@ export default {
var
orderNum
=
this
.
orderInfo
.
orderNum
var
userId
=
this
.
openId
var
orderId
=
this
.
orderInfo
.
id
// var verifyCode = this.ticketCode
var
thirdId
=
this
.
orderInfo
.
thirdOrderId
let
data
=
{
areaCode
,
orderNum
,
userId
,
orderId
,
thirdId
,
'againNumber'
:
0
}
var
verifyCode
=
this
.
ticketCode
let
data
=
{
areaCode
,
orderNum
,
userId
,
orderId
,
verifyCode
,
'againNumber'
:
0
}
this
.
$request
(
'distribution/distribution/getNewFetchInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
data
.
length
>
0
){
...
...
@@ -848,22 +842,17 @@ export default {
}
else
{
verifyCode
=
this
.
verifyCode
}
// uQRCode.make({
// canvasId: 'qrcode',
// componentInstance: this,
// text: verifyCode,
// size: 180,
// margin: 10,
// backgroundColor: '#ffffff',
// foregroundColor: '#000000',
// fileType: 'jpg',
// errorCorrectLevel: uQRCode.errorCorrectLevel.H
// })
this
.
uqrcodeVal
=
verifyCode
//后端生成
//var verifyCodeURL = verifyCode.encodeURI()
// this.imgUrlList = 'http://pay.tuyoyoo.com/distribution/c/'+verifyCodeURL+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlListType = true
uQRCode
.
make
({
canvasId
:
'qrcode'
,
componentInstance
:
this
,
text
:
verifyCode
,
size
:
180
,
margin
:
10
,
backgroundColor
:
'#ffffff'
,
foregroundColor
:
'#000000'
,
fileType
:
'jpg'
,
errorCorrectLevel
:
uQRCode
.
errorCorrectLevel
.
H
})
}
},
signOverFun
(
item
){
//过号遮罩显示
...
...
@@ -904,23 +893,17 @@ export default {
// height: 180,
// text:this.codeNo
// })
// uQRCode.make({
// canvasId: 'qrcode',
// componentInstance: this,
// text: this.codeNo,
// size: 180,
// margin: 10,
// backgroundColor: '#ffffff',
// foregroundColor: '#000000',
// fileType: 'jpg',
// errorCorrectLevel: uQRCode.errorCorrectLevel.H
// })
this
.
uqrcodeVal
=
this
.
codeNo
//后端生成
// this.imgUrlListType = false
//var verifyCodeURL = this.codeNo.encodeURI()
// this.imgUrlList = 'http://pay.tuyoyoo.com/distribution/c/'+verifyCodeURL+'?width=180&height=180&frontColor=0&backColor=16777215'
// this.imgUrlListType = true
uQRCode
.
make
({
canvasId
:
'qrcode'
,
componentInstance
:
this
,
text
:
this
.
codeNo
,
size
:
180
,
margin
:
10
,
backgroundColor
:
'#ffffff'
,
foregroundColor
:
'#000000'
,
fileType
:
'jpg'
,
errorCorrectLevel
:
uQRCode
.
errorCorrectLevel
.
H
})
}
this
.
percentage
+=
1
if
(
this
.
percentage
>=
100
){
...
...
@@ -1344,8 +1327,8 @@ export default {
.order-certificate
.certificate-box
.box-QRcode
{
display
:
block
;
width
:
20
0px
;
height
:
20
0px
;
width
:
18
0px
;
height
:
18
0px
;
margin
:
0
auto
;
}
.order-certificate
.certificate-box
.box-QRcode2
{
...
...
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