authenticationdetails.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <service-widget @btnClick="btn_click"></service-widget>
  6. <view>
  7. <view class="data">
  8. <view class="header">
  9. <image
  10. :src="status==1?'../../../static/image/addStaff/bq1.png':'../../../static/image/addStaff/bq2.png' "
  11. mode="widthFix"></image>
  12. </view>
  13. <view class="Paging dis f-c ">
  14. <view class="pag-data dis a-c">
  15. <image src="../../../static/image/addStaff/user.png" mode=""></image>
  16. <text class="font-weight" style="">个人信息</text>
  17. </view>
  18. <view class="pag-data dis a-c">
  19. <text>机构名称:</text>
  20. <text>{{userData.organization}}</text>
  21. </view>
  22. <view class="pag-data dis a-c">
  23. <text>部门编码:</text>
  24. <text>{{userData.deptId}}</text>
  25. </view>
  26. <view class="pag-data dis a-c">
  27. <text>部门名称:</text>
  28. <text>{{userData.deptName}}</text>
  29. </view>
  30. <view class="pag-data dis a-c">
  31. <text>工号:</text>
  32. <text>{{userData.userId}}</text>
  33. </view>
  34. <view class="pag-data dis a-c">
  35. <text>姓名:</text>
  36. <text>{{userData.name}}</text>
  37. </view>
  38. <view class="pag-data dis a-c">
  39. <text>角色:</text>
  40. <text>{{userData.roleName}}</text>
  41. </view>
  42. <view class="pag-data dis a-c">
  43. <text>来源:</text>
  44. <text>{{userData.source}}</text>
  45. </view>
  46. <view class="pag-data dis a-c">
  47. <text>联系电话:</text>
  48. <text>{{userData.phone}}</text>
  49. <image src="../../../static/image/addStaff/phone.png" mode="" @click="callPhone(userData.phone)"
  50. style="margin-left: auto;">
  51. </image>
  52. </view>
  53. <view class="pag-data dis a-c" v-if="userData.passDesc">
  54. <text>通过描述:</text>
  55. <text>{{userData.passDesc}}</text>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <auth-Modal :authShow="authShow" @btnClick="authShow=false" @maskClick="authShow=false"></auth-Modal>
  61. </view>
  62. </template>
  63. <script>
  64. import authModal from '@/components/modules/user/authModal.vue'; //实名认证弹窗
  65. import {
  66. mapState
  67. } from "vuex"
  68. export default {
  69. components: {
  70. authModal,
  71. },
  72. data() {
  73. return {
  74. authShow: false,
  75. headerStyle: {
  76. backgroundColor: '',
  77. backgroundImage: '',
  78. backgroundSize: '',
  79. backgroundPosition: '',
  80. boxShadow: ''
  81. // 其他样式属性...
  82. },
  83. shape: 'square',
  84. clearabled: true,
  85. showAction: false,
  86. inputAlign: 'left',
  87. pageRequest: { //查询的默认条件
  88. companyId: "",
  89. orderNo: "",
  90. frameNo: "",
  91. insuredName: "",
  92. licenseNo: "",
  93. orderStatus: "",
  94. userId: "",
  95. deptId: "",
  96. endDate: "",
  97. startDate: "",
  98. pageNum: 1,
  99. pageSize: 20,
  100. },
  101. userData: {},
  102. status: "",
  103. }
  104. },
  105. async onLoad(params) {
  106. if (params.id) {
  107. this.status = params.status;
  108. let res = await this.$http.get(`/app/customer/${params.id}`);
  109. if (res.code == '200') {
  110. this.userData = res.data;
  111. }
  112. }
  113. },
  114. computed: {
  115. ...mapState(['userInfo', 'sources']),
  116. },
  117. methods: {
  118. btn_click() {
  119. uni.navigateTo({
  120. url: '/pages/chat/chat'
  121. })
  122. },
  123. details() {
  124. this.navigate({
  125. url: '/pages/tools/addStaff/authenticationdetails'
  126. }, "navigateTo", true);
  127. },
  128. callPhone(tel) {
  129. uni.makePhoneCall({
  130. phoneNumber: tel,
  131. success: () => {
  132. console.log("成功拨打电话")
  133. }
  134. })
  135. },
  136. //页面返回按钮
  137. back() {
  138. uni.navigateBack({
  139. delta: 1, // 返回的页面数,如果是1表示返回上一页
  140. success: function() {}
  141. });
  142. },
  143. change(index) {
  144. this.current = index;
  145. },
  146. change1(index) {
  147. this.current1 = index;
  148. },
  149. getStaffList(staffType) {
  150. // 0未认证 1已认证 2全部
  151. this.navigate({
  152. url: '/pages/tool-staff-list/tool-staff-list?staffType=' + staffType
  153. }, "navigateTo", true);
  154. },
  155. //回车搜索事件
  156. search(val) {
  157. this.getOrdersList();
  158. },
  159. //搜索按钮事件
  160. custom(val) {
  161. this.getOrdersList();
  162. },
  163. }
  164. }
  165. </script>
  166. <style lang="scss" scoped>
  167. page {
  168. background-color: #F8FAFE;
  169. padding: 16px;
  170. }
  171. .search {
  172. image {
  173. width: 22px;
  174. height: 22px;
  175. margin-left: 20px;
  176. }
  177. }
  178. .data {
  179. position: relative;
  180. .header {
  181. width: 100%;
  182. position: absolute;
  183. left: 0;
  184. top: 0;
  185. }
  186. }
  187. .Paging {
  188. position: absolute;
  189. width: 100%;
  190. height: auto;
  191. background: #FFFFFF;
  192. border-radius: 6px;
  193. padding: 8px 10px;
  194. margin-top: 37px;
  195. border-bottom: 1px solid #E7EFFF;
  196. .pag-data {
  197. border-bottom: 1px solid #f2f2f2;
  198. padding: 6px 0;
  199. image {
  200. width: 20px;
  201. height: 20px;
  202. margin-right: 6px;
  203. }
  204. >text:first-child {
  205. color: #232832;
  206. width: 80px;
  207. font-size: 14px;
  208. }
  209. >text:last-child {
  210. color: #666;
  211. width: 70%;
  212. font-size: 14px;
  213. }
  214. }
  215. .pag-data:last-child {
  216. border: none;
  217. }
  218. }
  219. </style>