1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-pay"],{2935:function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return r})),a.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"app"},[a("v-uni-view",{staticClass:"price-box"},[a("v-uni-text",[e._v("支付金额")]),a("v-uni-text",{staticClass:"price"},[e._v(e._s(e.money))])],1),a("v-uni-view",{staticClass:"pay-type-list"},[a("v-uni-view",{staticClass:"type-item b-b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changePayType(1)}}},[a("v-uni-text",{staticClass:"icon iconfont iconweixin"}),a("v-uni-view",{staticClass:"con"},[a("v-uni-text",{staticClass:"tit"},[e._v("微信支付")]),a("v-uni-text",[e._v("推荐使用微信支付")])],1),a("v-uni-label",{staticClass:"radio"},[a("v-uni-radio",{attrs:{value:"",color:"#5dbc7c",checked:1==e.payType}})],1)],1),a("v-uni-view",{staticClass:"type-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changePayType(3)}}},[a("v-uni-text",{staticClass:"icon iconfont iconyue"}),a("v-uni-view",{staticClass:"con"},[a("v-uni-text",{staticClass:"tit"},[e._v("余额支付")]),a("v-uni-text",[e._v("可用余额 ¥"+e._s(e.now_money))])],1),a("v-uni-label",{staticClass:"radio"},[a("v-uni-radio",{attrs:{value:"",color:"#5dbc7c",checked:3==e.payType}})],1)],1)],1),a("v-uni-text",{staticClass:"mix-btn",class:{clickbg:e.payLoding},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),!e.payLoding&&e.confirm()}}},[e._v("确认支付")])],1)},r=[]},"46b0":function(e,t,a){"use strict";var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("96cf");var i=n(a("1da1")),r=n(a("5530")),o=a("eb45"),d=a("ef20"),u=a("26cb"),c={data:function(){return{payType:1,payName:"weixin",orderInfo:{},money:0,now_money:0,orderKey:"",orderId:"",payLoding:!1,type:"",froms:"",pinkid:""}},computed:(0,r.default)({},(0,u.mapState)(["weichatObj"])),onLoad:function(e){var t=this;if(1==e.type)this.type=1,this.orderId=e.ordid,this.money=e.money;else{this.orderKey=e.key;var a=this.$api.prePage();(0,d.computedOrderkey)({orderkey:this.orderKey,couponId:a.couponChecked.id,addressId:a.addressData.id,useIntegral:a.checkedPoints?1:0}).then((function(e){var a=e.data;t.money=a.result.pay_price}))}e.pinkid&&(this.pinkid=e.pinkid),(0,o.balance)({}).then((function(e){var a=e.data;t.now_money=a.now_money}))},methods:{changePayType:function(e){this.payType=e,1==this.payType&&(this.payName="weixin"),2==this.payType&&(this.payName="ali"),3==this.payType&&(this.payName="yue")},orderMoneyPay:function(){var e=this;(0,d.orderPay)({uni:e.orderId,from:e.froms?"weixin":"H5",paytype:e.payName}).then((function(t){if("yue"==e.payName&&"SUCCESS"==t.data.status&&(200==t.status?e.paySuccessTo():e.$api.msg(msg)),"weixin"==e.payName||"routine"==e.payName){var a=t.data.result.jsConfig,n={timestamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign,success:function(t){e.paySuccessTo()},fail:function(){uni.navigateTo({url:"/pages/order/order?state=0"})}};"weixin"==e.payName&&e.weichatObj.chooseWXPay(n)}uni.hideLoading(),e.payLoding=!1})).catch((function(t){uni.hideLoading(),e.payLoding=!1,console.log(t)}))},paySuccessTo:function(){uni.hideLoading(),uni.redirectTo({url:"/pages/money/paySuccess?orderid="+this.orderId})},confirm:function(){var e=(0,i.default)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this,uni.showLoading({title:"支付中",mask:!0}),!("yue"==t.payName&&+t.now_money<t.money)){e.next=5;break}return uni.showModal({title:"提示",content:"账户余额不足!",showCancel:!1,success:function(e){},fail:function(){},complete:function(){}}),e.abrupt("return");case 5:t.payLoding=!0,t.froms=uni.getStorageSync("weichatBrowser")||"",1!=t.type?t.firstCreateOrder():t.orderMoneyPay();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),firstCreateOrder:function(){var e=this,t=e.$api.prePage(),a={real_name:t.addressData.real_name,phone:t.addressData.phone,couponId:t.couponChecked.id,addressId:t.addressData.id,useIntegral:t.checkedPoints?1:0,payType:e.payName,mark:t.desc,from:e.froms?"weixin":"H5",shipping_type:1};e.pinkid&&(a.pinkId=e.pinkid),(0,d.createOrderkey)(a,e.orderKey).then((function(t){var a=t.data,n=t.status,i=t.msg;if(console.log(n),"ORDER_EXIST"==a.status)return uni.showModal({title:"提示",content:i,showCancel:!1}),uni.hideLoading(),void(e.payLoding=!1);e.orderId=a.result.orderId,"yue"==e.payName?200==n?e.paySuccessTo():e.$api.msg(i):e.orderMoneyPay()})).catch((function(t){uni.hideLoading(),e.payLoding=!1,console.log(t,"123456789")}))}}};t.default=c},7449:function(e,t,a){"use strict";a.r(t);var n=a("46b0"),i=a.n(n);for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"7cf6":function(e,t,a){var n=a("7e85");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("973282da",n,!0,{sourceMap:!1,shadowMode:!1})},"7e85":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.app[data-v-4b919422]{width:100%}.price-box[data-v-4b919422]{background-color:#fff;height:%?265?%;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:%?28?%;color:#909399}.price-box .price[data-v-4b919422]{font-size:%?50?%;color:#303133;margin-top:%?12?%}.price-box .price[data-v-4b919422]:before{content:"¥";font-size:%?40?%}.pay-type-list[data-v-4b919422]{margin-top:%?20?%;background-color:#fff;padding-left:%?60?%}.pay-type-list .type-item[data-v-4b919422]{height:%?120?%;padding:%?20?% 0;display:flex;justify-content:space-between;align-items:center;padding-right:%?60?%;font-size:%?30?%;position:relative}.pay-type-list .icon[data-v-4b919422]{width:%?100?%;font-size:%?52?%}.pay-type-list .iconyue[data-v-4b919422]{color:#fe8e2e}.pay-type-list .iconweixin[data-v-4b919422]{color:#36cb59}.pay-type-list .iconzhifubao[data-v-4b919422]{color:#01aaef}.pay-type-list .tit[data-v-4b919422]{font-size:%?32?%;color:#303133;margin-bottom:%?4?%}.pay-type-list .con[data-v-4b919422]{flex:1;display:flex;flex-direction:column;font-size:%?24?%;color:#909399}.mix-btn[data-v-4b919422]{display:flex;align-items:center;justify-content:center;width:%?630?%;height:%?80?%;margin:%?80?% auto %?30?%;font-size:%?32?%;color:#fff;background-color:#5dbc7c;border-radius:%?10?%\n /* box-shadow: 1px 2px 5px rgba(219, 63, 96, 0.4); */}.clickbg[data-v-4b919422]{background-color:#999!important}',""]),e.exports=t},d4bc:function(e,t,a){"use strict";var n=a("7cf6"),i=a.n(n);i.a},eb45:function(e,t,a){"use strict";var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.spreadCommission=r,t.userBalance=o,t.extractCash=d,t.extractBank=u,t.rechargeWechat=c,t.aliInfo=s,t.bankInfo=p,t.setAliInfo=l,t.setBankInfo=f,t.balance=y,t.integral=m;var i=n(a("4c3b"));function r(e,t){return(0,i.default)({url:"/api/spread/commission/"+t,method:"get",data:e})}function o(e){return(0,i.default)({url:"/api/user/balance",method:"get",data:e})}function d(e){return(0,i.default)({url:"/api/extract/cash",method:"post",data:e})}function u(e){return(0,i.default)({url:"/api/extract/bank",method:"get",data:e})}function c(e){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:e})}function s(e){return(0,i.default)({url:"/api/ali/info",method:"get",data:e})}function p(e){return(0,i.default)({url:"/api/bank/info",method:"get",data:e})}function l(e){return(0,i.default)({url:"/api/ali/edit",method:"post",data:e})}function f(e){return(0,i.default)({url:"/api/bank/edit",method:"post",data:e})}function y(e){return(0,i.default)({url:"/api/user/balance",method:"get",data:e})}function m(e){return(0,i.default)({url:"/api/integral/list",method:"get",data:e})}},ef20:function(e,t,a){"use strict";var n=a("dbce");Object.defineProperty(t,"__esModule",{value:!0}),t.confirm=r,t.couponsOrder=o,t.getCouponsList=d,t.order_comment=u,t.product=c,t.express_query=s,t.upload=p,t.orderList=l,t.orderDetail=f,t.orderCancel=y,t.orderDel=m,t.refund=h,t.refundReason=v,t.orderTake=g,t.orderPay=b,t.createOrderkey=k,t.computedOrderkey=w;var i=n(a("4c3b"));function r(e){return(0,i.default)({url:"/api/order/confirm",method:"post",data:e})}function o(e,t){return(0,i.default)({url:"/api/coupons/order/"+t,method:"get",data:e})}function d(e,t){return(0,i.default)({url:"/api/coupons/user/"+t,method:"get",data:e})}function u(e){return(0,i.default)({url:"/api/order/comment",method:"post",data:e})}function c(e){return(0,i.default)({url:"/api/order/product",method:"post",data:e})}function s(e){return(0,i.default)({url:"/api/order/express_query",method:"get",data:e})}function p(e){return(0,i.upFilse)({url:"/api/upload/image",method:"post",data:e})}function l(e){return(0,i.default)({url:"/api/order/list",method:"get",data:e})}function f(e,t){return(0,i.default)({url:"/api/order/detail/"+t,method:"get",data:e})}function y(e){return(0,i.default)({url:"/api/order/cancel",method:"post",data:e})}function m(e){return(0,i.default)({url:"/api/order/del",method:"get",data:e})}function h(e){return(0,i.default)({url:"/api/order/refund/verify",method:"post",data:e})}function v(e){return(0,i.default)({url:"/api/order/refund/reason",method:"get",data:e})}function g(e){return(0,i.default)({url:"/api/order/take",method:"post",data:e})}function b(e){return(0,i.default)({url:"/api/order/pay",method:"post",data:e})}function k(e,t){return(0,i.default)({url:"/api/order/create/"+t,method:"post",data:e})}function w(e){return(0,i.default)({url:"/api/order/computed/"+e.orderkey,method:"post",data:e})}},f00b:function(e,t,a){"use strict";a.r(t);var n=a("2935"),i=a("7449");for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("d4bc");var o,d=a("f0c5"),u=Object(d["a"])(i["default"],n["b"],n["c"],!1,null,"4b919422",null,!1,n["a"],o);t["default"]=u.exports}}]);
|