You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "container" >
< view class = "tui-bg" > < / view >
< view class = "tui-content" >
< view class = "tui-form" >
< image src = "../../static/shop/img_recharge_success.png" class = "tui-icon" > < / image >
< view class = "tui-title" > 订单已支付成功 < / view >
< view class = "tui-sub-title" > 非常感谢您的购买 < / view >
< view class = "tui-btn-box" >
< button class = "cu-btn round line-gray shadow" @tap ="toIndex" > 返 回 首 页 < / button >
< button class = "cu-btn round bg-red text-white shadow" @tap ="toOrder" > 查 看 订 单 < / button >
< / view >
< / view >
< / view >
< ! - - < view class = "tui-tips" >
< view class = "tui-grey" > 温馨提示 : < / view >
< view class = "tui-light-grey" >
付款成功后 , 不会以付款异常 、 卡单 、 系统升级为由联系您 。 请勿泄露银行卡号 、 手机验证码 , 否则会造成钱款损失 ! 谨防电话诈骗 !
< / view >
< / view > -- >
< / view >
< / template >
< script >
export default {
data ( ) {
return {
orderId : 0
} ;
} ,
onLoad ( options ) {
console . log ( options )
this . orderId = options . orderId
} ,
methods : {
toIndex ( ) {
uni . switchTab ( {
url : "../index/index"
} )
} ,
toOrder ( ) {
uni . reLaunch ( {
url : "../orderDetail/orderDetail?orderId=" + this . orderId
} )
}
}
}
< / script >
< style lang = "scss" >
. tui - bg {
width : 100 % ;
height : 260 rpx ;
background : linear - gradient ( 20 deg , # E41F19 , # F34B0B ) ;
border - bottom - left - radius : 42 rpx ;
}
. tui - content {
padding : 0 35 rpx ;
box - sizing : border - box ;
}
. tui - form {
background : # fff ;
height : 500 rpx ;
box - shadow : 0 10 rpx 14 rpx 0 rgba ( 0 , 0 , 0 , 0.08 ) ;
border - radius : 10 rpx ;
margin - top : - 160 rpx ;
position : relative ;
z - index : 10 ;
display : flex ;
align - items : center ;
flex - direction : column ;
}
. tui - icon {
width : 100 rpx ;
height : 100 rpx ;
display : block ;
margin - top : 60 rpx ;
}
. tui - title {
font - size : 42 rpx ;
line - height : 42 rpx ;
padding - top : 28 rpx ;
}
. tui - sub - title {
color : # 666666 ;
font - size : 28 rpx ;
line - height : 28 rpx ;
padding - top : 20 rpx ;
}
. tui - btn - box {
width : 500 rpx ;
display : flex ;
align - items : center ;
justify - content : space - between ;
padding - top : 88 rpx ;
. cu - btn {
width : 200 rpx ;
}
}
. tui - tips {
font - size : 26 rpx ;
padding : 48 rpx 90 rpx ;
box - sizing : border - box ;
text - align : justify ;
line - height : 48 rpx ;
}
. tui - grey {
color : # 555 ;
padding - bottom : 8 rpx ;
}
. tui - light - grey {
color : # 888 ;
line - height : 40 rpx ;
}
< / style >