share-buy-success.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="share-buy-success">
  3. <!-- 拼单信息 && 拼单成功 -->
  4. <view class="message">恭喜您拼单成功!</view>
  5. <share-buy-member-info
  6. :hasShopInfo="false"
  7. :memberNum="collageData.memberNum"
  8. :existNum="collageData.existNum"
  9. :shopInfo="collageData"
  10. ></share-buy-member-info>
  11. <view class="control">
  12. <tui-button type="base" width="600rpx" height="90rpx" shape="circle" :size="30" @click="handleToHome">
  13. <text>去首页逛逛</text>
  14. </tui-button>
  15. <view class="line"></view>
  16. <tui-button
  17. type="base"
  18. width="600rpx"
  19. height="90rpx"
  20. shape="circle"
  21. :plain="true"
  22. :size="30"
  23. @click="handleToOrderDetail"
  24. >
  25. <text>查看订单详情</text>
  26. </tui-button>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. collageData: {}
  35. }
  36. },
  37. onLoad() {
  38. this.collageData = uni.getStorageSync('SHARE_BUY_COLLAGE_DATA')
  39. },
  40. beforeDestroy() {
  41. uni.removeStorageSync('SHARE_BUY_COLLAGE_DATA')
  42. },
  43. methods: {
  44. // 去首页
  45. handleToHome() {
  46. this.$router.switchTab('home')
  47. },
  48. // 查看订单详情
  49. handleToOrderDetail() {
  50. this.$router.navigateTo('order/order-detail?orderId=' + this.collageData.orderId)
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .share-buy-success {
  57. background-color: #fff;
  58. padding: 32rpx 0;
  59. .message {
  60. font-size: 34rpx;
  61. color: #ff457b;
  62. font-weight: bold;
  63. text-align: center;
  64. }
  65. .control {
  66. @extend .cm-flex-center;
  67. flex-direction: column;
  68. .line {
  69. height: 24rpx;
  70. }
  71. }
  72. }
  73. </style>