huiFeiJiaoJiao.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. <view class="title">
  39. 会员会费缴交规则:
  40. </view>
  41. <view class="text">
  42. 根据《广州市房地产中介协会章程》第五十六条,会费标准如下:
  43. </view>
  44. <view class="li">
  45. 副会长单位:50000元/年;
  46. </view>
  47. <view class="li">
  48. 理事单位:10000元/年;
  49. </view>
  50. <view class="li">
  51. 普通会员单位:1000元/年;
  52. </view>
  53. <view class="li">
  54. 个人会员:200元/年。
  55. </view>
  56. <view class="text">
  57. 单位会员会籍为每年1月1日至12月31日;
  58. </view>
  59. <view class="text">
  60. 个人会员会籍为每年5月1日至次年4月30日。
  61. </view>
  62. </view>
  63. </view>
  64. </template>
  65. <script setup>
  66. import { ref } from 'vue'
  67. import { onLoad } from '@dcloudio/uni-app'
  68. import { useAuthStore } from '@/store/authStore'
  69. import { list } from '@/api/cost.js'
  70. const authStore = useAuthStore()
  71. // 用户信息
  72. const user = ref({
  73. userIcon: '1',
  74. name: '某某某',
  75. corpName: '广州市xx地产有限公司',
  76. corpRegNo: '123xxxx'
  77. })
  78. const listData = ref([
  79. ])
  80. function onJiaoFei(val) {
  81. if (val.payed) {
  82. return
  83. }
  84. uni.navigateTo({
  85. url: `/pages/geRenHuiFeiJiaoJiao/geRenHuiFeiJiaoJiao?year=${val.year}&duePrice=${val.duePrice}`
  86. })
  87. }
  88. onLoad(() => {
  89. user.value = authStore.userInfo
  90. list().then(res => {
  91. if (res && res.message === 'success') {
  92. listData.value = res.data
  93. }
  94. })
  95. })
  96. </script>
  97. <style lang="scss" scoped>
  98. .container {
  99. height: 100vh;
  100. width: 100vw;
  101. background: rgb(141, 204, 255);
  102. background: -moz-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  103. background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  104. background: -o-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  105. background: -ms-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  106. background: linear-gradient( 180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  107. .info-box {
  108. margin: 0 20rpx;
  109. padding: 0 40rpx;
  110. padding-top: 50rpx;
  111. margin-bottom: 30rpx;
  112. .info-item {
  113. margin-bottom: 10rpx;
  114. font-size: $uni-title-font-size-2;
  115. font-weight: bold;
  116. letter-spacing: 3rpx;
  117. }
  118. }
  119. .list-box {
  120. margin: 0 20rpx;
  121. background-color: $uni-bg-color-grey;
  122. border-radius: $uni-card-border-radius;
  123. padding: 20rpx 15rpx;
  124. margin-bottom: 30rpx;
  125. .list-item-box {
  126. &:first-child {
  127. border-bottom: 5rpx solid #E6E6E6;
  128. font-size: $uni-font-size-1;
  129. font-weight: bold;
  130. .list-item {
  131. width: calc(100% / 3);
  132. text-align: center;
  133. &:last-child {
  134. color: #303133;
  135. font-weight: bold;
  136. }
  137. }
  138. }
  139. padding: 15rpx 0;
  140. text-align: center;
  141. font-size: $uni-font-size-3;
  142. font-weight: bold;
  143. display: flex;
  144. align-items: center;
  145. .list-item {
  146. width: calc(100% / 3);
  147. text-align: center;
  148. &:last-child {
  149. color: $uni-text-color-inverse;
  150. font-weight: normal;
  151. }
  152. }
  153. .button {
  154. width: fit-content;
  155. border-radius: $uni-card-border-radius;
  156. margin: 0 auto;
  157. }
  158. .primary {
  159. padding: 5rpx 25rpx;
  160. background-color: $uni-color-primary;
  161. }
  162. .error {
  163. padding: 5rpx 15rpx;
  164. background-color: $uni-color-error;
  165. }
  166. }
  167. }
  168. .desc-box {
  169. margin: 0 20rpx;
  170. font-weight: bold;
  171. .title {
  172. font-size: $uni-title-font-size-2;
  173. line-height: 50rpx;
  174. }
  175. .text {
  176. display: flex;
  177. align-items: center;
  178. font-size: $uni-font-size-2;
  179. }
  180. .li {
  181. display: flex;
  182. align-items: center;
  183. font-size: $uni-font-size-2;
  184. &:before {
  185. content: '•';
  186. font-size: 30rpx;
  187. margin-right: 8rpx;
  188. }
  189. }
  190. }
  191. }
  192. </style>