1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15f14944"],{"185ac":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".detection_result .list[data-v-19ed630a]{padding:.4688rem .4375rem}.detection_result .flex[data-v-19ed630a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.detection_result .space-between[data-v-19ed630a]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.detection_result .align-items-center[data-v-19ed630a]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detection_result .c-969696[data-v-19ed630a]{color:#969696}.detection_result img[data-v-19ed630a]{margin:0;width:100%;height:100%}.detection_result .fs-24[data-v-19ed630a]{font-size:.75rem}.detection_result .item[data-v-19ed630a]{background:#fff;border-radius:.3125rem;padding:.5rem .6875rem 1.25rem;margin-bottom:.75rem}.detection_result .flex-end[data-v-19ed630a]{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}",""]),t.exports=e},"4f3c":function(t,e,a){"use strict";a("aae7")},aae7:function(t,e,a){var i=a("185ac");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("eba5d0e0",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,n=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 i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},f5d7: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",{staticClass:"detection_result"},[a("c-title",{attrs:{text:"评估结果"}}),a("van-search",{attrs:{placeholder:"搜索订单号",shape:"round"},on:{search:t.input_handle},model:{value:t.order_number,callback:function(e){t.order_number=e},expression:"order_number"}}),a("div",{staticClass:"list"},t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"item"},[a("div",{staticClass:"flex space-between"},[a("span",{staticClass:"fs-24"},[t._v(t._s(e.order_sn))]),a("span",{staticClass:"fs-24 c-969696"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"flex space-between fs-24"},[a("div",{staticStyle:{"text-align":"left"}},[a("div",{staticClass:"flex align-items-center",staticStyle:{margin:"0.75rem 0"}},[e.store_thumb?a("div",{staticStyle:{width:"36px",height:"36px","border-radius":"100px",overflow:"hidden","margin-right":"0.4375rem"}},[a("img",{attrs:{src:e.store_thumb}})]):t._e(),e.store_name?a("span",[t._v(t._s(e.store_name))]):t._e()])]),0==e.has_many_result_count?a("div",{staticClass:"flex-end"},[a("van-button",{staticStyle:{width:"4.75rem"},attrs:{round:"",color:"#969696",disabled:"",size:"small"}},[t._v("查看结果")])],1):a("router-link",{staticClass:"flex-end",attrs:{to:t.fun.getUrl("detection_result_detail",{id:e.id}),tag:"div"}},[a("van-button",{staticStyle:{width:"4.75rem"},attrs:{round:"",color:"#EF5452",size:"small"}},[t._v("查看结果")])],1)],1)])})),0)],1)},n=[],s=a("c7eb"),r=a("1da1"),l=(a("99af"),a("ac0d")),o={mixins:[l["a"]],data:function(){return{order_number:"",list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.isLoadMore=!0,this.getData()},methods:{getMoreData:function(){if(!(this.page>=this.total_page)){this.isLoadMore=!1;var t=this.page+1;this.getData({page:t})}},input_handle:function(t){this.getData({order_sn:t,page:1})},getData:function(){var t=arguments,e=this;return Object(r["a"])(Object(s["a"])().mark((function a(){var i,n,r,l,o,c,d,u;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t.length>0&&void 0!==t[0]?t[0]:{},a.next=3,$http.get("plugin.health-check.frontend.index.index",i);case 3:if(n=a.sent,r=n.result,l=n.msg,o=n.data,c=o.data,d=o.current_page,u=o.last_page,0!=r){a.next=12;break}return a.abrupt("return",e.$toast(l));case 12:e.isLoadMore=!0,e.page=d,e.total_page=u,e.list=1==d?c:e.list.concat(c);case 16:case"end":return a.stop()}}),a)})))()}}},c=o,d=(a("4f3c"),a("2877")),u=Object(d["a"])(c,i,n,!1,null,"19ed630a",null);e["default"]=u.exports}}]); |