1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cc1062a8"],{"3bc0":function(e,t,o){var n=o("24fb");t=n(!1),t.push([e.i,"#get_coupon #get_content .coupon_info[data-v-e012d9e6]{background:#fff;padding-bottom:1.25rem}#get_coupon #get_content .coupon_info .banner[data-v-e012d9e6]{height:18.75rem;width:100%;overflow:hidden}#get_coupon #get_content .coupon_info .banner img[data-v-e012d9e6]{width:100%}#get_coupon #get_content .coupon_info .coupon_get[data-v-e012d9e6]{position:relative;margin:.9375rem .9375rem 0 .9375rem;background:#faf7f7;border-radius:.375rem;padding:.625rem .875rem 0 .875rem}#get_coupon #get_content .coupon_info .coupon_get .coupon_a[data-v-e012d9e6]{padding:.625rem 0}#get_coupon #get_content .coupon_info .coupon_get .coupon_a .sun_name[data-v-e012d9e6]{color:#f15353;line-height:1.875rem;text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#get_coupon #get_content .coupon_info .coupon_get .coupon_a .sun_name .sum[data-v-e012d9e6]{display:inline-block;width:6.875rem;font-size:24px}#get_coupon #get_content .coupon_info .coupon_get .coupon_a .sun_name .name[data-v-e012d9e6]{display:inline-block;font-size:16px}#get_coupon #get_content .coupon_info .coupon_get .coupon_a .limit_time[data-v-e012d9e6]{color:#8c8c8c;font-size:13px;line-height:1.5rem;text-align:left}#get_coupon #get_content .coupon_info .coupon_get .coupon_a .limit_time .limit[data-v-e012d9e6]{display:inline-block;width:6.875rem}#get_coupon #get_content .coupon_info .coupon_get .coupon_a .limit_time .time[data-v-e012d9e6]{display:inline-block;font-size:12px}#get_coupon #get_content .coupon_info .coupon_get .coupon_b[data-v-e012d9e6]{line-height:1.875rem;text-align:left;font-size:13px;border-top:.0625rem dashed #ebebeb;color:#8c8c8c}#get_coupon #get_content .coupon_info .coupon_get .left_circle[data-v-e012d9e6]{position:absolute;width:.625rem;height:.625rem;border-radius:.375rem;background:#fff;left:-.3125rem;bottom:1.5625rem}#get_coupon #get_content .coupon_info .coupon_get .right_circle[data-v-e012d9e6]{position:absolute;width:.625rem;height:.625rem;border-radius:.375rem;background:#fff;right:-.3125rem;bottom:1.5625rem}#get_coupon #get_content .coupon_info .coupon_none[data-v-e012d9e6]{background:#faf7f7;border-radius:.375rem;margin:.9375rem .9375rem 0 .9375rem;padding:.625rem .875rem}#get_coupon #get_content .coupon_info .coupon_none .state[data-v-e012d9e6]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#get_coupon #get_content .coupon_info .coupon_none .state .left_line[data-v-e012d9e6],#get_coupon #get_content .coupon_info .coupon_none .state .right_line[data-v-e012d9e6]{width:2.5rem;height:.0625rem;border:.0625rem solid #ebebeb}#get_coupon #get_content .coupon_info .coupon_none .state .text[data-v-e012d9e6]{font-size:18px;color:#8c8c8c;margin:0 1.25rem;font-weight:700;line-height:4.5rem}#get_coupon #get_content .coupon_info .coupon_noget[data-v-e012d9e6]{background:#faf7f7;border-radius:.375rem;margin:.9375rem .9375rem 0 .9375rem;padding:.625rem .875rem}#get_coupon #get_content .coupon_info .coupon_noget .state[data-v-e012d9e6]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#get_coupon #get_content .coupon_info .coupon_noget .state .left_line[data-v-e012d9e6],#get_coupon #get_content .coupon_info .coupon_noget .state .right_line[data-v-e012d9e6]{width:2.5rem;height:.0625rem;border:.0625rem solid #ebebeb}#get_coupon #get_content .coupon_info .coupon_noget .state .text[data-v-e012d9e6]{font-size:18px;color:#8c8c8c;margin:0 1.25rem;font-weight:700;line-height:4.5rem}#get_coupon #get_content .coupon_info .into_user[data-v-e012d9e6]{line-height:2.5rem;font-size:15px;text-align:center}#get_coupon #get_content .coupon_info .get_btn[data-v-e012d9e6]{width:21.5625rem;height:2.625rem;border-radius:.375rem;background-color:#f15353;color:#fff;font-size:16px;border:none}#get_coupon #get_content .get_list[data-v-e012d9e6]{margin-top:.625rem;background:#fff;padding:.625rem .875rem}#get_coupon #get_content .get_list .pack_number[data-v-e012d9e6]{background:#faf7f7;line-height:1.875rem;font-size:14px;padding:0 .625rem;color:#8c8c8c;border-radius:.125rem;text-align:left}#get_coupon #get_content .get_list .red_pack[data-v-e012d9e6]{margin-top:.625rem}#get_coupon #get_content .get_list .red_pack .list[data-v-e012d9e6]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.625rem 0;border-bottom:.0625rem solid #ebebeb}#get_coupon #get_content .get_list .red_pack .list .user[data-v-e012d9e6]{width:2.5rem;height:2.5rem;border-radius:1.25rem;overflow:hidden;background:#faf5f5;margin-right:10px}#get_coupon #get_content .get_list .red_pack .list .user img[data-v-e012d9e6]{width:100%}#get_coupon #get_content .get_list .red_pack .list .user_info[data-v-e012d9e6]{width:19.1875rem}#get_coupon #get_content .get_list .red_pack .list .user_info .name[data-v-e012d9e6]{line-height:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#get_coupon #get_content .get_list .red_pack .list .user_info .name .name_a[data-v-e012d9e6]{font-size:15px;max-width:13.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#get_coupon #get_content .get_list .red_pack .list .user_info .name .name_b[data-v-e012d9e6]{color:#f15353;font-size:16px}#get_coupon #get_content .get_list .red_pack .list .user_info .time[data-v-e012d9e6]{line-height:1.25rem;color:#8c8c8c;font-size:12px;text-align:left}",""]),e.exports=t},"84b0":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"get_coupon"}},[o("c-title",{attrs:{hide:!1,text:"红包分享"}}),o("div",{attrs:{id:"get_content"}},[o("div",{staticClass:"coupon_info"},[o("div",{staticClass:"banner"},[o("img",{staticStyle:{height:"100%"},attrs:{src:e.banner}})]),"YES"==e.status?o("div",{staticClass:"coupon_get"},[o("ul",{staticClass:"coupon_a"},[o("li",{staticClass:"sun_name"},[o("span",{staticClass:"sum"},[e._v(e._s(1==e.coupon.coupon_method?""+e.$i18n.t("money")+e.coupon.deduct:e.coupon.discount+"折"))]),o("span",{staticClass:"name"},[e._v(e._s(e.coupon.name))])]),o("li",{staticClass:"limit_time"},[o("span",{staticClass:"limit"},[e._v("满"+e._s(e.coupon.enough)+"立减")]),o("span",{staticClass:"time"},[e._v("有效期:"+e._s(e.coupon.time_start)+"-"+e._s(e.coupon.time_end))])])]),o("p",{staticClass:"coupon_b"},[e._v(e._s(e.coupon.api_limit))]),o("div",{staticClass:"left_circle"}),o("div",{staticClass:"right_circle"})]):e._e(),"RT"==e.status?o("div",{staticClass:"coupon_noget"},[o("div",{staticClass:"state"},[o("div",{staticClass:"left_line"}),o("p",{staticClass:"text"},[e._v(e._s(e.msg))]),o("div",{staticClass:"right_line"})])]):e._e(),o("p",{staticClass:"into_user"},[e._v(e._s("YES"==e.status?"红包已放入账号:"+e.name:"领券账号:"+e.name))]),o("button",{staticClass:"get_btn",attrs:{type:"button"},on:{click:e.goHome}},[e._v(e._s("YES"==e.status?"立即使用":"看看其它活动"))])]),o("div",{staticClass:"get_list"},[o("p",{staticClass:"pack_number"},[e._v("还剩"+e._s(e.max_num)+"个红包")]),o("div",{staticClass:"red_pack"},[o("van-pull-refresh",{attrs:{disabled:e.isAllLoaded},on:{refresh:e.getMoreRecord},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}},e._l(e.record_arr,(function(t,n){return o("div",{key:n,staticClass:"list"},[o("div",{staticClass:"user"},[o("img",{attrs:{src:t.receive_member.avatar}})]),o("ul",{staticClass:"user_info"},[o("li",{staticClass:"name"},[o("span",{staticClass:"name_a"},[e._v(e._s(t.receive_member.nickname))]),o("span",{staticClass:"name_b"},[e._v(e._s(t.remark))])]),o("li",{staticClass:"time"},[e._v(e._s(t.created_at))])])])})),0)],1)])])],1)},a=[],i=(o("e7e5"),o("d399")),c=(o("b0c0"),o("99af"),o("14d9"),o("6968")),s="coupon.share-coupon.receive",r="coupon.share-coupon.log-list",d={data:function(){return{banner:"",status:"",coupon:{},limit:"",name:"",msg:"",page:1,total_page:0,isLoading:!1,isAllLoaded:!1,record_arr:[],max_num:0}},activated:function(){this.initData(),this.getData()},methods:{getData:function(){var e=this;$http.get(s,{order_ids:this.$route.params.order_id},"加载中...").then((function(t){1==t.result?(e.banner=t.data.set.banner,e.status=t.data.code,e.coupon=t.data.coupon,e.name=t.data.member_name,e.msg=t.data.msg,e.getRecord()):(Object(i["a"])(t.msg),e.$router.go(-1))})).catch((function(e){}))},getRecord:function(){var e=this;$http.get(r,{page:this.page,order_ids:this.$route.params.order_id}).then((function(t){1==t.result&&(e.max_num=t.data.remainder,e.page==t.data.last_page&&(e.isAllLoaded=!0),e.total_page=t.data.last_page,e.record_arr=t.data.data)})).catch((function(e){}))},getMoreRecord:function(){var e=this;this.isAllLoaded||(this.page=this.page+1,$http.get(r,{page:this.page,order_ids:this.$route.params.order_id}).then((function(t){1==t.result?(e.page==t.data.last_page&&(e.isAllLoaded=!0,e.isLoading=!1),e.isLoading=!1,e.record_arr=e.record_arr.concat(t.data.data)):(e.page=e.page-1,e.isLoading=!1)})).catch((function(e){})))},initData:function(){this.banner="",this.status="",this.coupon={},this.limit="",this.name="",this.msg="",this.page=1,this.total_page=0,this.isLoading=!1,this.isAllLoaded=!1,this.record_arr=[],this.max_num=0},goHome:function(){this.$router.push(this.fun.getUrl("home"))}},components:{cTitle:c["a"]}},_=d,p=_,l=(o("c26b"),o("2877")),u=Object(l["a"])(p,n,a,!1,null,"e012d9e6",null);t["default"]=u.exports},"8cbc":function(e,t,o){var n=o("3bc0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=o("499e").default;a("599f4d51",n,!0,{sourceMap:!1,shadowMode:!1})},c26b:function(e,t,o){"use strict";o("8cbc")}}]); |