(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-manage-senduser"],{2215:function(t,e,n){"use strict";n.r(e);var a=n("5197"),i=n("e9a4");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var u=n("828b"),s=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"1e4e5a4a",null,!1,a["a"],void 0);e["default"]=s.exports},5197:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"user",class:t.$store.state.AppStyle,staticStyle:{"background-color":"#f6f6f6"}},[n("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[n("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px"}},[n("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"cuIcon-back"})],1),n("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v("发送消息")]),n("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userRecharge.apply(void 0,arguments)}}},[n("v-uni-button",{staticClass:"cu-btn round bg-blue"},[t._v("发送")])],1)],1)],1),n("v-uni-view",{style:[{padding:t.NavBar+"px 10px 0px 10px"}]}),n("v-uni-form",[n("v-uni-view",{staticClass:"cu-form-group"},[n("v-uni-view",{staticClass:"title"},[t._v("用户ID")]),n("v-uni-input",{attrs:{placeholder:"请输入用户ID",name:"input",type:"number"},model:{value:t.toid,callback:function(e){t.toid=e},expression:"toid"}}),n("v-uni-view",{staticClass:"action"},[n("v-uni-text",{staticClass:"text-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toUser.apply(void 0,arguments)}}},[t._v("选择用户")])],1)],1),n("v-uni-view",{staticClass:"cu-form-group"},[n("v-uni-textarea",{attrs:{placeholder:"请输入消息内容"},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1)],1)],1)},i=[]},e9a4:function(t,e,n){"use strict";n.r(e);var a=n("f47b"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},f47b:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("95d0"),i={data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,toid:"",text:"",modalName:null,token:""}},onPullDownRefresh:function(){},onHide:function(){a.localStorage.removeItem("getuid")},onShow:function(){a.localStorage.getItem("getuid")&&(this.toid=a.localStorage.getItem("getuid"))},onLoad:function(){},methods:{back:function(){uni.navigateBack({delta:1})},showModal:function(t){this.modalName=t.currentTarget.dataset.target},hideModal:function(){this.modalName=null},toType:function(t,e){this.typeText=t,this.type=e,console.log(e),this.hideModal()},userRecharge:function(){var t=this;if(""==t.toid||""==t.text)return uni.showToast({title:"请完成表单输入",icon:"none",duration:1e3,position:"bottom"}),!1;var e="";if(a.localStorage.getItem("userinfo")){var n=JSON.parse(a.localStorage.getItem("userinfo"));e=n.token}var i={uid:t.toid,text:t.text,token:e};uni.showLoading({title:"加载中"}),t.$Net.request({url:t.$API.sendUser(),data:i,header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(e){if(setTimeout((function(){uni.hideLoading()}),1e3),uni.showToast({title:e.data.msg,icon:"none"}),1==e.data.code)setTimeout((function(){t.back()}),1e3)},fail:function(t){setTimeout((function(){uni.hideLoading()}),1e3),uni.showToast({title:"网络开小差了哦",icon:"none"}),uni.stopPullDownRefresh()}})},toUser:function(){uni.navigateTo({url:"/pages/manage/users?type=get"})}}};e.default=i}}]);