| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"09ed":function(t,n,e){var a=e("24fb");n=a(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.row[data-v-fceb98aa]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-fceb98aa]{flex-shrink:0;width:%?120?%;font-size:%?30?%}.row .input[data-v-fceb98aa]{flex:1;font-size:%?30?%}.row .iconlocation[data-v-fceb98aa]{font-size:%?36?%}uni-page-body[data-v-fceb98aa],\r\n.content[data-v-fceb98aa]{height:100%}.swiper-box[data-v-fceb98aa]{height:%?750?%}.navbar[data-v-fceb98aa]{display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-fceb98aa]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;position:relative}.navbar .nav-item.current[data-v-fceb98aa]{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0}.add-btn[data-v-fceb98aa]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:0 auto;margin-top:%?30?%;border-radius:%?10?%}',""]),t.exports=n},"2bba":function(t,n,e){"use strict";e.r(n);var a=e("ecad"),i=e.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(r);n["default"]=i.a},"66f4":function(t,n,e){"use strict";var a=e("f6b2"),i=e.n(a);i.a},"7eed":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(n,a){return e("v-uni-view",{key:a,staticClass:"nav-item",class:{current:t.tabCurrentIndex===a},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.tabClick(a)}}},[t._v(t._s(n.text))])})),1),e("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(n,a){return e("v-uni-swiper-item",{key:a,staticClass:"tab-content"},[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("姓名")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"提款人姓名","placeholder-class":"placeholder"},model:{value:n.orderList.name,callback:function(e){t.$set(n.orderList,"name",e)},expression:"tabItem.orderList.name"}})],1),e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v(t._s(0==a?"账号":"银行卡号"))]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入账号","placeholder-class":"placeholder"},model:{value:n.orderList.code,callback:function(e){t.$set(n.orderList,"code",e)},expression:"tabItem.orderList.code"}})],1),1==a?e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("所属银行")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入账号","placeholder-class":"placeholder"},model:{value:n.orderList.bankName,callback:function(e){t.$set(n.orderList,"bankName",e)},expression:"tabItem.orderList.bankName"}})],1):t._e()],1)})),1),e("v-uni-button",{staticClass:"add-btn up",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.confirm.apply(void 0,arguments)}}},[t._v("提交申请")])],1)},i=[]},d6b0:function(t,n,e){"use strict";e.r(n);var a=e("7eed"),i=e("2bba");for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("66f4");var o=e("f0c5"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"fceb98aa",null,!1,a["a"],void 0);n["default"]=s.exports},ecad:function(t,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("d401"),e("d3b7"),e("25f0");var a={data:function(){return{tabCurrentIndex:0,navList:[{state:0,text:"支付宝",loadingType:"more",orderList:{name:"",code:"",id:""}},{state:1,text:"银行卡",loadingType:"more",orderList:{name:"",code:"",bankName:"",id:""}}]}},onLoad:function(t){this.tabCurrentIndex=+t.state||0,this.loadAli(),this.loadBank()},methods:{loadAli:function(t){var n=this;aliInfo({}).then((function(t){var e=t.data,a=n.navList[0].orderList;n.$set(a,"name",e.fullname),n.$set(a,"code",e.alino),n.$set(a,"id",e.id)}))},loadBank:function(){var t=this;bankInfo({}).then((function(n){var e=n.data,a=t.navList[1].orderList;t.$set(a,"name",e.fullname),t.$set(a,"code",e.bankno),t.$set(a,"bankName",e.bank),t.$set(a,"id",e.id)}))},changeTab:function(t){this.tabCurrentIndex=t.target.current},tabClick:function(t){this.tabCurrentIndex=t},confirm:function(){var t=this.navList[this.tabCurrentIndex].orderList;1==this.tabCurrentIndex&&this.setBankInfo({fullname:t.name,bank:t.bankName,bankno:t.code,id:t.id}),0==this.tabCurrentIndex&&this.setAliInfo({fullname:t.name,alino:t.code,id:t.id})},setBankInfo:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}((function(t){var n=this;setBankInfo(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),n.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))})),setAliInfo:function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}((function(t){var n=this;setAliInfo(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),n.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))}))}};n.default=a},f6b2:function(t,n,e){var a=e("09ed");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("4f06").default;i("b26bb7b8",a,!0,{sourceMap:!1,shadowMode:!1})}}]);
|