require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/receive_gift/index"],{"122d":function(t,e,i){"use strict";i.r(e);var n=i("1d4d"),a=i("13e7");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("e4ee");var o=i("828b"),d=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"406743ef",null,!1,n["a"],void 0);e["default"]=d.exports},"13b6":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var a=n(i("122d"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"13e7":function(t,e,i){"use strict";i.r(e);var n=i("c598"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"1d4d":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.cartInfo.length),n=i>1?t.cartInfo.length:null;t._isMounted||(t.e0=function(e){t.showDrawer=!0},t.e1=function(){t.showDrawer=!1},t.e2=function(e){t.showDrawer=!1}),t.$mp.data=Object.assign({},{$root:{g0:i,g1:n}})},a=[]},4693:function(t,e,i){},c598:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("606e"),a=i("5088"),r=i("8f59"),o=getApp(),d={computed:(0,r.mapGetters)(["isLogin"]),data:function(){return{order_id:"",giftStatus:0,refund_status:0,gift_mark:"",image:"",store_name:"",nickname:"",giftStatusText:"",o_id:0,showDrawer:!1,cartInfo:[]}},props:{},watch:{isLogin:{handler:function(t,e){t&&this.getOrderInfo()},deep:!0}},onLoad:function(t){if(this.isLogin){if(this.order_id=t.id,t.scene){var e=this.$util.getUrlParams(decodeURIComponent(t.scene));e.order_id&&(t.id=e.id),e.pid&&(o.globalData.spid=e.pid)}this.getOrderInfo()}else(0,a.toLogin)()},methods:{goGetGift:function(){2==this.giftStatus?t.reLaunch({url:"/pages/goods/order_details/index?order_id=".concat(this.o_id)}):t.reLaunch({url:"/pages/goods/order_confirm/index?order_id=".concat(this.order_id,"&is_send_gift=2")})},getOrderInfo:function(){var t=this;(0,n.getSendGiftOrderDetail)(this.order_id).then((function(e){if(t.cartInfo=e.data.cartInfo,t.gift_uid=e.data.receive_gift_uid,t.gift_mark=e.data.send_gift_mark,t.nickname=e.data.nickname,t.refund_status=e.data.refund_status,t.image=e.data.cartInfo[0].productInfo.image,t.store_name=e.data.cartInfo[0].productInfo.store_name,t.o_id=e.data.order_id,!e.data.receive_gift_time_valid)return t.giftStatus=4,void(t.giftStatusText="礼物已失效");0===t.gift_uid?(t.giftStatus=1,t.giftStatusText="收下礼物"):t.gift_uid===t.$store.state.app.uid?(t.giftStatus=2,t.giftStatusText="查看礼物"):t.gift_uid!==t.uid&&(t.giftStatus=3)}))}}};e.default=d}).call(this,i("df3c")["default"])},e4ee:function(t,e,i){"use strict";var n=i("4693"),a=i.n(n);a.a}},[["13b6","common/runtime","common/vendor"]]]);