(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-MyGiftPack-GiftPackList"],{"0fc0":function(t,e,i){var o=i("6cc8");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("4f06").default;a("df94c990",o,!0,{sourceMap:!1,shadowMode:!1})},1735:function(t,e,i){"use strict";var o=i("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a481");var a=o(i("312c")),n=(i("202d"),{components:{uniFab:a.default},data:function(){return{getDate:(new Date).getTime(),isBuy:0,getGiftID:"",giftImage:"",giftTitle:"",giftDate:"",giftstarTime:"",giftPrice:"",giftIntegral:"",giftPosPrice:"",giftQty:"",giftRemark:"",giftType:"",actTitle:"",getUrl:"",giftState:"",wareCard:[],horizontal:"right",vertical:"bottom",direction:"horizontal",pattern:{color:"#ffffff",backgroundColor:"#000000",selectedColor:"#FF0000",buttonColor:"#000000"},content:[{text:"首页",active:!1},{text:"礼包",active:!1},{text:"我的",active:!1}]}},onLoad:function(t){this.isBuy=t.isBuy,this.getStorageID=t.stoid,this.getGiftID=t.id,this.getUserID=$cookies.get("user_id"),""==this.getUserID&&(window.location.href=this.$GetInfo.HtmlHttp+"/mobile/userhelp/user_login/stoid/"+this.getStorageID+"/url/"+encodeURIComponent("/MyGiftPack/GiftPackList?isBuy="+this.isBuy+"&stoid="+this.getStorageID+"&id="+this.getGiftID)),document.addEventListener("WeixinJSBridgeReady",function(){WeixinJSBridge.call("hideOptionMenu")}),console.log(this.isBuy+"||"+this.getStorageID+"||"+this.getUserID+"||"+this.getGiftID)},onShow:function(){0==this.isBuy?this.GetMyGiftList():this.GetBuyGiftList(),this.giftRemark=this.giftRemark.replace(/
0?i("v-uni-text",[t._v("¥"+t._s(this.giftPrice))]):t._e(),this.giftPrice>0&&this.giftIntegral>0?i("v-uni-text",[t._v("/")]):t._e(),this.giftIntegral>0?i("v-uni-text",[t._v(t._s(this.giftIntegral)+"积分")]):t._e(),this.giftType>0?i("v-uni-text",[t._v(t._s(this.actTitle))]):t._e()],1),i("v-uni-view",{staticClass:"top_foot"},[i("v-uni-view",{staticClass:"top_foot_price"},[i("v-uni-text",[t._v("原价:"+t._s(this.giftPosPrice)+"元")])],1),i("v-uni-view",{staticClass:"top_foot_qty"},[this.giftType>0?i("v-uni-text",[t._v("已领:"+t._s(this.giftQty)+"件")]):t._e(),this.giftType<=0?i("v-uni-text",[t._v("已售:"+t._s(this.giftQty)+"件")]):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"box_ware"},[i("v-uni-view",{staticClass:"box_ware_title"},[i("v-uni-text",[t._v("礼包内容")])],1),t._l(t.wareCard,function(e,o){return i("v-uni-view",{key:o,staticClass:"box_ware_box"},[i("v-uni-view",{staticClass:"box_ware_img"},[1==e.lbType?i("v-uni-image",{attrs:{src:""==e.wareImage?t.$GetInfo.imgHttp+"/miniapp/images/giftbag/empty.jpg":t.$GetInfo.imgHttp+e.wareImage}}):t._e(),2==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift05.png"}}):t._e(),3==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift02.png"}}):t._e(),4==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift03.png"}}):t._e(),5==e.lbType?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift04.png"}}):t._e()],1),i("v-uni-view",{staticClass:"box_ware_item"},[i("v-uni-view",{staticClass:"box_ware_item_title"},[i("v-uni-text",[t._v(t._s(e.couponName))])],1),i("v-uni-view",{staticClass:"box_ware_item_price"},[i("v-uni-text")],1),i("v-uni-view",{staticClass:"box_ware_item_qty"},[i("v-uni-text",[t._v("数量:"+t._s(e.num))])],1),i("v-uni-view",{staticClass:"box_ware_code"},[0==t.isBuy&1==e.lbType&t.getDate>=t.DateToTime(t.giftstarTime.replace(/-/g,"/"))&t.getDate<=t.DateToTime(t.giftDate.replace(/-/g,"/"))?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift06.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetQrCode.apply(void 0,arguments)}}}):t._e(),0==t.isBuy&1==e.lbType&(t.getDate