authenticationdetails.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 class="pag-data dis j-s a-c" >
  43. <text>注册时间:</text>
  44. <text>{{userData.createTime}}</text>
  45. </view>
  46. <view class="pag-data dis j-s a-c" v-if="userData.state==1">
  47. <text>认证时间:</text>
  48. <text>{{userData.approveTime}}</text>
  49. </view>
  50. <view class="pag-data dis j-s a-c" v-if="userData.state==1">
  51. <text>认证人:</text>
  52. <text>{{userData.approveBy}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. import {
  60. mapState
  61. } from "vuex"
  62. export default {
  63. data() {
  64. return {
  65. headerStyle: {
  66. backgroundColor: '',
  67. backgroundImage: '',
  68. backgroundSize: '',
  69. backgroundPosition: '',
  70. boxShadow: ''
  71. // 其他样式属性...
  72. },
  73. shape: 'square',
  74. clearabled: true,
  75. showAction: false,
  76. inputAlign: 'left',
  77. pageRequest: { //查询的默认条件
  78. companyId: "",
  79. orderNo: "",
  80. frameNo: "",
  81. insuredName: "",
  82. licenseNo: "",
  83. orderStatus: "",
  84. userId: "",
  85. deptId: "",
  86. endDate: "",
  87. startDate: "",
  88. pageNum: 1,
  89. pageSize: 20,
  90. },
  91. userData: {},
  92. status: "",
  93. }
  94. },
  95. async onLoad(params) {
  96. if (params.id) {
  97. this.status = params.status;
  98. let res = await this.$http.get('/app/customer/' + params.id);
  99. if (res.code == '200') {
  100. this.userData = res.data;
  101. }
  102. }
  103. },
  104. computed: {
  105. ...mapState(['userInfo', 'sources']),
  106. },
  107. methods: {
  108. details() {
  109. this.navigate({
  110. url: '/pages/tools/addStaff/authenticationdetails'
  111. }, "navigateTo", true);
  112. },
  113. callPhone(tel) {
  114. uni.makePhoneCall({
  115. phoneNumber: tel,
  116. success: () => {
  117. console.log("成功拨打电话")
  118. }
  119. })
  120. },
  121. //页面返回按钮
  122. back() {
  123. uni.navigateBack({
  124. delta: 1, // 返回的页面数,如果是1表示返回上一页
  125. success: function() {}
  126. });
  127. },
  128. change(index) {
  129. this.current = index;
  130. },
  131. change1(index) {
  132. this.current1 = index;
  133. },
  134. getStaffList(staffType) {
  135. // 0未认证 1已认证 2全部
  136. this.navigate({
  137. url: '/pages/tool-staff-list/tool-staff-list?staffType=' + staffType
  138. }, "navigateTo", true);
  139. },
  140. //回车搜索事件
  141. search(val) {
  142. this.getOrdersList();
  143. },
  144. //搜索按钮事件
  145. custom(val) {
  146. this.getOrdersList();
  147. },
  148. }
  149. }
  150. </script>
  151. <style lang="scss" scoped>
  152. page {
  153. background-color: #F8FAFE;
  154. padding: 16px;
  155. }
  156. .search {
  157. image {
  158. width: 22px;
  159. height: 22px;
  160. margin-left: 20px;
  161. }
  162. }
  163. .headers {
  164. position: fixed;
  165. top: 0;
  166. left: 0;
  167. height: auto;
  168. width: 100%;
  169. z-index: 999999;
  170. padding: 16px;
  171. padding-top: 50px;
  172. height: auto;
  173. background: #F8FAFE;
  174. background-image: url("/static/image/addStaff/bfg.png");
  175. background-size: 100% 100%;
  176. text {
  177. font-size: 18px;
  178. font-weight: bold;
  179. color: #000;
  180. }
  181. }
  182. .Paging {
  183. width: 100%;
  184. height: auto;
  185. background: #FFFFFF;
  186. box-shadow: 0px 4px 10px 0px #DAE3F4;
  187. border-radius: 6px;
  188. padding: 6px;
  189. .pag-data {
  190. border-bottom: 1px solid #f2f2f2;
  191. padding: 6px 0;
  192. }
  193. .pag-data:last-child {
  194. border: none;
  195. }
  196. }
  197. </style>