jixujiaoyunianjian.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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 class="info-item">
  11. 业务水平认证证书编号:{{ zsbh ?? '无'}}
  12. </view>
  13. </view>
  14. <view class="list-box">
  15. <view class="list-item-box">
  16. <view class="list-item year">
  17. 年份
  18. </view>
  19. <view class="list-item fen">
  20. 应修学分
  21. </view>
  22. <view class="list-item fen">
  23. 已修学分
  24. </view>
  25. <view class="list-item btn">
  26. 年检情况
  27. </view>
  28. </view>
  29. <view class="list-item-box" v-for="(item, index) in listData" :key="index">
  30. <view class="list-item year">
  31. {{item.year}}
  32. </view>
  33. <view class="list-item fen">
  34. {{item.credit}}
  35. </view>
  36. <view class="list-item fen">
  37. {{item.gotCredit}}
  38. </view>
  39. <view class="list-item btn">
  40. <view class="button" :class="[item.finish ? 'primary' : 'error']" @click="onXuexi(item)">
  41. {{item.annIns}}
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="desc-box">
  47. <!-- <rich-text :nodes="explain"></rich-text> -->
  48. <mp-html :content="explain" />
  49. </view>
  50. </view>
  51. </template>
  52. <script setup>
  53. import { ref } from 'vue'
  54. import { onLoad } from '@dcloudio/uni-app'
  55. import { useAuthStore } from '@/store/authStore'
  56. import { list } from '@/api/report.js'
  57. const authStore = useAuthStore()
  58. // 用户信息
  59. const user = ref({
  60. userIcon: '1',
  61. name: '某某某',
  62. corpName: '广州市xx地产有限公司',
  63. corpRegNo: '123xxxx'
  64. })
  65. const listData = ref([
  66. ])
  67. const explain = ref(`
  68. <p><span style="font-size: 14px;"><strong>会员网络教育年检规则:</strong></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">持证人员每年需完成24个学分。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">持证人员会籍有效(注:已缴交当年个人会费)时,系统方可记录学分。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">持证人员在年检期内完成年检的,方可享受学分减免。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">继续教育学分获取、减免及奖励</span></p><p><span style="font-size: 12px;"><br/></span></p><p><span style="font-size: 14px;"><strong>持证人员可通过以下方式获取继续教育学分:</strong></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">1、通过协会网络教育培训系统进行学习;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">2、参加由协会组织的培训、会议或集体活动;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">3、参加经协会认可的培训机构组织的培训;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">4、参加经协会认可的企业内部培训;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">5、参与经理人指数投票;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">6、在国家、省、市级刊物发表房地产专业文章,或在协会内部刊物、网站、微信等发表房地产专业文章。&nbsp;</span></p><p><span style="font-size: 14px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;其中,持证人员每年可免费参加协会组织的线下面授培训课程。</strong></span></p><p><span style="font-size: 14px;"><strong><br/></strong></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">为鼓励持证人员规范执业,诚实守信,凡协会个人会员且年度信用评分在80分以上的持证人员,符合以下情形的可获相应的继续教育学分减免。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">1、连续执业满8年以上,当年需修满12学分即可;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">2、连续执业满10年以上,当年需修满6学分即可;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 12px;">3、连续执业15以上或年龄55周岁以上且连续执业满2年,当年可全免继续教育学分。</span></p><p><br/></p>
  69. `)
  70. function onXuexi(val) {
  71. if (val.finish) {
  72. return;
  73. // uni.showModal({
  74. // title: '提示',
  75. // content: '本年度学分已完成,请您前往广州市房地产中介协会办理年检。地址:广州市越秀区越华路2号二楼',
  76. // showCancel: false,
  77. // confirmText: '确定',
  78. // success: function(res) {
  79. // if (res.confirm) {
  80. // }
  81. // }
  82. // })
  83. } else {
  84. wx.navigateToMiniProgram({
  85. appId: 'wx65323471c83da344', // 例如:wx1234567890abcdef
  86. path: 'pages/index/index', // 跳转路径
  87. envVersion: 'release', // 版本(develop/trial/release)
  88. success(res) {
  89. console.log('跳转成功');
  90. },
  91. fail(err) {
  92. console.error('跳转失败', err);
  93. }
  94. });
  95. }
  96. }
  97. const zsbh = ref("")
  98. onLoad((load) => {
  99. user.value = authStore.userInfo
  100. const { data } = load
  101. const { zhongjie, anjie } = JSON.parse(data)
  102. if(zhongjie && anjie){
  103. zsbh.value = zhongjie
  104. }else if( zhongjie && !anjie ){
  105. zsbh.value = zhongjie
  106. }else if( anjie && !zhongjie ){
  107. zsbh.value = anjie
  108. }else{
  109. zsbh.value = "无"
  110. }
  111. list().then(res => {
  112. if (res && res.code === 0) {
  113. listData.value = res.data.creditList
  114. explain.value = res.data.explain
  115. }
  116. })
  117. })
  118. </script>
  119. <style lang="scss" scoped>
  120. .container {
  121. min-height: 100vh;
  122. width: 100vw;
  123. background: rgb(141, 204, 255);
  124. background: -moz-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  125. background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  126. background: -o-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  127. background: -ms-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  128. background: linear-gradient( 180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  129. .info-box {
  130. margin: 0 20rpx;
  131. padding: 0 40rpx;
  132. padding-top: 50rpx;
  133. margin-bottom: 30rpx;
  134. .info-item {
  135. margin-bottom: 10rpx;
  136. font-size: $uni-title-font-size-2;
  137. font-weight: bold;
  138. letter-spacing: 3rpx;
  139. }
  140. }
  141. .list-box {
  142. margin: 0 20rpx;
  143. background-color: $uni-bg-color-grey;
  144. border-radius: $uni-card-border-radius;
  145. padding: 20rpx 15rpx;
  146. margin-bottom: 30rpx;
  147. .year {
  148. width: 20%;
  149. }
  150. .fen {
  151. width: 18%;
  152. }
  153. .btn {
  154. width: 44%;
  155. }
  156. .list-item-box {
  157. &:first-child {
  158. border-bottom: 5rpx solid #E6E6E6;
  159. font-size: $uni-font-size-1;
  160. font-weight: bold;
  161. .list-item {
  162. text-align: center;
  163. &:last-child {
  164. color: #303133;
  165. font-weight: bold;
  166. }
  167. }
  168. }
  169. padding: 20rpx 0;
  170. text-align: center;
  171. font-size: $uni-font-size-1;
  172. font-weight: bold;
  173. display: flex;
  174. align-items: center;
  175. .list-item {
  176. text-align: center;
  177. &:last-child {
  178. font-weight: normal;
  179. }
  180. }
  181. .button {
  182. width: fit-content;
  183. border-radius: $uni-card-border-radius;
  184. color: #303133;
  185. margin: 0 auto;
  186. }
  187. .primary {
  188. padding: 5rpx 25rpx;
  189. color: $uni-text-color-inverse;
  190. background-color: $uni-color-primary;
  191. }
  192. .error {
  193. padding: 5rpx 25rpx;
  194. color: $uni-text-color-inverse;
  195. background-color: $uni-color-error;
  196. }
  197. }
  198. }
  199. .desc-box {
  200. margin: 0 20rpx;
  201. padding-bottom: 30rpx;
  202. font-weight: bold;
  203. }
  204. }
  205. </style>