(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-collection-bank"],{"04e6":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=r,e.getUserInfo=u,e.spreadBanner=o,e.getAddressList=d,e.addressEdit=s,e.addressDel=l,e.setAddressDefault=c,e.getCartList=f,e.getCartNum=p,e.cartDel=m,e.getcollectList=h,e.delcollect=v,e.spread=b,e.stylelist=g,e.auth=_,e.subscribe=y,e.enDetails=x,e.my_reply=k,e.to_my_reply=w;var i=a(n("4c3b"));function r(t){return(0,i.default)({url:"/api/order/data",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function o(t){return(0,i.default)({url:"/api/spread/banner",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/address/list",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/address/edit",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/address/del",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/address/default/set",method:"post",data:t})}function f(t){return(0,i.default)({url:"/api/cart/list",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/cart/num",method:"post",data:t})}function m(t){return(0,i.default)({url:"/api/cart/del",method:"post",data:t})}function h(t){return(0,i.default)({url:"/api/collect/user",method:"get",data:t})}function v(t){return(0,i.default)({url:"/api/collect/del",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/spread/people",method:"POST",data:t})}function g(t){return(0,i.default)({url:"/api/enterprise/stylelist",method:"GET",data:t})}function _(t){return(0,i.default)({url:"/api/user/auth",method:"POST",data:t})}function y(t){return(0,i.default)({url:"/api/user/subscribe",method:"GET",data:t})}function x(t){return(0,i.default)({url:"/api/enterprise/details",method:"GET",data:t})}function k(t){return(0,i.default)({url:"/api/article/my_reply",method:"GET",data:t})}function w(t){return(0,i.default)({url:"/api/article/to_my_reply",method:"GET",data:t})}},3497:function(t,e,n){"use strict";var a=n("c638"),i=n.n(a);i.a},"44d3":function(t,e,n){"use strict";n.r(e);var a=n("6d07"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},"555b":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"box"},[n("v-uni-view",{staticClass:"item "},[n("v-uni-text",[t._v("姓名")]),n("v-uni-input",{attrs:{type:"text",value:"",placeholder:"请输入真实姓名"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("v-uni-view",{staticClass:"item top"},[n("v-uni-text",[t._v("银行卡号")]),n("v-uni-input",{attrs:{type:"text",value:"",placeholder:"请输入银行卡账号"},model:{value:t.id,callback:function(e){t.id=e},expression:"id"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-text",[t._v("所属银行")]),n("v-uni-input",{attrs:{type:"text",value:"",placeholder:"请输入银行"},model:{value:t.idName,callback:function(e){t.idName=e},expression:"idName"}})],1)],1),n("v-uni-view",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm()}}},[t._v("确认")])],1)},r=[]},"6a8b":function(t,e,n){"use strict";n.r(e);var a=n("555b"),i=n("44d3");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("3497");var u,o=n("f0c5"),d=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"be39ee96",null,!1,a["a"],u);e["default"]=d.exports},"6d07":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530")),r=n("c2c1"),u=n("04e6"),o=n("26cb"),d={computed:(0,i.default)({},(0,o.mapState)("user",["userInfo","orderInfo","hasLogin"])),data:function(){return{name:"",id:"",idName:""}},onLoad:function(){null!=this.userInfo.bank_code&&(this.id=this.userInfo.bank_code),null!=this.userInfo.bank_name&&(this.idName=this.userInfo.bank_name),null!=this.userInfo.bank_user_name&&(this.name=this.userInfo.bank_user_name)},methods:(0,i.default)((0,i.default)({},(0,o.mapMutations)("user",["setUserInfo","setOrderInfo"])),{},{confirm:function(){var t=this;return t.name?t.idName?t.id?void(0,r.userEdit)({bank_user_name:t.name,bank_name:t.idName,bank_code:t.id}).then((function(e){t.$api.msg("修改成功"),t.getUserInfo()})):this.$api.msg("请输入银行卡号"):this.$api.msg("请输入所属银行"):this.$api.msg("请输入提款人姓名")},getUserInfo:function(){var t=this;(0,u.getUserInfo)({}).then((function(e){var n=e.data;console.log(n),t.setUserInfo(n),(0,u.orderData)({}).then((function(e){var n=e.data;t.setOrderInfo(n),uni.navigateBack({delta:1})})).catch((function(e){t.setOrderInfo({complete_count:0,received_count:0,unshipped_count:0,order_count:0,unpaid_count:0})}))})).catch((function(t){console.log(t)}))}})};e.default=d},c2c1:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.userEdit=r,e.logout=u,e.registerReset=o,e.binding=d;var i=a(n("4c3b"));function r(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/logout",method:"get",data:t})}function o(t){return(0,i.default)({url:"/api/register/reset",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/binding",method:"post",data:t})}},c638:function(t,e,n){var a=n("f1c5");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("fc70e124",a,!0,{sourceMap:!1,shadowMode:!1})},f1c5:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-be39ee96],\n.content[data-v-be39ee96]{height:100%;padding:0;margin:0}.top[data-v-be39ee96]{border-top:%?1?% solid #f3f3f3;border-bottom:%?1?% solid #f3f3f3}.box[data-v-be39ee96]{background:#fff;margin:%?20?% 0 %?70?% 0}.box .item[data-v-be39ee96]{display:flex;align-items:center}.box .item uni-text[data-v-be39ee96]{margin:0 %?40?% 0 %?25?%;width:%?150?%;font-size:%?30?%;font-family:PingFang SC;font-weight:400;color:#333;line-height:%?100?%}.box .item uni-input[data-v-be39ee96]{font-size:%?28?%;font-family:PingFang SC;font-weight:400;color:#999;line-height:%?100?%}.button[data-v-be39ee96]{text-align:center;width:%?560?%;height:%?80?%;background:#5dbc7c;border-radius:%?40?%;font-size:%?30?%;font-family:PingFangSC;font-weight:500;color:#fff;line-height:%?80?%;margin:0 auto}',""]),t.exports=e}}]);