bztang-admin/addons/yun_shop/static/app/js/chunk-60b35cb1.823a15c9.js

1 line
6.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60b35cb1"],{2058:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#skin_log[data-v-28678e48]{padding:0 1rem 70px;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ffbec8),color-stop(25%,#fff));background:-webkit-linear-gradient(top,#ffbec8,#fff 25%);background:-webkit-gradient(linear,left top,left bottom,from(#ffbec8),color-stop(25%,#fff));background:linear-gradient(180deg,#ffbec8 0,#fff 25%);min-height:calc(100vh - 50px)}#skin_log .member-info[data-v-28678e48]{margin-top:2.5rem;background-color:#fff;-webkit-box-shadow:0 1px 3px 0 rgba(255,190,200,.43);box-shadow:0 1px 3px 0 rgba(255,190,200,.43);border-radius:.625rem}#skin_log .member-info .avator[data-v-28678e48]{width:3.125rem;height:3.125rem;overflow:hidden;border-radius:50%;margin-top:-1.5625rem}#skin_log .member-info .name[data-v-28678e48]{color:#333;font-weight:700}#skin_log .member-info .num-box[data-v-28678e48]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;padding:.875rem 0}#skin_log .member-info .num-box .num[data-v-28678e48]{font-size:1.125rem;color:#fe5a73;font-weight:700}#skin_log .member-info .num-box .num-text[data-v-28678e48]{color:#333}#skin_log .log-list[data-v-28678e48]{margin:.875rem 0;background-color:#fff;-webkit-box-shadow:0 1px 3px 0 rgba(255,190,200,.43);box-shadow:0 1px 3px 0 rgba(255,190,200,.43);border-radius:.625rem;padding:0 .875rem}#skin_log .log-list .list-child[data-v-28678e48]{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;padding:.875rem 0;border-bottom:1px solid #f2f2f2}#skin_log .log-list .list-child .avator[data-v-28678e48]{width:2rem;height:2rem;border-radius:50%;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin:0 .5rem 0 0}#skin_log .log-list .list-child .child-main[data-v-28678e48]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left}#skin_log .log-list .list-child .child-main .time[data-v-28678e48]{color:#333;font-weight:700}#skin_log .log-list .list-child .child-main .status[data-v-28678e48]{font-size:.75rem;color:#666}#skin_log .log-list .list-child .del-icon[data-v-28678e48]{padding:0 .5rem}#skin_log .log-list .list-child .del-icon .iconfont[data-v-28678e48]{font-size:1.25rem;color:#fe5a73}#skin_log .log-list .list-child[data-v-28678e48]:last-child{border:none}#skin_log .blank[data-v-28678e48]{padding:2rem 0;text-align:center;color:#999}",""]),t.exports=e},3413:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"skin_log"}},[o("c-title",{attrs:{hide:!1,text:"测肤记录"}}),o("div",{staticClass:"member-info"},[o("img",{staticClass:"avator",attrs:{src:t.myInfo.avatar_image||i("74c1"),alt:""}}),o("div",{staticClass:"name"},[t._v(t._s(t.myInfo.nickname||"-"))]),o("div",{staticClass:"num-box"},[o("div",[o("div",{staticClass:"num"},[t._v(t._s(t.myInfo.last||"-"))]),o("div",{staticClass:"num-text"},[t._v("最近颜值评分")])]),o("div",[o("div",{staticClass:"num"},[t._v(t._s(t.myInfo.higher||"-"))]),o("div",{staticClass:"num-text"},[t._v("颜值巅峰")])])])]),o("div",{staticClass:"log-list"},[t._l(t.list,(function(e,i){return o("div",{key:e.id,staticClass:"list-child",on:{click:function(i){return i.stopPropagation(),t.gotoResult(e.id)}}},[o("img",{staticClass:"avator",attrs:{src:e.check_img_src,alt:""}}),o("div",{staticClass:"child-main"},[o("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),o("div",{staticClass:"status"},[t._v("已完成")])]),o("div",{staticClass:"del-icon",on:{click:function(o){return o.stopPropagation(),t.delLog(e.id,i)}}},[o("i",{staticClass:"iconfont icon-ht_operation_delete"})])])})),o("p",{directives:[{name:"show",rawName:"v-show",value:t.fun.isTextEmpty(t.list),expression:"fun.isTextEmpty(list)"}],staticClass:"blank"},[t._v("暂无记录")])],2)],1)},a=[],n=(i("e7e5"),i("d399")),l=(i("a434"),i("99af"),i("6968")),s=i("ac0d"),c={mixins:[s["a"]],data:function(){return{myInfo:{},list:[],page:1,isLoadMore:!0,total_page:0}},components:{cTitle:l["a"]},computed:{},mounted:function(){this.getData()},methods:{delLog:function(t,e){var i=this;$http.get("plugin.skin-check.api.skin-check.del-log",{report_id:t},"...").then((function(t){if(1===t.result)return Object(n["a"])("删除成功"),i.list.splice(e,1);Object(n["a"])(t.msg)}),(function(t){}))},gotoResult:function(t){this.$router.push(this.fun.getUrl("skinResult",{id:t}))},getData:function(){var t=this;$http.get("plugin.skin-check.api.skin-check.check-log",{},"...").then((function(e){1===e.result?(t.myInfo=e.data.member,t.myInfo.higher=e.data.higher.composite_score,t.myInfo.last=e.data.last.composite_score,t.list=e.data.log.data,t.isLoadMore=!0,t.total_page=e.data.log.last_page,t.total_page||(t.total_page=0)):Object(n["a"])(e.msg)}),(function(t){}))},getMoreData:function(){this.isLoadMore=!1;var t=this;t.page>=t.total_page||(t.page+=1,$http.get("plugin.skin-check.api.skin-check.check-log",{page:t.page},"...").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.log.data;t.list=t.list.concat(i)})).catch((function(t){})))}}},r=c,d=(i("544a"),i("2877")),g=Object(d["a"])(r,o,a,!1,null,"28678e48",null);e["default"]=g.exports},"544a":function(t,e,i){"use strict";i("c318")},"74c1":function(t,e,i){t.exports=i.p+"static/app/img/loading.7c66cecb.jpg"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=document.documentElement,a=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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(){}}}},c318:function(t,e,i){var o=i("2058");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("2d2b64fe",o,!0,{sourceMap:!1,shadowMode:!1})}}]);