mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-20 07:20:24 +00:00
11 lines
4.5 KiB
JavaScript
11 lines
4.5 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/payment/index"],{7198:function(t,e,n){"use strict";var i=n("b06f"),a=n.n(i);a.a},"731a":function(t,e,n){"use strict";n.r(e);var i=n("f893"),a=n("c666");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("7198");var u,r=n("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"8424ba38",null,!1,i["a"],u);e["default"]=c.exports},b06f:function(t,e,n){},bae0:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("b588"),a=o(n("a672"));function o(t){return t&&t.__esModule?t:{default:t}}var 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},friendPay:{type:Boolean,default:!1}},mixins:[a.default],data:function(){return{formContent:"",active:0,paytype:"",number:0}},watch:{payMode:{handler:function(t,e){var n=[];t.forEach((function(t,e){t.payStatus&&(t.index=e,n.push(t))})),this.active=n[0].index,this.paytype=n[0].value,this.number=n[0].number||0},immediate:!0,deep:!0}},methods:{payType:function(t,e,n){this.active=n,this.paytype=e,this.number=t,this.$emit("changePayType",e)},close:function(){this.$emit("onChangeFun",{action:"payClose"})},goPay:function(e,n){if(this.isCall)return this.$emit("onChangeFun",{action:"payCheck",value:n});var a=this;return a.order_id?"yue"==n&&parseFloat(e)<parseFloat(a.totalPrice)?a.$util.Tips({title:a.$t("余额不足")}):(t.showLoading({title:a.$t("支付中")}),"friend"==n&&a.order_id?t.navigateTo({url:"/pages/users/payment_on_behalf/index?order_id="+a.order_id+"&spread="+this.$store.state.app.uid,success:function(t){},fail:function(){},complete:function(){}}):void(0,i.orderPay)({uni:a.order_id,paytype:n,type:a.friendPay?1:0,from:"routine"}).then((function(e){var i=e.data.result.jsConfig;switch(n){case"weixin":if(void 0===e.data.result)return a.$util.Tips({title:a.$t("缺少支付参数")});var o="";o=t.requestOrderPayment?"requestOrderPayment":"requestPayment",t[o]({timeStamp:i.timestamp,nonceStr:i.nonceStr,package:i.package,signType:i.signType,paySign:i.paySign,success:function(e){return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}))},fail:function(e){return t.hideLoading(),a.$util.Tips({title:a.$t("取消支付")},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))},complete:function(e){if(t.hideLoading(),"requestPayment:cancel"==e.errMsg||"requestOrderPayment:cancel"==e.errMsg)return a.$util.Tips({title:a.$t("取消支付")},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))}});break;case"yue":return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"offline":return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"friend":return t.hideLoading(),a.$util.Tips({title:e.msg,icon:"success"},(function(){a.$emit("onChangeFun",{action:"pay_complete"})}));case"alipay":t.hideLoading(),t.navigateTo({url:"/pages/users/alipay_invoke/index?id=".concat(e.data.result.order_id,"&link=").concat(e.data.result.jsConfig.qrCode)});break}})).catch((function(e){return t.hideLoading(),a.$util.Tips({title:e},(function(){a.$emit("onChangeFun",{action:"pay_fail"})}))}))):a.$util.Tips({title:a.$t("请选择要支付的订单")})}}};e.default=u}).call(this,n("543d")["default"])},c666:function(t,e,n){"use strict";n.r(e);var i=n("bae0"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f893:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("选择付款方式")),i=t.__map(t.payMode,(function(e,n){var i=t.__get_orig(e),a="yue"==e.value?t.$t("¥"):null;return{$orig:i,m1:a}})),a=t.$t("支付"),o=t.$t("¥"),u=t.$t("去付款");t.$mp.data=Object.assign({},{$root:{m0:n,l0:i,m2:a,m3:o,m4:u}})},o=[]}}]);
|
|
;(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__("731a"))
|
|
})
|
|
},
|
|
[['components/payment/index-create-component']]
|
|
]);
|