admin-api/public/static/js/pages-users-user_payment-in...

1 line
35 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_payment-index"],{"09dd":function(t,e,a){var n=a("85cc");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("04c50cb5",n,!0,{sourceMap:!1,shadowMode:!1})},"0bd6":function(t,e,a){"use strict";a.r(e);var n=a("c69c"),i=a("761e");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("ca35");var r=a("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"1ca84854",null,!1,n["a"],void 0);e["default"]=c.exports},1426:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.payment[data-v-1ca84854]{position:fixed;bottom:0;left:0;width:100%;max-height:%?600?%;border-radius:%?16?% %?16?% 0 0;background-color:#fff;padding-bottom:%?60?%;z-index:99;transition:all .3s cubic-bezier(.25,.5,.5,.9);-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}.payment.on[data-v-1ca84854]{-webkit-transform:translateZ(0);transform:translateZ(0)}.payment .title[data-v-1ca84854]{text-align:center;height:%?123?%;font-size:%?32?%;color:#282828;font-weight:700;padding-right:%?30?%;margin-left:%?30?%;position:relative;border-bottom:1px solid #eee}.payment .title .iconfont[data-v-1ca84854]{position:absolute;right:%?30?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:%?43?%;color:#8a8a8a;font-weight:400}.payment .item[data-v-1ca84854]{border-bottom:1px solid #eee;height:%?130?%;margin-left:%?30?%;padding-right:%?30?%}.payment .item .left[data-v-1ca84854]{width:%?610?%}.payment .item .left .text[data-v-1ca84854]{width:%?540?%}.payment .item .left .text .name[data-v-1ca84854]{font-size:%?32?%;color:#282828}.payment .item .left .text .info[data-v-1ca84854]{font-size:%?24?%;color:#999}.payment .item .left .text .info .money[data-v-1ca84854]{color:#f90}.payment .item .left .iconfont[data-v-1ca84854]{font-size:%?45?%;color:#09bb07}.payment .item .left .iconfont.icon-zhifubao[data-v-1ca84854]{color:#00aaea}.payment .item .left .iconfont.icon-yuezhifu[data-v-1ca84854]{color:#f90}.payment .item .left .iconfont.icon-yuezhifu1[data-v-1ca84854]{color:#eb6623}.payment .item .iconfont[data-v-1ca84854]{font-size:%?0.3?%;color:#999}',""]),t.exports=e},"25b4":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("974a"),o=n(a("956a")),r=function(t,e){t&&o.default.set("spread",t||0),t&&e&&(0,i.spread)(t).then((function(t){}))};e.default=r},5911:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("acd8"),a("99af");var n=a("d09b"),i={props:{payMode:{type:Array,default:function(){return[]}},pay_close:{type:Boolean,default:!1},order_id:{type:String,default:""},totalPrice:{type:String,default:"0"},order_type:{type:Number,default:0},isCall:{type:Boolean,default:!1},returnUrl:{type:String,default:""}},data:function(){return{}},mounted:function(){},methods:{close:function(){this.$emit("onChangeFun",{action:"payClose"})},goPay:function(t,e){var a=this;if(this.isCall)return this.$emit("onChangeFun",{action:"payCheck",value:e});var i=this,o="";if("wechat"==e?o=this.$wechat.isWeixin()?"weixin":"h5":"balance"==e?o="balance":"alipay"==e&&(o="alipay"),!i.order_id)return i.$util.Tips({title:"请选择要支付的订单"});if("balance"==e&&parseFloat(t)<parseFloat(i.totalPrice))return i.$util.Tips({title:"余额不足!"});uni.showLoading({title:"支付中"});var r=1===i.order_type?n.presellOrderPay:2===i.order_type?n.integralOrderPay:n.orderPay;r(i.order_id,{type:o,return_url:""!==i.returnUrl?"http://"+window.location.host+i.returnUrl:"http://"+window.location.host+"/pages/users/order_list/index"}).then((function(t){var e=t.data.status,n=t.data.result.order_id,o=t.data.result.config,r=t.data.result.pay_key,c=i.returnUrl?i.returnUrl:"/pages/users/order_list/index";switch(e){case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":case"error":return uni.hideLoading(),a.$emit("onChangeFun",{action:"payClose"}),i.$util.Tips({title:t.message});case"success":return uni.hideLoading(),a.$emit("onChangeFun",{action:"payClose"}),i.$util.Tips({title:"支付成功",icon:"success"},{tab:5,url:c+"?status=1"});case"alipay":case"alipayQr":return uni.hideLoading(),a.$emit("onChangeFun",{action:"payClose"}),void uni.navigateTo({url:"/pages/order_pay_back/index?keyCode="+r+"&url="+o});case"wechat":case"weixin":case"weixinApp":o.timeStamp=o.timestamp,i.$wechat.pay(o).then((function(t){return a.$emit("onChangeFun",{action:"payClose"}),uni.hideLoading(),i.$util.Tips({title:"支付成功",icon:"success"},{tab:5,url:c+"status=1"})})).catch((function(t){if("chooseWXPay:cancel"==t.errMsg)return i.isCall?i.$util.Tips({title:"取消支付"}):i.$util.Tips({title:"取消支付"},{tab:5,url:c+"?status=0"})}));break;case"balance":return uni.hideLoading(),i.$emit("onChangeFun",{action:"payClose"}),i.$util.Tips({title:t.message});case"h5":var s=window.location.protocol+"//"+window.location.host,u="".concat(s,"/pages/order_pay_status/index?order_id=").concat(n),l=encodeURIComponent(u),d=o.mweb_url||o.h5_url,f="".concat(d,"&redirect_url=").concat(l);setTimeout((function(){location.href=f}),100);break}})).catch((function(t){return uni.hideLoading(),i.$util.Tips({title:t})}))}}};e.default=i},"5d52":function(t,e,a){"use strict";a.r(e);var n=a("64c5"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"64c5":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d401"),a("d3b7"),a("25f0"),a("acd8"),a("a9e3"),a("99af");var i=n(a("25b4")),o=a("974a"),r=a("26cb"),c=n(a("fecf")),s=n(a("0bd6")),u=(a("6e1a"),uni.getSystemInfoSync().statusBarHeight+"px"),l={components:{authorize:c.default,payment:s.default},data:function(){return{otherValue:"其他",now_money:0,navRecharge:["账户充值","佣金转入"],active:0,number:"",from:"",userinfo:{},placeholder:"0.00",isAuto:!1,isShowAuth:!1,picList:[],activePic:0,money:"",numberPic:"",rechar_id:"0",rechargeAttention:[],delta:1,statusBarHeight:u,pay_close:!1,totalPrice:"0",payMode:[{name:"微信支付",icon:"icon-weixinzhifu",value:this.$wechat.isWeixin()?"weixin":"h5",title:"微信快捷支付",payStatus:!0},{name:"支付宝支付",icon:"icon-zhifubao",value:"alipay",title:"支付宝支付",payStatus:!0}]}},computed:(0,r.mapGetters)(["viewColor","isLogin","uid"]),onLoad:function(t){this.delta=t.delta||1,this.isLogin?(this.getUserInfo(),this.getRecharge()):(this.isAuto=!0,this.isShowAuth=!0),t.spread&&(0,i.default)(t.spread,this.isLogin)},onUnload:function(){uni.navigateBack({delta:this.delta})},methods:{goBack:function(){uni.navigateBack()},picCharge:function(t,e){this.activePic=t,void 0===e?(this.rechar_id="0",this.numberPic="",this.otherValue=""):(this.otherValue="其他",this.money="",this.rechar_id=e.id.toString(),this.numberPic=e.data.price)},getRecharge:function(){var t=this;(0,o.getRechargeApi)().then((function(e){t.picList=e.data.recharge_quota,t.picList[0]&&(t.rechar_id=t.picList[0].id.toString(),t.numberPic=t.picList[0].data.price),t.rechargeAttention=e.data.recharge_attention||[]})).catch((function(e){t.$dialog.toast({mes:e})}))},onLoadFun:function(){this.isShowAuth=!1,this.getUserInfo(),this.getRecharge()},authColse:function(t){this.isShowAuth=t},navRecharges:function(t){this.active=t},getUserInfo:function(){var t=this;(0,o.spreadInfo)().then((function(e){t.$set(t,"userinfo",e.data)}))},payClose:function(){this.pay_close=!1},payCheck:function(t){this.createOrder(t)},submitSub:function(t){var e=this,a=t.detail.value.number;if(e.active){if(parseFloat(a)<0||NaN==parseFloat(a)||void 0==a||""==a)return e.$util.Tips({title:"请输入金额"});if(parseFloat(a)>e.userinfo.brokerage_price)return e.$util.Tips({title:"剩余可用佣金不足"+parseFloat(a)});uni.showModal({title:"转入余额",content:"转入余额后无法再次转出,确认是否转入余额",success:function(t){if(t.confirm)(0,o.rechargeBrokerage)({brokerage:parseFloat(a)}).then((function(t){return e.$util.Tips({title:"转入成功",icon:"success"},{tab:5,url:"/pages/users/user_money/index"})})).catch((function(t){return e.$util.Tips({title:t})}));else if(t.cancel)return e.$util.Tips({title:"已取消"})}})}else{if(0==this.rechar_id){if(0===parseFloat(e.money))return e.$util.Tips({title:"充值金额金额不能为0"});if(!e.money)return e.$util.Tips({title:"请填写充值金额!"});if(!Number(e.money))return e.$util.Tips({title:"请填写正确的金额!"})}this.pay_close=!0}},createOrder:function(t){var e=this,a={price:0==e.rechar_id?e.money:e.numberPic,recharge_id:e.rechar_id,type:t,return_url:location.port?location.protocol+"//"+location.hostname+":"+location.port+"/pages/users/user_payment/index":location.protocol+"//"+location.hostname+"/pages/users/user_payment/index"};(0,o.rechargeWechat)(a).then((function(t){e.callPay(t)})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},callPay:function(t){var e=this,a=t.data.type,n=(t.data.recharge_id,t.data.pay_key),i=t.data.config,o="/pages/users/user_payment/index";switch(a){case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":case"error":return uni.hideLoading(),e.$util.Tips({title:t.message},{tab:5,url:o});case"success":return uni.hideLoading(),e.seckillId?e.$util.Tips({title:t.message,icon:"success"},{tab:4,url:o}):e.$util.Tips({title:t.message,icon:"success"},{tab:5,url:o});case"alipay":case"alipayQr":return uni.hideLoading(),e.$emit("onChangeFun",{action:"payClose"}),void uni.navigateTo({url:"/pages/order_pay_back/index?keyCode="+n+"&url="+i+"&type=10"});case"wechat":case"weixin":case"weixinApp":i.timeStamp=i.timestamp,e.$wechat.pay(i).then((function(t){return e.$util.Tips({title:t.message,icon:"success"},{tab:4,url:o})})).catch((function(t){if("chooseWXPay:cancel"==t.errMsg)return e.$util.Tips({title:"取消支付"},{tab:5,url:o})}));break;case"balance":return uni.hideLoading(),e.$util.Tips({title:t.msg},{tab:5,url:o});case"h5":var r=window.location.protocol+"//"+window.location.host,c="".concat(r,"/pages/users/user_payment/index"),s=encodeURIComponent(c),u=i.mweb_url||i.h5_url,l="".concat(u,"&redirect_url=").concat(s);setTimeout((function(){location.href=l}),100);break}},onChangeFun:function(t){var e=t,a=e.action||null,n=void 0!=e.value?e.value:null;a&&this[a]&&this[a](n)}}};e.default=l},"6e1a":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalSubscribe=function(){var t=i();return o([t.PRODUCT_INCREASE])},e.auth=i,e.openEextractSubscribe=function(){var t=i();return o([t.EXTRACT_NOTICE])},e.openExtrctSubscribe=function(){var t=i();return o([t.EXTRACT_NOTICE])},e.openOrderRefundSubscribe=function(){var t=i();return o([t.REFUND_CONFORM_CODE])},e.openOrderSubscribe=function(){var t=i();return o([t.ORDER_DELIVER_SUCCESS,t.DELIVER_GOODS_CODE])},e.openPaySubscribe=function(){var t=i();return o([t.DELIVER_GOODS_CODE,t.ORDER_DELIVER_SUCCESS,t.ORDER_PAY_SUCCESS])},e.openRechargeSubscribe=function(){var t=i();return o([t.USER_BALANCE_CHANGE])},e.subscribe=o,a("d3b7");var n=a("93f6");function i(){var t,e=uni.getStorageSync(n.SUBSCRIBE_MESSAGE);return t=e||{},t}function o(t){wx;return new Promise((function(e,a){uni.requestSubscribeMessage({tmplIds:t,success:function(t){return e(t)},fail:function(t){return e(t)},complete:function(t){}})}))}},"71b4":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.Popup[data-v-6cfa5c77]{--logo-auth-size-:%?180?%;width:80%;background-color:#fff;position:fixed;top:%?500?%;left:10%;z-index:900;padding:calc(var(--logo-auth-size-) / 2) %?20?% %?20?% %?20?%;border-radius:%?15?%}.Popup .logo-auth[data-v-6cfa5c77]{position:absolute;top:calc(%?0?% - (var(--logo-auth-size-) + %?8?%) / 2);left:calc((100% - %?180?%) / 2);width:var(--logo-auth-size-);height:var(--logo-auth-size-);border:%?8?% solid #fff;border-radius:50%;background:#fff;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center}.Popup .logo-auth .image[data-v-6cfa5c77]{height:var(--logo-auth-size-);margin-top:%?-30?%}.Popup .title[data-v-6cfa5c77]{width:100%;height:%?60?%;line-height:%?60?%;text-align:center;font-size:%?32?%;color:#000}.Popup .tip[data-v-6cfa5c77]{width:100%;line-height:%?50?%;font-size:%?28?%;color:#555;padding:%?20?% 0;text-align:left}.Popup .bottom[data-v-6cfa5c77]{width:100%;height:%?80?%;margin-top:%?50?%;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center}.Popup .bottom .item[data-v-6cfa5c77]{width:%?200?%;height:%?80?%;line-height:%?80?%;background-color:#eee;text-align:center;font-size:%?26?%;color:#666}.Popup .bottom .item .text[data-v-6cfa5c77]{font-size:%?26?%;color:#666}.Popup .bottom .item.on[data-v-6cfa5c77]{width:%?500?%}.Popup .bottom .item.grant[data-v-6cfa5c77]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-6cfa5c77]{font-size:%?28?%;color:#fff}.flex[data-v-6cfa5c77]{display:flex;flex-direction:row}.mask[data-v-6cfa5c77]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}.popup_box[data-v-6cfa5c77]{width:100%;background-color:#fff;border-radius:%?35?%;display:flex;flex-direction:column}.popup_box .h1[data-v-6cfa5c77]{width:100%;position:fixed;top:0;background:#fff;font-size:%?36?%;height:%?100?%;line-height:%?100?%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 %?28?%;box-sizing:border-box}.popup_box .h1 uni-icon[data-v-6cfa5c77]{font-size:%?32?%;color:#c9c9c9}.popup_box .info[data-v-6cfa5c77]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.popup_box .info .userAvatar[data-v-6cfa5c77]{width:%?130?%;height:%?130?%;border-radius:100%;overflow:hidden;padding:0;margin-top:45px;background-color:#fff;border:%?2?% solid #ccc}.popup_box .info .userAvatar .avatar[data-v-6cfa5c77]{display:block;width:%?130?%;height:%?130?%}.popup_box .info .row[data-v-6cfa5c77]{border-bottom:1px solid #ccc;display:flex;align-items:center;height:%?80?%;padding-left:%?20?%}.popup_box .info .row.text1[data-v-6cfa5c77]{flex:2}.popup_box .info .row.weui-input[data-v-6cfa5c77]{flex:6}.popup_box .btn[data-v-6cfa5c77]{position:fixed;bottom:0;width:100%;background:#fff;align-items:center;justify-content:center;display:flex;padding-top:%?20?%;padding-bottom:%?20?%}.popup_box .btn .button[data-v-6cfa5c77]{width:90%;height:%?84?%;border-radius:%?64?%;background:#f15353;color:#fff;font-size:%?36?%;border:none;text-align:center;line-height:%?84?%}',""]),t.exports=e},7277:function(t,e,a){"use strict";a.r(e);var n=a("7f93"),i=a("5d52");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("fe8d");var r=a("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"3f66ba68",null,!1,n["a"],void 0);e["default"]=c.exports},"761e":function(t,e,a){"use strict";a.r(e);var n=a("5911"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"7f93":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{style:t.viewColor},[a("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.submitSub.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"payment-top acea-row row-column row-center-wrapper"},[a("span",{staticClass:"name"},[t._v("我的余额")]),a("v-uni-view",{staticClass:"pic"},[t._v("¥"),a("span",{staticClass:"pic-font"},[t._v(t._s(t.userinfo.now_money||0))])])],1),a("v-uni-view",{staticClass:"payment"},[a("v-uni-view",{staticClass:"nav acea-row row-around row-middle"},t._l(t.navRecharge,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item",class:t.active==n?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navRecharges(n)}}},[t._v(t._s(e))])})),1),t.active?a("v-uni-view",{staticClass:"tip"},[a("v-uni-view",{staticClass:"input"},[a("v-uni-text",[t._v("¥")]),a("v-uni-input",{attrs:{placeholder:"0.00",type:"number","placeholder-class":"placeholder",value:t.number,name:"number"}})],1),a("v-uni-view",{staticClass:"tips-title"},[a("v-uni-view",{staticStyle:{"font-weight":"bold","font-size":"26rpx"}},[t._v("提示:")]),a("v-uni-view",{staticStyle:{"margin-top":"10rpx"}},[t._v("当前佣金为"),a("v-uni-text",{staticClass:"t-color"},[t._v("¥"+t._s(t.userinfo.brokerage_price||0))])],1)],1),a("v-uni-view",{staticClass:"tips-box"},[a("v-uni-view",{staticClass:"tips mt-30"},[t._v("注意事项:")]),t._l(t.rechargeAttention,(function(e){return a("v-uni-view",{key:e,staticClass:"tips-samll"},[t._v(t._s(e))])}))],2)],1):a("v-uni-view",{staticClass:"tip picList"},[t._l(t.picList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"pic-box pic-box-color acea-row row-center-wrapper row-column",class:t.activePic==n?"pic-box-color-active":"",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.picCharge(n,e)}}},[a("v-uni-view",{staticClass:"pic-number-pic"},[t._v(t._s(e.data.price)),a("span",{staticClass:"pic-number"},[t._v("元")])]),a("v-uni-view",{staticClass:"pic-number"},[t._v("赠送:"+t._s(e.data.give)+" 元")])],1)})),a("v-uni-view",{staticClass:"pic-box pic-box-color acea-row row-center-wrapper",class:0==t.rechar_id?"pic-box-color-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.picCharge(t.picList.length)}}},[a("v-uni-input",{staticClass:"pic-box-money pic-number-pic",class:0==t.rechar_id?"pic-box-color-active":"",attrs:{type:"number",placeholder:t.otherValue},model:{value:t.money,callback:function(e){t.money=e},expression:"money"}})],1),a("v-uni-view",{staticClass:"tips-box"},[a("v-uni-view",{staticClass:"tips mt-30"},[t._v("注意事项:")]),t._l(t.rechargeAttention,(function(e){return a("v-uni-view",{key:e,staticClass:"tips-samll"},[t._v(t._s(e))])}))],2)],2),a("v-uni-button",{staticClass:"but",attrs:{formType:"submit"}},[t._v(t._s(t.active?"立即转入":"立即充值"))])],1)],1),a("payment",{attrs:{payMode:t.payMode,order_id:t.rechar_id,pay_close:t.pay_close,"is-call":!0,totalPrice:t.totalPrice},on:{onChangeFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeFun.apply(void 0,arguments)}}}),a("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},i=[]},"85cc":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-3f66ba68]{width:100%;height:100%;background-color:#fff}body.?%PAGE?%[data-v-3f66ba68]{background-color:#fff}.payment[data-v-3f66ba68]{position:relative;top:%?-60?%;width:100%;padding-bottom:%?50?%;background-color:#fff;border-radius:%?10?%;padding-top:%?25?%;border-top-right-radius:%?40?%;border-top-left-radius:%?40?%}.payment .nav[data-v-3f66ba68]{height:%?75?%;line-height:%?75?%;padding:0 %?100?%}.payment .nav .item[data-v-3f66ba68]{font-size:%?30?%;color:#333}.payment .nav .item.on[data-v-3f66ba68]{font-weight:700;border-bottom:%?4?% solid var(--view-theme)}.t-color[data-v-3f66ba68]{color:var(--view-theme)}.payment .input[data-v-3f66ba68]{display:flex;align-items:center;justify-content:center;border-bottom:1px dashed #ddd;margin:%?60?% auto 0 auto;padding-bottom:%?20?%;font-size:%?56?%;color:#333;flex-wrap:nowrap}.payment .input uni-text[data-v-3f66ba68]{padding-left:%?106?%}.payment .input uni-input[data-v-3f66ba68]{padding-right:%?106?%;width:%?300?%;height:%?94?%;text-align:center;font-size:%?70?%}.payment .placeholder[data-v-3f66ba68]{color:#d0d0d0;height:100%;line-height:%?94?%}.payment .tip[data-v-3f66ba68]{font-size:%?26?%;color:#888;padding:0 %?30?%;margin-top:%?25?%}.payment .but[data-v-3f66ba68]{color:#fff;font-size:%?30?%;width:%?700?%;height:%?86?%;border-radius:%?50?%;margin:%?46?% auto 0 auto;line-height:%?86?%;background-color:var(--view-theme)}.container[data-v-3f66ba68]{position:relative;background-color:var(--view-theme);border-radius:0 0 %?40?% %?40?%}.container .fixed-head[data-v-3f66ba68]{position:absolute;left:0;top:20px;width:100%;z-index:10}.container .fixed-head .icon-xiangzuo[data-v-3f66ba68]{margin-right:%?40?%;margin-left:%?20?%;font-size:%?40?%;color:#fff}.payment-top[data-v-3f66ba68]{width:100%;height:%?350?%;position:relative;background-color:var(--view-theme)}.payment-top .name[data-v-3f66ba68]{font-size:%?26?%;color:hsla(0,0%,100%,.8);margin-top:%?-38?%;margin-bottom:%?30?%}.payment-top .pic[data-v-3f66ba68]{font-size:%?32?%;color:#fff}.payment-top .pic-font[data-v-3f66ba68]{font-size:%?78?%;color:#fff}.picList[data-v-3f66ba68]{display:flex;flex-wrap:wrap;margin:%?30?% 0}.picList .pic-box[data-v-3f66ba68]{width:32%;height:auto;border-radius:%?20?%;margin-top:%?21?%;padding:%?20?% 0;margin-right:%?12?%}.picList .pic-box[data-v-3f66ba68]:nth-child(3n){margin-right:0}.picList .pic-box-color[data-v-3f66ba68]{background-color:#f4f4f4;color:#656565}.picList .pic-number[data-v-3f66ba68]{font-size:%?22?%}.picList .pic-number-pic[data-v-3f66ba68]{font-size:%?38?%;margin-right:%?10?%;text-align:center}.picList .pic-box-color-active[data-v-3f66ba68]{background-color:var(--view-theme);color:#fff}.tips-box .tips[data-v-3f66ba68]{font-size:%?28?%;color:#333;font-weight:800;margin-bottom:%?14?%;margin-top:%?20?%}.tips-box .tips-samll[data-v-3f66ba68]{font-size:%?24?%;color:#333;margin-bottom:%?14?%}.tips-box .tip-box[data-v-3f66ba68]{margin-top:%?30?%}.tips-title[data-v-3f66ba68]{margin-top:%?20?%;font-size:%?24?%;color:#333}',""]),t.exports=e},aef0:function(t,e,a){"use strict";a.r(e);var n=a("cf78"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},b470:function(t,e,a){var n=a("1426");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("62a532f9",n,!0,{sourceMap:!1,shadowMode:!1})},c69c:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"payment",class:t.pay_close?"on":""},[a("v-uni-view",{staticClass:"title acea-row row-center-wrapper"},[t._v("选择付款方式"),a("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),t._l(t.payMode,(function(e,n){return a("v-uni-view",{key:n,staticClass:"item acea-row row-between-wrapper",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goPay(e.number||0,e.value)}}},[a("v-uni-view",{staticClass:"left acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"iconfont",class:e.icon}),a("v-uni-view",{staticClass:"text"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),e.number?a("v-uni-view",{staticClass:"info"},[t._v(t._s(e.title)),a("span",{staticClass:"money"},[t._v("¥"+t._s(e.number))])]):a("v-uni-view",{staticClass:"info"},[t._v(t._s(e.title))])],1)],1),a("v-uni-view",{staticClass:"iconfont icon-xiangyou"})],1)}))],2),t.pay_close?a("v-uni-view",{ref:"close",staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e()],1)},i=[]},ca35:function(t,e,a){"use strict";var n=a("b470"),i=a.n(n);i.a},cf78:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("5530")),o=n(a("956a")),r=a("f063"),c=a("93f6"),s=a("26cb"),u=n(a("d2b7")),l=a("8f46"),d=a("79a6"),f=getApp(),p={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1,canGetPrivacySetting:!1,avatar:"",nickname:""}},computed:(0,i.default)((0,i.default)({},(0,s.mapGetters)(["isLogin","userInfo","viewColor"])),(0,l.configMap)(["routine_logo","first_avatar_switch","wechat_phone_switch"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{onclose:function(){this.canGetPrivacySetting=!1},onAgree:function(){var t=this;t.canUseGetUserProfile=!1,u.default.getUserProfile().then((function(e){var a=e.userInfo;a.code=t.code,a.spread=f.globalData.spid,a.spread_code=f.globalData.code,a.new_nickname=t.nickname,a.new_avatar=t.avatar,(0,r.commonAuth)({auth:{type:"routine",auth:a}}).then((function(e){if(200!=e.data.status)return uni.setStorageSync("auth_token",e.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var a=e.data.result.expires_time-o.default.time();t.$store.commit("UPDATE_USERINFO",e.data.result.user),t.$store.commit("LOGIN",{token:e.data.result.token,time:a}),t.$store.commit("SETUID",e.data.result.user.uid),o.default.set(c.EXPIRES_TIME,e.data.result.expires_time,a),o.default.set(c.USER_INFO,e.data.result.user,a),t.$emit("onLoadFun",e.data.result.user),e.data.result.user.isNew&&t.mp_is_new&&1==t.first_avatar_switch&&1==t.wechat_phone_switch&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,d.toLogin)(!0)},getUserProfile:function(){var t=this;wx.getPrivacySetting?wx.getPrivacySetting({success:function(e){e.needAuthorization?(t.canGetPrivacySetting=!0,t.$nextTick((function(){t.$refs.privacyAgreement.showPoupon(e.privacyContractName)}))):t.onAgree()},fail:function(t){},complete:function(){}}):this.onAgree()},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.canGetPrivacySetting=!1},onChooseAvatar:function(t){var e=this,a=t.detail.avatarUrl;this.$util.uploadImgs("upload/image",a,(function(t){e.avatar=t.data.path}),(function(t){}))},changeNickname:function(t){this.nickname=t.detail.value||t.target.value}}};e.default=p},d09b:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyInvoiceApi=function(t,e){return i.default.post("order/receipt/".concat(t),e)},e.cartDel=function(t){return i.default.post("user/cart/delete",t)},e.changeCartNum=function(t,e){return i.default.post("user/cart/change/"+t,e)},e.createOrder=function(t){return i.default.post("v2/order/create",t,{noAuth:!0})},e.develiveryDetail=function(t){return i.default.get("order/delivery/".concat(t))},e.express=function(t){return i.default.post("order/express/"+t)},e.expressList=function(){return i.default.get("common/express")},e.getCallBackUrlApi=function(t){return i.default.get("common/pay_key/"+t,{},{noAuth:!0})},e.getCartCounts=function(){return i.default.get("user/cart/count")},e.getCartList=function(){return i.default.get("user/cart/lst")},e.getCouponsOrderPrice=function(t,e){return i.default.get("coupons/order/"+t,e)},e.getOrderConfirm=function(t){return i.default.post("v2/order/check",t)},e.getOrderDetail=function(t){return i.default.get("order/detail/"+t)},e.getOrderList=function(t){return i.default.get("order/list",t)},e.getPayOrder=function(t){return i.default.get("order/status/"+t)},e.getReceiptOrder=function(t){return i.default.get("user/receipt/order/"+t)},e.groupOrderDetail=function(t){return i.default.get("order/group_order_detail/"+t)},e.groupOrderList=function(t){return i.default.get("order/group_order_list",t,{noAuth:!0})},e.integralOrderPay=function(t,e){return i.default.post("order/points/pay/"+t,e)},e.ordeRefundReason=function(){return i.default.get("order/refund/reason")},e.orderAgain=function(t){return i.default.post("user/cart/again",t)},e.orderComment=function(t,e){return i.default.post("reply/"+t,e)},e.orderConfirm=function(t){return i.default.post("order/check",t)},e.orderCreate=function(t){return i.default.post("order/create",t,{noAuth:!0})},e.orderData=function(){return i.default.get("order/number")},e.orderDel=function(t){return i.default.post("order/del/"+t)},e.orderPay=function(t,e){return i.default.post("order/pay/"+t,e)},e.orderProduct=function(t){return i.default.get("reply/product/"+t)},e.orderRefundVerify=function(t){return i.default.post("order/refund/verify",t)},e.orderTake=function(t){return i.default.post("order/take/"+t)},e.postOrderComputed=function(t,e){return i.default.post("/order/computed/"+t,e)},e.presellOrderPay=function(t,e){return i.default.post("presell/pay/"+t,e)},e.receiptOrder=function(t){return i.default.get("user/receipt/order",t)},e.refundApply=function(t,e){return i.default.post("refund/apply/"+t,e,{noAuth:!0})},e.refundBackGoods=function(t,e){return i.default.post("refund/back_goods/"+t,e,{noAuth:!0})},e.refundBatch=function(t){return i.default.get("refund/batch_product/"+t,{noAuth:!0})},e.refundCancelApi=function(t){return i.default.post("refund/cancel/".concat(t))},e.refundDel=function(t){return i.default.post("refund/del/"+t,{noAuth:!0})},e.refundDetail=function(t){return i.default.get("refund/detail/"+t,{noAuth:!0})},e.refundExpress=function(t){return i.default.get("refund/express/"+t,{noAuth:!0})},e.refundList=function(t){return i.default.get("refund/list",t,{noAuth:!0})},e.refundMessage=function(){return i.default.get("common/refund_message",{noAuth:!0})},e.refundOrderExpress=function(t,e){return i.default.get("server/".concat(t,"/refund/express/").concat(e))},e.refundProduct=function(t,e){return i.default.get("refund/product/"+t,e,{noAuth:!0})},e.unOrderCancel=function(t){return i.default.post("order/cancel/"+t)},e.verifyCode=function(t){return i.default.get("order/verify_code/"+t)},a("99af");var i=n(a("5a4d"))},d3e4:function(t,e,a){"use strict";var n=a("ddbf"),i=a.n(n);i.a},dda2:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[t.isShowAuth&&t.code?a("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?a("v-uni-view",{staticClass:"Popup",class:{privacyPoupon:t.canGetPrivacySetting},style:"top:"+t.top+"px;"},[a("v-uni-view",{staticClass:"logo-auth"},[a("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),[t.isWeixin?a("v-uni-view",{staticClass:"title"},[t._v("授权提醒")]):a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.title))])],[t.isWeixin?a("v-uni-view",{staticClass:"tip"},[t._v("请授权用户信息,以便为您提供更好的服务!")]):a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.info))]),a("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.info))])],a("v-uni-view",{staticClass:"bottom flex"},[a("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),a("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?a("v-uni-view",{staticClass:"text"},[t._v("去授权")]):a("v-uni-view",{staticClass:"text"},[t._v("去登录")])],1)],1)],2):t._e()],1)},i=[]},ddbf:function(t,e,a){var n=a("71b4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("f7f3db9a",n,!0,{sourceMap:!1,shadowMode:!1})},fe8d:function(t,e,a){"use strict";var n=a("09dd"),i=a.n(n);i.a},fecf:function(t,e,a){"use strict";a.r(e);var n=a("dda2"),i=a("aef0");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("d3e4");var r=a("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"6cfa5c77",null,!1,n["a"],void 0);e["default"]=c.exports}}]);