Jelajahi Sumber

失信人员名单

shish 1 tahun lalu
induk
melakukan
dcbf367bf6

+ 2 - 2
hdApp/src/admin/ll/add.vue

@@ -40,8 +40,8 @@
 
 
       <view class="module-com input-line-wrap goods-wrap">
       <view class="module-com input-line-wrap goods-wrap">
         <view class="module-tit">
         <view class="module-tit">
-          <span>图片证据</span>
-          <span class="app-color-3">(微信聊天截图、销售单拍照等,最多5张)</span>
+          <span>证据</span>
+          <span class="app-color-3">(聊天截图、销售物流单拍照等,最多5张)</span>
         </view>
         </view>
         <view class="module-det">
         <view class="module-det">
           <htz-image-upload :max="5" :compress="true" v-model="currentImgData" :headers="headers"
           <htz-image-upload :max="5" :compress="true" v-model="currentImgData" :headers="headers"

+ 60 - 16
hdApp/src/admin/ll/list.vue

@@ -3,17 +3,16 @@
       <view style="width:100%;font-size:40upx;font-weight:bold;text-align: center;padding-top:30upx;padding-bottom:40upx;background-color: white;">失信人员查询系统</view>
       <view style="width:100%;font-size:40upx;font-weight:bold;text-align: center;padding-top:30upx;padding-bottom:40upx;background-color: white;">失信人员查询系统</view>
       <view style="background-color: white;">
       <view style="background-color: white;">
         <view style="width:100%;">
         <view style="width:100%;">
-          <button class="admin-button-com big blue" style="margin-left:2%;" @click="">手机号</button>
-          <button class="admin-button-com big" style="margin-left:10upx;" @click="">微信号</button>
-          <button class="admin-button-com big" style="margin-left:10upx;" @click="">身份证</button>
-          <button class="admin-button-com big" style="margin-left:10upx;" @click="">名 称</button>
+          <button class="admin-button-com big" :class="[searchType == 0 ? 'blue' : '']" style="margin-left:2%;" @click="changeSearch(0)">手机号</button>
+          <button class="admin-button-com big" :class="[searchType == 1 ? 'blue' : '']" style="margin-left:10upx;" @click="changeSearch(1)">微信号</button>
+          <button class="admin-button-com big" :class="[searchType == 2 ? 'blue' : '']" style="margin-left:10upx;" @click="changeSearch(2)">身份证</button>
           <button class="admin-button-com big red" style="margin-right:2%;float: right;border: 1upx solid #3385FF;color:white;background-color:#3385FF;" @click="add()">新 增</button>
           <button class="admin-button-com big red" style="margin-right:2%;float: right;border: 1upx solid #3385FF;color:white;background-color:#3385FF;" @click="add()">新 增</button>
         </view>
         </view>
         <view style="width:100%;text-align: center;padding-bottom:30upx;margin-top:10upx;">
         <view style="width:100%;text-align: center;padding-bottom:30upx;margin-top:10upx;">
-          <input v-model="search" name="search" ref="searchRef" type="text" placeholder="这里搜索" 
+          <input v-model="search" name="search" ref="searchRef" type="text" placeholder="这里搜索" @input="goSearch()" @focus="clearSearch()"
           style="border:1upx solid #CCCCCC;width:96%;border-radius: 10upx;height:90upx;margin:0 auto;text-align: left;padding-left:15upx;font-size:32upx;" />
           style="border:1upx solid #CCCCCC;width:96%;border-radius: 10upx;height:90upx;margin:0 auto;text-align: left;padding-left:15upx;font-size:32upx;" />
           <view style="width:100%;font-size:30upx;color:black;margin:30upx 0 5upx 2%;text-align: left;font-size:32upx;">
           <view style="width:100%;font-size:30upx;color:black;margin:30upx 0 5upx 2%;text-align: left;font-size:32upx;">
-            <text>失信人员 50人</text>
+            <text>失信人员 {{totalUserNum}}人</text>
             <text style="float:right;color:#3385FF;text-decoration: underline;margin-right:40upx;" @click.stop="goMy()">我提交的记录</text>
             <text style="float:right;color:#3385FF;text-decoration: underline;margin-right:40upx;" @click.stop="goMy()">我提交的记录</text>
           </view>
           </view>
         </view>
         </view>
