infoInput.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <service-widget @btnClick="btn_click"></service-widget>
  6. <view class="posi p-3 mb-3 d-flex j-center">
  7. <view class="posi2 on">推荐关系</view>
  8. <view class="posi2">实名认证</view>
  9. </view>
  10. <view class="inputView px-3 mb-2" v-if="recommenderId">
  11. <view class="d-flex">
  12. <view class="d-flex a-center">推荐人会员号</view>
  13. <view class="d-flex a-center">{{recommenderId}}</view>
  14. </view>
  15. <view class="d-flex">
  16. <view class="d-flex a-center">所属机构</view>
  17. <view class="d-flex a-center">{{recommendDept}}</view>
  18. </view>
  19. </view>
  20. <view class="notice px-3 font-weight">
  21. <view class="title">从业告知</view>
  22. <view>
  23. <view class="btns d-flex j-sb">
  24. <view :class="(noticeBtn1 == '1')?'active':''" @tap="adjustNoticeBtn('noticeBtn1',1)">有相关经验</view>
  25. <view :class="(noticeBtn2 == '1')?'active':''" @tap="adjustNoticeBtn('noticeBtn2',1)">有犯罪记录</view>
  26. <view :class="(noticeBtn3 == '1')?'active':''" @tap="adjustNoticeBtn('noticeBtn3',1)">有接受过保监会处罚
  27. </view>
  28. </view>
  29. <view class="btns d-flex j-sb">
  30. <view :class="(noticeBtn1 == '2')?'active':''" @tap="adjustNoticeBtn('noticeBtn1',2)">无相关经验</view>
  31. <view :class="(noticeBtn2 == '2')?'active':''" @tap="adjustNoticeBtn('noticeBtn2',2)">无犯罪记录</view>
  32. <view :class="(noticeBtn3 == '2')?'active':''" @tap="adjustNoticeBtn('noticeBtn3',2)">无接受过保监会处罚
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="p-3">
  38. <checkbox-group @change="changeAgree">
  39. <label>
  40. <checkbox value="true" :checked="agree" style="transform:scale(0.6)"></checkbox>
  41. 本人已如实告知相关信息,如因不实信息产生的一切后果,本人愿承担一切法律责任。
  42. </label>
  43. </checkbox-group>
  44. </view>
  45. <button class="mx-3 mt-4 d-flex a-center j-center main-bg-color" :class="{'main-bf-hover-color':disabled}"
  46. type="primary" @tap="toNext" :disabled="disabled">下一步</button>
  47. </view>
  48. </template>
  49. <script>
  50. import {
  51. mapState
  52. } from "vuex"
  53. export default {
  54. data() {
  55. return {
  56. noticeBtn1: "", //按钮1
  57. noticeBtn2: "", //按钮2
  58. noticeBtn3: "", //按钮3
  59. agree: false, //是否同意协议
  60. disabled: true, //按钮是否可用
  61. recommenderId: "", //推荐人会员号
  62. recommendDept: "", //推荐机构
  63. }
  64. },
  65. async onLoad() {
  66. this.recommenderId = this.userCheckInfo.esmUserAgent.recommenderid;
  67. // 查询推荐人信息
  68. let res = await this.$http.get('/user/findById?id=' + this.recommenderId);
  69. if ((res.code == '200') && (res.data != null)) {
  70. this.recommendDept = res.data.comname;
  71. }
  72. },
  73. computed: {
  74. ...mapState(['userCheckInfo'])
  75. },
  76. watch: {
  77. noticeBtn1(val) {
  78. this.OnBtnChange();
  79. },
  80. noticeBtn2(val) {
  81. this.OnBtnChange();
  82. },
  83. noticeBtn3(val) {
  84. this.OnBtnChange();
  85. },
  86. agree(val) {
  87. this.OnBtnChange();
  88. }
  89. },
  90. methods: {
  91. btn_click() {
  92. uni.navigateTo({
  93. url: '/pages/chat/chat'
  94. })
  95. },
  96. changeAgree(e) {
  97. this.agree = e.detail.value[0];
  98. },
  99. // 改变按钮状态value
  100. OnBtnChange() {
  101. if ((!!this.noticeBtn1) && (!!this.noticeBtn2) && (!!this.noticeBtn3) && (!!this.agree)) {
  102. this.disabled = false;
  103. return;
  104. }
  105. this.disabled = true;
  106. },
  107. toNext() {
  108. if ((this.noticeBtn2 == '1') || (this.noticeBtn3 == '1')) {
  109. return uni.showToast({
  110. title: '您不符合我司的入司要求,感谢关注',
  111. icon: "none"
  112. });
  113. }
  114. uni.showModal({
  115. title: '重要提示',
  116. content: '您即将成为掌柜车险代理人,请问您是否已充分了解监管部门对展业地区的限制和要求,并承诺在监管部门指定的合规的地区开展业务?',
  117. cancelText: '不了解',
  118. confirmText: '我已了解',
  119. success: (res) => {
  120. if (res.confirm) {
  121. this.navigate({
  122. url: "/pages/user/certification"
  123. }, 'navigateTo')
  124. }
  125. }
  126. });
  127. },
  128. adjustNoticeBtn(btnLabel, status) {
  129. this[btnLabel] = status;
  130. }
  131. }
  132. }
  133. </script>
  134. <style lang="scss" scoped>
  135. @import '@/style/mixin.scss';
  136. .posi {
  137. counter-reset: num;
  138. }
  139. .posi2 {
  140. position: relative;
  141. display: inline-block;
  142. height: 40rpx;
  143. line-height: 40rpx;
  144. text-align: right;
  145. padding-right: 15rpx;
  146. width: 140rpx;
  147. border-radius: 30rpx;
  148. border: 1px solid #F0F0F0;
  149. background: #F0F0F0;
  150. margin-left: 30rpx;
  151. color: #999;
  152. font-size: 24rpx;
  153. }
  154. .posi2.on {
  155. border: 1px solid $themeColor;
  156. background: #FFFFFF;
  157. color: $themeColor;
  158. }
  159. .posi2:before {
  160. position: absolute;
  161. display: block;
  162. left: 2rpx;
  163. top: 6rpx;
  164. width: 28rpx;
  165. height: 28rpx;
  166. border-radius: 100%;
  167. background: #fff;
  168. color: #999;
  169. counter-increment: num;
  170. content: counter(num);
  171. text-align: center;
  172. line-height: 28rpx;
  173. }
  174. .posi2.on:before {
  175. background: $themeColor;
  176. color: #FFF;
  177. }
  178. .posi>view:nth-of-type(1):after {
  179. position: absolute;
  180. display: block;
  181. content: "";
  182. right: -20rpx;
  183. top: 12rpx;
  184. width: 16rpx;
  185. height: 16rpx;
  186. border-top: 1px solid $themeColor;
  187. border-right: 1px solid $themeColor;
  188. transform: rotate(45deg);
  189. }
  190. .posi>.posi2:nth-of-type(1) {
  191. margin-left: 0;
  192. }
  193. .inputView {
  194. background: #FFFFFF;
  195. }
  196. .inputView>view {
  197. height: 90rpx;
  198. border-bottom: 1px solid #ddd;
  199. }
  200. .inputView>view>view:nth-of-type(1) {
  201. flex-shrink: 0;
  202. width: 190upx;
  203. padding-left: 15upx;
  204. color: #999;
  205. }
  206. .notice {
  207. background-color: #FFFFFF;
  208. }
  209. .notice .title {
  210. height: 80upx;
  211. line-height: 80upx;
  212. font-size: 32upx;
  213. border-bottom: 1px solid #ddd;
  214. }
  215. .notice .btns {
  216. padding-top: 20upx;
  217. padding-bottom: 20upx;
  218. }
  219. .notice .btns>view {
  220. display: block;
  221. padding: 0 16rpx;
  222. color: #999;
  223. line-height: 52rpx;
  224. font-size: 24rpx;
  225. border-radius: 30rpx;
  226. border: 1px solid #f0f0f0;
  227. background-color: #f0f0f0;
  228. height: 56rpx;
  229. }
  230. .notice .btns>view.active {
  231. color: #fff;
  232. border: 1px solid $themeColor;
  233. background-color: $themeColor;
  234. }
  235. </style>