(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-369437ca"],{5724:function(t,e,n){},ace6:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page_list posA_full"},[n("ul",t._l(t.$options.filters.orderBy(t.list),(function(e,r){return n("li",{key:r,staticClass:"item",attrs:{"track-by":"water_type"},on:{click:function(n){return t.go(e)}}},[n("div",{domProps:{innerHTML:t._s(t.$options.filters.format(e.water_name))}})])})),0)])},a=[],i=(n("ac1f"),n("1276"),{name:"WaterCoolingList",data:function(){return{list:[]}},methods:{go:function(t){var e="";switch(t.water_type){case 3:e="/watercooling/index/3";break;case 2:e="/watercooling/index/2";break;case 1:e="/watercooling/index/1";break}this.$router.push({path:e})},getList:function(){var t=this;this.$api.water.getList().then((function(e){e=JSON.parse(e.data.result);var n=[];e.code&&(n=e.data),t.list=n}))}},filters:{format:function(t){var e=t.split(/(?=()/);return e.length>1?"<label>"+e[0]+"</label><span>"+e[1]+"</span>":"<label>"+e[0]+"</label>"},orderBy:function(t){var e=JSON.parse(JSON.stringify(t));return e.sort((function(t,e){return t.water_type-e.water_type})),e}},mounted:function(){this.getList()},destroyed:function(){}}),s=i,o=(n("ceb0"),n("2877")),c=Object(o["a"])(s,r,a,!1,null,"dbde2c80",null);e["default"]=c.exports},ceb0:function(t,e,n){"use strict";var r=n("5724"),a=n.n(r);a.a}}]);
|