authenticationdetails.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view>
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="headers " :style="headerStyle">
  6. <view class="dis a-c j-start ">
  7. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  8. <text style="margin: auto;">查看详情</text>
  9. </view>
  10. </view>
  11. <view style="padding-top: 100px;">
  12. <view class="Paging dis f-c ">
  13. <view class="pag-data dis j-s a-c">
  14. <text>机构名称:</text>
  15. <text>{{userData.organization}}</text>
  16. </view>
  17. <view class="pag-data dis j-s a-c">
  18. <text>部门编码:</text>
  19. <text>{{userData.deptId}}</text>
  20. </view>
  21. <view class="pag-data dis j-s a-c">
  22. <text>部门名称:</text>
  23. <text>{{userData.deptName}}</text>
  24. </view>
  25. <view class="pag-data dis j-s a-c">
  26. <text>工号:</text>
  27. <text>{{userData.userId}}</text>
  28. </view>
  29. <view class="pag-data dis j-s a-c">
  30. <text>姓名:</text>
  31. <text>{{userData.name}}</text>
  32. </view>
  33. <view class="pag-data dis j-s a-c">
  34. <text>联系电话:</text>
  35. <text>{{userData.phone}}</text>
  36. </view>
  37. <view class="pag-data dis j-s a-c">
  38. <text>状态:</text>
  39. <text v-if="userData.state==1">已认证</text>
  40. <text v-else>未认证</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. import {
  48. mapState
  49. } from "vuex"
  50. export default {
  51. data() {
  52. return {
  53. headerStyle: {
  54. backgroundColor: '',
  55. backgroundImage: '',
  56. backgroundSize: '',
  57. backgroundPosition: '',
  58. boxShadow: ''
  59. // 其他样式属性...
  60. },
  61. shape: 'square',
  62. clearabled: true,
  63. showAction: false,
  64. inputAlign: 'left',
  65. pageRequest: { //查询的默认条件
  66. companyId: "",
  67. orderNo: "",
  68. frameNo: "",
  69. insuredName: "",
  70. licenseNo: "",
  71. orderStatus: "",
  72. userId: "",
  73. deptId: "",
  74. endDate: "",
  75. startDate: "",
  76. pageNum: 1,
  77. pageSize: 20,
  78. },
  79. userData: {},
  80. status: "",
  81. }
  82. },
  83. async onLoad(params) {
  84. if (params.id) {
  85. this.status = params.status;
  86. let res = await this.$http.get('/app/customer/' + params.id);
  87. if (res.code == '200') {
  88. this.userData = res.data;
  89. }
  90. }
  91. },
  92. computed: {
  93. ...mapState(['userInfo', 'sources']),
  94. },
  95. methods: {
  96. details() {
  97. this.navigate({
  98. url: '/pages/tools/addStaff/authenticationdetails'
  99. }, "navigateTo", true);
  100. },
  101. callPhone(tel) {
  102. uni.makePhoneCall({
  103. phoneNumber: tel,
  104. success: () => {
  105. console.log("成功拨打电话")
  106. }
  107. })
  108. },
  109. //页面返回按钮
  110. back() {
  111. uni.navigateBack({
  112. delta: 1, // 返回的页面数,如果是1表示返回上一页
  113. success: function() {}
  114. });
  115. },
  116. change(index) {
  117. this.current = index;
  118. },
  119. change1(index) {
  120. this.current1 = index;
  121. },
  122. getStaffList(staffType) {
  123. // 0未认证 1已认证 2全部
  124. this.navigate({
  125. url: '/pages/tool-staff-list/tool-staff-list?staffType=' + staffType
  126. }, "navigateTo", true);
  127. },
  128. //回车搜索事件
  129. search(val) {
  130. this.getOrdersList();
  131. },
  132. //搜索按钮事件
  133. custom(val) {
  134. this.getOrdersList();
  135. },
  136. }
  137. }
  138. </script>
  139. <style lang="scss" scoped>
  140. page {
  141. background-color: #F8FAFE;
  142. padding: 16px;
  143. }
  144. .search {
  145. image {
  146. width: 22px;
  147. height: 22px;
  148. margin-left: 20px;
  149. }
  150. }
  151. .headers {
  152. position: fixed;
  153. top: 0;
  154. left: 0;
  155. height: auto;
  156. width: 100%;
  157. z-index: 999999;
  158. padding: 16px;
  159. padding-top: 50px;
  160. height: auto;
  161. background: #F8FAFE;
  162. background-image: url("/static/image/addStaff/bfg.png");
  163. background-size: 100% 100%;
  164. text {
  165. font-size: 18px;
  166. font-weight: bold;
  167. color: #000;
  168. }
  169. }
  170. .Paging {
  171. width: 100%;
  172. height: auto;
  173. background: #FFFFFF;
  174. box-shadow: 0px 4px 10px 0px #DAE3F4;
  175. border-radius: 6px;
  176. padding: 6px;
  177. .pag-data {
  178. border-bottom: 1px solid #f2f2f2;
  179. padding: 6px 0;
  180. }
  181. .pag-data:last-child {
  182. border: none;
  183. }
  184. }
  185. </style>