bztang-admin/addons/yun_shop/static/app/js/chunk-37aee4f8.83dce746.js

1 line
7.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37aee4f8"],{"26ee":function(t,e,i){var a=i("bc46");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("6f82196c",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},bc46:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".contenBox[data-v-14e70c10]{width:21.88rem;background-color:#fff;border-radius:.47rem;margin:0 auto;margin-top:.63rem;overflow:hidden}.contenBox .title[data-v-14e70c10]{margin:.91rem;font-size:.94rem;color:#545454}.contenBox .list[data-v-14e70c10]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0 .84rem;-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;margin-bottom:1.56rem}.contenBox .list .right[data-v-14e70c10]{font-size:.88rem;color:#f14e4e}.contenBox .list .left[data-v-14e70c10]{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}.contenBox .list .left .member[data-v-14e70c10]{text-align:left}.contenBox .list .left .img[data-v-14e70c10]{width:2.19rem;height:2.19rem;background-color:#c2c2c2;margin-right:.63rem;border-radius:100%}.contenBox .list .left .img img[data-v-14e70c10]{width:100%}.top[data-v-14e70c10]{width:21.88rem;background-color:#fff;border-radius:.47rem;margin:0 auto;margin-top:.63rem;padding:.81rem 1.13rem .8rem .53rem}.top[data-v-14e70c10],.top .topRight[data-v-14e70c10]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.top .topRight[data-v-14e70c10]{-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;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;overflow:hidden}.top .topRight .title_right[data-v-14e70c10]{width:100%;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1rem;color:#515151}.top .topRight .time[data-v-14e70c10]{text-align:left;font-size:.63rem;color:#ce2e06}.top .topRight .txt[data-v-14e70c10]{font-size:.75rem;color:#636363;text-align:left}.top .topRight .txt span[data-v-14e70c10]{color:#f14e4e;font-size:.75rem}.top .topLeft[data-v-14e70c10]{width:3.75rem;height:3.75rem;margin-right:.56rem}.top .topLeft img[data-v-14e70c10]{width:100%;height:100%}.middle[data-v-14e70c10]{width:21.88rem;height:2.75rem;background-color:#fff;border-radius:.47rem;margin:0 auto;margin-top:.63rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.middle .txt[data-v-14e70c10]{font-size:.69rem;color:#636363}.middle .txt span[data-v-14e70c10]{color:#f14e4e;font-size:.69rem}",""]),t.exports=e},c43b:function(t,e,i){"use strict";i("26ee")},cb97:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"personRedListDetail"}},[i("c-title",{attrs:{hide:!1,text:"发放详情"}}),i("div",{staticClass:"top"},[i("div",{staticClass:"topLeft"},[i("img",{attrs:{src:t.redpack_info.thumb,alt:""}})]),i("div",{staticClass:"topRight"},[i("span",{staticClass:"title_right"},[t._v(t._s(t.redpack_info.title))]),i("div",{staticClass:"time"},[t._v("红包截止时间:"+t._s(t.redpack_info.created_at)+"——"+t._s(t.redpack_info.valid_time_date))]),i("div",{staticClass:"txt"},[t._v("类型:"+t._s(t.redpack_info.redpack_type_name))]),i("div",{staticClass:"txt"},[t._v(" 红包个数:"),i("span",[t._v(t._s(t.redpack_info.number))]),t._v(" 个 ")]),i("div",{staticClass:"txt"},[t._v(" 总数:"),i("span",[t._v(t._s(t.redpack_info.amount_total))]),t._v(" "+t._s(t.balance)+" ")])])]),i("div",{staticClass:"middle"},[i("div",{staticClass:"txt"},[t._v(" 已领取:"),i("span",[t._v(t._s(t.redpack_info.finish_number))])]),i("div",{staticClass:"txt"},[t._v(" 剩余红包数量:"),i("span",[t._v(t._s(t.redpack_info.surplus_number))])]),i("div",{staticClass:"txt"},[t._v(" 剩余"+t._s(t.balance)+""),i("span",[t._v(t._s(t.redpack_info.surplus_amount))])])]),i("div",{staticClass:"contenBox"},[i("div",{staticClass:"title"},[t._v("领取记录")]),t._l(t.receive_log_list,(function(e,a){return i("div",{key:a,staticClass:"list"},[i("div",{staticClass:"left"},[e.member?i("div",{staticClass:"img"},[i("img",{attrs:{src:e.member.avatar,alt:""}})]):t._e(),i("div",{staticClass:"member"},[e.member?i("div",[t._v(t._s(e.member.nickname))]):t._e(),i("div",[t._v(t._s(e.created_at))])])]),i("div",{staticClass:"right"},[t._v(t._s(e.amount))])])})),t.receive_log_list.length<=0?i("van-empty",{attrs:{image:"default"}}):t._e()],2)],1)},o=[],s=(i("e7e5"),i("d399")),n=(i("b64b"),i("99af"),i("6968")),l=i("ac0d"),r={mixins:[l["a"]],data:function(){return{redpack_info:[],receive_log_list:[],isLoadMore:!0,page:1,total_page:0,balance:""}},deactivated:function(){},activated:function(){this.receive_log_list=[],this.page=1,this.total_page=0,this.getData(),this.balance=localStorage.getItem("balanceLang")?JSON.parse(localStorage.getItem("balanceLang")).balance:"余额"},methods:{getData:function(){var t=this;$http.get("plugin.redpack-user.frontend.sendLogDetail.index",{rid:this.$route.params.id,page:this.page},"").then((function(e){1===e.result?(t.redpack_info=e.data.redpack_info,t.receive_log_list=e.data.receive_log_list.data,t.total_page=e.data.receive_log_list.last_page,t.page=e.data.receive_log_list.current_page,t.isLoadMore=!0,0==t.receive_log_list.length&&(t.isLoadMore=!1)):Object(s["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page+=1;var e={page:this.page};$http.post("plugin.redpack-user.frontend.sendLogDetail.index",e,"").then((function(e){if(t.isLoadMore=!0,1==e.result){var i=e.data.receive_log_list.data;t.receive_log_list=t.receive_log_list.concat(i)}else t.page=t.page-1,t.isLoadMore=!1})).catch((function(t){}))}}},components:{cTitle:n["a"]}},c=r,d=c,p=(i("c43b"),i("2877")),g=Object(p["a"])(d,a,o,!1,null,"14e70c10",null);e["default"]=g.exports}}]);