|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/confirmation"],{"0dbc":function(t,i,e){"use strict";var o;e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){return o}));var n=function(){var t=this,i=t.$createElement,e=(t._self._c,t.radioStatus?t.__map(t.UserNormalDiscountList,(function(i,e){var o=t.__get_orig(i),n=t._f("formatDate")(i.highDiscount.salesEndTime,"-");return{$orig:o,f0:n}})):null);t.$mp.data=Object.assign({},{$root:{l0:e}})},s=[]},"3ac3":function(t,i,e){},"859b":function(t,i,e){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=e("b528"),n=getApp(),s={data:function(){return{buylist:[],goodsPrice:0,sumPrice:0,freight:12,note:"",int:1200,deduction:0,recinfo:{id:1,name:"大黑哥",head:"大",tel:"18816881688",address:{region:{label:"广东省-深圳市-福田区",value:[18,2,1],cityCode:"440304"},detailed:"深南大道1111号无名摩登大厦6楼A2"},isDefault:!0},couponId:"",couponList:[],UserNormalDiscountList:[],imageUrl:n.globalData.imgUrl,deductionPrice:"0.00",paytheprice:"",radioStatus:!0,memDiscountId:"",user:""}},onLoad:function(t){this.couponId=t.id,this.user=n.globalData.userInfo,this.getCouponById(),this.getUserNormalDiscountList()},onShow:function(){},onHide:function(){},onBackPress:function(){},filters:{toFixed:function(t){return parseFloat(t).toFixed(2)},formatDate:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",e=new Date(t),o=e.getFullYear(),n=e.getMonth()+1,s=e.getDate(),r=e.getHours(),c=e.getMinutes(),a=e.getSeconds();return n=n>10?n:"0"+n,s=s>10?s:"0"+s,r=r>10?r:"0"+r,c=c>10?c:"0"+c,a=a>10?a:"0"+a,"".concat(o).concat(i).concat(n).concat(i).concat(s," ").concat(r,":").concat(c,":").concat(a)}},methods:{getCouponById:function(){var i=this;t.showLoading({title:"加载中..."});var e={couponId:this.couponId};(0,o.getCouponById)(e).then((function(e){"000000"==e.return_code?(i.couponList=e.return_data,i.paytheprice=e.return_data.discountPrice,t.hideLoading()):t.hideLoading()}))},switch2Change:function(t){this.radioStatus=t.target.value,this.radioStatus||(this.paytheprice=this.couponList.discountPrice,this.deductionPrice="0.00",this.memDiscountId=""),this.current=this.UserNormalDiscountList.length},getUserNormalDiscountList:function(){var t=this,i={couponId:this.couponId};(0,o.getUserNormalDiscountList)(i).then((function(i){"000000"==i.return_code&&(t.UserNormalDiscountList=i.return_data)}))},radioChange:function(i){for(var e=0;e<this.UserNormalDiscountList.length;e++)this.UserNormalDiscountList[e].highDiscount.id==i.target.value&&(this.memDiscountId=this.UserNormalDiscountList[e].id,this.current=e,1==this.UserNormalDiscountList[e].highDiscount.discountType?this.couponList.salesPrice>this.UserNormalDiscountList[e].highDiscount.discountPrice?(this.deductionPrice=this.UserNormalDiscountList[e].highDiscount.discountPrice,this.paytheprice=(100*this.couponList.salesPrice-100*this.deductionPrice)/100):t.showToast({title:"未满足满减条件",icon:"none",duration:2e3}):2==this.UserNormalDiscountList[e].highDiscount.discountType?(this.deductionPrice=this.UserNormalDiscountList[e].highDiscount.discountPrice,this.paytheprice=(100*this.couponList.salesPrice-100*this.deductionPrice)/100):3==this.UserNormalDiscountList[e].highDiscount.discountType&&(this.deductionPrice=this.couponList.salesPrice-this.couponList.salesPrice*(this.UserNormalDiscountList[e].highDiscount.discountPrice/10),this.paytheprice=this.couponList.salesPrice*(this.UserNormalDiscountList[e].highDiscount.discountPrice/10)))},getPhoneNumber:function(i){var e=this,s={openId:n.globalData.openId,iv:i.detail.iv,encryptedData:i.detail.encryptedData};(0,o.GetPhoneNumber)(s).then((function(i){if("000000"==i.return_code){n.globalData.userInfo=i.return_data.object.highUser,t.setStorage({key:"user",data:i.return_data.object.highUser});var o=e;o.toPay()}}))},toPay:function(){var i=this;t.showLoading({title:"提交订单中..."});var e={memDiscountId:this.memDiscountId,highChildOrderList:[{goodsType:1,goodsId:this.co
|