You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.7 KiB
1 lines
4.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/confirmation"],{"3ac3":function(t,i,o){},"4a7f":function(t,i,o){"use strict";var e;o.d(i,"b",(function(){return n})),o.d(i,"c",(function(){return s})),o.d(i,"a",(function(){return e}));var n=function(){var t=this,i=t.$createElement,o=(t._self._c,t.radioStatus?t.__map(t.UserNormalDiscountList,(function(i,o){var e=t.__get_orig(i),n=t._f("formatDate")(i.highDiscount.salesEndTime,"-");return{$orig:e,f0:n}})):null);t.$mp.data=Object.assign({},{$root:{l0:o}})},s=[]},"859b":function(t,i,o){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=o("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:""}},onLoad:function(t){this.couponId=t.id,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]:"/",o=new Date(t),e=o.getFullYear(),n=o.getMonth()+1,s=o.getDate(),c=o.getHours(),r=o.getMinutes(),u=o.getSeconds();return n=n>10?n:"0"+n,s=s>10?s:"0"+s,c=c>10?c:"0"+c,r=r>10?r:"0"+r,u=u>10?u:"0"+u,"".concat(e).concat(i).concat(n).concat(i).concat(s," ").concat(c,":").concat(r,":").concat(u)}},methods:{getCouponById:function(){var i=this;t.showLoading({title:"加载中..."});var o={couponId:this.couponId};(0,e.getCouponById)(o).then((function(o){"000000"==o.return_code?(i.couponList=o.return_data,i.paytheprice=o.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,e.getUserNormalDiscountList)(i).then((function(i){"000000"==i.return_code&&(t.UserNormalDiscountList=i.return_data)}))},radioChange:function(i){for(var o=0;o<this.UserNormalDiscountList.length;o++)this.UserNormalDiscountList[o].highDiscount.id==i.target.value&&(this.memDiscountId=this.UserNormalDiscountList[o].id,this.current=o,1==this.UserNormalDiscountList[o].highDiscount.discountType?this.couponList.salesPrice>this.UserNormalDiscountList[o].highDiscount.discountPrice?(this.deductionPrice=this.UserNormalDiscountList[o].highDiscount.discountPrice,this.paytheprice=this.couponList.salesPrice-this.deductionPrice):t.showToast({title:"未满足满减条件",icon:"none",duration:2e3}):2==this.UserNormalDiscountList[o].highDiscount.discountType?(this.deductionPrice=this.UserNormalDiscountList[o].highDiscount.discountPrice,this.paytheprice=this.couponList.salesPrice-this.deductionPrice):3==this.UserNormalDiscountList[o].highDiscount.discountType&&(this.deductionPrice=this.couponList.salesPrice-this.couponList.salesPrice*(this.UserNormalDiscountList[o].highDiscount.discountPrice/10),this.paytheprice=this.couponList.salesPrice*(this.UserNormalDiscountList[o].highDiscount.discountPrice/10)))},toPay:function(){var i=this;t.showLoading({title:"提交订单中..."});var o={memDiscountId:this.memDiscountId,highChildOrderList:[{goodsType:1,goodsId:this.couponId,saleCount:1}]};(0,e.addOrder)(o).then((function(o){"000000"==o.return_code?(t.hideLoading(),t.redirectTo({url:"../pay/payment/payment?amount="+o.return_data.payPrice+"&paytype="+i.couponList.payType+"&orderId="+o.return_data.id+"&couponId="+i.couponId})):(t.hideLoading(),t.showToast({title:o.return_msg,icon:"none",duration:2e3}))}))}}};i.default=s}).call(this,o("543d")["default"])},a1e1:function(t,i,o){"use strict";var e=o("3ac3"),n=o.n(e);n.a},e5f8:function(t,i,o){"use strict";o.r(i);var e=o("859b"),n=o.n(e);for(var s in e)"default"!==s&&function(t){o.d(i,t,(function(){return e[t]}))}(s);i["default"]=n.a},e9ad:function(t,i,o){"use strict";o.r(i);var e=o("4a7f"),n=o("e5f8");for(var s in n)"default"!==s&&function(t){o.d(i,t,(function(){return n[t]}))}(s);o("a1e1");var c,r=o("f0c5"),u=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],c);i["default"]=u.exports},fefb:function(t,i,o){"use strict";(function(t){o("eba6");e(o("66fd"));var i=e(o("e9ad"));function e(t){return t&&t.__esModule?t:{default:t}}t(i.default)}).call(this,o("543d")["createPage"])}},[["fefb","common/runtime","common/vendor"]]]); |