{"size": 17863, "ext": "js", "max_stars_repo_path": "dist/build/h5/static/js/pages-user-account-recharge.1d773a54.js", "max_stars_repo_name": "c2cn/TinyShop-UniApp", "max_stars_repo_stars_event_min_datetime": "2020-03-12T01:49:25.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T05:54:58.000Z", "max_issues_repo_path": "dist/build/h5/static/js/pages-user-account-recharge.1d773a54.js", "max_issues_repo_name": "c2cn/TinyShop-UniApp", "max_issues_repo_issues_event_min_datetime": "2020-03-16T06:36:49.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T23:18:03.000Z", "max_forks_repo_path": "dist/build/h5/static/js/pages-user-account-recharge.1d773a54.js", "max_forks_repo_name": "c2cn/TinyShop-UniApp", "max_forks_repo_forks_event_min_datetime": "2020-03-12T08:01:27.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T13:58:23.000Z"}
{"max_stars_count": 1165, "max_issues_count": 22, "max_forks_count": 468, "avg_line_length": 17863.0, "max_line_length": 17863, "alphanum_fraction": 0.7414767956}
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-account-recharge"],{"228b":function(e,t,i){"use strict";i.r(t);var n=i("6856"),a=i("89e6");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("d353");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"2334ceef",null,!1,n["a"],r);t["default"]=c.exports},6856:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"recharge"},[i("v-uni-view",{staticClass:"block"},[i("v-uni-view",{staticClass:"title"},[e._v("我的账户")]),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"my"},[e._v("我的账户余额："),i("v-uni-text",{staticClass:"balance",class:"text-"+e.themeColor.name},[e._v(e._s(e.userInfo.account&&e.userInfo.account.user_money||"0"))]),e._v("元")],1)],1)],1),i("v-uni-view",{staticClass:"block"},[i("v-uni-view",{staticClass:"title"},[e._v("充值金额")]),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"amount"},[i("v-uni-view",{staticClass:"list"},e._l(e.amountList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"box",class:t.price==e.inputAmount?"bg-"+e.themeColor.name:"on",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.select(t)}}},[i("v-uni-view",{staticClass:"real"},[e._v(e._s(t.price)+"元")]),i("v-uni-text",{staticClass:"give"},[e._v("赠送 "+e._s(t.give_price)+"元")])],1)})),1),i("v-uni-view",{staticClass:"num"},[i("v-uni-view",{staticClass:"text"},[e._v("自定义充值金额")]),i("v-uni-view",{staticClass:"input"},[i("v-uni-input",{class:"text-"+e.themeColor.name,attrs:{type:"number"},on:{input:function(t){arguments[0]=t=e.$handleEvent(t),e.handleInputAmountChange.apply(void 0,arguments)}},model:{value:e.inputAmount,callback:function(t){e.inputAmount=t},expression:"inputAmount"}})],1),e.inputAmountGive>0?i("v-uni-text",{staticClass:"give",class:"text-"+e.themeColor.name},[e._v("赠送 "+e._s(e.inputAmountGive)+"元")]):e._e()],1)],1)],1)],1),i("v-uni-view",{staticClass:"block"},[i("v-uni-view",{staticClass:"title"},[e._v("选择支付方式")]),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"pay-list"},[1!==parseInt(e.payTypeList.order_ali_pay,10)||e.isWechat?e._e():i("v-uni-view",{staticClass:"row",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payType="2"}}},[i("v-uni-text",{staticClass:"icon iconfont iconalipay"}),i("v-uni-view",{staticClass:"center"},[e._v("支付宝支付")]),i("v-uni-view",{staticClass:"right"},[i("v-uni-radio",{attrs:{checked:"2"==e.payType,color:e.themeColor.color}})],1)],1),1===parseInt(e.payTypeList.order_wechat_pay,10)?i("v-uni-view",{staticClass:"row",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payType="1"}}},[i("i",{staticClass:"icon iconfont iconweixinzhifu"}),i("v-uni-view",{staticClass:"center"},[e._v("微信支付")]),i("v-uni-view",{staticClass:"right"},[i("v-uni-radio",{attrs:{checked:"1"==e.payType,color:e.themeColor.color}})],1)],1):e._e()],1)],1)],1),i("v-uni-view",{staticClass:"pay"},[i("v-uni-view",{staticClass:"btn",class:"bg-"+e.themeColor.name,on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.pay.apply(void 0,arguments)}}},[e._v("立即充值")]),i("v-uni-view",{staticClass:"tis"},[e._v("点击立即充值，即代表您同意"),i("v-uni-view",{staticClass:"terms",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toTipDetail.apply(void 0,arguments)}}},[e._v("《充值协议》")])],1)],1),i("rfLoading",{attrs:{isFullScreen:!0,active:e.pageLoading}})],1)},o=[]},"802d":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memberLevelIndex=t.productVirtualVerificationVerify=t.orderProductVirtualView=t.orderProductVirtualIndex=t.notifySubscriptionConfigIndex=t.notifySubscriptionConfigUpConfig=t.notifyUnRreadCount=t.notifyClearAll=t.notifyClear=t.notifyReadAll=t.notifyRead=t.notifyView=t.notifyIndex=t.orderProductIndex=t.orderCustomerRefundClose=t.orderCustomerRefundApply=t.orderCustomerSalesReturn=t.rechargeConfigIndex=t.thirdPartyAuthDelete=t.thirdPartyAuthList=t.opinionDetail=t.opinionCreate=t.opinionList=t.uploadImage=t.orderInvoiceList=t.orderInvoiceCreate=t.invoiceDel=t.invoiceDefault=t.invoiceDetail=t.invoiceUpdate=t.invoiceCreate=t.invoiceList=t.evaluateAgain=t.evaluateCreate=t.creditsLogList=t.collectList=t.footPrintDel=t.footPrintList=t.couponReceive=t.orderTakeDelivery=t.orderDelete=t.orderDetail=t.orderProductSalesReturn=t.closeOrderRefundApply=t.orderRefundApply=t.orderList=t.couponDetail=t.couponClear=t.myCouponList=t.couponList=t.addressDelete=t.addressUpdate=t.addressDetail=t.addressDefault=t.addressCreate=t.addressList=t.memberUpdate=t.memberInfo=void 0;var n="/tiny-shop/v1/member/member/index";t.memberInfo=n;var a="/tiny-shop/v1/member/member/update";t.memberUpdate=a;var o="/tiny-shop/v1/member/address/index";t.addressList=o;var r="/tiny-shop/v1/member/address/default";t.addressDefault=r;var s="/tiny-shop/v1/member/address/view";t.addressDetail=s;var c="/tiny-shop/v1/member/address/create";t.addressCreate=c;var u="/tiny-shop/v1/member/address/update";t.addressUpdate=u;var d="/tiny-shop/v1/member/address/delete";t.addressDelete=d;var l="/tiny-shop/v1/marketing/coupon-type/index";t.couponList=l;var p="/tiny-shop/v1/member/coupon/index";t.myCouponList=p;var v="/tiny-shop/v1/marketing/coupon-type/view";t.couponDetail=v;var f="/tiny-shop/v1/marketing/coupon-type/create";t.couponReceive=f;var m="/tiny-shop/v1/member/coupon/clear";t.couponClear=m;var b="/tiny-shop/v1/member/order/index";t.orderList=b;var y="/tiny-shop/v1/member/order/take-delivery";t.orderTakeDelivery=y;var h="/tiny-shop/v1/member/order-product/refund-apply";t.orderRefundApply=h;var w="/tiny-shop/v1/member/order-product/refund-sales-return";t.orderProductSalesReturn=w;var g="/tiny-shop/v1/member/order-product/refund-close";t.closeOrderRefundApply=g;var x="/tiny-shop/v1/member/order/view";t.orderDetail=x;var k="/tiny-shop/v1/member/order/delete";t.orderDelete=k;var C="/tiny-shop/v1/member/footprint/index";t.footPrintList=C;var L="/tiny-shop/v1/member/footprint/delete";t.footPrintDel=L;var _="/tiny-shop/v1/member/collect/index";t.collectList=_;var A="/tiny-shop/v1/member/credits-log/index";t.creditsLogList=A;var I="/tiny-shop/v1/member/evaluate/create";t.evaluateCreate=I;var D="/tiny-shop/v1/member/evaluate/again";t.evaluateAgain=D;var P="/tiny-shop/v1/member/order-product/index";t.orderProductIndex=P;var R="/tiny-shop/v1/member/invoice/index";t.invoiceList=R;var j="/tiny-shop/v1/member/invoice/create";t.invoiceCreate=j;var T="/tiny-shop/v1/member/invoice/update";t.invoiceUpdate=T;var S="/tiny-shop/v1/member/invoice/view";t.invoiceDetail=S;var $="/tiny-shop/v1/member/invoice/default";t.invoiceDefault=$;var z="/tiny-shop/v1/member/invoice/delete";t.invoiceDel=z;var V="/tiny-shop/v1/member/order-invoice/index";t.orderInvoiceList=V;var U="/tiny-shop/v1/member/order-invoice/create";t.orderInvoiceCreate=U;var E="/tiny-shop/v1/member/opinion/index";t.opinionList=E;var G="/tiny-shop/v1/member/opinion/create";t.opinionCreate=G;var O="/tiny-shop/v1/member/opinion/view";t.opinionDetail=O;var M="/tiny-shop/v1/member/auth/index";t.thirdPartyAuthList=M;var J="/tiny-shop/v1/member/auth/delete";t.thirdPartyAuthDelete=J;var W="/tiny-shop/v1/member/recharge-config/index";t.rechargeConfigIndex=W;var F="/tiny-shop/v1/member/order-customer/apply";t.orderCustomerRefundApply=F;var q="/tiny-shop/v1/member/order-customer/sales-return";t.orderCustomerSalesReturn=q;var N="/tiny-shop/v1/member/order-customer/close";t.orderCustomerRefundClose=N;var B="/tiny-shop/v1/common/file/images";t.uploadImage=B;var H="/tiny-shop/v1/member/notify/index";t.notifyIndex=H;var K="/tiny-shop/v1/member/notify/view";t.notifyView=K;var Q="/tiny-shop/v1/member/notify/read";t.notifyRead=Q;var X="/tiny-shop/v1/member/notify/read-all";t.notifyReadAll=X;var Y="/tiny-shop/v1/member/notify/clear";t.notifyClear=Y;var Z="/tiny-shop/v1/member/notify/clear-all";t.notifyClearAll=Z;var ee="/tiny-shop/v1/member/notify/un-read-count";t.notifyUnRreadCount=ee;var te="/tiny-shop/v1/member/notify-subscription-config/index";t.notifySubscriptionConfigIndex=te;var ie="/tiny-shop/v1/member/notify-subscription-config/up-config";t.notifySubscriptionConfigUpConfig=ie;var ne="/tiny-shop/v1/member/order-product-virtual/index";t.orderProductVirtualIndex=ne;var ae="/tiny-shop/v1/member/order-product-virtual/view";t.orderProductVirtualView=ae;var oe="/tiny-shop/v1/order/product-virtual-verification/verify";t.productVirtualVerificationVerify=oe;var re="/tiny-shop/v1/member/member-level/index";t.memberLevelIndex=re},"89e6":function(e,t,i){"use strict";i.r(t);var n=i("b0bf"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},b0bf:function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("96cf");var a=n(i("3b8d"));i("28a5");var o=i("802d"),r=i("2b74"),s={data:function(){return{inputAmount:0,inputAmountGive:0,amountList:[],payType:1,userInfo:{},loading:!1,providerList:[],payTypeList:{},isWechat:this.$mPayment.isWechat(),pageLoading:!0,code:""}},onLoad:function(e){if(this.initData(e),this.code=e.code&&e.code.split(",")[e.code.split(",").length-1],this.$mPayment.isWechat()&&!this.code){var t=window.location.href;window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tappid=".concat(this.$mConfig.weixinAppId,"&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tredirect_uri=").concat(t,"&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresponse_type=code&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscope=snsapi_userinfo&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstate=STATE#wechat_redirect")}},methods:{handleInputAmountChange:function(e){if(this.inputAmount=parseFloat(e.detail.value),this.inputAmount<this.amountList[0].price)this.inputAmountGive=0;else if(this.inputAmount>=this.amountList[this.amountList.length-1].price)this.inputAmountGive=this.amountList[this.amountList.length-1].give_price;else for(var t=0;t<this.amountList.length;t++)this.inputAmount>=this.amountList[t].price&&this.inputAmount<this.amountList[t+1].price&&(this.inputAmountGive=this.amountList[t].give_price)},pay:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0"!==this.payTypeList.order_ali_pay||"0"!==this.payTypeList.order_wechat_pay){e.next=2;break}return e.abrupt("return");case 2:t={},t.money=parseFloat(this.inputAmount),e.t0=parseInt(this.payType,10),e.next=1===e.t0?7:2===e.t0?10:13;break;case 7:return e.next=9,this.$mPayment.weixinPay("recharge",JSON.stringify(t),"/pages/user/account/account",this.code);case 9:return e.abrupt("break",14);case 10:return e.next=12,this.$mPayment.aliPay("recharge",JSON.stringify(t),"/pages/user/account/account");case 12:return e.abrupt("break",14);case 13:return e.abrupt("break",14);case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getMemberInfo:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$http.get(o.memberInfo).then((function(e){uni.setStorage({key:"userInfo",data:e.data}),t.userInfo=e.data||void 0}));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),toTipDetail:function(){this.$mRouter.push({route:"/pages/set/about/detail?field=protocol_recharge&title=充值协议"})},initData:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.code=t.code,this.userInfo=uni.getStorageSync("userInfo")||void 0,e.next=4,this.$http.get("".concat(o.rechargeConfigIndex)).then((function(e){i.pageLoading=!1,i.amountList=e.data,i.inputAmount=e.data[0]&&e.data[0].price||.01,i.inputAmountGive=e.data[0]&&e.data[0].give_price||0,i.getPayTypeList()})).catch((function(){i.pageLoading=!1}));case 4:if("android"!==uni.getSystemInfoSync().platform){e.next=7;break}return e.next=7,this.$mPayment.wxConfigH5(window.location.href);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getPayTypeList:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$http.get("".concat(r.configList),{field:"order_balance_pay,order_wechat_pay,order_ali_pay"}).then((function(e){t.payTypeList=e.data}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),select:function(e){this.inputAmount=e.price,this.inputAmountGive=e.give_price}}};t.default=s},d353:function(e,t,i){"use strict";var n=i("dadb"),a=i.n(n);a.a},dadb:function(e,t,i){var n=i("ec6b");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("1280affc",n,!0,{sourceMap:!1,shadowMode:!1})},ec6b:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,"uni-page-body[data-v-2334ceef]{background-color:#fff}.block[data-v-2334ceef]{width:100%;padding:%?20?%}.block .title[data-v-2334ceef]{width:100%;font-size:%?34?%}.block .content .my[data-v-2334ceef]{width:100%;height:%?120?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?32?%;border-bottom:solid %?1?% #eee}.block .content .my .balance[data-v-2334ceef]{margin-right:%?6?%;font-size:%?36?%}.block .content .amount[data-v-2334ceef]{width:100%}.block .content .amount .list[data-v-2334ceef]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding-top:%?20?%;-webkit-flex-wrap:wrap;flex-wrap:wrap}.block .content .amount .list .box[data-v-2334ceef]{width:31%;margin-bottom:%?20?%;height:%?120?%;text-align:center;border-radius:%?10?%;box-shadow:%?0?% %?5?% %?20?% rgba(0,0,0,.05)}.block .content .amount .list .box.on[data-v-2334ceef]{background-color:#f1f1f1;color:#333}.block .content .amount .list .box .real[data-v-2334ceef]{font-size:%?32?%;margin-top:%?10?%}.block .content .amount .list .box .give[data-v-2334ceef]{display:block;font-size:%?24?%}.block .content .amount .num[data-v-2334ceef]{margin-top:%?10?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.block .content .amount .num .text[data-v-2334ceef]{padding-right:%?10?%;font-size:%?30?%}.block .content .amount .num .give[data-v-2334ceef]{font-size:%?24?%}.block .content .amount .num .input[data-v-2334ceef]{width:28.2vw;border-bottom:solid %?2?%;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.block .content .amount .num .input uni-input[data-v-2334ceef]{margin:0 %?20?%;height:%?60?%;font-size:%?30?%;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.block .content .pay-list[data-v-2334ceef]{width:100%;border-bottom:solid %?1?% #eee}.block .content .pay-list .row[data-v-2334ceef]{width:100%;height:%?120?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.block .content .pay-list .row .icon[data-v-2334ceef]{width:%?100?%;font-size:%?52?%;margin-left:%?15?%}.block .content .pay-list .row .iconerjiye-yucunkuan[data-v-2334ceef]{color:#fe8e2e}.block .content .pay-list .row .iconweixinzhifu[data-v-2334ceef]{color:#36cb59}.block .content .pay-list .row .iconalipay[data-v-2334ceef]{color:#01aaef}.block .content .pay-list .row .center[data-v-2334ceef]{width:100%;font-size:%?30?%}.block .content .pay-list .row .right[data-v-2334ceef]{width:%?100?%;-webkit-flex-shrink:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.pay[data-v-2334ceef]{margin-top:%?20?%;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-wrap:wrap;flex-wrap:wrap}.pay .btn[data-v-2334ceef]{width:70%;height:%?80?%;border-radius:%?80?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#fff;box-shadow:%?0?% %?5?% %?10?% rgba(0,0,0,.2)}.pay .tis[data-v-2334ceef]{margin-top:%?10?%;width:100%;font-size:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:baseline;-webkit-align-items:baseline;align-items:baseline;color:#999}.pay .tis .terms[data-v-2334ceef]{color:#5a9ef7}.rmbLogo[data-v-2334ceef]{font-size:%?40?%}uni-button[data-v-2334ceef]{background-color:#007aff;color:#fff}.uni-h1.uni-center[data-v-2334ceef]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}.price[data-v-2334ceef]{border-bottom:1px solid #eee;width:%?200?%;height:%?80?%;padding-bottom:%?4?%}.ipaPayBtn[data-v-2334ceef]{margin-top:%?30?%}body.?%PAGE?%[data-v-2334ceef]{background-color:#fff}",""]),e.exports=t}}]);