text: webpackJsonp([15],{ZtEl:function(t,e){},qMJ2:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("woOf"),a=s.n(i),r=s("Dd8w"),o=s.n(r),d=s("qV47"),n=s("fxnj"),c=s.n(n),u=s("NYxO"),l=(d.a,o()({},Object(u.b)(["detailWish","addressDetail","addItemToShoppingCart"]),{helpFr:function(t){this.showLoading();var e=this.detail.products.map(function(t){return t.price}),s=this.detail.products.map(function(t){return t.productId}),i=this.detail.products.map(function(t){return 1});if(1==e.length){var a={add_product_id:s.join(),quantity:i.join(),price:e.join(),cartType:"buyCart"};this.addItemToShoppingCart({data:a,this:this,n:1})}else{var r={productIds:s.join(),productNums:i.join(),productPrices:e.join(),cartType:"buyCart"};this.addItemToShoppingCart({data:r,this:this})}},seeOrder:function(){this.$router.push("/myOrder")},goTo:function(){this.hideLoading();c.a.miniProgram.navigateTo({url:"/pages/sureorder/index?orderType=wishCart&cartType=buyCart&wishId="+this.$route.query.wishId+"&adressId="+this.detail.contactMechId+"&hideGift=Y"})},copy:function(t){this.addressDetail({this:this,data:{contactMechId:t.contactMechId}}),this.detail=a()({},t)},coprData:function(t){t.countyName=t.countyName||"",t.cityName=t.cityName||"",t.provinceName=t.provinceName||"",t.ssq=t.provinceName+" "+t.cityName+" "+t.countyName,this.adress=a()({},t)}}),{name:"wish-detail",data:function(){return{adress:{postalAddressData:{}},detail:{products:[]}}},mounted:function(){document.title="心愿单详情"},created:function(){var t=this;this.$route.query.token&&localStorage.setItem("token",decodeURIComponent(this.$route.query.token)),this.$route.query.refreshToken&&localStorage.setItem("refreshToken",decodeURIComponent(this.$route.query.refreshToken)),this.$route.query.wishId&&("p"==this.$route.query.cs?setTimeout(function(){t.detailWish({this:t,method:t.detailWish,data:{wishId:t.$route.query.wishId}})},2e3):(this.showLoading(),this.detailWish({this:this,method:this.detailWish,data:{wishId:this.$route.query.wishId}})))},components:{backHome:d.a},methods:o()({},Object(u.b)(["detailWish","addressDetail","addItemToShoppingCart"]),{helpFr:function(t){this.showLoading();var e=this.detail.products.map(function(t){return t.price}),s=this.detail.products.map(function(t){return t.productId}),i=this.detail.products.map(function(t){return 1});if(1==e.length){var a={add_product_id:s.join(),quantity:i.join(),price:e.join(),cartType:"buyCart"};this.addItemToShoppingCart({data:a,this:this,n:1})}else{var r={productIds:s.join(),productNums:i.join(),productPrices:e.join(),cartType:"buyCart"};this.addItemToShoppingCart({data:r,this:this})}},seeOrder:function(){this.$router.push("/myOrder")},goTo:function(){this.hideLoading();c.a.miniProgram.navigateTo({url:"/pages/sureorder/index?orderType=wishCart&cartType=buyCart&wishId="+this.$route.query.wishId+"&adressId="+this.detail.contactMechId+"&hideGift=Y"})},copy:function(t){this.addressDetail({this:this,data:{contactMechId:t.contactMechId}}),this.detail=a()({},t)},coprData:function(t){t.countyName=t.countyName||"",t.cityName=t.cityName||"",t.provinceName=t.provinceName||"",t.ssq=t.provinceName+" "+t.cityName+" "+t.countyName,this.adress=a()({},t)}})}),h={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.detail.status?s("div",[s("div",{staticClass:"bf de1 flexbox centerx centery fred"},["WISH_WAIT_ACHIEVE"==t.detail.status?[s("i",{staticClass:"iconfont"},[t._v("")]),s("span",{staticClass:"bold"},[t._v("待实现")])]:t._e(),t._v(" "),"WISH_HAS_ACHIEVE"==t.detail.status?[s("i",{staticClass:"iconfont"},[t._v("")]),s("span",{staticClass:"bold"},[t._v("已实现")])]:t._e()],2),t._v(" "),s("div",{staticClass:"sec2 bf"},[t.detail.products.length>1?s("div",{staticClass:"flexbox boxwrap fx"},t._l(t.detail.products,function(e){return s("div",{key:e.productId,staticClass:"flexbox flexdr "},[s("div",{staticClass:"imgDIV"},[s("img",{attrs:{src:e.imgUrl,alt:""}})]),t._v(" "),s("p",{staticClass:"line2"},[t._v(t._s(e.productName))])])})):t._l(t.detail.products,function(e){return s("div",{key:e.productId,staticClass:"flexbox imgvv"},[s("div",{staticClass:"imgv"},[s("img",{attrs:{src:e.imgUrl,alt:""}})]),t._v(" "),s("div",[s("p",{staticClass:"line2"},[t._v(t._s(e.productName))]),t._v(" "),s("p",{staticClass:"price"},[s("span",[t._v("￥"+t._s(e.price))]),s("span",[t._v(t._s(e.marketPrice))])])])])}),t._v(" "),s("div",{staticClass:"myu flexbox centerx"},[s("span",[t._v("共"+t._s(t.detail.products.length)+"件，总金额")]),t._v(" "),s("span",{staticClass:"money bold"},[t._v("  ￥"+t._s(t.detail.sumPrice))])])],2),t._v(" "),s("div",{staticClass:"flexbox adres centerx justifyx"},[s("div",[s("p",{staticClass:"bold"},[s("span",[t._v("收货人:"+t._s(t.adress.postalAddressData.attnName))]),s("span",[t._v(t._s(t.adress.postalAddressData.mobilePhone))])]),t._v(" "),s("div",{staticClass:"flexbox"},[s("i",{staticClass:"iconfont"},[t._v("")]),t._v(" "),s("p",[t._v(t._s(t.adress.ssq+t.adress.postalAddressData.address1))])])])]),t._v(" "),s("div",{staticClass:"bf flexbox flexdr ban centery centerx"},[t.$route.query.mine||"WISH_WAIT_ACHIEVE"!=t.detail.status?t._e():s("button",{staticClass:"btnn",on:{click:function(e){t.helpFr(t.detail)}}},[t._v("帮好友实现心愿")]),t._v(" "),"WISH_HAS_ACHIEVE"==t.detail.status&&"Y"==t.detail.isBuyOwn?s("button",{staticClass:"btnn",on:{click:function(e){e.stopPropagation(),t.seeOrder(e)}}},[t._v("查看订单")]):t._e()]),t._v(" "),"share"==t.$route.query.csi?s("back-home"):t._e()],1):t._e()},staticRenderFns:[]};var p=s("VU/8")(l,h,!1,function(t){s("u2aV"),s("ZtEl")},"data-v-4af7f9d5",null);e.default=p.exports},u2aV:function(t,e){}});
  //# sourceMappingURL=15.3b8e947944108bfda9c2.js.map