海南旅游项目 前端仓库
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.

62 lines
1.9 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <view v-if="ifpaySuccess==1" class="lf-flex lf-flex-column lf-row-round" style="margin-top: 100px;">
  4. <view>
  5. <image src="@/static/center/pay-success.png" mode="widthFix" style="height: 100px;width: 100px;"></image>
  6. </view>
  7. <view class="lf-m-t-40 lf-font-bold lf-color-black lf-font-42 lf-color-blue">订单支付成功</view>
  8. <view class="lf-color-666 lf-m-t-20 lf-font-28">
  9. 您可以在我的订单中查询详情
  10. </view>
  11. </view>
  12. <view v-else class="lf-flex lf-flex-column lf-row-round" style="margin-top: 100px;">
  13. <view>
  14. <image src="@/static/center/pay-fail.png" mode="widthFix" style="height: 100px;width: 100px;"></image>
  15. </view>
  16. <view class="lf-m-t-40 lf-font-bold lf-color-black lf-font-42 lf-color-333">订单支付失败</view>
  17. <view class="lf-color-666 lf-m-t-20 lf-font-28">
  18. 您可以在我的订单中查询详情
  19. </view>
  20. </view>
  21. <view class="margin-top flex flex-direction justify-around">
  22. <view class="lf-p-r-32 lf-p-l-32">
  23. <button class="cu-btn margin-self" @tap="$url('/pages/order/order_details?order_id='+order_id,{type: 'launch'})">
  24. <text class="lf-font-32 lf-color-white">查看订单</text>
  25. </button>
  26. </view>
  27. <view class="lf-p-r-32 lf-p-l-32 lf-m-t-40">
  28. <button class="cu-btn lf-bg-white" style="border: 1px solid #1998FE;" @tap="$url('/pages/index/index',{type: 'switch'})">
  29. <text class="lf-font-32 lf-color-blue">返回首页</text>
  30. </button>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. ifpaySuccess:-1,
  40. order_id: 1
  41. }
  42. },
  43. onLoad(e) {
  44. this.ifpaySuccess = e.ifSuccess
  45. this.order_id = e.order_id
  46. }
  47. }
  48. </script>
  49. <style scoped>
  50. .margin-self {
  51. margin-top: 85rpx;
  52. }
  53. .cu-btn {
  54. border-radius: 10rpx;
  55. background-color: #1998FE;
  56. height: 82rpx;
  57. line-height: 82rpx;
  58. text-align: center;
  59. }
  60. </style>