paySuccess.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="content">
  3. <image src="../../static/img/pays.png" class="headerImg"></image>
  4. <!-- <text class="success-icon iconfont iconroundcheck"></text> -->
  5. <text class="tit">支付成功</text>
  6. <view class="btn-group">
  7. <navigator :url="'/pages/order/orderDetail?id='+orderId"><view class="lookorder">查看订单</view></navigator>
  8. <view class="btntoindex" @click="tabTo('/pages/index/index')">返回首页</view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. orderId:''
  17. }
  18. },
  19. onLoad(opt) {
  20. // 保存订单号
  21. this.orderId = opt.orderid;
  22. },
  23. methods: {
  24. //跳转
  25. tabTo(url) {
  26. uni.switchTab({
  27. url: url
  28. })
  29. },
  30. }
  31. }
  32. </script>
  33. <style lang='scss' scoped>
  34. page {
  35. background-color: #fff;
  36. height: 100%;
  37. }
  38. .headerImg {
  39. margin-top: 70rpx;
  40. width: 280rpx;
  41. height: 280rpx;
  42. }
  43. .content{
  44. display: flex;
  45. flex-direction: column;
  46. justify-content: center;
  47. align-items: center;
  48. }
  49. .btn-group {
  50. display: flex;
  51. margin-top: 80rpx;
  52. view {
  53. padding: 15rpx 80rpx;
  54. margin: 30rpx;
  55. border-radius: 15rpx;
  56. border: solid 2rpx #438BED;
  57. }
  58. .lookorder {
  59. background: linear-gradient(90deg, #438BED 0%, #44BFEC 100%);
  60. color: #fff;
  61. }
  62. .btntoindex {
  63. color: #438BED;
  64. }
  65. }
  66. .tit{
  67. font-size: 38upx;
  68. color: #303133;
  69. }
  70. </style>