pages-index-index.dda613a8.js
23.3 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0c0e":function(t,e,n){"use strict";n.r(e);var a=n("2c57"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"10e9":function(t,e,n){"use strict";n.r(e);var a=n("bf68"),i=n("9c97");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("c0fa");var l,s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"5605dbfc",null,!1,a["a"],l);e["default"]=r.exports},"15b9":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uSwiper:n("5f87").default,customWaterfallsFlow:n("10e9").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"top"},[n("v-uni-view",{staticClass:"logo"},[n("v-uni-image",{attrs:{src:"/static/ic_logo.png",mode:""}}),n("v-uni-view",{staticClass:"search"},[n("v-uni-view",{staticClass:"tosear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.gosourch.apply(void 0,arguments)}}},[n("v-uni-input",{attrs:{type:"text",value:"",placeholder:"搜索",disabled:"true","placeholder-style":"text-align: center;font-size: 28rpx; color: rgba(194,194,194,1);"}}),n("v-uni-image",{attrs:{src:"/static/icon-search.png",mode:""}})],1)],1)],1),n("v-uni-view",{staticClass:"banner"},[n("u-swiper",{attrs:{keyName:"image_preview",list:t.list1,indicator:!0,indicatorMode:"dot",radius:"12",height:"160",circular:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}})],1)],1),n("v-uni-view",{staticClass:"contail"},[n("v-uni-view",{staticClass:"nev"},[t._l(t.categoryList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"bar"},[n("v-uni-image",{staticClass:"barimg",attrs:{src:e.image_preview,mode:""}}),n("v-uni-text",[t._v(t._s(e.name))])],1)})),t.categoryLength>8?n("v-uni-view",{staticClass:"bar"},[n("v-uni-image",{staticClass:"barimg",attrs:{src:"/static/logo.png",mode:""}}),n("v-uni-text",[t._v("更多")])],1):t._e()],2),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"leftbox"},[n("v-uni-view",{staticClass:"lefttitle"},[n("v-uni-view",{staticClass:"title"},[t._v("相关资讯")]),n("v-uni-view",{staticClass:"more"},[t._v("更多"),n("v-uni-image",{attrs:{src:"/static/ic-arrow.png",mode:""}})],1)],1),n("v-uni-view",{staticClass:"newbar"},t._l(t.informationList,(function(e,a){return n("v-uni-view",{key:a},[t._v("·"+t._s(e.title))])})),1)],1),n("v-uni-view",{staticClass:"rightbox"},[n("v-uni-view",{staticClass:"righttitle"},[n("v-uni-view",{staticClass:"title"},[t._v("相关资讯")]),n("v-uni-view",{staticClass:"active"},[t._v("充值活动")])],1),n("v-uni-view",{staticClass:"activeimg"},[n("v-uni-image",{attrs:{src:"/static/Rectangle 2372.png",mode:""}})],1)],1)],1),n("v-uni-view",{staticClass:"waterfall"},[n("v-uni-view",{staticClass:"falltitle"},[n("v-uni-view",{staticClass:"fallnev",class:{newfall:1==t.fallindex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changefall(1)}}},[t._v("猜你喜欢"),n("v-uni-view",{staticClass:"tip"})],1),n("v-uni-view",{staticClass:"fallnev",class:{newfall:2==t.fallindex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changefall(2)}}},[t._v("最新"),n("v-uni-view",{staticClass:"tip"})],1),n("v-uni-view",{staticClass:"fallnev",class:{newfall:3==t.fallindex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changefall(3)}}},[t._v("人气"),n("v-uni-view",{staticClass:"tip"})],1)],1),n("v-uni-view",{staticClass:"misslist"},[n("custom-waterfalls-flow",{attrs:{value:t.list},on:{wapperClick:function(e){arguments[0]=e=t.$handleEvent(e),t.godetail.apply(void 0,arguments)}},scopedSlots:t._u([{key:"default",fn:function(e){return[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),n("v-uni-view",{staticClass:"types"},[t._v("所属分类:"+t._s(e.sort.name))]),n("v-uni-view",{staticClass:"desc"},[e.seller_name?n("v-uni-text",[t._v(t._s(e.seller_name))]):t._e(),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",[t._v("¥")]),t._v(t._s(e.price))],1)],1)],1)]}}])})],1)],1)],1),n("Botton",{attrs:{flag:1}})],1)},o=[]},"21bd":function(t,e,n){"use strict";n.r(e);var a=n("15b9"),i=n("0c0e");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("9f77");var l,s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"0a280e93",null,!1,a["a"],l);e["default"]=r.exports},"2c57":function(t,e,n){"use strict";var a=n("4ea4");n("4160"),n("fb6a"),n("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var i=a(n("1da1")),o=n("d089"),l=a(n("10e9")),s=a(n("241e")),r={components:{"custom-waterfalls-flow":l.default,Botton:s.default},data:function(){return{title:"Hello",list1:["https://cdn.uviewui.com/uview/swiper/swiper1.png","https://cdn.uviewui.com/uview/swiper/swiper2.png","https://cdn.uviewui.com/uview/swiper/swiper3.png"],nevlist:[1,2,3,4,,6,7],leftlist:[1,2,3],fallindex:1,list:[],categoryList:[],categoryLength:0,informationList:[],currentpage:1}},onShow:function(){this.initial(),this.product_list()},onLoad:function(){},methods:{product_report:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,a,i,l,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={product_id:t.id,report_id:"",content:""},e.prev=1,e.next=4,(0,o.getBanner)();case 4:return a=e.sent,e.next=7,(0,o.sortList)(1);case 7:return i=e.sent,e.next=10,(0,o.arcList)();case 10:return l=e.sent,t.list1=a.list,t.categoryLength=i.list.length,t.categoryList=i.list.length>8?i.list.slice(0,7):i.list,t.informationList=l.list.length>3?l.list.slice(0,3):l.list,console.log(i,"分类"),console.log("getBanner",a),console.log(l,"资讯列表"),e.next=20,(0,o.product_report)(n);case 20:s=e.sent,console.log("product_report",s),e.next=28;break;case 24:e.prev=24,e.t0=e["catch"](1),uni.showToast({title:e.t0,icon:"none"}),console.log("product_report",e.t0);case 28:case"end":return e.stop()}}),e,null,[[1,24]])})))()},product_list:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={type:t.fallindex,page:t.currentpage,pagenum:15},e.prev=1,e.next=4,(0,o.product_list)(n);case 4:a=e.sent,console.log("产品列表",a),t.list=a.list.data,t.list.forEach((function(t,e){t.image=t.images_preview[0]})),console.log("产品列表",t.list),e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](1),uni.showToast({title:e.t0,icon:"none"}),console.log("product_list",e.t0);case 15:case"end":return e.stop()}}),e,null,[[1,11]])})))()},initial:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,o.getBanner)();case 3:return n=e.sent,e.next=6,(0,o.sortList)();case 6:return a=e.sent,e.next=9,(0,o.arcList)();case 9:i=e.sent,t.list1=n.list,t.categoryLength=a.list.length,t.categoryList=a.list.length>8?a.list.slice(0,7):a.list,t.informationList=i.list.length>3?i.list.slice(0,3):i.list,console.log(a,"分类"),console.log("getBanner",n),console.log(i,"资讯列表"),e.next=23;break;case 19:e.prev=19,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("getBanner",e.t0);case 23:case"end":return e.stop()}}),e,null,[[0,19]])})))()},changefall:function(t){this.fallindex=t},godetail:function(t){console.log(1),uni.navigateTo({url:"/pages/index/detail?id="+t.id})},gosourch:function(){uni.navigateTo({url:"/pages/index/search"})}}};e.default=r},8011:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.waterfalls-flow[data-v-5605dbfc]{overflow:hidden}.waterfalls-flow-column[data-v-5605dbfc]{float:left}.column-value[data-v-5605dbfc]{width:100%;font-size:0;overflow:hidden;transition:opacity .4s;opacity:0}.column-value-show[data-v-5605dbfc]{opacity:1}.column-value .inner[data-v-5605dbfc]{font-size:%?30?%}.column-value .img[data-v-5605dbfc]{width:100%}.column-value .img-hide[data-v-5605dbfc]{display:none}.column-value .img-error[data-v-5605dbfc]{background:#f2f2f2 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAiAQMAAAAatXkPAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAAIZJREFUCNdlzjEKwkAUBNAfEGyCuYBkLyLuxRYW2SKlV1JSeA2tUiZg4YrLjv9PGsHqNTPMSAQuyAJgRDHSyvBPwtZoSJXakeJI9iuRLGDygdl6V0yKDtyMAeMPZySj8yfD+UapvRPj2JOwkyAooSV5IwdDjPdCPspe8LyTl9IKJvDETKKRv6vnlUasgg0fAAAAAElFTkSuQmCC) no-repeat 50%}.bot[data-v-5605dbfc]{padding-right:%?25?%;padding-bottom:%?20?%;display:flex;justify-content:flex-end}.bot uni-image[data-v-5605dbfc]{width:%?40?%;height:%?40?%}.waterfalls-flow-column[data-v-5605dbfc]{position:relative}.topState[data-v-5605dbfc]{z-index:1;position:absolute;left:0;top:0;width:%?132?%;height:%?56?%;border-radius:%?12?% 0 %?24?% 0;opacity:1;background:#fed000}.Sold[data-v-5605dbfc]{background:#dadada;color:rgba(0,0,0,.9);font-size:%?26?%}.column-value[data-v-5605dbfc], .column-value-show[data-v-5605dbfc]{position:relative}',""]),t.exports=e},8293:function(t,e,n){var a=n("8011");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("e073b3b8",a,!0,{sourceMap:!1,shadowMode:!1})},8714:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-0a280e93]{background:#f6f6f6}.content .top[data-v-0a280e93]{height:%?370?%;background-image:linear-gradient(#fed000,#fff);padding:%?32?%}.content .top .logo[data-v-0a280e93]{display:flex;align-items:center}.content .top .logo uni-image[data-v-0a280e93]{width:%?84?%;height:%?74?%;margin-right:%?36?%}.content .top .logo .search[data-v-0a280e93]{flex:1;display:flex;align-items:center}.content .top .logo .search .tosear[data-v-0a280e93]{position:relative;width:%?522?%;height:%?64?%;border-radius:%?38?%;opacity:1;border:0 solid #010101;background:#f5f5f5;padding:0 %?32?%}.content .top .logo .search .tosear uni-input[data-v-0a280e93]{text-align:center;width:100%;height:100%}.content .top .logo .search .tosear uni-image[data-v-0a280e93]{position:absolute;left:%?280?%;top:50%;left:36%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:%?32?%;height:%?32?%}.content .top .banner[data-v-0a280e93]{margin-top:%?32?%;height:%?320?%;border-radius:%?24?%}.content .contail[data-v-0a280e93]{padding:0 %?32?%;padding-bottom:%?160?%;box-sizing:border-box}.content .contail .nev[data-v-0a280e93]{margin-top:%?48?%;border-radius:%?24?%;padding:0 %?32?%;box-sizing:border-box;padding-bottom:%?32?%;background:#fff;display:flex;flex-wrap:wrap}.content .contail .nev .bar[data-v-0a280e93]{margin-top:%?40?%;margin-right:%?68?%;width:%?104?%;height:%?124?%;display:flex;flex-direction:column;align-items:center;color:rgba(0,0,0,.9);font-size:%?26?%;font-weight:400;font-family:PingFang SC;text-align:center}.content .contail .nev .bar .barimg[data-v-0a280e93]{width:%?80?%;height:%?80?%}.content .contail .nev .bar[data-v-0a280e93]:nth-child(4n){margin-right:0}.content .contail .info[data-v-0a280e93]{display:flex;margin-top:%?24?%}.content .contail .info .leftbox[data-v-0a280e93]{flex:1;padding:%?24?%;margin-right:%?22?%;box-sizing:border-box;background:linear-gradient(180deg,#fff2f2,#fff)}.content .contail .info .leftbox .lefttitle[data-v-0a280e93]{display:flex;align-items:center;justify-content:space-between}.content .contail .info .leftbox .lefttitle .title[data-v-0a280e93]{opacity:1;color:#000;font-size:%?30?%;font-weight:500;font-family:PingFang SC}.content .contail .info .leftbox .lefttitle .more[data-v-0a280e93]{display:flex;align-items:center}.content .contail .info .leftbox .lefttitle .more uni-image[data-v-0a280e93]{width:%?16?%;height:%?32?%}.content .contail .info .leftbox .newbar[data-v-0a280e93]{color:rgba(0,0,0,.9);font-size:%?22?%;font-weight:400;font-family:PingFang SC;text-align:left}.content .contail .info .leftbox .newbar uni-view[data-v-0a280e93]{margin-top:%?16?%}.content .contail .info .rightbox[data-v-0a280e93]{flex:1;padding:%?24?%;box-sizing:border-box;background:linear-gradient(180deg,#fffae7,#fff)}.content .contail .info .rightbox .righttitle[data-v-0a280e93]{display:flex;align-items:center}.content .contail .info .rightbox .righttitle .title[data-v-0a280e93]{color:#323233;font-size:%?30?%;font-weight:500;font-family:PingFang SC}.content .contail .info .rightbox .righttitle .active[data-v-0a280e93]{margin-left:%?16?%;width:%?104?%;height:%?32?%;border-radius:%?6?%;opacity:1;color:#fff;font-size:%?20?%;font-weight:500;font-family:PingFang SC;line-height:%?32?%;text-align:center;background:linear-gradient(90deg,#ff3d3d,#ff7a30)}.content .contail .info .rightbox .activeimg[data-v-0a280e93]{margin-top:%?12?%;display:flex;align-items:center;justify-content:space-between}.content .contail .info .rightbox .activeimg uni-image[data-v-0a280e93]{width:%?284?%;height:%?136?%;border-radius:%?24?%}.content .contail .waterfall[data-v-0a280e93]{color:rgba(0,0,0,.9);font-size:%?30?%;font-weight:400;font-family:PingFang SC;text-align:left}.content .contail .waterfall .falltitle[data-v-0a280e93]{color:rgba(0,0,0,.9);font-size:%?30?%;font-weight:400;font-family:PingFang SC;margin-top:%?24?%;display:flex;align-items:center}.content .contail .waterfall .falltitle .fallnev[data-v-0a280e93]{margin-right:%?40?%}.content .contail .waterfall .falltitle .fallnev .tip[data-v-0a280e93]{width:0;height:0}.content .contail .waterfall .falltitle .newfall[data-v-0a280e93]{position:relative;color:rgba(0,0,0,.9);font-size:%?36?%;font-weight:600;font-family:PingFang SC}.content .contail .waterfall .falltitle .newfall .tip[data-v-0a280e93]{position:absolute;bottom:0;right:0;width:%?64?%;height:%?12?%;border-radius:%?14?%;opacity:1;background:rgba(254,208,0,.6)}.content .contail .waterfall .misslist[data-v-0a280e93]{margin-top:%?24?%}.content .contail .waterfall .misslist .item[data-v-0a280e93]{padding:%?24?%;box-sizing:border-box}.content .contail .waterfall .misslist .item .types[data-v-0a280e93]{margin-top:%?8?%;color:rgba(0,0,0,.6);font-size:%?24?%;font-weight:400;font-family:PingFang SC}.content .contail .waterfall .misslist .item .desc[data-v-0a280e93]{margin-top:%?14?%;display:flex;align-items:center;justify-content:space-between;color:rgba(0,0,0,.6);font-size:%?20?%;font-weight:400;font-family:PingFang SC}.content .contail .waterfall .misslist .item .desc .money[data-v-0a280e93]{color:#f85317;font-size:%?32?%;font-weight:700;font-family:Montserrat}.content .contail .waterfall .misslist .item .desc .money uni-text[data-v-0a280e93]{font-size:%?24?%;font-weight:500}body.?%PAGE?%[data-v-0a280e93]{background:#f6f6f6}',""]),t.exports=e},"9c97":function(t,e,n){"use strict";n.r(e);var a=n("c54a"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"9f77":function(t,e,n){"use strict";var a=n("e09f"),i=n.n(a);i.a},bf68:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"waterfalls-flow"},t._l(t.data.column,(function(e,a){return n("v-uni-view",{key:a,staticClass:"waterfalls-flow-column",style:{width:t.w,"margin-left":0==a?0:t.m},attrs:{id:"waterfalls_flow_column_"+(a+1),msg:t.msg}},t._l(t.columnValue(a),(function(e,i){return n("v-uni-view",{key:i,class:["column-value",{"column-value-show":e.o}],style:[t.s1],on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.wapperClick(e)}}},[1==t.data.seat?n("v-uni-view",{staticClass:"inner"},[t._t("default",null,null,e)],2):t._e(),n("v-uni-image",{class:["img",{"img-hide":1==e[t.hideImageKey]||1==e[t.hideImageKey]},{"img-error":!e[t.data.imageKey]}],attrs:{src:e[t.data.imageKey],mode:"widthFix"},on:{load:function(n){arguments[0]=n=t.$handleEvent(n),t.imgLoad(e,a+1)},error:function(n){arguments[0]=n=t.$handleEvent(n),t.imgError(e,a+1)},click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.imageClick(e)}}}),2==t.data.seat?n("v-uni-view",{staticClass:"inner"},[t._t("default",null,null,e),1==t.isSend?n("v-uni-view",{staticClass:"topState flexC",class:"我是标题4"==e.title?"Sale":"Sold"},[t._v(t._s("我是标题4"==e.title?"售卖中":"已发货"))]):t._e(),1==t.isSend?n("v-uni-view",{staticClass:"bot"},[n("v-uni-image",{attrs:{src:"/static/edit.png",mode:""},on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.edit(e)}}}),n("v-uni-image",{attrs:{src:"/static/del.png",mode:""},on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.del(e)}}})],1):t._e()],2):t._e()],1)})),1)})),1)},o=[]},c0fa:function(t,e,n){"use strict";var a=n("8293"),i=n.n(a);i.a},c54a:function(t,e,n){"use strict";var a=n("4ea4");n("4de4"),n("a434"),n("a9e3"),n("d3b7"),n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var i=a(n("1da1")),o=a(n("5530")),l={props:{value:Array,column:{type:[String,Number],default:2},maxColumn:{type:[String,Number],default:5},columnSpace:{type:[String,Number],default:2},imageKey:{type:[String],default:"image"},hideImageKey:{type:[String],default:"hide"},seat:{type:[String,Number],default:2},listStyle:{type:Object},isSend:{type:[String,Number],default:0}},data:function(){return{data:{list:this.value?this.value:[],column:this.column<2?2:this.column,columnSpace:this.columnSpace<=5?this.columnSpace:5,imageKey:this.imageKey,seat:this.seat},msg:0,listInitStyle:{"border-radius":"12rpx","margin-bottom":"20rpx","background-color":"#fff"},adds:[],isLoaded:!0,curIndex:0,isRefresh:!0,flag:!1,refreshDatas:[]}},computed:{w:function(){var t="".concat(100/this.data.column-+this.data.columnSpace,"%");return t},m:function(){var t="".concat((100-(100/this.data.column-+this.data.columnSpace).toFixed(5)*this.data.column)/(this.data.column-1),"%");return t},s1:function(){return(0,o.default)((0,o.default)({},this.listInitStyle),this.listStyle)}},created:function(){this.refresh()},methods:{loadImages:function(){for(var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=0,a=this.data.list.filter((function(t,n){return n>=e})),i=0;i<a.length;i++)uni.getImageInfo({src:"".concat(a[i][this.imageKey],".jpg"),complete:function(i){n++,n==a.length&&t.initValue(e)}})},refresh:function(){var t=this;if(!this.isLoaded)return this.refreshDatas=this.value,!1;setTimeout((function(){t.refreshDatas=[],t.isRefresh=!0,t.adds=[],t.data.list=t.value?t.value:[],t.data.column=t.column<2?2:t.column>=t.maxColumn?t.maxColumn:t.column,t.data.columnSpace=t.columnSpace<=5?t.columnSpace:5,t.data.imageKey=t.imageKey,t.data.seat=t.seat,t.curIndex=0;for(var e=1;e<=t.data.column;e++)t.data["column_".concat(e,"_values")]=[],t.msg++;t.$nextTick((function(){t.initValue(t.curIndex,"refresh==>")}))}),1)},columnValue:function(t){return this.data["column_".concat(t+1,"_values")]},change:function(t){for(var e=0;e<this.data.list.length;e++)for(var n=this.data["column_".concat(this.data.list[e].column,"_values")],a=0;a<n.length;a++)if(t[e]&&e===n[a].index){this.data["column_".concat(this.data.list[e].column,"_values")][a]=Object.assign(n[a],t[e]),this.msg++;break}},getMin:function(t,e){for(var n=t[0][e],a=t[0],i=t.length-1;i>=0;i--)t[i][e]<n&&(n=t[i][e]);return a=t.filter((function(t){return t[e]==n})),a[0]},getMinColumnHeight:function(){var t=this;return new Promise((function(e){for(var n=[],a=function(a){var i=uni.createSelectorQuery().in(t);i.select("#waterfalls_flow_column_".concat(a)).boundingClientRect((function(t){n.push({column:a,height:t.height})})).exec((function(){t.data.column<=n.length&&e(t.getMin(n,"height"))}))},i=1;i<=t.data.column;i++)a(i)}))},initValue:function(t,e){var n=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n.isLoaded=!1,!(t>=n.data.list.length||n.refreshDatas.length)){e.next=5;break}return n.msg++,n.loaded(),e.abrupt("return",!1);case 5:return e.next=7,n.getMinColumnHeight();case 7:a=e.sent,i=n.data["column_".concat(a.column,"_values")],n.data.list[t].column=a.column,i.push((0,o.default)((0,o.default)({},n.data.list[t]),{},{cIndex:i.length,index:t,o:0})),n.msg++;case 12:case"end":return e.stop()}}),e)})))()},imgLoad:function(t,e){var n=t.index;t.o=1,this.$set(this.data["column_".concat(e,"_values")],t.cIndex,JSON.parse(JSON.stringify(t))),this.initValue(n+1)},imgError:function(t,e){var n=t.index;t.o=1,t[this.data.imageKey]=null,this.$set(this.data["column_".concat(e,"_values")],t.cIndex,JSON.parse(JSON.stringify(t))),this.initValue(n+1)},loaded:function(){if(this.refreshDatas.length)return this.isLoaded=!0,this.refresh(),!1;this.curIndex=this.data.list.length,this.adds.length?(this.data.list=this.adds[0],this.adds.splice(0,1),this.initValue(this.curIndex)):(this.data.list.length&&this.$emit("loaded"),this.isLoaded=!0,this.isRefresh=!1)},wapperClick:function(t){this.$emit("wapperClick",t)},imageClick:function(t){this.$emit("imageClick",t)},edit:function(t){this.$emit("edit",t)},del:function(t){console.log("del"),this.$emit("del",t)}},watch:{value:{deep:!0,handler:function(t,e){var n=this;setTimeout((function(){n.$nextTick((function(){if(n.isRefresh)return!1;if(n.isLoaded){if(t.length<=n.curIndex)return n.change(t);n.data.list=t,n.$nextTick((function(){n.initValue(n.curIndex,"watch==>")}))}else n.adds.push(t)}))}),10)}},column:function(t){this.refresh()}}};e.default=l},e09f:function(t,e,n){var a=n("8714");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("2e252497",a,!0,{sourceMap:!1,shadowMode:!1})}}]);