1 line
6.7 KiB
JavaScript
1 line
6.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-225cfc3d"],{"58c5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"coupon_share_code"}},[a("c-title",{attrs:{hide:!1,text:"优惠券分享"}}),a("div",{staticClass:"box"},[a("div",{staticClass:"shareBox"}),a("div",{staticClass:"shareBox_two"}),a("div",{staticClass:"centenBox"},[a("div",{staticClass:"image"},[a("img",{attrs:{src:e.item.logo,alt:""}})]),a("div",{staticClass:"couponName",style:{fontSize:e.fontsize}},[e._v(e._s(e.item.name))]),e.item.discount?a("div",{staticClass:"money"},[a("span",{style:{fontSize:e.getStr(e.item.discount)}},[e._v(e._s(e.item.discount))])]):e._e(),a("span",{staticStyle:{"margin-top":"2rem","font-size":"1.18rem",color:"#fff","line-height":"1.09rem"}},[e._v("满"+e._s(e.item.enough)+"可用")]),a("div",{staticClass:"timeMin"},[a("div",{staticStyle:{"margin-bottom":"0.66rem"}},[e._v("有效期:"+e._s(e.item.start)+"-"+e._s(e.item.end))]),a("div",[e._v("券张数:"+e._s(e.item.num)+"张")])])]),a("div",{staticClass:"getCoupon",on:{click:e.tapGet}},[e._v("立即领取")])]),e.showShare?a("div",{staticClass:"play-video",staticStyle:{"z-index":"9999"},on:{click:e.close}},[a("img",{attrs:{src:i("8c6f"),alt:""}})]):e._e(),a("van-popup",{staticClass:"newcomerAward_popup",style:{height:"20rem"},attrs:{round:""},model:{value:e.getSucceed,callback:function(t){e.getSucceed=t},expression:"getSucceed"}},[a("img",{staticStyle:{width:"15.6rem",height:"18rem"},attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/coupons_successbg@2x.png",alt:""}}),a("div",{staticClass:"getsucceed_text"},[a("div",{staticClass:"lines",on:{click:e.goMyCoupon}},[e._v("我的优惠券")]),a("div",{on:{click:e.goConponCenter}},[e._v("领券中心")])])])],1)},o=[],r=(i("e7e5"),i("d399")),n=(i("14d9"),i("b0c0"),i("1913"),i("6968")),s={data:function(){return{result:["a"],showShare:!1,item:"",mark_id:"",getSucceed:!1}},methods:{getStr:function(e){return e.length>=6?"2.24rem":"4.24rem"},goConponCenter:function(){this.$router.push(this.fun.getUrl("couponStore",{info:this.info}))},goMyCoupon:function(){this.$router.push(this.fun.getUrl("coupon",{}))},close:function(){this.showShare=!1},shareVideo:function(){this.showShare=!0},getData:function(){var e=this,t=this;$http.post("plugin.share-coupons.Frontend.controllers.share.index",{mark_id:t.mark_id}).then((function(t){1===t.result?(e.item=t.data,e.item.name.length>=12?e.fontsize="0.8rem":e.fontsize="1.41rem"):(e.$toast(t.msg),e.fun.isTextEmpty(t.data)||"1"==t.data.used&&(Object(r["a"])("优惠券已被领取完"),e.$router.push(e.fun.getUrl("coupon",{}))))}),(function(e){}))},tapGet:function(){var e=this,t=this;$http.post("plugin.share-coupons.Frontend.controllers.share.handle",{mark_id:t.mark_id}).then((function(t){1===t.result?e.getSucceed=!0:e.$dialog.alert({message:t.msg})}),(function(e){}))}},activated:function(){this.mark_id=this.$route.query.mark_id,this.getData()},mounted:function(){},components:{cTitle:n["a"]}},d=s,c=d,l=(i("9590"),i("2877")),m=Object(l["a"])(c,a,o,!1,null,"66ab2d10",null);t["default"]=m.exports},"8c6f":function(e,t,i){e.exports=i.p+"static/app/img/share_bg.2759990d.png"},9590:function(e,t,i){"use strict";i("a1a6")},a1a6:function(e,t,i){var a=i("d79a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("77ebca71",a,!0,{sourceMap:!1,shadowMode:!1})},d79a:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,'.newcomerAward_popup[data-v-66ab2d10]{background-color:transparent}.getsucceed_text[data-v-66ab2d10]{position:absolute;bottom:3rem;left:0;width:100%;color:#000;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.getsucceed_text .lines[data-v-66ab2d10]{border-right:1px solid #000}.getsucceed_text div[data-v-66ab2d10]{font-size:12px;padding-left:.5rem;padding-right:.5rem}.box[data-v-66ab2d10]{height:100vh;position:relative;background:#fff}.play-video[data-v-66ab2d10]{position:absolute;z-index:9;top:0;width:100%;height:100%;left:0}.shareBoxBtn[data-v-66ab2d10]{position:absolute;top:33rem;left:6.19rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.shareBoxBtn .share[data-v-66ab2d10]{width:3.84rem;height:3.84rem;background-color:#fecf41;border-radius:50%;text-align:center;line-height:3.84rem;margin-right:3.97rem}.shareBoxBtn .share i[data-v-66ab2d10]{font-size:2rem;color:#fff}.shareBoxBtn .poster[data-v-66ab2d10]{width:3.84rem;height:3.84rem;background-color:#51c6e3;border-radius:50%;text-align:center;line-height:3.84rem;margin-right:3.97rem}.shareBoxBtn .poster i[data-v-66ab2d10]{font-size:2rem;color:#fff}.getCoupon[data-v-66ab2d10]{position:absolute;top:33.53rem;left:7.19rem;width:9.06rem;height:2.88rem;background-color:#ff7070;-webkit-box-shadow:-.01rem .09rem .33rem .01rem rgba(81,81,81,.45);box-shadow:-.01rem .09rem .33rem .01rem rgba(81,81,81,.45);border-radius:.43rem;color:#fff;font-size:1.52rem;line-height:2.88rem;text-align:center;z-index:3}.tapGet[data-v-66ab2d10]{background:rgba(238,102,238,.4)}.centenBox[data-v-66ab2d10]{position:absolute;top:5.56rem;left:2.75rem;width:18.13rem;height:24.66rem;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/couponssharebg@2x.png);background-size:cover;-webkit-box-shadow:-.01rem .16rem .61rem .02rem rgba(81,81,81,.45);box-shadow:-.01rem .16rem .61rem .02rem rgba(81,81,81,.45);border-radius:.65rem;z-index:2000;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.centenBox .image[data-v-66ab2d10]{width:4.06rem;height:4.06rem;border-radius:50%;margin:1.56rem 0 1.25rem 0}.centenBox .image img[data-v-66ab2d10]{width:100%;height:100%;border-radius:50%}.centenBox .couponName[data-v-66ab2d10]{height:2.09rem;background:#fff;color:#ee563e;font-size:1.41rem;padding:0 .5rem;line-height:2.09rem}.centenBox .money[data-v-66ab2d10]{margin-top:1.88rem;color:#fff;line-height:3.28rem}.centenBox .timeMin[data-v-66ab2d10]{padding:0 4.72rem 0 1.31rem;text-align:left;font-size:.76rem;line-height:.84rem;margin-top:3.04rem}.shareBox[data-v-66ab2d10]{width:100%;height:40vh;background-color:#ff7070}.shareBox_two[data-v-66ab2d10]:after{width:140%;height:100%;position:absolute;left:-20%;top:0;z-index:-1;content:"";border-radius:50% 50% 0 0;background:#fff}.shareBox_two[data-v-66ab2d10]{position:relative;top:-2rem;width:100%;height:30vh;text-align:center;z-index:2;overflow:hidden}',""]),e.exports=t}}]); |