| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/me/goldDeposit"],{"04b4":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{message:"",amount:"",payIndex:0,payList:[{name:"微信提现",type:"0",account:"",image:"/static/image/me/weixin@2x.png"},{name:"支付宝提现",type:"1",account:"",image:"/static/image/me/zhifubao@2x.png"}]}},methods:{submit:function(){var n=this;return this.amount?this.payList[this.payIndex].account?void(0!=this.amount&&this.$api.goldDeposit({amount:this.amount,type:0==this.payIndex?"wechat":"alipay"}).then((function(e){1===e.code&&(t.showToast({title:e.msg}),n.amount="")}))):t.showToast({title:"请绑定"+(0==this.payIndex?"微信":"支付宝")+"账号",icon:"none"}):t.showToast({title:"请输入金额",icon:"none"})},bindAccount:function(n){t.navigateTo({url:"/pages/me/WeChat?type="+n})},changePay:function(t){this.payIndex=t},getAccount:function(){var t=this;this.$api.getWithdrawalSetting().then((function(n){1===n.code&&(t.payList[1].account=n.data.alipay.account,t.payList[0].account=n.data.wechat.account)}))},getMessage:function(){var t=this;this.$api.agreement({name:"withdrawal_instruction"}).then((function(n){1===n.code&&(t.message=n.data.content)}))}},onShow:function(){this.getAccount()},onLoad:function(){this.getMessage()}};n.default=e}).call(this,e("543d")["default"])},1511:function(t,n,e){"use strict";(function(t){e("a940");a(e("66fd"));var n=a(e("721c"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},2657:function(t,n,e){},4548:function(t,n,e){"use strict";e.r(n);var a=e("04b4"),i=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"5bd6":function(t,n,e){"use strict";var a=e("2657"),i=e.n(a);i.a},"721c":function(t,n,e){"use strict";e.r(n);var a=e("e2fc"),i=e("4548");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("5bd6");var c,u=e("f0c5"),s=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],c);n["default"]=s.exports},e2fc:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var a={uParse:function(){return Promise.all([e.e("common/vendor"),e.e("components/u-parse/u-parse")]).then(e.bind(null,"0c26"))}},i=function(){var t=this,n=t.$createElement;t._self._c},o=[]}},[["1511","common/runtime","common/vendor"]]]);
|