authentication2.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 class="search dis j-s a-c mt-5">
  11. <u-search v-model="pageRequest.criteria"
  12. style="box-shadow: 0px 4px 10px 0px #DAE3F4;border-radius: 6px;" @custom="custom" @search="search"
  13. :shape="shape" :height='68' bg-color="#fff" color="#000" :input-style="{background:'transparent'}"
  14. placeholder-color="rgba(51,51,51,0.6)" :clearabled="clearabled" :show-action="showAction"
  15. :input-align="inputAlign" @clear="clear" :action-style="{background:'#fff'}"
  16. placeholder="请输入工号、姓名、手机号查询"></u-search>
  17. <!-- <image src="/static/image/car-insure/dropdown.png" mode="" @tap="searchPopup"></image> -->
  18. </view>
  19. </view>
  20. <view style="padding: 160px 16px 50px 16px;">
  21. <view class="Paging dis f-c " v-for="(item,index) in list" :key="index">
  22. <view class="pa-title dis a-c j-s">
  23. <view class="dis a-c ">
  24. <image src="../../../static/image/addStaff/active1.png" mode=""></image>
  25. <text>已认证</text>
  26. </view>
  27. <u-button size="mini" type="primary" :custom-style="{fontSize:'14px'}" :plain="true"
  28. @click="detail(item.id)">查看详情</u-button>
  29. </view>
  30. <view class="pa-cent dis f-c mt-2">
  31. <text style="color: #333;">姓名:{{item.name}}</text>
  32. <text>工号:{{item.id}}</text>
  33. <view class="dis j-s a-c">
  34. <text>手机号:{{item.mobile}}</text>
  35. <image src="../../../static/image/addStaff/phone.png" mode="" @click="callPhone(item.mobile)">
  36. </image>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import {
  45. mapState
  46. } from "vuex"
  47. export default {
  48. data() {
  49. return {
  50. headerStyle: {
  51. backgroundColor: '',
  52. backgroundImage: '',
  53. backgroundSize: '',
  54. backgroundPosition: '',
  55. boxShadow: ''
  56. // 其他样式属性...
  57. },
  58. shape: 'square',
  59. clearabled: true,
  60. showAction: false,
  61. inputAlign: 'left',
  62. pageRequest: { //查询的默认条件
  63. pageNum: 1,
  64. pageSize: 20,
  65. authenticationStatus: '1',
  66. criteria: "",
  67. },
  68. list: [],
  69. }
  70. },
  71. onLoad() {
  72. this.querylist();
  73. },
  74. computed: {
  75. ...mapState(['userInfo', 'sources']),
  76. },
  77. methods: {
  78. async querylist() {
  79. let res = await this.$http.post('/app/customer/authenticationQuery', this.pageRequest);
  80. if (res.code == '200') {
  81. this.list = res.data.content;
  82. }
  83. },
  84. detail(id) {
  85. this.navigate({
  86. url: '/pages/tools/addStaff/authenticationdetails?id=' + id
  87. }, "navigateTo", true);
  88. },
  89. callPhone(tel) {
  90. uni.makePhoneCall({
  91. phoneNumber: tel,
  92. success: () => {
  93. console.log("成功拨打电话")
  94. }
  95. })
  96. },
  97. //页面返回按钮
  98. back() {
  99. uni.navigateBack({
  100. delta: 1, // 返回的页面数,如果是1表示返回上一页
  101. success: function() {}
  102. });
  103. },
  104. change(index) {
  105. this.current = index;
  106. },
  107. change1(index) {
  108. this.current1 = index;
  109. },
  110. getStaffList(staffType) {
  111. // 0未认证 1已认证 2全部
  112. this.navigate({
  113. url: '/pages/tool-staff-list/tool-staff-list?staffType=' + staffType
  114. }, "navigateTo", true);
  115. },
  116. //回车搜索事件
  117. search(val) {
  118. this.querylist();
  119. },
  120. //搜索按钮事件
  121. custom(val) {
  122. this.querylist();
  123. },
  124. }
  125. }
  126. </script>
  127. <style lang="scss" scoped>
  128. page {
  129. background-color: #F8FAFE;
  130. }
  131. .search {
  132. image {
  133. width: 22px;
  134. height: 22px;
  135. margin-left: 20px;
  136. }
  137. }
  138. .headers {
  139. position: fixed;
  140. top: 0;
  141. left: 0;
  142. height: auto;
  143. width: 100%;
  144. z-index: 999999;
  145. padding: 16px;
  146. padding-top: 50px;
  147. height: auto;
  148. background: #F8FAFE;
  149. background-image: url("/static/image/addStaff/bfg.png");
  150. background-size: 100% 100%;
  151. text {
  152. font-size: 18px;
  153. font-weight: bold;
  154. color: #000;
  155. }
  156. }
  157. .Paging {
  158. width: 100%;
  159. height: auto;
  160. background: #FFFFFF;
  161. box-shadow: 0px 4px 10px 0px #DAE3F4;
  162. border-radius: 6px;
  163. padding: 10px;
  164. box-sizing: border-box;
  165. margin-bottom: 10px;
  166. .pa-title {
  167. padding-bottom: 6px;
  168. border-bottom: 1px solid #f2f2f2;
  169. text {
  170. font-size: 14px;
  171. color: #31BE0E;
  172. font-weight: 700;
  173. margin-left: 6px;
  174. }
  175. image {
  176. width: 18px;
  177. height: 18px;
  178. }
  179. }
  180. .pa-cent {
  181. text {
  182. font-size: 13px;
  183. color: rgba(51, 51, 51, 0.8);
  184. font-weight: 400;
  185. }
  186. image {
  187. width: 20px;
  188. height: 20px;
  189. }
  190. }
  191. }
  192. </style>