1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f8ab7df"],{"5af6":function(t,e,n){"use strict";var r=n("a9fd"),a=n.n(r);a.a},a9fd:function(t,e,n){},bff0:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Row",[r("Col",[r("Input",{staticStyle:{width:"500px"},attrs:{"element-id":"nickname","enter-button":"搜索",placeholder:"请输入ID或者手机号",search:""},on:{"on-search":t.orderSearch},model:{value:t.userFrom.keyword,callback:function(e){t.$set(t.userFrom,"keyword",e)},expression:"userFrom.keyword"}})],1)],1),t.dataList.length?r("div",{staticClass:"store-people",on:{scroll:t.getList}},[r("div",{staticClass:"store-list"},t._l(t.dataList,(function(e,n){return r("div",{key:n,staticClass:"item",class:t.uid===e.uid?"on":"",on:{click:function(n){return t.selectStore(e)}}},[e.delete_time?r("span",{staticClass:"del"},[t._v("已注销")]):t._e(),r("div",{staticClass:"avatar"},[r("img",{attrs:{src:e.avatar,alt:""}})]),r("div",{staticClass:"msg"},[r("div",{staticClass:"msg-top"},[r("span",{staticClass:"name"},[t._v(t._s(e.nickname))]),r("span",{staticClass:"id"},[t._v("(id:"+t._s(e.uid)+")")])]),r("div",{staticClass:"msg-mid"},[t._v("\n 手机号:"+t._s(e.phone||"无")+"\n ")]),r("div",{staticClass:"msg-btn"},[r("span",[t._v("类型:"+t._s(e.user_type||"无"))]),r("span",{staticClass:"now-money"},[t._v("\n 余额:"+t._s(e.now_money)+"\n ")])])])])})),0)]):r("div",{staticClass:"no-cump"},[r("img",{attrs:{alt:"",src:n("f8c4")}}),r("span",{staticClass:"trip"},[t._v("噢噢~目前暂无用户")])])],1)},a=[],u=n("c24f"),s={name:"userList",props:["uid"],data:function(){return{total:0,userFrom:{keyword:"",page:1,limit:12,field_key:"all"},loading:!1,dataList:[],currentid:0,columns:[{title:"ID",key:"uid",width:80},{title:"头像",slot:"avatars",minWidth:50},{title:"昵称",key:"nickname",minWidth:70},{title:"手机号",key:"phone",minWidth:70},{title:"用户类型",key:"user_type",minWidth:70},{title:"余额",key:"now_money",sortable:"custom",minWidth:70}]}},created:function(){this.getList()},methods:{selectStore:function(t){t.delete_time?this.$Message.error("用户已注销"):this.$emit("getUserId",t)},sortChanged:function(t){this.userFrom[t.key]=t.order,this.getList()},getList:function(t){var e=this;(!t||t.target.scrollHeight-t.target.scrollTop-t.target.clientHeight<=0&&this.dataList.length<this.total)&&(this.loading=!0,Object(u["r"])(this.userFrom).then((function(t){e.loading=!1,e.total=t.data.count,e.dataList=e.dataList.concat(t.data.list),e.dataList.length<t.data.count&&e.userFrom.page++})).catch((function(t){e.loading=!1,e.$Message.error(t.msg)})))},usersearchList:function(){var t=this;this.loading=!0,Object(u["z"])(this.userFrom).then((function(e){t.dataList=e.data.list,t.total=e.data.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},orderSearch:function(){this.userFrom.page=1,this.dataList=[],this.getList()},pageChange:function(t){this.userFrom.page=t,this.getList()}}},i=s,o=(n("5af6"),n("2877")),c=Object(o["a"])(i,r,a,!1,null,"15ed98ea",null);e["default"]=c.exports},c24f:function(t,e,n){"use strict";n.d(e,"w",(function(){return a})),n.d(e,"p",(function(){return u})),n.d(e,"q",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"v",(function(){return o})),n.d(e,"o",(function(){return c})),n.d(e,"r",(function(){return d})),n.d(e,"b",(function(){return l})),n.d(e,"z",(function(){return f})),n.d(e,"f",(function(){return m})),n.d(e,"j",(function(){return h})),n.d(e,"d",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"u",(function(){return p})),n.d(e,"s",(function(){return _})),n.d(e,"y",(function(){return j})),n.d(e,"t",(function(){return v})),n.d(e,"x",(function(){return O})),n.d(e,"l",(function(){return k})),n.d(e,"n",(function(){return w})),n.d(e,"c",(function(){return y})),n.d(e,"m",(function(){return C})),n.d(e,"k",(function(){return L})),n.d(e,"g",(function(){return F})),n.d(e,"e",(function(){return $})),n.d(e,"i",(function(){return x}));var r=n("b6bd");function a(){return Object(r["a"])({url:"user/user_label_cate",method:"get"})}function u(){return Object(r["a"])({url:"user/user_label_cate/create",method:"get"})}function s(t){return Object(r["a"])({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function i(t){return Object(r["a"])({url:"user/user_label",method:"get",params:t})}function o(){return Object(r["a"])({url:"user/user_label/create",method:"get"})}function c(t){return Object(r["a"])({url:"user/user_label/".concat(t,"/edit"),method:"get"})}function d(t){return Object(r["a"])({url:"user/get_list",method:"get",params:t})}function l(t){return Object(r["a"])({url:"user/cashier_list",method:"get",params:t})}function f(t){return Object(r["a"])({url:"user/search",method:"get",params:t})}function m(t){return Object(r["a"])({url:"user/label/".concat(t),method:"get"})}function h(t,e){return Object(r["a"])({url:"user/label/".concat(t),method:"post",data:e})}function g(t){return Object(r["a"])({url:"user/info/".concat(t),method:"get"})}function b(t){return Object(r["a"])({url:"user/record/".concat(t.id),method:"get",params:t.datas})}function p(t){return Object(r["a"])({url:"user/set_label",method:"post",data:t})}function _(){return Object(r["a"])({url:"store/recharge_info",method:"get"})}function j(){return Object(r["a"])({url:"user/member/ship",method:"get"})}function v(t){return Object(r["a"])({url:"store/recharge",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/user/member",method:"post",data:t})}function k(t){return Object(r["a"])({url:"staff/binding/user",method:"post",data:t})}function w(t){return Object(r["a"])({url:"updatePwd",method:"PUT",data:t})}function y(t,e){return Object(r["a"])({url:"check_order_status/".concat(t),method:"post",data:e})}function C(){return Object(r["a"])({url:"user/cashier_info ",method:"get"})}function L(t){return Object(r["a"])({url:"user/read/".concat(t),method:"get"})}function F(t,e){return Object(r["a"])({url:"user/one_info/".concat(t),method:"get",params:e})}function $(t){return Object(r["a"])({url:"user/member_card",method:"get",params:t})}function x(t){return Object(r["a"])({url:"user/mer_recharge",method:"post",data:t})}},f8c4:function(t,e,n){t.exports=n.p+"view_cashier/img/no-user.028d141b.png"}}]);
|