require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/transfer_account/queryUser"],{"333e":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={sanshuiPaymentPassword:function(){return n.e("components/sanshui-payment-password/sanshui-payment-password").then(n.bind(null,"a6fa"))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,"7d68"))},uLoadingIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loading-icon/u-loading-icon")]).then(n.bind(null,"169c"))}},s=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.is_xia=!1},t.e1=function(e){t.is_zhuan=!1},t.e2=function(e){t.is_zhuanok=!1})},o=[]},"364f":function(t,e,n){"use strict";var i=n("a139"),s=n.n(i);s.a},"5b308":function(t,e,n){"use strict";n.r(e);var i=n("333e"),s=n("ef8b");for(var o in s)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(o);n("364f");var u=n("828b"),r=Object(u["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports},a139:function(t,e,n){},bb04:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("4c1a");i(n("3240"));var s=i(n("5b308"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(s.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ef8b:function(t,e,n){"use strict";n.r(e);var i=n("f77f"),s=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=s.a},f77f:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(n("7ca3")),o=n("8f59"),u=i(n("3971"));function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c={mixins:[u.default],data:function(){return{type:1,to_user_id:"",money:"",is_xia:!1,is_zhuan:!1,is_zhuanok:!1,to_user:{},is_submit:!1,payFlag:!1}},computed:a({},(0,o.mapGetters)(["user","base","transfer_account","fenxiao"])),onLoad:function(t){this.type=t.type,t.user_id&&(this.to_user_id=t.user_id,this.xia())},onShow:function(){this.getUser()},methods:a(a({},(0,o.mapActions)(["getUser"])),{},{open:function(){},close:function(){this.show=!1},onCancel:function(){},submit:function(e){var n=this,i=parseFloat(this.money),s=this.type,o={type:s,money:i,to_user_id:this.to_user.id};if(1==this.base.is_pay_password){if(!e.value)return 1!=this.user.is_pay_password?this.toast("请先设置支付密码",1e3,(function(){n.jump("/pages/user/payPassword")})):(this.is_zhuanok=!1,this.payFlag=!0);o.pay_password=e.value}return!i||i<=0?this.toast("请填写转账"+this.currentLabel):this.to_user&&this.to_user.id?void(this.is_submit||(this.is_submit=!0,this.$util.post("transfer_account/index/transfer",o,!1).then((function(e){1==e.code?(n.is_submit=!1,n.toast(e.message,2e3,(function(){t.navigateBack({delta:1,fail:function(){n.jump("/pages/index/index")}})}))):(n.is_submit=!1,n.toast(e.message,3e3,(function(){})))})).catch((function(t){n.is_submit=!1})))):this.toast("转账用户不存在")},xia:function(){var t=this;if(!this.to_user_id)return this.toast("请输入对方UID");this.$util.get("transfer_account/index/queryUser",{to_user_id:this.to_user_id}).then((function(e){1==e.code?(t.to_user=e.data,t.is_xia=!0):t.toast(e.message,3e3)}))},zhuan:function(){this.is_xia&&(this.is_zhuan=!0)},zhuanok:function(){if(parseFloat(this.money)<=0||!this.money)return this.toast("请输入转账"+this.currentLabel,3e3);this.is_zhuanok=!0}})};e.default=c}).call(this,n("df3c")["default"])}},[["bb04","common/runtime","common/vendor","plugin/common/vendor"]]]);