(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-GiftPackage-HolidayGift"],{"03cc":function(t,e,i){"use strict";var a,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"image_box",style:"background-color:"+t.actBgColor},[i("v-uni-view",{staticClass:"image_box"},[""==t.getlbUrl?i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/holiday00.jpg"}}):i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+t.getlbUrl}})],1),this.itemShow?i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"top_box"},[i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("______")])],1),i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("节日专享\\n你的美丽我来缔造")])],1),i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("______")])],1)],1),t._l(t.itemWare,function(e,a){return i("v-uni-view",{key:a,staticClass:"top_item"},[3==e.lbType?i("v-uni-view",{staticClass:"top_item_img"},[i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/gift02.png"}})],1):t._e(),1==e.lbType?i("v-uni-view",{staticClass:"top_item_img"},[i("v-uni-image",{attrs:{src:""==e.fromImage?t.$GetInfo.imgHttp+"/miniapp/images/giftbag/empty.jpg":t.$GetInfo.imgHttp+e.fromImage}})],1):t._e(),i("v-uni-view",{staticClass:"top_item_center"},[i("v-uni-view",{staticClass:"top_item_center_title"},[1==e.lbType?i("v-uni-text",[t._v("免费领取")]):t._e(),3==e.lbType?i("v-uni-text",[t._v(t._s(e.fromName))]):t._e()],1),i("v-uni-view",{staticClass:"top_item_center_ramke"},[1==e.lbType?i("v-uni-text",[t._v(t._s(e.fromName))]):t._e(),3==e.lbType?i("v-uni-text",[t._v("节日可免费享受专业"+t._s(e.fromName)+",可以享受"+t._s(e.num)+"次。")]):t._e()],1),i("v-uni-view",{staticClass:"top_item_number"},[i("v-uni-text",[t._v("数量:"+t._s(e.num))])],1)],1)],1)})],2):t._e(),this.cardShow?i("v-uni-view",[i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"top_box"},[i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("———")])],1),i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("节日专享优惠券")])],1),i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("———")])],1)],1),t._l(t.cards,function(e,a){return i("v-uni-view",{key:a,staticClass:"top_card"},[i("v-uni-view",{class:1==e.useObjectType?"top_card_box img1":2==e.useObjectType?"top_card_box img2":"top_card_box img3"},[i("v-uni-view",{staticClass:"top_card_tite_box"},[0==e.useObjectType||null==e.useObjectType?i("v-uni-view",{staticClass:"top_card_tite_a"},[t._v("全场通用")]):t._e(),1==e.useObjectType?i("v-uni-view",{staticClass:"top_card_tite_b"},[t._v("品牌限定")]):t._e(),2==e.useObjectType?i("v-uni-view",{staticClass:"top_card_tite_c"},[t._v("品类限定")]):t._e(),11==e.useObjectType?i("v-uni-view",{staticClass:"top_card_tite_a"},[t._v("用途限定")]):t._e(),12==e.useObjectType?i("v-uni-view",{staticClass:"top_card_tite_a"},[t._v("分类1限定")]):t._e()],1),"1"!=e.isPack||null==e.isPack?i("v-uni-view",{staticClass:"top_card_counte"},[i("v-uni-text",[t._v(t._s(e.sum)+"元券")])],1):t._e(),"1"==e.isPack?i("v-uni-view",{staticClass:"top_card_counte"},[i("v-uni-text",[t._v("包邮券")])],1):t._e(),i("v-uni-view",{staticClass:"top_card_remak"},[0==e.buySum||null==e.buySum?i("v-uni-text",[t._v("满0元可以用")]):t._e(),e.buySum>0?i("v-uni-text",[t._v("满"+t._s(e.buySum)+"元可以用")]):t._e()],1),i("v-uni-view",{staticClass:"top_card_number"},[i("v-uni-text",[t._v("数量:"+t._s(e.num))])],1)],1)],1)})],2)],1):t._e(),this.packShow?i("v-uni-view",[i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"top_box"},[i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("———")])],1),i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("节日专享福利")])],1),i("v-uni-view",{staticClass:"top_box_text"},[i("v-uni-text",[t._v("———")])],1)],1),this.integralShow?i("v-uni-view",[i("v-uni-view",{staticClass:"top_box_image"},[i("v-uni-image",{attrs:{src:this.$GetInfo.imgHttp+"/miniapp/images/giftbag/integral.png"}}),i("v-uni-button",[t._v(t._s(this.integralTitle))])],1)],1):t._e(),this.growUpShow?i("v-uni-view",[i("v-uni-view",{staticClass:"top_box_image"},[i("v-uni-image",{attrs:{src:this.$GetInfo.imgHttp+"/miniapp/images/giftbag/growup.png"}}),i("v-uni-button",[t._v(t._s(this.growUpTitle))])],1)],1):t._e()],1)],1):t._e(),this.textShow?i("v-uni-view",{staticClass:"foot_box"},[i("v-uni-view",{staticClass:"foot_box_title"},[i("v-uni-text",[t._v("活动规则:")])],1),i("v-uni-view",{staticClass:"foot_box_text",domProps:{innerHTML:t._s(this.textTitle)}})],1):t._e(),i("v-uni-view",{staticClass:"button_box"},[i("v-uni-view",[i("v-uni-button",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetWebHttp.apply(void 0,arguments)}}},[t._v("进入商城购物")])],1),i("v-uni-view",{staticClass:"button_text"},[i("v-uni-text",[t._v("本活动最终解释权归公司所有,如果有问题请联系客服")])],1)],1),i("v-uni-view",{staticClass:"foot_empty"}),i("v-uni-view",{staticClass:"foot_button"},[i("v-uni-view",{class:"已领取"==this.receiveState?"foot_button_notbuy":"foot_button_buy"},[i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.GetReceive.apply(void 0,arguments)}}},[t._v(t._s(this.receiveState))])],1)],1)],1)},n=[];i.d(e,"b",function(){return o}),i.d(e,"c",function(){return n}),i.d(e,"a",function(){return a})},1284:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a481");i("202d");var a={data:function(){return{itemShow:!1,cardShow:!1,packShow:!1,textShow:!1,integralShow:!0,growUpShow:!0,itemButton:"",cardButton:"",getActId:"",getActType:"",giftID:"",getUserID:"",getStorageID:"",receiveState:"一键全部领取",integralTitle:"已领取",growUpTitle:"已领取",textTitle:"",getUrl:"",getlbUrl:"",actFontColor:"",actBgColor:"",noShow:!1,itemShows:function(){return this.itemShow?!!this.cardShow:(this.cardShow,!1)},cardShows:function(){return this.cardShow?!!this.packShow:(this.packShow,!1)},cards:[],itemWare:[]}},onLoad:function(t){document.addEventListener("WeixinJSBridgeReady",function(){WeixinJSBridge.call("hideOptionMenu")}),this.getActId=t.actId,this.getActType=t.actType,this.getStorageID=t.storeId,this.getUserID=$cookies.get("user_id"),""!=this.getUserID&&void 0!=this.getUserID&&null!=this.getUserID&&this.getUserID&&"undefined"!=this.getUserID?(this.GetBy(),this.GetList()):window.location.href=this.$GetInfo.HtmlHttp+"/mobile/userhelp/user_login/stoid/"+this.getStorageID+"/url/"+encodeURIComponent("GiftPackage/HolidayGift?actId="+this.getActId+"&actType="+this.getActType+"&storeId="+this.getStorageID)},onShow:function(){this.textTitle=this.textTitle.replace(/
0&&(t.cardShow=!0,t.cards=e.data.data.lbCoupons),e.data.data.lbSM.length>0&&(t.itemShow=!0,t.itemWare=e.data.data.lbSM),e.data.data.lbIntegral<=0?e.data.data.lbGrowthValue<=0?t.packShow=!1:(t.packShow=!0,t.integralShow=!1,t.growUpShow=!0):e.data.data.lbGrowthValue>0?t.packShow=!0:(t.packShow=!0,t.integralShow=!0,t.growUpShow=!1),t.integralTitle="价值"+e.data.data.lbIntegral+"积分",t.growUpTitle="价值"+e.data.data.lbGrowthValue+"成长值",0==e.data.data.receiveState?t.receiveState="一键全部领取":t.receiveState="已领取",""!=e.data.data.actIntro&&(t.textShow=!0,console.log(e.data.data.actIntro),t.textTitle=e.data.data.actIntro)):(console.log(e.data.msg),uni.showToast({icon:"none",title:e.data.msg})),uni.hideLoading()},fail:function(t){uni.showToast({icon:"none",title:"网络繁忙,请重试!"}),uni.hideLoading()}})},GetWebHttp:function(){this.getUrl=this.$GetInfo.HtmlHttp+"/mobile/index/index/stoid/"+this.getStorageID+".html",window.location.href=this.getUrl},GetReceive:function(){var t=this;if("已领取"==t.receiveState)return!1;uni.showLoading({title:"加载中",mask:!0}),uni.request({url:t.$GetInfo.ApiHttp+"/api/weshop/marketing/free/receive/gift/record/insert",data:{actId:t.getActId,actType:"3",giftBagId:t.giftID,storeId:t.getStorageID,userId:t.getUserID},method:"POST",header:{"Content-Type":"application/json"},success:function(e){console.log(e.data),0==e.data.code?(console.log(e.data.msg),t.receiveState="已领取",uni.showToast({icon:"none",title:"领取成功!"})):(console.log(e.data.msg),uni.showToast({icon:"none",title:e.data.msg})),uni.hideLoading()},fail:function(t){uni.showToast({icon:"none",title:"网络繁忙,请重试!"}),uni.hideLoading()}})}}};e.default=a},"1a19":function(t,e,i){"use strict";var a=i("41ef"),o=i.n(a);o.a},"202d":function(t,e,i){"use strict";var a=i("288e");i("28a5"),i("c5f6");var o=a(i("f499"));i("3b2b"),i("a481"),function(){var e={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:""},i={install:function(t){t.prototype.$cookies=this,t.$cookies=this},config:function(t,i,a,o,n){e.expires=t||"1d",e.path=i?"; path="+i:"; path=/",e.domain=a?"; domain="+a:"",e.secure=o?"; Secure":"",e.sameSite=n?"; SameSite="+n:""},get:function(t){var e=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(e&&"{"===e.substring(0,1)&&"}"===e.substring(e.length-1,e.length))try{e=JSON.parse(e)}catch(i){return e}return e},set:function(t,i,a,n,s,r,c){if(!t)throw new Error("Cookie name is not find in first argument.");if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(t))throw new Error("Cookie key name illegality, Cannot be set to ['expires','max-age','path','domain','secure','SameSite']\t current key name: "+t);i&&i.constructor===Object&&(i=(0,o.default)(i));var d="";if(a=void 0===a?e.expires:a,a&&0!=a)switch(a.constructor){case Number:d=a===1/0||-1===a?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+a;break;case String:if(/^(?:\d{1,}(y|m|d|h|min|s))$/i.test(a)){var u=a.replace(/^(\d{1,})(?:y|m|d|h|min|s)$/i,"$1");switch(a.replace(/^(?:\d{1,})(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":d="; max-age="+2592e3*+u;break;case"d":d="; max-age="+86400*+u;break;case"h":d="; max-age="+3600*+u;break;case"min":d="; max-age="+60*+u;break;case"s":d="; max-age="+u;break;case"y":d="; max-age="+31104e3*+u;break;default:new Error("unknown exception of 'set operation'")}}else d="; expires="+a;break;case Date:d="; expires="+a.toUTCString();break}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(i)+d+(s?"; domain="+s:e.domain)+(n?"; path="+n:e.path)+(void 0===r?e.secure:r?"; Secure":"")+(void 0===c?e.sameSite:c?"; SameSite="+c:""),this},remove:function(t,i,a){return!(!t||!this.isKey(t))&&(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; domain="+a:e.domain)+(i?"; path="+i:e.path),this)},isKey:function(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=0;e