时空网前端
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.

59 lines
1.7 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <view>
  3. <view v-if="ifpaySuccess==1" class="flex flex-direction justify-around text-center align-center margin-bottom margin-top-lg">
  4. <view>
  5. <image src="@/static/images/system/paysuccess.png" mode="widthFix" style="height: 100px;width: 100px;"></image>
  6. </view>
  7. <view class="text-xxl margin-tb text-orange text-bold">订单支付成功</view>
  8. <view class="text-gray">
  9. 您可以在我的订单中查询订单详情
  10. </view>
  11. </view>
  12. <view v-else class="flex flex-direction justify-around text-center align-center margin-bottom margin-top-lg">
  13. <view>
  14. <image src="@/static/images/system/payfail.png" mode="widthFix" style="height: 100px;width: 100px;"></image>
  15. </view>
  16. <view class="text-xxl margin-tb text-gray text-bold">订单支付失败</view>
  17. <view class="text-gray">
  18. 您可以在我的订单中查询订单详情
  19. </view>
  20. </view>
  21. <view class="margin-top flex flex-direction justify-around">
  22. <view class="padding-top padding-lr-lg">
  23. <button class="cu-btn block bg-orange lg margin-top round" @tap="$url('/pages/order/order-details?order_id='+order_id,{type: 'launch'})">
  24. <text class="text-df text-white">查看订单</text>
  25. </button>
  26. </view>
  27. <view class="padding-top-sm padding-lr-lg">
  28. <button class="cu-btn block bg-white border lg margin-top round" @tap="returnIndex()">
  29. <text class="text-df text-black">返回首页</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. methods: {
  44. returnIndex() {
  45. uni.switchTab({
  46. url: '/pages/order/index'
  47. })
  48. }
  49. },
  50. onLoad(e) {
  51. this.ifpaySuccess = e.ifSuccess
  52. this.order_id = e.order_id
  53. }
  54. }
  55. </script>
  56. <style>
  57. </style>