gsell.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view class="center">
  3. <view class="main">
  4. <view class="main-font">购买价格(元)</view>
  5. <view class="main-input">{{ (buy * 1).toFixed(2) * 1 }}</view>
  6. </view>
  7. <!-- <view class="center"><calendar class="sign-date-box" :checks="signList" checksClass="" :checkTextShow="true" :nextMounth="next"></calendar></view> -->
  8. <view class="title">今日最高限价{{ (price * 1).toFixed(2) * 1 }}</view>
  9. <!-- <view class="main">
  10. <view class="main-font">挂售日期</view>
  11. <view class="main-input">{{ deta }}</view>
  12. </view> -->
  13. <view class="main">
  14. <view class="main-font">挂售价格(元)</view>
  15. <view class="main-input">{{ (price * 1).toFixed(2) * 1 }}</view>
  16. </view>
  17. <view class="money">服务费{{ (fwprice * 1).toFixed(2) * 1 }}易趣卷</view>
  18. <view class="btn" @click="sall()">确定</view>
  19. </view>
  20. </template>
  21. <script>
  22. import { gsxq, hanging_sale } from '@/api/hall.js';
  23. import calendar from '../../components/ss-calendar/ss-calendar.vue';
  24. export default {
  25. components: {
  26. calendar
  27. },
  28. data() {
  29. return {
  30. // signList: [],
  31. id: '',
  32. price: '', //挂售价格
  33. buy: '', //购买价格
  34. deta: '', //挂售日期
  35. fwprice: '', //服务费
  36. // next: false
  37. };
  38. },
  39. onLoad(option) {
  40. this.id = option.id;
  41. this.loadData();
  42. },
  43. methods: {
  44. loadData() {
  45. gsxq({ id: this.id }).then(e => {
  46. console.log(e);
  47. this.buy = e.data.price;
  48. this.price = e.data.hanging_price;
  49. this.fwprice = e.data.anticipate;
  50. // let arr = e.data.gs_time.split(' ');
  51. // let brr = arr[0].split('-');
  52. // this.signList.push(brr[2] * 1)
  53. // this.signList.push(brr[2] * 1);
  54. // let month = new Date().getMonth() + 1;
  55. // if (brr[1] * 1 == month) {
  56. // this.next = false;
  57. // } else {
  58. // this.next = true;
  59. // }
  60. // this.deta = brr[1] + '月' + brr[2] + '日';
  61. });
  62. },
  63. sall() {
  64. hanging_sale({ id: this.id }).then(e => {
  65. uni.navigateTo({
  66. url: '/pages/money/success?type=2'
  67. });
  68. });
  69. }
  70. }
  71. };
  72. </script>
  73. <style lang="scss">
  74. .center,
  75. page {
  76. height: auto;
  77. background: #ffffff;
  78. min-height: 100%;
  79. }
  80. .title {
  81. margin-top: 50rpx;
  82. text-align: center;
  83. font-size: 30rpx;
  84. font-family: PingFang SC;
  85. font-weight: 500;
  86. color: #fd3b39;
  87. margin-bottom: 60rpx;
  88. }
  89. .main {
  90. margin-top: 40rpx;
  91. padding: 0 66rpx 0 60rpx;
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. .main-font {
  96. font-size: 32rpx;
  97. font-family: PingFang SC;
  98. font-weight: bold;
  99. color: #333333;
  100. }
  101. .main-input {
  102. width: 404rpx;
  103. height: 88rpx;
  104. background: #f4f4f4;
  105. border-radius: 10rpx;
  106. font-size: 32rpx;
  107. font-family: PingFang SC;
  108. font-weight: 500;
  109. color: #333333;
  110. line-height: 88rpx;
  111. text-align: center;
  112. }
  113. }
  114. .money {
  115. margin-top: 74rpx;
  116. text-align: center;
  117. font-size: 32rpx;
  118. font-family: PingFang SC;
  119. font-weight: bold;
  120. color: #fd3b39;
  121. }
  122. .btn {
  123. width: 560rpx;
  124. height: 80rpx;
  125. background: #fc5b62;
  126. border-radius: 40rpx;
  127. margin: 96rpx auto 0;
  128. font-size: 30rpx;
  129. font-family: PingFangSC;
  130. font-weight: 500;
  131. color: #ffffff;
  132. line-height: 80rpx;
  133. text-align: center;
  134. }
  135. </style>