huiFeiJiaoJiao.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view class="container">
  3. <view class="info-box">
  4. <view class="info-item">
  5. 用&nbsp;&nbsp;户&nbsp;名:{{user.name}}
  6. </view>
  7. <view class="info-item">
  8. 任职机构:{{user.corpName ?? '无'}}
  9. </view>
  10. </view>
  11. <view class="list-box">
  12. <view class="list-item-box">
  13. <view class="list-item">
  14. 年份
  15. </view>
  16. <view class="list-item">
  17. 是否缴费
  18. </view>
  19. <view class="list-item">
  20. 会籍情况
  21. </view>
  22. </view>
  23. <view class="list-item-box" v-for="(item, index) in listData" :key="index">
  24. <view class="list-item">
  25. {{item.year}}
  26. </view>
  27. <view class="list-item">
  28. {{item.payed ? '是' : '否'}}
  29. </view>
  30. <view class="list-item">
  31. <view class="button" :class="[item.payed ? 'primary' : 'error']" @click="onJiaoFei(item)">
  32. {{item.payed ? '已缴费' : '未缴费,点击缴费'}}
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="desc-box">
  38. <!-- <rich-text :nodes="explain"></rich-text> -->
  39. <mp-html :content="explain" />
  40. </view>
  41. </view>
  42. </template>
  43. <script setup>
  44. import { ref } from 'vue'
  45. import { onLoad } from '@dcloudio/uni-app'
  46. import { useAuthStore } from '@/store/authStore'
  47. import { list } from '@/api/cost.js'
  48. const authStore = useAuthStore()
  49. // 用户信息
  50. const user = ref({
  51. userIcon: '1',
  52. name: '某某某',
  53. corpName: '广州市xx地产有限公司',
  54. corpRegNo: '123xxxx'
  55. })
  56. const listData = ref([
  57. ])
  58. const explain = ref(`
  59. <p><span style="font-size: 12px;"></span></p><p style="line-height:150%"><span style="font-size: 12px; font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 12px; line-height: 150%;">会员会费缴交规则:</span></strong></span></p><p style="line-height:150%"><span style="line-height: 150%; font-family: arial, helvetica, sans-serif; font-size: 10px;">根据《广州市房地产中介协会章程》第五十六条,会费标准如下:</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 10px;"><span style="font-size: 10px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>副会长单位:50000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 10px;"><span style="font-size: 10px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>理事单位:10000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 10px;"><span style="font-size: 10px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>普通会员单位:1000元/年;</span></p><p style="line-height:150%"><span style="text-indent: 32px; font-family: arial, helvetica, sans-serif; font-size: 10px;"><span style="font-size: 10px; font-family: 宋体; text-indent: 32px; text-wrap-mode: wrap;">•&nbsp;</span>个人会员:200元/年/人。</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: 10px;">单位会员会籍为每年1月1日至12月31日;</span></p><p><span style="font-family: arial, helvetica, sans-serif; font-size: 10px;">个人会员会籍为每年5月1日至次年4月30日。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;</p><p><br/></p>
  60. `)
  61. function onJiaoFei(val) {
  62. if (val.payed) {
  63. return
  64. }
  65. uni.navigateTo({
  66. url: `/pages/geRenHuiFeiJiaoJiao/geRenHuiFeiJiaoJiao?year=${val.year}&duePrice=${val.duePrice}`
  67. })
  68. }
  69. onLoad(() => {
  70. user.value = authStore.userInfo
  71. list().then(res => {
  72. if (res && res.message === 'success') {
  73. listData.value = res.data
  74. }
  75. })
  76. })
  77. </script>
  78. <style lang="scss" scoped>
  79. .container {
  80. height: 100vh;
  81. width: 100vw;
  82. background: rgb(141, 204, 255);
  83. background: -moz-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  84. background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  85. background: -o-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  86. background: -ms-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  87. background: linear-gradient( 180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  88. .info-box {
  89. margin: 0 20rpx;
  90. padding: 0 40rpx;
  91. padding-top: 50rpx;
  92. margin-bottom: 30rpx;
  93. .info-item {
  94. margin-bottom: 10rpx;
  95. font-size: $uni-title-font-size-2;
  96. font-weight: bold;
  97. letter-spacing: 3rpx;
  98. }
  99. }
  100. .list-box {
  101. margin: 0 20rpx;
  102. background-color: $uni-bg-color-grey;
  103. border-radius: $uni-card-border-radius;
  104. padding: 20rpx 15rpx;
  105. margin-bottom: 30rpx;
  106. .list-item-box {
  107. &:first-child {
  108. border-bottom: 5rpx solid #E6E6E6;
  109. font-size: $uni-font-size-1;
  110. font-weight: bold;
  111. .list-item {
  112. width: calc(100% / 3);
  113. text-align: center;
  114. &:last-child {
  115. color: #303133;
  116. font-weight: bold;
  117. }
  118. }
  119. }
  120. padding: 15rpx 0;
  121. text-align: center;
  122. font-size: $uni-font-size-3;
  123. font-weight: bold;
  124. display: flex;
  125. align-items: center;
  126. .list-item {
  127. width: calc(100% / 3);
  128. text-align: center;
  129. &:last-child {
  130. color: $uni-text-color-inverse;
  131. font-weight: normal;
  132. }
  133. }
  134. .button {
  135. width: fit-content;
  136. border-radius: $uni-card-border-radius;
  137. margin: 0 auto;
  138. }
  139. .primary {
  140. padding: 5rpx 25rpx;
  141. background-color: $uni-color-primary;
  142. }
  143. .error {
  144. padding: 5rpx 15rpx;
  145. background-color: $uni-color-error;
  146. }
  147. }
  148. }
  149. .desc-box {
  150. margin: 0 20rpx;
  151. padding-bottom: 30rpx;
  152. font-weight: bold;
  153. }
  154. }
  155. </style>