fee.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view class="withdrawal">
  3. <mescroll-uni ref="mescroll" @getData="getList" :fixed="!1">
  4. <block slot="list">
  5. <view class="operate_tip">
  6. <view @click="tipShow = !tipShow">
  7. 操作提示
  8. <text class="iconfont iconiconangledown"></text>
  9. </view>
  10. <view class="operate_content" v-if="tipShow">
  11. <view class="color-tip font-size-tag margin-top">
  12. <text class="margin-right">●</text>
  13. <view class="color-tip font-size-tag">店铺到期30日内可以申请续签</view>
  14. </view>
  15. <view class="color-tip font-size-tag margin-top">
  16. <text class="margin-right">●</text>
  17. <view class="color-tip font-size-tag">请认准官方收款账户,支付凭据上传之后请联系官方客服人员</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="withdrawal_item margin-top">
  22. <view class="withdrawal_title">
  23. <text class="line color-base-bg margin-right"></text>
  24. 入驻费用
  25. </view>
  26. <view class="withdrawal_content">
  27. <view class="flex_two">
  28. <view class="flex_two-item">
  29. <view class="tip">入驻费用(元)</view>
  30. <view class="num">{{ base_info.shop_open_fee }}</view>
  31. </view>
  32. <view class="flex_two-item">
  33. <view class="tip">保证金(元)</view>
  34. <view class="num">{{ base_info.shop_baozhrmb }}</view>
  35. </view>
  36. <view class="flex_one-item .border_none">
  37. <view class="tip">
  38. 到期时间
  39. <block v-if="base_info.is_reopen == 2">
  40. <text class="margin-left font-size-tag color-base-text" @click="$util.redirectTo('/pages/apply/shopset')" v-if="is_reopen == 1">
  41. 申请续签
  42. </text>
  43. <text class="margin-left font-size-tag color-base-text" @click="$util.redirectTo('/pages/apply/payinfo')" v-else>申请续签</text>
  44. </block>
  45. <text class="margin-left font-size-tag color-base-text" @click="$util.redirectTo('/pages/property/reopen/list')">续签记录</text>
  46. </view>
  47. <view class="num">{{ base_info.expire_time }}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="withdrawal_item">
  53. <block v-if="dashboard_list.length > 0">
  54. <view class="withdrawal_content margin-top" v-for="(item, index) in dashboard_list" :key="index">
  55. <view class="withdrawal_list">
  56. <view class="withdrawal_list_title">
  57. <view class="tip color-tip">{{ item.account_no }}</view>
  58. </view>
  59. <view class="withdrawal_list_info">
  60. <view class="withdrawal_list_base">
  61. <view class="tip">缴费金额(元)</view>
  62. <view>{{ item.money }}</view>
  63. </view>
  64. <view class="withdrawal_list_base">
  65. <view class="tip">费用类型</view>
  66. <view>{{ item.type_name }}</view>
  67. </view>
  68. <view class="withdrawal_list_base">
  69. <view class="tip">创建时间</view>
  70. <view>{{ $util.timeStampTurnTime(item.create_time) }}</view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </block>
  76. <ns-empty v-else text="暂无入驻费用数据"></ns-empty>
  77. </view>
  78. </block>
  79. </mescroll-uni>
  80. <loading-cover ref="loadingCover"></loading-cover>
  81. </view>
  82. </template>
  83. <script>
  84. export default {
  85. data() {
  86. return {
  87. base_info: {},
  88. is_reopen: '',
  89. dashboard_list: [],
  90. tipShow: true
  91. };
  92. },
  93. onShow() {
  94. if (!this.$util.checkToken('/pages/property/fee')) return;
  95. this.getBaseInfo();
  96. },
  97. methods: {
  98. getBaseInfo() {
  99. this.$api.sendRequest({
  100. url: '/shopapi/account/feeStat',
  101. success: res => {
  102. if (res.code >= 0) {
  103. this.base_info = res.data.apply_data;
  104. this.is_reopen = res.data.is_reopen;
  105. } else {
  106. this.$util.showToast({
  107. title: res.message
  108. });
  109. }
  110. }
  111. });
  112. },
  113. getList(mescroll) {
  114. var data = {
  115. page: mescroll.num,
  116. page_size: mescroll.size
  117. };
  118. this.$api.sendRequest({
  119. url: '/shopapi/account/fee',
  120. data: data,
  121. success: res => {
  122. let newArr = [];
  123. let msg = res.message;
  124. if (res.code == 0 && res.data) {
  125. if (res.data.page_count == 0) {
  126. this.emptyShow = true;
  127. }
  128. newArr = res.data.list;
  129. } else {
  130. this.$util.showToast({
  131. title: msg
  132. });
  133. }
  134. mescroll.endSuccess(newArr.length);
  135. //设置列表数据
  136. if (mescroll.num == 1) this.dashboard_list = []; //如果是第一页需手动制空列表
  137. this.dashboard_list = this.dashboard_list.concat(newArr); //追加新数据
  138. if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
  139. }
  140. });
  141. }
  142. }
  143. };
  144. </script>
  145. <style lang="scss">
  146. @import './css/common.scss';
  147. </style>