(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-manage-giftVIP"],{"2fe8":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("af30"),a={data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,toid:"",day:"",token:"",pageType:0}},onPullDownRefresh:function(){},onHide:function(){n.localStorage.removeItem("getuid")},onShow:function(){n.localStorage.getItem("getuid")&&(this.toid=n.localStorage.getItem("getuid"))},onLoad:function(t){t.uid&&(this.pageType=1,this.toid=t.uid)},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,this.hideModal()},toTime:function(t,e){this.timeText=t.title,this.time=t.num,this.hideModal()},giftVIP:function(){if(""==this.toid)return uni.showToast({title:"请完成表单输入",icon:"none",duration:1e3,position:"bottom"}),!1;var t="";if(n.localStorage.getItem("userinfo")){var e=JSON.parse(n.localStorage.getItem("userinfo"));t=e.token}var i={uid:this.toid,day:this.day,token:t};uni.showLoading({title:"加载中"}),this.$Net.request({url:this.$API.giftVIP(),data:i,header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(t){setTimeout((function(){uni.hideLoading()}),1e3),uni.showToast({title:t.data.msg,icon:"none"}),1==t.data.code&&n.localStorage.removeItem("getuid")},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=a},aac5:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"user",class:t.$store.state.AppStyle,staticStyle:{"background-color":"#f6f6f6"}},[i("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[i("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px"}},[i("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"cuIcon-back"})],1),i("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v("VIP赠送&续期")]),i("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.giftVIP.apply(void 0,arguments)}}},[i("v-uni-button",{staticClass:"cu-btn round bg-blue"},[t._v("确认")])],1)],1)],1),i("v-uni-view",{style:[{padding:t.NavBar+"px 10px 0px 10px"}]}),i("v-uni-form",[i("v-uni-view",{staticClass:"cu-form-group margin-top"},[i("v-uni-view",{staticClass:"title"},[t._v("时间（天）")]),i("v-uni-input",{attrs:{placeholder:"请输入天数",name:"input",type:"number"},model:{value:t.day,callback:function(e){t.day=e},expression:"day"}})],1),i("v-uni-view",{staticClass:"cu-form-group"},[i("v-uni-view",{staticClass:"title"},[t._v("用户ID")]),i("v-uni-input",{attrs:{placeholder:"请输入用户ID",name:"input",type:"number"},model:{value:t.toid,callback:function(e){t.toid=e},expression:"toid"}}),i("v-uni-view",{staticClass:"action"},[0==t.pageType?i("v-uni-text",{staticClass:"text-blue",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toUser.apply(void 0,arguments)}}},[t._v("选择用户")]):t._e()],1)],1)],1)],1)},a=[]},c785:function(t,e,i){"use strict";i.r(e);var n=i("aac5"),a=i("dc58");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);var s=i("828b"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"833394dc",null,!1,n["a"],void 0);e["default"]=u.exports},dc58:function(t,e,i){"use strict";i.r(e);var n=i("2fe8"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a}}]);