(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/views/order/confirmOrder"],{"0301":function(o,n,e){"use strict";var t=e("dd44"),s=e.n(t);s.a},"0971":function(o,n,e){"use strict";(function(o){e("2804");t(e("66fd"));var n=t(e("4d8d"));function t(o){return o&&o.__esModule?o:{default:o}}o(n.default)}).call(this,e("543d")["createPage"])},"2a8d":function(o,n,e){"use strict";(function(o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=e("c041"),s=getApp(),u=function(){e.e("pages/commponent/public/coupon").then(function(){return resolve(e("2e8f"))}.bind(null,e)).catch(e.oe)},c={data:function(){return{colors:"",couponshow:!1,modes:"",tapIndex:99,goodsList:(0,t.getGoodsData)(),couponIndex:0,nowprice:0,sumprice:0,address:{name:"反转",phone:12345678915,address_name:"北京市海淀区苏家坨乡前沙涧村15号"},couponList:[{money:30,reduce:5,date:"2020-02-09 2020-10-02",id:1,status:0,condition:["新人专享","仅在支付时使用","可与其他产品共享"]},{money:30,reduce:5,date:"2020-02-09 2020-10-02",id:2,status:0,condition:["新人专享"]}]}},components:{coupon:u},props:{},onLoad:function(o){(0,t.removeAddress)(),this.getSumPrice(),this.setData({colors:s.globalData.newColor})},onReady:function(){},onShow:function(){var o=(0,t.getAddress)();o&&o.name&&(this.address=o)},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{getSumPrice:function(){var o=0;this.goodsList.forEach((function(n){o=(o+Number(n.money)).toFixed(2)})),this.sumprice=o,this.nowprice=o},openCoupon:function(o){this.setData({couponshow:!0,couponIndex:o})},hidecoupon:function(){this.setData({couponshow:!1})},submit:function(){o.navigateTo({url:"/pages/views/order/success"})},selectMode:function(){var n=this,e=["物流寄送","到店自提"];o.showActionSheet({itemList:e,success:function(o){n.setData({modes:e[o.tapIndex],tapIndex:o.tapIndex})}})},setAddress:function(){o.navigateTo({url:"/pages/views/user/myaddress"})},onReceive:function(o,n){this.couponshow=!1,this.goodsList[this.couponIndex].couponName="满"+o.money+"减"+o.reduce,this.goodsList[this.couponIndex].couponReduce=o.reduce,this.sumprice=this.sumprice-o.reduce},notUsed:function(){this.couponshow=!1,this.goodsList[this.couponIndex].couponName="",this.goodsList[this.couponIndex].couponReduce&&(this.sumprice=this.sumprice+Number(this.goodsList[this.couponIndex].couponReduce))}}};n.default=c}).call(this,e("543d")["default"])},"4d8d":function(o,n,e){"use strict";e.r(n);var t=e("5ff8"),s=e("b76f");for(var u in s)"default"!==u&&function(o){e.d(n,o,(function(){return s[o]}))}(u);e("0301");var c,i=e("f0c5"),d=Object(i["a"])(s["default"],t["b"],t["c"],!1,null,"5ed5250b",null,!1,t["a"],c);n["default"]=d.exports},"5ff8":function(o,n,e){"use strict";var t;e.d(n,"b",(function(){return s})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return t}));var s=function(){var o=this,n=o.$createElement;o._self._c},u=[]},b76f:function(o,n,e){"use strict";e.r(n);var t=e("2a8d"),s=e.n(t);for(var u in t)"default"!==u&&function(o){e.d(n,o,(function(){return t[o]}))}(u);n["default"]=s.a},dd44:function(o,n,e){}},[["0971","common/runtime","common/vendor"]]]);