huiFeiJiaoJiao.vue 6.8 KB

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