| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- <template>
- <view>
- <!-- 公共组件-每个页面必须引入 -->
- <public-module></public-module>
- <service-widget @btnClick="btn_click"></service-widget>
- <view class="headers " :style="headerStyle">
- <view class="dis a-c j-start ">
- <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
- <u-search v-model="pageRequest.criteria" @search="search" @custom="custom" :shape="shape" :height='68'
- bg-color="#E8E8E9" color="#000" :input-style="{background:'transparent'}" margin=" 0 0 0 30rpx"
- placeholder-color="rgba(51,51,51,0.6)" :clearabled="clearabled" :show-action="showAction"
- :input-align="inputAlign" @clear="clear" :action-style="{background:'#fff'}"
- placeholder="请输入工号、姓名、手机号查询"></u-search>
- </view>
- </view>
- <view style="padding: 114px 16px 50px 16px;">
- <view class="Paging dis f-c " v-for="(item,index) in list" :key="index">
- <view class="pa-title dis a-c"
- :style="{background:item.status==1?'linear-gradient( 90deg, #F5F7FF 0%, #E4EBFF 100%)':'linear-gradient( 90deg, #FDF9F4 0%, #FFF1E0 100%)',borderBottom:item.status==1?'1px solid #E7EFFF':'1px solid #FFF1E7'}">
- <view class="colorBlock dis a-c j-c " :style="{background:item.status==1?'#3D7BFE':'#FF984E'}">
- <text>{{item.status==1?'认证通过':'申请加入'}}</text>
- </view>
- <text :style="{color:item.status==1?'#3D7BFE':'#E37D34'}">{{item.updateTime}}</text>
- </view>
- <view class="pa-cent dis f-c " @click.stop="detail(item)">
- <view class="title dis a-c j-s">
- <view class="dis a-c">
- <text>{{item.name}}</text>
- <image v-if="item.levelName=='一级代理'" src="../../../static/image/team/proxy1.png" mode="">
- </image>
- <image v-if="item.levelName=='二级代理'" src="../../../static/image/team/proxy3.png" mode="">
- </image>
- <image v-if="item.levelName=='三级代理'" src="../../../static/image/team/proxy2.png" mode="">
- </image>
- <image v-if="item.levelName=='临时代理'" src="../../../static/image/team/proxy4.png" mode="">
- </image>
- </view>
- <u-icon name="arrow-right" color="#C7C6CA" size="26"></u-icon>
- </view>
- <text>工号:{{item.id}}</text>
- <view class="dis j-s a-c">
- <text>手机号:{{item.mobile}}</text>
- <view class="callPhone dis a-c j-c" @click.stop="callPhone(item.mobile)">
- <text>联系TA</text>
- </view>
- <!-- <image src="../../../static/image/addStaff/phone.png" mode="" >
- </image> -->
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from "vuex"
- export default {
- data() {
- return {
- userAuthType: [{
- name: '全部'
- }, {
- name: '未认证'
- }, {
- name: '认证通过'
- },
- {
- name: '认证驳回'
- }
- ],
- current: 0,
- headerStyle: {
- backgroundColor: '',
- backgroundImage: '',
- backgroundSize: '',
- backgroundPosition: '',
- boxShadow: ''
- // 其他样式属性...
- },
- shape: 'square',
- clearabled: true,
- showAction: true,
- inputAlign: 'left',
- pageRequest: { //查询的默认条件
- pageNum: 1,
- pageSize: 20,
- authenticationStatus: null,
- criteria: "",
- },
- list: [],
- status: 'loadmore',
- totalPages: 0, //订单总页数
- }
- },
- onLoad() {},
- computed: {
- ...mapState(['userInfo', 'sources']),
- },
- methods: {
- btn_click() {
- uni.navigateTo({
- url: '/pages/chat/chat'
- })
- },
- async querylist() {
- let res = await this.$http.post('/app/customer/authenticationQuery', this.pageRequest);
- if (res.code == '200') {
- this.list = res.data.content;
- this.totalPages = res.data.totalPages;
- }
- },
- detail(item) {
- this.navigate({
- url: '/pages/tools/addStaff/authenticationdetails?id=' + item.id + "&status=" + item.status
- }, "navigateTo", true);
- },
- callPhone(tel) {
- uni.makePhoneCall({
- phoneNumber: tel,
- success: () => {
- console.log("成功拨打电话")
- }
- })
- },
- //页面返回按钮
- back() {
- uni.navigateBack({
- delta: 1, // 返回的页面数,如果是1表示返回上一页
- success: function() {}
- });
- },
- custom(val) {
- this.querylist();
- },
- //回车搜索事件
- search(val) {
- this.querylist();
- },
- //搜索按钮事件
- clear(val) {
- this.list = [];
- this.pageRequest.criteria = "";
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- background-color: #F8FAFE;
- }
- .active {
- position: relative;
- background: rgba(0, 82, 255, 0.1);
- color: #0052FF;
- border: 1px solid #0052FF;
- font-weight: 700;
- }
- .term {
- height: 100%;
- .title {
- font-size: 14px;
- font-weight: bold;
- color: #232832;
- padding: 10px 0;
- border-bottom: 1px solid #f2f2f2;
- }
- >text {
- font-size: 13px;
- font-weight: bold;
- color: #232832;
- margin-bottom: 10px;
- }
- .status-data {
- padding: 4px 10px;
- box-sizing: border-box;
- margin-right: 10px;
- font-size: 12px;
- border: 1px solid #eee;
- cursor: pointer;
- }
- .operateBtn {
- font-weight: bold;
- font-size: 16px;
- .cancel {
- width: 50%;
- height: 46px;
- color: #0052FF;
- background-color: #EAEAEA;
- }
- .confirm {
- width: 50%;
- height: 46px;
- color: #fff;
- background-color: #0052FF;
- }
- }
- }
- .search {
- width: 100%;
- .numberOfPeople {
- text {
- width: 25%;
- text-align: center;
- font-weight: 500;
- font-size: 14px;
- color: #333;
- }
- }
- }
- .headers {
- position: fixed;
- top: 0;
- left: 0;
- height: auto;
- width: 100%;
- z-index: 999999;
- padding: 50px 16px 16px;
- height: auto;
- background: #fff;
- text {
- font-size: 18px;
- font-weight: bold;
- color: #000;
- }
- }
- .Paging {
- background: #FFFFFF;
- border-radius: 4px;
- border-bottom: 1px solid #E7EFFF;
- margin-bottom: 10px;
- .pa-title {
- background: linear-gradient(90deg, #FDF9F4 0%, #FFF1E0 100%);
- border-radius: 4px 4px 0px 0px;
- border-bottom: 1px solid #FFF1E7;
- .colorBlock {
- background: #FF984E;
- border-radius: 4px 0px 4px 0px;
- color: #fff;
- font-size: 12px;
- margin-right: 6px;
- padding: 3px 8px;
- }
- >text {
- font-size: 12px;
- color: #E37D34;
- }
- }
- .pa-cent {
- padding: 10px;
- .title {
- text {
- font-size: 16px;
- color: #333;
- font-weight: bold;
- }
- image {
- width: 49px;
- height: 17px;
- margin-left: 8px;
- }
- }
- >text {
- font-size: 14px;
- color: #666;
- }
- .callPhone {
- background: linear-gradient(90deg, #3793FF 0%, #0075FF 100%);
- box-shadow: 0px 2px 2px 0px rgba(0, 178, 255, 0.15);
- border-radius: 4px;
- padding: 2px 6px;
- color: #fff;
- font-size: 12px;
- }
- }
- }
- </style>
|