(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/wallet/account/form"],{"00f1":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return u}));var u={"u-Form":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--form/u--form")]).then(t.bind(null,"8b7a"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"1237"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-input/u-input")]).then(t.bind(null,"d804"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"e1a8"))}},o=function(){var e=this.$createElement;this._self._c},r=[]},"0a23":function(e,n,t){"use strict";(function(e,n){var u=t("47a9");t("4233");u(t("3240"));var o=u(t("cd80"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"5ce0":function(e,n,t){"use strict";t.r(n);var u=t("665d"),o=t.n(u);for(var r in u)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(r);n["default"]=o.a},"665d":function(e,n,t){"use strict";(function(e){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={data:function(){return{rules:{idcard:[{required:!0,message:"请输入",trigger:["blur","change"]}],realname:[{required:!0,message:"请输入",trigger:["blur","change"]}],num:[{required:!0,message:"请输入",trigger:["blur","change"]}],mobile:[{required:!0,message:"请输入",trigger:["blur","change"]}]},form:{id:"",type:3,role:1,subname:"",realname:"",idcard:"",num:"",mobile:""}}},mounted:function(){},onLoad:function(e){t=this,e&&e.item&&(t.form=JSON.parse(decodeURIComponent(e.item)))},onShow:function(){},onReady:function(){t.$refs.uForm.setRules(t.rules)},methods:{submit:function(){this.$refs.uForm.validate().then((function(n){t.form.id?t.$http.post("/shop/v10/account/update",t.form).then((function(n){n.data;var t=n.success;t&&e.navigateBack()})):t.$http.post("/shop/v10/account/create",t.form).then((function(n){n.data;var t=n.success;t&&e.navigateBack()}))})).catch((function(e){}))}}};n.default=u}).call(this,t("df3c")["default"])},cd80:function(e,n,t){"use strict";t.r(n);var u=t("00f1"),o=t("5ce0");for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);var i=t("828b"),a=Object(i["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=a.exports}},[["0a23","common/runtime","common/vendor"]]]);