signUpOutcome.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="main">
  3. <network-error />
  4. <view class="success u-flex u-row-center">
  5. <view class="icon-success-wh icon-success"></view>
  6. <view class="u-font-36 line-50">报名成功</view>
  7. </view>
  8. <view class="date">
  9. <view class="mtb">截止日期:{{endTime}}</view>
  10. <view>参与结果可在【首页底部导航栏-订单】中查看</view>
  11. </view>
  12. <view class="u-flex u-row-center">
  13. <view class="message">
  14. <view class="title u-font-24 line-28">返利规则</view>
  15. <view class="content u-font-24 line-34">点餐后需按要求提交订单信息,当天报名当天截止时间前提交才可获得<span class="money">返利金额</span></view>
  16. </view>
  17. </view>
  18. <view class="btn u-flex u-row-center">
  19. <button @click="toOrderList">查看订单</button>
  20. <button class="active"
  21. @click="toOrderMeal">去点餐</button>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data () {
  28. return {
  29. platType: '',
  30. endTime: ''
  31. }
  32. },
  33. onLoad (options) {
  34. this.platType = options.platType
  35. this.endTime = this.$dayjs(`${this.$dayjs().format('YYYY-MM-DD')} ${options.endTime}`).format('YYYY-MM-DD HH:mm:ss')
  36. },
  37. methods: {
  38. toOrderList () {
  39. uni.switchTab({
  40. url: '/pages/order'
  41. })
  42. },
  43. toOrderMeal () {
  44. this.$store.dispatch('toOtherApplte', this.platType)
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .main {
  51. background-color: #fff;
  52. padding-top: 15px;
  53. }
  54. .success {
  55. color: $u-main-color;
  56. font-weight: 1000;
  57. margin: 48px 0;
  58. }
  59. .icon-success-wh {
  60. width: 92px;
  61. height: 92px;
  62. margin-right: 16px;
  63. }
  64. .date {
  65. font-size: 26px;
  66. color: $u-main-color;
  67. line-height: 36px;
  68. margin: 16px 0 40px 32px;
  69. .mtb {
  70. margin: 16px 0;
  71. }
  72. }
  73. .message {
  74. width: 686px;
  75. height: 156px;
  76. color: $u-main-color;
  77. background-color: #f7f8f9;
  78. padding: 24px;
  79. border-radius: 8px;
  80. .title {
  81. font-family: Helvetica;
  82. margin-bottom: 8px;
  83. }
  84. .money {
  85. color: #4a6d8d;
  86. }
  87. }
  88. .btn {
  89. button {
  90. width: 280px;
  91. height: 84px;
  92. border: 1px solid #d3d4d5;
  93. border-radius: 42px;
  94. font-size: 28px;
  95. line-height: 40px;
  96. color: $u-main-color;
  97. background-color: #fff;
  98. display: flex;
  99. align-items: center;
  100. justify-content: center;
  101. margin: 40px 0;
  102. }
  103. .active {
  104. border: 1px solid #ff6632;
  105. color: #ff6632;
  106. margin-left: 30px;
  107. }
  108. }
  109. </style>