@@ -54,11 +53,15 @@
     },
     },
     mixins: [list],
     mixins: [list],
     computed: { 
     computed: { 
-      ...mapGetters(["getLoginInfo", "getDictionariesInfo"]) 
+      ...mapGetters({ loginInfo: "getLoginInfo"}) 
     },
     },
     data() {
     data() {
       return {
       return {
-        search:''
+        search:'',
+        searchType:0,
+        totalUserNum:0,
+        T:null,
+        loginStyle :0
       };
       };
     },
     },
     onPullDownRefresh() {
     onPullDownRefresh() {
@@ -74,31 +77,72 @@
       } else {
       } else {
         uni.stopPullDownRefresh();
         uni.stopPullDownRefresh();
       }
       }
-    },
-    mounted() {
-
     },
     },
     onLoad() {
     onLoad() {
       this.getList()
       this.getList()
     },
     },
+    onShow () {
+      if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
+        this.loginStyle  = 1
+      }
+    },
+    watch: {
+      loginInfo(newVal) {
+        if(!this.$util.isEmpty(newVal.admin) && newVal.admin.currentShopId > 0){
+          this.loginStyle  = 1
+        }
+      }
+	  },
     methods: {
     methods: {
+      goSearch(){
+        let that = this
+        if(this.T != null){
+          clearTimeout(this.T)
+        }
+        this.T = setTimeout(function(){
+          that.resetList()
+          that.getList()
+        },800)
+      },
+      changeSearch(type){
+        this.searchType = type
+        this.search = ''
+        this.resetList()
+      },
+      clearSearch(){
+        this.search = ''
+        this.resetList()
+      },
       goMy(){
       goMy(){
-        this.$util.pageTo({url:"/admin/ll/myEventList"})
+        if(this.loginStyle == 0){
+          this.$util.confirmModal({content:'请先登录'},() => {
+            this.$util.pageTo({url: "/admin/home/login?fromType=2",type:2})
+          })
+        }else{
+          this.$util.pageTo({url:"/admin/ll/myEventList"})
+        }
       },
       },
       add(){
       add(){
-        this.$util.pageTo({url:"/admin/ll/add"})
+        if(this.loginStyle == 0){
+          this.$util.confirmModal({content:'请先登录'},() => {
+            this.$util.pageTo({url: "/admin/home/login?fromType=2",type:2})
+          })
+        }else{
+          this.$util.pageTo({url:"/admin/ll/add"})
+        }
       },
       },
       init(){
       init(){
       },
       },
       getList() {
       getList() {
-        return getUserList().then((res) => {
-          this.completes(res);
+        return getUserList({search:this.search,searchType:this.searchType}).then(res => {
+          this.totalUserNum = res.data.totalUserNum ? res.data.totalUserNum : 0
+          this.completes(res)
           if (this.$util.isEmpty(res.data)){
           if (this.$util.isEmpty(res.data)){
             return false
             return false
           }
           }
         })
         })
       }
       }
-    },
+    }
   };
   };
   </script>
   </script>
   <style lang="scss" scoped>
   <style lang="scss" scoped>

+ 1 - 1
hdApp/src/admin/ll/myEventList.vue

@@ -24,7 +24,7 @@
   import eventArea from "./components/event";
   import eventArea from "./components/event";
   import DateSelect from "@/components/module/dateSelect";
   import DateSelect from "@/components/module/dateSelect";
   export default {
   export default {
-    name: "my",
+    name: "myEventList",
     components: {
     components: {
       AppWrapperEmpty,
       AppWrapperEmpty,
       ModalModule,
       ModalModule,

+ 8 - 4
hdApp/src/admin/ll/userDetail.vue

@@ -2,7 +2,7 @@
 	<view class="app-content">
 	<view class="app-content">
 		<view class="info-content_box">
 		<view class="info-content_box">
 			<view class="title">
 			<view class="title">
-				更多信息
+				详情
 			</view>
 			</view>
 			<view class="bills-info_box content-box">
 			<view class="bills-info_box content-box">
 				<view class="order-info_box">
 				<view class="order-info_box">
@@ -80,13 +80,17 @@ export default {
 	computed: {
 	computed: {
 		...mapGetters({ loginInfo: "getLoginInfo" }),
 		...mapGetters({ loginInfo: "getLoginInfo" }),
 	},
 	},
+	onLoad() {
+		let that = this
+		getUserDetail({ id: that.option.id }).then(res=>{
+			that.userInfo = res.data.user ? res.data.user : {}
+		})
+	},
 	methods: {
 	methods: {
 		share(){
 		share(){
 			this.$msg('开发中')
 			this.$msg('开发中')
 		},
 		},
-		async init() {
-			const res = await getUserDetail({ id: this.option.id })
-			this.userInfo = res.data.user ? res.data.user : {}
+		init() {
 		}
 		}
 	}
 	}
 };
 };