12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/payment/index"],{"303f":function(e,t,n){},"74fe":function(e,t,n){"use strict";n.r(t);var i=n("e928"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"92ed":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},a=[]},a1f2:function(e,t,n){"use strict";var i=n("303f"),a=n.n(i);a.a},a3c7:function(e,t,n){"use strict";n.r(t);var i=n("92ed"),a=n("74fe");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("a1f2");var u=n("f0c5"),r=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"4f1a1ea2",null,!1,i["a"],void 0);t["default"]=r.exports},e928:function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("bcf5"),o=i(n("5c3b")),u={props:{payMode:{type:Array,default:function(){return[]}},pay_close:{type:Boolean,default:!1},order_id:{type:String,default:""},totalPrice:{type:String,default:"0"},isCall:{type:Boolean,default:!1}},mixins:[o.default],data:function(){return{formContent:"",active:0,paytype:"",number:0}},watch:{payMode:{handler:function(e,t){var n=[];e.forEach((function(e,t){e.payStatus&&(e.index=t,n.push(e))})),this.active=n[0].index,this.paytype=n[0].value,this.number=n[0].number||0},immediate:!0,deep:!0}},methods:{payType:function(e,t,n){this.active=n,this.paytype=t,this.number=e,this.$emit("changePayType",t)},close:function(){this.$emit("onChangeFun",{action:"payClose"})},goPay:function(t,n){if(this.isCall)return this.$emit("onChangeFun",{action:"payCheck",value:n});var i=this;return i.order_id?"yue"==n&&parseFloat(t)<parseFloat(i.totalPrice)?i.$util.Tips({title:"余额不足!"}):(e.showLoading({title:"支付中"}),void(0,a.orderPay)({uni:i.order_id,paytype:n,from:"routine"}).then((function(t){var a=t.data.result.jsConfig;switch(n){case"weixin":if(void 0===t.data.result)return i.$util.Tips({title:"缺少支付参数"});var o="";o=e.requestOrderPayment?"requestOrderPayment":"requestPayment",e[o]({timeStamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign,success:function(t){return e.hideLoading(),i.$util.Tips({title:t.msg,icon:"success"},(function(){i.$emit("onChangeFun",{action:"pay_complete"})}))},fail:function(t){return e.hideLoading(),i.$util.Tips({title:"取消支付"},(function(){i.$emit("onChangeFun",{action:"pay_fail"})}))},complete:function(t){if(e.hideLoading(),"requestPayment:cancel"==t.errMsg)return i.$util.Tips({title:"取消支付"},(function(){i.$emit("onChangeFun",{action:"pay_fail"})}))}});break;case"yue":return e.hideLoading(),i.$util.Tips({title:t.msg,icon:"success"},(function(){i.$emit("onChangeFun",{action:"pay_complete"})}));case"offline":return e.hideLoading(),i.$util.Tips({title:t.msg,icon:"success"},(function(){i.$emit("onChangeFun",{action:"pay_complete"})}));case"alipay":e.hideLoading(),e.navigateTo({url:"/pages/users/alipay_invoke/index?id=".concat(t.data.result.order_id,"&link=").concat(t.data.result.jsConfig.qrCode)});break}})).catch((function(t){return e.hideLoading(),i.$util.Tips({title:t},(function(){i.$emit("onChangeFun",{action:"pay_fail"})}))}))):i.$util.Tips({title:"请选择要支付的订单"})}}};t.default=u}).call(this,n("543d")["default"])}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'components/payment/index-create-component',
- {
- 'components/payment/index-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("a3c7"))
- })
- },
- [['components/payment/index-create-component']]
- ]);
|