pages-GiftPackage-EvaluateGift.02e0f9af.js 16.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-GiftPackage-EvaluateGift"],{"15d0":function(t,e,i){"use strict";i.r(e);var a=i("7568"),o=i("1d95");for(var n in o)"default"!==n&&function(t){i.d(e,t,function(){return o[t]})}(n);i("6525");var s,r=i("f0c5"),d=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"50954866",null,!1,a["a"],s);e["default"]=d.exports},"1d95":function(t,e,i){"use strict";i.r(e);var a=i("7a85"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,function(){return a[t]})}(n);e["default"]=o.a},"42e2":function(t,e,i){var a=i("d3e8");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("ba150b46",a,!0,{sourceMap:!1,shadowMode:!1})},6525:function(t,e,i){"use strict";var a=i("42e2"),o=i.n(a);o.a},7568: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",[i("v-uni-view",{staticClass:"image_box"},[i("v-uni-image",{attrs:{src:t.$GetInfo.imgHttp+"/miniapp/images/giftbag/eval00.png"}})],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.itemShows()?i("v-uni-view",[i("v-uni-image",{staticStyle:{width:"10px",height:"47px",float:"left",top:"-38px",left:"55px"},attrs:{src:this.$GetInfo.imgHttp+"/miniapp/images/giftbag/eval01.png"}}),i("v-uni-image",{staticStyle:{width:"10px",height:"47px",float:"right",top:"-38px",right:"55px"},attrs:{src:this.$GetInfo.imgHttp+"/miniapp/images/giftbag/eval01.png"}})],1):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.cardShows()?i("v-uni-view",[i("v-uni-view",[i("v-uni-image",{staticStyle:{width:"10px",height:"47px",float:"left",top:"-38px",left:"55px"},attrs:{src:this.$GetInfo.imgHttp+"/miniapp/images/giftbag/eval01.png"}}),i("v-uni-image",{staticStyle:{width:"10px",height:"47px",float:"right",top:"-38px",right:"55px"},attrs:{src:this.$GetInfo.imgHttp+"/miniapp/images/giftbag/eval01.png"}})],1)],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})},"7a85":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a481");var a={data:function(){return{itemShow:!1,cardShow:!1,packShow:!1,textShow:!1,integralShow:!0,growUpShow:!0,itemButton:"",cardButton:"",getActId:"",getActType:"",giftID:"",getUserID:"",getStorageID:"",getOrderType:"",getOrderNumber:"",getOrderGoodsId:"",receiveState:"一键全部领取",integralTitle:"已领取",growUpTitle:"已领取",textTitle:"",getUrl:"",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){this.getActId=t.actId,this.getActType=t.actType,this.giftID=t.giftBagId,this.getStorageID=t.storeId,this.getUserID=t.userId,this.getOrderType=t.orderType,this.getOrderNumber=t.orderNumber,this.getOrderGoodsId=t.orderGoodsId,this.GetList()},onShow:function(){this.textTitle=this.textTitle.replace(/<p><img/gi,"<p class='img'><img")},methods:{GetList:function(){var t=this;uni.showLoading({title:"加载中",mask:!0}),uni.request({url:this.$GetInfo.ApiHttp+"/api/weshop/marketing/giftbag/bound/get",data:{actId:this.getActId,actType:this.getActType,giftBagId:this.giftID,storeId:this.getStorageID,userId:this.getUserID,orderType:this.getOrderType,orderNumber:this.getOrderNumber,orderGoodsId:this.getOrderGoodsId},method:"GET",header:{"Content-Type":"application/x-www-form-urlencoded"},success:function(e){console.log(e.data),0==e.data.code?(e.data.data.lbCoupons.length>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,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:"2",giftBagId:t.giftID,storeId:t.getStorageID,userId:t.getUserID,orderType:this.getOrderType,orderNumber:this.getOrderNumber,orderGoodsId:this.getOrderGoodsId},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},d3e8:function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,'@charset "UTF-8";\n/*引用样式路径*/\n/* Author XGQ\r\n * 2019-10-27\r\n */.image_box[data-v-50954866]{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.image_box uni-image[data-v-50954866]{width:100%;height:%?690?%}.top[data-v-50954866]{margin:%?-20?% %?28?% %?45?% %?28?%;padding:%?10?% %?10?% %?70?% %?10?%;background-color:#fff;border-radius:%?0?% %?0?% %?15?% %?15?%}.top_box[data-v-50954866]{display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.top_box_text[data-v-50954866]{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;margin:%?50?% %?15?% %?20?% %?15?%}.top_box_text uni-text[data-v-50954866]{color:#5b98f5;font-size:%?40?%}.top_item[data-v-50954866]{display:-webkit-box;display:-webkit-flex;display:flex;width:100%;margin:%?60?% 0 0 0}.top_item_img[data-v-50954866]{float:left;width:28%;margin:%?0?% %?10?% %?0?% %?20?%}.top_item_img uni-image[data-v-50954866]{width:%?150?%;height:%?150?%;border-radius:50%;border:#f96865 solid %?3?%}.top_item_center[data-v-50954866]{float:left;width:64%}.top_item_center_title[data-v-50954866]{font-size:%?35?%;color:#5b98f5;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:0 %?10?% %?10?% %?0?%;word-break:break-all;\r\n\t/*属性规定自动换行的处理方法。normal(使用浏览器默认的换行规则。),break-all(允许在单词内换行。),keep-all(只能在半角空格或连字符处换行。)*/text-overflow:ellipsis;display:-webkit-box;\r\n\t/** 对象作为伸缩盒子模型显示 **/-webkit-box-orient:vertical;\r\n\t/** 设置或检索伸缩盒对象的子元素的排列方式 **/-webkit-line-clamp:2;\r\n\t/** 显示的行数 **/overflow:hidden\r\n\t/** 隐藏超出的内容 **/}.top_item_center_ramke[data-v-50954866]{font-size:%?25?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;line-height:%?35?%;letter-spacing:%?0.5?%;word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.top_item_number[data-v-50954866]{float:right;font-size:%?25?%;color:#5d93f5;padding-right:%?10?%}.top_card[data-v-50954866]{width:calc(50% - %?30?%);display:inline-block;margin:%?15?%}.top_card_box[data-v-50954866]{background-size:cover;background-position:50%;background-repeat:no-repeat;border-radius:%?20?%;height:%?250?%;margin:%?5?%}.img1[data-v-50954866]{background-image:url(https://mshopimg.yolipai.net/miniapp/images/giftbag/vip01.png)}.img2[data-v-50954866]{background-image:url(https://mshopimg.yolipai.net/miniapp/images/giftbag/vip02.png)}.img3[data-v-50954866]{background-image:url(https://mshopimg.yolipai.net/miniapp/images/giftbag/vip03.png)}.top_card_tite_box[data-v-50954866]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.top_card_tite_a[data-v-50954866]{padding:%?5?% %?25?% %?5?% %?25?%;line-height:%?29?%;font-size:%?25?%;color:#fff;background:#ffa7c0;border-radius:%?0?% %?20?% %?0?% %?6?%}.top_card_tite_b[data-v-50954866]{padding:%?5?% %?25?% %?5?% %?25?%;line-height:%?29?%;font-size:%?25?%;color:#fff;background:#50dfdb;border-radius:%?0?% %?20?% %?0?% %?6?%}.top_card_tite_c[data-v-50954866]{padding:%?5?% %?25?% %?5?% %?25?%;line-height:%?29?%;font-size:%?25?%;color:#fff;background:#92cbff;border-radius:%?0?% %?20?% %?0?% %?6?%}.top_card_tite_d[data-v-50954866]{padding:%?5?% %?25?% %?5?% %?25?%;line-height:%?29?%;font-size:%?25?%;color:#fff;border-radius:%?0?% %?20?% %?0?% %?6?%}.top_card_counte[data-v-50954866]{padding:%?30?% %?20?% 0 0;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.top_card_counte uni-text[data-v-50954866]{color:#fff;font-size:%?40?%;line-height:%?60?%}.top_card_remak[data-v-50954866]{padding:%?5?% 0 %?20?% 0;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.top_card_remak uni-text[data-v-50954866]{font-size:%?20?%;color:#fff;line-height:%?35?%}.top_card_number[data-v-50954866]{padding:%?5?% 0 %?40?% 0;text-align:center;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.top_card_number uni-text[data-v-50954866]{font-size:%?20?%;color:#fff;line-height:%?25?%}.top_box_image[data-v-50954866]{padding:%?20?% %?20?% %?20?% %?20?%}.top_box_image uni-image[data-v-50954866]{height:%?216?%;width:100%}.top_box_image uni-button[data-v-50954866]{margin:%?15?% %?95?% %?0?% %?95?%;background:#5d93f5;border-radius:%?50?%;line-height:%?60?%;height:%?60?%;color:#fff;font-size:%?30?%}.foot_box[data-v-50954866]{margin:0 %?30?% %?40?% %?30?%;background:#fff;border-radius:%?20?%}.foot_box_title[data-v-50954866]{font-size:%?43?%;color:#000;padding:%?20?% %?30?% %?20?% %?30?%}.foot_box_text[data-v-50954866]{font-size:%?30?%;color:#000;line-height:%?48?%;padding:%?20?% %?35?% %?50?% %?30?%}.button_box[data-v-50954866]{margin:%?50?% %?50?% %?50?% %?50?%;text-align:center}.button[data-v-50954866]{margin:0 %?30?%;background:#6d9ef6;border-radius:%?50?%;line-height:%?80?%;height:%?80?%;color:#fff;font-size:%?35?%}.button_text[data-v-50954866]{padding-top:%?20?%;font-size:%?20?%;color:#fff;height:%?100?%}.foot_empty[data-v-50954866]{height:%?90?%}.foot_button[data-v-50954866]{display:-webkit-box;display:-webkit-flex;display:flex;margin:%?20?% %?0?% %?0?% %?0?%;padding:%?25?% %?0?%;background:#fff;text-align:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;position:fixed;bottom:0;left:0;width:100%}.foot_button_buy[data-v-50954866]{background:#5d93f5;color:#fff;width:%?400?%;height:%?70?%;font-size:%?28?%;line-height:%?70?%;border-radius:%?30?% %?30?% %?30?% %?30?%}.foot_button_notbuy[data-v-50954866]{background:#999;color:#fff;width:%?400?%;height:%?70?%;font-size:%?28?%;line-height:%?70?%;border-radius:%?30?% %?30?% %?30?% %?30?%}uni-page-body[data-v-50954866]{background-color:#4784ef}uni-button[data-v-50954866]:after{border:none}.foot_box_text[data-v-50954866] img{width:100%}.foot_box_text[data-v-50954866] .img{line-height:0}body.?%PAGE?%[data-v-50954866]{background-color:#4784ef}',""])}}]);