pages-money-recharge.b1e1b1d3.js 9.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-recharge"],{"33e6":function(t,e,a){var i=a("24fb");e=i(!1),e.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/* 文章场景相关 */uni-page-body[data-v-2be430a1]{height:100%;background:#fff}body.?%PAGE?%[data-v-2be430a1]{background:#fff}.top_box[data-v-2be430a1]{padding:%?20?% %?26?% %?20?% %?47?%;display:flex;align-items:center;justify-content:space-between}.top_box .yue-tit[data-v-2be430a1]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#333}.top_box .yue-num[data-v-2be430a1]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#ff6f0f}.line_box[data-v-2be430a1]{width:100%;height:%?20?%;background:#f8f8f8}.cz_box[data-v-2be430a1]{padding:%?40?% %?20?% %?20?%}.cz_box .cz_wrap[data-v-2be430a1]{display:flex;align-items:center;justify-content:space-between;padding-bottom:%?20?%;border-bottom:1px solid #e6e6e6}.cz_box .cz_wrap .cz_tit[data-v-2be430a1]{font-size:%?32?%;font-family:PingFang SC;font-weight:500}.cz_box .cz_wrap .cz_input[data-v-2be430a1]{text-align:right;font-size:%?32?%;font-family:PingFang SC;font-weight:500}.cz_box .zc_list_box[data-v-2be430a1]{display:flex;flex-wrap:wrap}.cz_box .zc_list_box .zc_list_price[data-v-2be430a1]{width:%?202?%;height:%?60?%;background:#f0f0f0;border-radius:%?8?%;margin-top:%?36?%;margin-right:%?50?%;display:flex;align-items:center;justify-content:center}.cz_box .zc_list_box .zc_list_price[data-v-2be430a1]:nth-child(3n){margin-right:0}.cz_box .zc_list_box .seletPrice[data-v-2be430a1]{background:linear-gradient(143.2747deg,#ff6a00,#ee0979);color:#fff}.recha-box[data-v-2be430a1]{padding:%?50?% %?30?% 0;display:flex;flex-wrap:wrap}.recha-box .recha-frame[data-v-2be430a1]{width:%?210?%;height:%?181?%;border:1px solid #dbdede;border-radius:%?20?%;display:flex;align-items:center;flex-direction:column;justify-content:center;margin-right:%?30?%;margin-bottom:%?30?%}.recha-box .recha-frame[data-v-2be430a1]:nth-child(3n){margin-right:0}.recha-box .recha-frame .recha-top[data-v-2be430a1]{display:flex;align-items:center}.recha-box .recha-frame .recha-top .recha-img[data-v-2be430a1]{width:%?64?%;height:%?62?%}.recha-box .recha-frame .recha-top .recha-tit[data-v-2be430a1]{margin-left:%?10?%;font-size:%?36?%;font-family:PingFang SC;font-weight:700;color:#333}.recha-box .recha-frame .recha-song[data-v-2be430a1]{margin-top:%?20?%;font-family:PingFang SC;font-weight:700;color:#f90}.recha-box .select-frame[data-v-2be430a1]{border:1px solid #ef041f}.rechar-box[data-v-2be430a1]{padding:%?30?% %?20?% 0}.rechar-box .rechar-title[data-v-2be430a1]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#333;margin-bottom:%?10?%}.rechar-box .rechar-text[data-v-2be430a1]{font-size:%?28?%;font-family:PingFang SC;font-weight:700;color:#333}.cz-type[data-v-2be430a1]{margin-top:%?22?%;display:flex;justify-content:space-between;padding:%?32?%;align-items:center}.cz-type .type-left[data-v-2be430a1]{display:flex;align-items:center}.cz-type .type-left .icon[data-v-2be430a1]{height:%?38?%}.cz-type .type-left .icon uni-image[data-v-2be430a1]{width:%?48?%;height:%?38?%}.cz-type .type-left .iconweixin[data-v-2be430a1]{color:#36cb59}.cz-type .type-left .tit[data-v-2be430a1]{margin-left:%?12?%;font-size:%?30?%;color:#333}.cz-type .type-right uni-image[data-v-2be430a1]{width:%?36?%;height:%?36?%}.add-btn[data-v-2be430a1]{margin-top:%?100?%;display:flex;align-items:center;justify-content:center;width:%?604?%;height:%?90?%;border:%?2?% solid #f21f5d;border-radius:%?10?%;font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#f21f5d;line-height:%?90?%;text-align:center}.add-btn.up[data-v-2be430a1]{color:#f21f5d}.row-box[data-v-2be430a1]{margin-top:%?30?%;padding:%?20?% %?30?%;background:#fff}.row-box .row[data-v-2be430a1]{display:flex;align-items:center;position:relative;height:%?80?%}.row-box .row .tit[data-v-2be430a1]{flex-shrink:0;width:%?40?%;font-size:%?30?%}.row-box .row .input[data-v-2be430a1]{flex:1;font-size:%?30?%}.row-box .row .iconlocation[data-v-2be430a1]{font-size:%?36?%}.list[data-v-2be430a1]{padding-left:%?30?%;margin-top:%?30?%;background-color:#fff}.list .box[data-v-2be430a1]{display:flex;align-items:center;width:100%;height:%?120?%;padding-right:%?25?%}.list .box .icon[data-v-2be430a1]{font-size:%?48?%;padding-right:%?20?%;display:flex}.list .box .yongjing[data-v-2be430a1]{width:%?48?%;height:%?48?%}.list .box .iconweixin1[data-v-2be430a1]{color:#18bf16}.list .box .iconzhifubao[data-v-2be430a1]{color:#08aaec}.list .box .title-box[data-v-2be430a1]{flex-grow:1;text-align:left}[data-v-2be430a1] .uni-radio-input{width:%?45?%;height:%?45?%}.active-bg[data-v-2be430a1]{background:linear-gradient(143.2747deg,#ff6a00,#ee0979)!important;color:#fff!important}',""]),t.exports=e},"5e74":function(t,e,a){var i=a("33e6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("b7f560ce",i,!0,{sourceMap:!1,shadowMode:!1})},7056:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530"));a("acd8");var o={filters:{getMoneyStyle:getMoneyStyle,parseFloatNum:function(t){return parseFloat(t)}},data:function(){return{type:"weixin",money:"",payLoding:!1,list:["300","200","150","100","50"],now_money:"",seletNum:"300",zhuyi:[],quota:"",typeText:0}},onLoad:function(t){this.loadData()},computed:(0,n.default)({},mapState(["weichatObj","userInfo"])),methods:{navTo:function(t){uni.navigateTo({url:t})},changeNum:function(){this.seletNum=this.money="",console.log(this.seletNum,this.money)},seletChange:function(t,e){this.seletNum=t.price,this.seletMoney=t.price,this.money=t.price},tabRadio:function(t){this.type=t.detail.value,"weixin"==t.detail.value?this.typeText=0:this.typeText=1},rechargeXuan:function(t){this.money=t.price,this.quota=t.quota},loadData:function(){var t=this;moneyChong({}).then((function(e){var a=e.data;console.log(a,"123456789"),t.list=a.recharge_quota})),userBalance({}).then((function(e){var a=e.data;t.now_money=a.now_money}))},confirm:function(){var t=this;if(t.payLoding=!0,!t.money)return t.$api.msg("请输入金额"),void(t.payLoding=!1);rechargeWechat({price:this.money,from:this.type}).then((function(e){var a=e.data.data;t.weichatObj.chooseWXPay({timestamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign,success:function(t){uni.showToast({title:"充值成功",duration:2e3,position:"top",success:function(t){uni.navigateBack()}})}}),t.payLoding=!1})).catch((function(e){t.payLoding=!1,console.log(e)}))}}};e.default=o},c9b8:function(t,e,a){"use strict";a.r(e);var i=a("f96c"),n=a("e58c9");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("e2e1");var r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2be430a1",null,!1,i["a"],void 0);e["default"]=c.exports},e2e1:function(t,e,a){"use strict";var i=a("5e74"),n=a.n(i);n.a},e58c9:function(t,e,a){"use strict";a.r(e);var i=a("7056"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},f96c:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"top_box"},[a("v-uni-text",{staticClass:"yue-tit"},[t._v("当前余额:")]),a("v-uni-text",{staticClass:"yue-num"},[t._v("¥"+t._s(t._f("parseFloatNum")(t.now_money)))])],1),a("v-uni-view",{staticClass:"line_box"}),a("v-uni-view",{staticClass:"cz_box"},[a("v-uni-view",{staticClass:"cz_wrap"},[a("v-uni-text",{staticClass:"cz_tit"},[t._v("¥")]),a("v-uni-input",{staticClass:"cz_input",attrs:{type:"number",placeholder:"请输入充值金额","placeholder-class":"placeholder"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.changeNum()}},model:{value:t.money,callback:function(e){t.money=e},expression:"money"}})],1),a("v-uni-view",{staticClass:"zc_list_box"},t._l(t.list,(function(e,i){return a("v-uni-view",{key:i,staticClass:"zc_list_price",class:{seletPrice:t.seletNum==e.price},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.seletChange(e,i)}}},[t._v(t._s(t._f("parseFloatNum")(e.price))+"元")])})),1)],1),a("v-uni-view",{staticClass:"line_box"}),a("v-uni-view",{staticClass:"cz-type"},[a("v-uni-view",{staticClass:"type-left"},[a("v-uni-view",{staticClass:"icon iconfont iconweixin"}),a("v-uni-view",{staticClass:"tit"},[t._v("微信充值")])],1),a("v-uni-view",{staticClass:"right"},[a("v-uni-radio",{attrs:{value:"weixin",color:" #EB001C",checked:"weixin"==t.type}})],1)],1),a("v-uni-button",{staticClass:"add-btn up",class:{"active-bg":t.payLoding},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.payLoding&&t.confirm()}}},[t._v("立即充值")])],1)},n=[]}}]);