jixujiaoyunianjian.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. 业务水平认证证书编号:{{user.corpRegNo ?? '无'}}
  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 ? '' : '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: 12px;"><strong>会员网络教育年检规则:</strong></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">持证人员每年需完成24个学分。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">持证人员会籍有效(注:已缴交当年个人会费)时,系统方可记录学分。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">持证人员在年检期内完成年检的,方可享受学分减免。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">继续教育学分获取、减免及奖励</span></p><p><span style="font-size: 10px;"><br/></span></p><p><span style="font-size: 12px;"><strong>持证人员可通过以下方式获取继续教育学分:</strong></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">1、通过协会网络教育培训系统进行学习;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">2、参加由协会组织的培训、会议或集体活动;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">3、参加经协会认可的培训机构组织的培训;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">4、参加经协会认可的企业内部培训;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">5、参与经理人指数投票;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">6、在国家、省、市级刊物发表房地产专业文章,或在协会内部刊物、网站、微信等发表房地产专业文章。&nbsp;</span></p><p><span style="font-size: 12px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;其中,持证人员每年可免费参加协会组织的线下面授培训课程。</strong></span></p><p><span style="font-size: 12px;"><strong><br/></strong></span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">为鼓励持证人员规范执业,诚实守信,凡协会个人会员且年度信用评分在80分以上的持证人员,符合以下情形的可获相应的继续教育学分减免。</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">1、连续执业满8年以上,当年需修满12学分即可;&nbsp;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">2、连续执业满10年以上,当年需修满6学分即可;</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size: 10px;">3、连续执业15以上或年龄55周岁以上且连续执业满2年,当年可全免继续教育学分。</span></p><p><br/></p>
  69. `)
  70. function onXuexi(val) {
  71. if (val.finish) {
  72. uni.showModal({
  73. title: '提示',
  74. content: '本年度学分已完成,请您前往广州市房地产中介协会办理年检。地址:广州市越秀区越华路2号二楼',
  75. showCancel: false,
  76. confirmText: '确定',
  77. success: function(res) {
  78. if (res.confirm) {
  79. }
  80. }
  81. })
  82. } else {
  83. wx.navigateToMiniProgram({
  84. appId: 'wx65323471c83da344', // 例如:wx1234567890abcdef
  85. path: 'pages/index/index', // 跳转路径
  86. envVersion: 'release', // 版本(develop/trial/release)
  87. success(res) {
  88. console.log('跳转成功');
  89. },
  90. fail(err) {
  91. console.error('跳转失败', err);
  92. }
  93. });
  94. }
  95. }
  96. onLoad(() => {
  97. user.value = authStore.userInfo
  98. list().then(res => {
  99. if (res && res.message === 'success') {
  100. listData.value = res.data.creditList
  101. explain.value = res.data.explain
  102. }
  103. })
  104. })
  105. </script>
  106. <style lang="scss" scoped>
  107. .container {
  108. height: 100vh;
  109. width: 100vw;
  110. background: rgb(141, 204, 255);
  111. background: -moz-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  112. background: -webkit-linear-gradient(90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  113. background: -o-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  114. background: -ms-linear-gradient( 90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  115. background: linear-gradient( 180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
  116. .info-box {
  117. margin: 0 20rpx;
  118. padding: 0 40rpx;
  119. padding-top: 50rpx;
  120. margin-bottom: 30rpx;
  121. .info-item {
  122. margin-bottom: 10rpx;
  123. font-size: $uni-title-font-size-2;
  124. font-weight: bold;
  125. letter-spacing: 3rpx;
  126. }
  127. }
  128. .list-box {
  129. margin: 0 20rpx;
  130. background-color: $uni-bg-color-grey;
  131. border-radius: $uni-card-border-radius;
  132. padding: 20rpx 15rpx;
  133. margin-bottom: 30rpx;
  134. .year,.fen {
  135. width: 20%;
  136. }
  137. .btn {
  138. width: 40%;
  139. }
  140. .list-item-box {
  141. &:first-child {
  142. border-bottom: 5rpx solid #E6E6E6;
  143. font-size: $uni-font-size-1;
  144. font-weight: bold;
  145. .list-item {
  146. text-align: center;
  147. &:last-child {
  148. color: #303133;
  149. font-weight: bold;
  150. }
  151. }
  152. }
  153. padding: 15rpx 0;
  154. text-align: center;
  155. font-size: $uni-font-size-3;
  156. font-weight: bold;
  157. display: flex;
  158. align-items: center;
  159. .list-item {
  160. text-align: center;
  161. &:last-child {
  162. color: $uni-text-color-inverse;
  163. font-weight: normal;
  164. }
  165. }
  166. .button {
  167. width: fit-content;
  168. border-radius: $uni-card-border-radius;
  169. margin: 0 auto;
  170. }
  171. .primary {
  172. padding: 5rpx 25rpx;
  173. background-color: $uni-color-primary;
  174. }
  175. .error {
  176. padding: 5rpx 15rpx;
  177. background-color: $uni-color-error;
  178. }
  179. }
  180. }
  181. .desc-box {
  182. margin: 0 20rpx;
  183. padding-bottom: 30rpx;
  184. font-weight: bold;
  185. }
  186. }
  187. </style>