buySuccess.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="app-body">
  3. <view class="buy-body fx-h fx-bc fx-ac">
  4. <u-icon name="checkmark-circle" color="#ef4034" size="90"></u-icon>
  5. <view class="title">抢购成功</view>
  6. <view class="nvbody">
  7. <view class="sbtn ihover" @tap="tapToOrder">查看订单</view>
  8. <view class="no-sbtn ihover" @tap="utils.navigateBack()">返回抢货列表</view>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import { mapState, mapMutations } from 'vuex';
  15. export default {
  16. data() {
  17. return {}
  18. },
  19. onLoad() {
  20. this.initView();
  21. },
  22. methods: {
  23. initView: function() {
  24. },
  25. tapToOrder:function(){
  26. uni.navigateTo({
  27. url:"/pages/guild/order/order"
  28. })
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. .buy-body{
  35. padding: 40px;
  36. .title{
  37. font-size: 21px;
  38. color: #303133;
  39. margin-top: 20rpx;
  40. }
  41. .nvbody{
  42. padding-top: 57px;
  43. width: 100%;
  44. .sbtn{
  45. margin-top: 17px;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. height: 45px;
  50. font-size: 18px;
  51. color: #fff;
  52. background-color: #dc262b;
  53. border-radius: 5px;
  54. width: 100%;
  55. }
  56. .no-sbtn{
  57. background: #fff;
  58. color: #303133;
  59. border: 1px solid #ccc;
  60. height: 45px;
  61. font-size: 18px;
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. border-radius: 5px;
  66. margin-top: 20px;
  67. }
  68. }
  69. }
  70. </style>