index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="order-success">
  3. <view class="order-success-main">
  4. <view class="img">
  5. <image src="@/static/orderOk.png" mode=""></image>
  6. </view>
  7. <view class="main-text">
  8. <text>下单成功</text>
  9. </view>
  10. <view class="main-text2" @click="lookOrder">
  11. <text class="main-text2-1">查看订单 </text>
  12. <u-icon name="arrow-right"></u-icon>
  13. </view>
  14. <view class="btn">
  15. <u-button type="primary" text="完成" @click="submit"></u-button>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. onLoad(options) {
  23. this.id = options.id;
  24. },
  25. data() {
  26. return {
  27. id: ''
  28. };
  29. },
  30. methods: {
  31. lookOrder() {
  32. let id = this.id
  33. uni.navigateTo({
  34. url: `/pages/my/myOrderDetail/myOrderDetail?id=${id}&type=1`
  35. })
  36. },
  37. submit() {
  38. uni.switchTab({
  39. url: '/pages/goods/goodList/goodList'
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. .order-success {
  47. background-color: #fff;
  48. width: 100%;
  49. height: 100%;
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. .order-success-main {
  54. .img {
  55. width: 100px;
  56. height: 100px;
  57. padding: 63.4px 137px 28px 138px;
  58. image {
  59. width: 100%;
  60. height: 100%;
  61. object-fit: cover;
  62. }
  63. }
  64. .main-text {
  65. color: #495B7D;
  66. text-align: center;
  67. font-size: 26px;
  68. font-weight: 700;
  69. margin-bottom: 8px;
  70. }
  71. .main-text2 {
  72. color: #6E7688;
  73. font-size: 17px;
  74. font-weight: 500;
  75. display: flex;
  76. align-items: center;
  77. margin-bottom: 307px;
  78. .main-text2-1 {
  79. margin-right: 8px;
  80. padding-left: 146px;
  81. }
  82. }
  83. }
  84. }
  85. ::v-deep .u-button {
  86. height: 32px !important;
  87. width: 163px !important;
  88. }
  89. </style>