1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesRefuel/orderDetail/index"],{"0b14":function(e,r,t){"use strict";t.r(r);var o=t("6686"),a=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(r,e,(function(){return o[e]}))}(i);r["default"]=a.a},2196:function(e,r,t){"use strict";var o=t("4362"),a=t.n(o);a.a},"3ab5":function(e,r,t){"use strict";(function(e,r){var o=t("47a9");t("3cca");o(t("3240"));var a=o(t("ca8e"));e.__webpack_require_UNI_MP_PLUGIN__=t,r(a.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},4362:function(e,r,t){},6686:function(e,r,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=o(t("7eb4")),i=o(t("ee10")),n=o(t("7073")),l={data:function(){return{appltType:e.getStorageSync("appltType"),AppToken:e.getStorageSync("App-Token"),ifLogin:!1,gradeDis:"",title:"",value:!0,orderNo:"",oilOrder:{},staff:{},store:{},oilPrice:0,oilName:"",oilNameId:"",oilType:"",oilId:"",user:{cardBalance:0},refuelBalance:0,userGrade:{},balanceRedece:0,oilCardRedece:0,gradeRedece:0,fullRedece:0,couponRedece:0,deductAmount:0,refuelMoney:[],refuelMoneyAfter:[],gradeDiscount:[],couponDiscount:[],fullReduceDiscount:[],payAmount:0,orderInfo:{},isOilStorageCard:!1,isStoreValueCard:!1,isGradePreferential:!1,isFullPreferential:!1,isCoupons:!1,transferDTO:{type:0,amount:0,oilId:"",mtUserLevel:"",storeId:e.getStorageSync("storeId")},fixingLevel:{},isUseChildCard:!1,cardsList:[],query:{storeId:e.getStorageSync("storeId"),couponType:"",useStatus:0,pageNo:1,pageSize:10},checkBalance:!1,checkOilCard:!1,checkFull:!1,checkCoupon:!1,checkGrade:!1,preferentialData:{activeFavorableAmount:"",activeId:"",activeInfo:"",cardFavorableAmount:"",cardFavorableId:"",cardFavorableInfo:"",memberFavorableAmount:"",type:""},levelAmount:0,activeAmount:0,isFixingLevel:!1}},onLoad:function(e){this.orderNo=e.orderNo},onShow:function(){this.getOilOrder()},components:{},methods:{changeOilCard:function(e){this.checkOilCard=e,e?(this.chooseRefuelMoney(),this.fullRedece=0,this.gradeRedece=0,this.couponRedece=0,this.preferentialData={activeFavorableAmount:"",activeId:"",activeInfo:"",cardFavorableAmount:"",cardFavorableId:"",cardFavorableInfo:"",memberFavorableAmount:"",type:""}):(this.oilCardRedece=0,this.isFixingLevel||this.getPaymentPreferential(this.user.gradeId))},payment:function(){this.isUseChildCard&&(this.balanceRedece>0?this.isUseChildCard=!0:this.isUseChildCard=!1);var r={orderNo:this.orderNo,payAmount:this.payAmount,discountAmount:(100*this.fullRedece+100*this.gradeRedece+100*this.couponRedece)/100,oilCardAmount:JSON.stringify(this.refuelMoneyAfter),oilCardLiters:this.oilCardRedece,balanceAmount:this.balanceRedece,isOilStorageCard:this.isOilStorageCard,tankId:e.getStorageSync("tankId"),isUseChildCard:this.isUseChildCard,activeId:this.preferentialData.activeId,cardFavorableId:this.preferentialData.cardFavorableId,recordId:this.preferentialData.recordId,type:this.preferentialData.type,balanceAmountSale:this.balanceRedece,oilCardAmountSale:this.oilCardRedece,ifLogin:this.ifLogin,levelAmount:this.levelAmount,activeAmount:this.activeAmount},t=this;(0,n.default)({url:"business/oilOrder/appletPay",method:"post",data:r}).then((function(r){var o="wxpay";return o="WECHAT"==t.appltType?"wxpay":"alipay",r.data.error?((0,n.default)({url:"/business/allOrderInfo/orderStatus",method:"post",data:{orderNo:t.orderNo,status:"payFail"}}).then((function(e){})),void e.showToast({title:r.data.error,icon:"none"})):"error"==r.data.code?((0,n.default)({url:"/business/allOrderInfo/orderStatus",method:"post",data:{orderNo:t.orderNo,status:"payFail"}}).then((function(e){})),void e.showToast({title:"支付失败,请联系商家",icon:"none"})):void("ok"!=r.data.success?("商户订单号重复"==r.data.resultMsg&&e.showToast({title:"商户订单号重复,请重新选择订单信息进行支付!",icon:"none"}),r.data.data.reservedPayInfo&&(t.orderInfo=JSON.parse(r.data.data.reservedPayInfo),e.requestPayment({provider:o,timeStamp:t.orderInfo.timeStamp,nonceStr:t.orderInfo.nonceStr,p
|