1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cb092c2","chunk-2d0d83d6"],{"4fb8f":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#recomment_reward .flex-style[data-v-1405da32]{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}#recomment_reward .color-text[data-v-1405da32]{color:#000}#recomment_reward .ul[data-v-1405da32]{padding:.875rem}#recomment_reward .ul .li[data-v-1405da32]{padding:.75rem;background-color:#fff;border-radius:10px;overflow:hidden;font-size:10px;color:#666;margin-bottom:10px}#recomment_reward .ul .li .top-box[data-v-1405da32]{width:100%;line-height:1.5rem;padding-bottom:.5rem}#recomment_reward .ul .li .reward-details[data-v-1405da32]{text-align:left;width:100%;background-color:#fff4f4;border-radius:.375rem;margin-bottom:.75rem;padding:.875rem}#recomment_reward .ul .li .reward-details .reward-details-title[data-v-1405da32]{line-height:1rem;color:#202020}#recomment_reward .ul .li .reward-details .reward-list[data-v-1405da32]{padding-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#recomment_reward .ul .li .reward-details .reward-list .list[data-v-1405da32]{margin-right:.5rem;line-height:1.125rem}#recomment_reward .ul .li .good-box .good-img[data-v-1405da32]{width:3.125rem;height:3.125rem;background-color:#666;border-radius:.125rem;margin:0 .75rem 0 0}#recomment_reward .ul .li .good-box .good-other[data-v-1405da32]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#recomment_reward .ul .li .good-box .good-other .good-title[data-v-1405da32]{font-size:14px;padding-right:1rem;color:#333;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#recomment_reward .ul .li .order-btn[data-v-1405da32]{padding-top:.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}#recomment_reward .ul .li .order-btn .btn[data-v-1405da32]{padding:0 .75rem;height:1.5rem;line-height:1.5rem;border-radius:.75rem;border:1px solid #b4b4b4;margin-left:.875rem}#recomment_reward .ul .li .order-btn .btn-bg[data-v-1405da32]{background:#f14e4e;border-color:#f14e4e;color:#fff}#recomment_reward .award-information[data-v-1405da32]{background-color:#f2f2f2}#recomment_reward .award-information .add-num[data-v-1405da32]{padding:0 .875rem;margin-bottom:.875rem;height:4.875rem;background-color:#fff;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-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#recomment_reward .award-information .add-num .add-num-name[data-v-1405da32]{text-align:left}#recomment_reward .award-information .add-num .add-num-name .name1[data-v-1405da32]{font-size:16px;margin-bottom:.375rem}#recomment_reward .award-information .add-num .add-num-name .name2[data-v-1405da32]{font-size:12px;color:#f14e4e}#recomment_reward .award-information .address-box[data-v-1405da32]{padding:0 .875rem;background:#fff;text-align:left}#recomment_reward .award-information .address-box .address-title[data-v-1405da32]{height:3rem;line-height:3rem;font-size:16px}#recomment_reward .award-information .address-box .addr[data-v-1405da32]{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}#recomment_reward .award-information .address-box .addr i[data-v-1405da32]{font-size:18px}#recomment_reward .award-information .address-box .addr .address-info[data-v-1405da32]{padding:0 .875rem .875rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#recomment_reward .award-information .address-box .addr .address-info .address-namenick[data-v-1405da32]{font-weight:700;margin-bottom:.25rem}#recomment_reward .confirm-address-btn[data-v-1405da32]{position:absolute;bottom:1rem;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:21.625rem;height:2.75rem;background-color:#f14e4e;border-radius:1.375rem;font-weight:700;font-size:16px;color:#fff;line-height:2.75rem}",""]),t.exports=e},"79db":function(t,e,a){t.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},8756:function(t,e,a){var i=a("4fb8f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("a9265b92",i,!0,{sourceMap:!1,shadowMode:!1})},a0df:function(t,e,a){"use strict";a("8756")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return d}));var i=document.documentElement,r=document.body,d={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:r&&(t=r.scrollTop),t},getClientHeight:function(){var t=0;return t=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(r.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},fed4:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"recomment_reward"}},[a("c-title",{attrs:{hide:!1,text:"中奖推荐奖励"}}),a("div",{staticClass:"ul"},[t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"li"},[a("div",{staticClass:"top-box flex-style"},[a("div",{staticClass:"color-text"},[t._v("活动id:"+t._s(e.activity_id))]),a("div",[t._v(t._s(e.created_at))])]),a("div",{staticClass:"reward-details"},[a("div",{staticClass:"reward-details-title"},[t._v("奖励")]),a("div",{staticClass:"reward-list"},[a("div",{staticClass:"list",domProps:{innerHTML:t._s(e.content)}})])]),e.is_identical?a("div",{staticClass:"good-box flex-style"},[a("img",{staticClass:"good-img",attrs:{src:e.goods_thumb,alt:""}}),a("div",{staticClass:"good-other flex-style"},[a("div",{staticClass:"tt flex-style"},[a("div",{staticClass:"good-title"},[t._v(t._s(e.goods_name))])])])]):t._e(),a("div",{staticClass:"order-btn"},[e.reward_data_id&&0==e.is_used?a("div",{staticClass:"btn",on:{click:function(a){return a.stopPropagation(),t.confirmBtn(e,0)}}},[t._v("填写地址")]):t._e(),e.reward_data_id&&1==e.is_used&&e.order_id?a("div",{staticClass:"btn",on:{click:function(a){return a.stopPropagation(),t.confirmBtn(e,1)}}},[t._v("查看订单")]):t._e()])])})),t.fun.isTextEmpty(t.list)?a("yz-blank",{attrs:{data:t.list,text:"暂无奖励记录",isBtn:!1}}):t._e()],2),a("van-popup",{staticClass:"award-information",style:{height:"80%"},attrs:{position:"bottom"},model:{value:t.showAddrss,callback:function(e){t.showAddrss=e},expression:"showAddrss"}},[a("van-nav-bar",{attrs:{title:"中奖推荐奖励","right-text":"返回"},on:{"click-right":function(e){t.showAddrss=!1}}}),2==t.activityInfo.type&&1==t.activityInfo.need_address?a("van-cell-group",[a("van-field",{attrs:{type:"tel",label:"手机号",placeholder:"请输入手机号"},model:{value:t.tel,callback:function(e){t.tel=e},expression:"tel"}})],1):a("div",{staticClass:"address-box",on:{click:function(e){return e.stopPropagation(),t.getAddress.apply(null,arguments)}}},[a("div",{staticClass:"address-title"},[t._v("收货地址")]),t.fun.isTextEmpty(t.activityInfo.address)?a("div",{staticClass:"addr"},[a("i",{staticClass:"fa fa-map-marker"}),a("div",{staticClass:"address-info",staticStyle:{padding:"0.875rem"}},[t._v(" 请选择收货地址 ")]),a("i",{staticClass:"fa fa-angle-right"})]):a("div",{staticClass:"addr"},[a("i",{staticClass:"fa fa-map-marker"}),a("div",{staticClass:"address-info"},[a("div",{staticClass:"address-namenick"},[t._v("收货人:"+t._s(t.activityInfo.address.username)+" "+t._s(t.activityInfo.address.mobile))]),a("div",{staticClass:"address-shipping"},[t._v(" "+t._s(t.activityInfo.address.province)+" "+t._s(t.activityInfo.address.city)+" "+t._s(t.activityInfo.address.district)+" "+t._s(t.activityInfo.address.street||"")+" "+t._s(t.activityInfo.address.address)+" ")])]),a("i",{staticClass:"fa fa-angle-right"})])]),a("div",{staticClass:"confirm-address-btn",on:{click:function(e){return e.stopPropagation(),t.joinActivity.apply(null,arguments)}}},[t._v("确定")])],1),a("yz-address-list",{on:{confirm:t.confirmSelectAddress},model:{value:t.showAddress,callback:function(e){t.showAddress=e},expression:"showAddress"}})],1)},r=[],d=(a("e7e5"),a("d399")),s=(a("e9c4"),a("99af"),a("ac0d")),o=a("eb17"),n=a("a234"),l={mixins:[s["a"]],data:function(){return{showAddrss:!1,activityInfo:{},activity_id:0,reward_data_id:0,list:[],showAddress:!1,page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getData()},components:{yzBlank:o["default"],yzAddressList:n["default"]},computed:{},methods:{confirmBtn:function(t,e){this.activity_id=t.activity_id,this.reward_data_id=t.reward_data_id,0==e?this.addActivity():t.order_id&&this.$router.push(this.fun.getUrl("orderdetail",{order_id:t.order_id,orderType:"luck-draw"}))},addActivity:function(){var t=this;$http.get("plugin.luck-draw.frontend.team.getActivity",{activity_id:this.activity_id},"").then((function(e){1==e.result?(t.activityInfo=e.data,t.showAddrss=!0):Object(d["a"])(e.msg)})).catch((function(t){}))},getAddress:function(){this.addressData=[];var t=this;$http.get("member.member-address.index",{},"获取中").then((function(e){1===e.result?(t.showAddress=!0,t.addressData=e.data):Object(d["a"])(e.msg)}),(function(t){}))},confirmSelectAddress:function(t){this.activityInfo.address=t,this.showAddress=!1},joinActivity:function(){var t=this,e={reward_data_id:this.reward_data_id,address:JSON.stringify(this.activityInfo.address)};if(2==this.activityInfo.type&&1==this.activityInfo.need_address){if(this.fun.isTextEmpty(this.tel))return void Object(d["a"])("请填写手机号码");e.address=JSON.stringify({mobile:this.tel})}else if(this.fun.isTextEmpty(this.activityInfo.address))return void Object(d["a"])("请选择收货地址");$http.get("plugin.luck-draw.frontend.team.rewardJoinActivity",e,"加载中").then((function(e){1===e.result?(t.getData(),t.showAddrss=!1):Object(d["a"])(e.msg)})).catch((function(t){}))},getData:function(){var t=this;$http.get("plugin.luck-draw.frontend.index.recommendList",{},"加载中").then((function(e){1===e.result?(t.list=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)):Object(d["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.luck-draw.frontend.index.recommendList",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.list=t.list.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))}}},c=l,m=(a("a0df"),a("2877")),f=Object(m["a"])(c,i,r,!1,null,"1405da32",null);e["default"]=f.exports}}]); |