pages-index-product.0fa64b97.js
16.7 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-product"],{"052b":function(t,e,a){"use strict";var n=a("cb51"),i=a.n(n);i.a},"0ea8":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAfpJREFUaEPtmb1KBEEQhL9TEUT0ZUw08SlMjEzESFEDEUFFNBUM/InVQA1ETHwF30cNBP8pmYFludPdm565HdiDCw7mp6uqp6emr0Pmn07m8dMCGLSCrQKtAoEMDCKFhlzMX4Gx/05PCcDv9W0RuF8jFQDto69YXwDegGsLICkAFPfYA1YdkDXgEhgGPvsFExuA1lfOK8ADYAV4AcaBZeCqyQCK5Oy74J+BSeAY2HFpFXQmYinQjfli8LuAAte4xgGowrzyXgc6KPgYZbQK8/68BgdvDSAp89b3QHLmLQEMhHlrAMpnX+fL1cY058sXXmgZ9WVwE9gCFPwEcOLqvFm16XVThwDwFmAGuAfegTHgDFCdj8q8RQp59o+cQdOat8CSsw9KK5NS+ZdPClFA60qFB2DKKTAHPAIjwEe/Bq3OPAsASp/pHAH4FDoEFh3jN85lyoE2PoX8IZ4F7oBXZ5NPcznE3oqI6W1gA3jKqYwWK1m2F1nZEPZ6uES70EKrUFGF8tMxiaWwAjAwJSwBeBBJlbAGkFyJGACqKtHYR303o5hdW+W/6qQ3wzpw3uTGVjcl1FpUd07po86c+qONbi0WnbGqk3pB88AocFHHNsd4kdXdP+v2elkJ/c7uD466ilUaH+seqLS5xaAWgAWLIWu0CoSwZzE3ewV+AFCTlDHuBquIAAAAAElFTkSuQmCC"},"10e9":function(t,e,a){"use strict";a.r(e);var n=a("bf68"),i=a("9c97");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("c0fa");var r,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"5605dbfc",null,!1,n["a"],r);e["default"]=c.exports},"17a7":function(t,e,a){"use strict";a.r(e);var n=a("b7c9"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"26a0":function(t,e,a){var n=a("24fb");e=n(!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-0f5b833b]{background:#f6f6f6}.product_all .top[data-v-0f5b833b]{position:fixed;top:0;left:0;width:100%;z-index:99;height:%?96?%;opacity:1;background:#fff;padding:%?16?% %?32?%;display:flex;box-sizing:border-box;align-items:center}.product_all .top uni-image[data-v-0f5b833b]{margin-right:%?32?%;width:%?48?%;height:%?48?%}.product_all .top .search[data-v-0f5b833b]{flex:1;display:flex;align-items:center}.product_all .top .search .tosear[data-v-0f5b833b]{position:relative;width:%?522?%;height:%?64?%;border-radius:%?38?%;opacity:1;border:0 solid #010101;background:#f5f5f5;padding:0 %?32?%}.product_all .top .search .tosear uni-input[data-v-0f5b833b]{text-align:center;width:100%;height:100%}.product_all .top .search .tosear uni-image[data-v-0f5b833b]{position:absolute;left:%?280?%;top:50%;left:36%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:%?32?%;height:%?32?%}.product_all .misslist[data-v-0f5b833b]{margin-top:%?132?%}.product_all .misslist .item[data-v-0f5b833b]{padding:%?24?%;box-sizing:border-box}.product_all .misslist .item .desc[data-v-0f5b833b]{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}.product_all .misslist .item .desc .money[data-v-0f5b833b]{color:#f85317;font-size:%?32?%;font-weight:700;font-family:Montserrat}.product_all .misslist .item .desc .money uni-text[data-v-0f5b833b]{font-size:%?24?%;font-weight:500}body.?%PAGE?%[data-v-0f5b833b]{background:#f6f6f6}',""]),t.exports=e},"2c56":function(t,e,a){"use strict";a.r(e);var n=a("8e24"),i=a("17a7");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("052b");var r,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"0f5b833b",null,!1,n["a"],r);e["default"]=c.exports},8011:function(t,e,a){var n=a("24fb");e=n(!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,a){var n=a("8011");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("e073b3b8",n,!0,{sourceMap:!1,shadowMode:!1})},"8e24":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={customWaterfallsFlow:a("10e9").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"product_all"},[n("v-uni-view",{staticClass:"top"},[n("v-uni-image",{attrs:{src:a("0ea8"),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:"搜索","placeholder-style":"text-align: center;font-size: 28rpx; color: rgba(194,194,194,1);"}}),n("v-uni-image",{attrs:{src:a("b4ca"),mode:""}})],1)],1)],1),n("v-uni-view",{staticClass:"misslist"},[n("custom-waterfalls-flow",{attrs:{value:t.list},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.title))]),n("v-uni-view",{staticClass:"desc"},[n("v-uni-text",[t._v("张三")]),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",[t._v("¥")]),t._v("6666")],1)],1)],1)]}}])})],1)],1)},o=[]},"9c97":function(t,e,a){"use strict";a.r(e);var n=a("c54a"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},b4ca:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6lJREFUWEfF1lmof3MUBfDP3yzzEJKpvCDxgAchkcxSMmYumZPILBQiKYUMERkKmZXZk+mNvFCiTGXIrJBZS/urc3+/c3733HuLU6fu/Z3vsPbaa6+9l1ncs1xn21/Iu6hn2QJ25dK8f/RcuHydk28LesYAyOF/di5dAWtjJfyO7/Br59Z25ihW5gOQ7zkoke+AA7A9NsIq+A1f4T28jBfxA0aDGAKQ3/Mm8t1wKvbG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,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{image:"https://via.placeholder.com/200x500.png/ff0000",title:"我是标题1"},{image:"https://via.placeholder.com/200x200.png/2878ff",title:"我是标题2"},{image:"https://via.placeholder.com/200x200.png/2878ff",title:"我是标题2"},{image:"https://via.placeholder.com/200x200.png/2878ff",title:"我是标题2"},{image:"https://via.placeholder.com/200x200.png/2878ff",title:"我是标题2"}]}}};e.default=n},bf68:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"waterfalls-flow"},t._l(t.data.column,(function(e,n){return a("v-uni-view",{key:n,staticClass:"waterfalls-flow-column",style:{width:t.w,"margin-left":0==n?0:t.m},attrs:{id:"waterfalls_flow_column_"+(n+1),msg:t.msg}},t._l(t.columnValue(n),(function(e,i){return a("v-uni-view",{key:i,class:["column-value",{"column-value-show":e.o}],style:[t.s1],on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.wapperClick(e)}}},[1==t.data.seat?a("v-uni-view",{staticClass:"inner"},[t._t("default",null,null,e)],2):t._e(),a("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(a){arguments[0]=a=t.$handleEvent(a),t.imgLoad(e,n+1)},error:function(a){arguments[0]=a=t.$handleEvent(a),t.imgError(e,n+1)},click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.imageClick(e)}}}),2==t.data.seat?a("v-uni-view",{staticClass:"inner"},[t._t("default",null,null,e),1==t.isSend?a("v-uni-view",{staticClass:"topState flexC",class:"我是标题4"==e.title?"Sale":"Sold"},[t._v(t._s("我是标题4"==e.title?"售卖中":"已发货"))]):t._e(),1==t.isSend?a("v-uni-view",{staticClass:"bot"},[a("v-uni-image",{attrs:{src:"/static/edit.png",mode:""},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.edit(e)}}}),a("v-uni-image",{attrs:{src:"/static/del.png",mode:""},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.del(e)}}})],1):t._e()],2):t._e()],1)})),1)})),1)},o=[]},c0fa:function(t,e,a){"use strict";var n=a("8293"),i=a.n(n);i.a},c54a:function(t,e,a){"use strict";var n=a("4ea4");a("4de4"),a("a434"),a("a9e3"),a("d3b7"),a("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),o=n(a("5530")),r={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,a=0,n=this.data.list.filter((function(t,a){return a>=e})),i=0;i<n.length;i++)uni.getImageInfo({src:"".concat(n[i][this.imageKey],".jpg"),complete:function(i){a++,a==n.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 a=this.data["column_".concat(this.data.list[e].column,"_values")],n=0;n<a.length;n++)if(t[e]&&e===a[n].index){this.data["column_".concat(this.data.list[e].column,"_values")][n]=Object.assign(a[n],t[e]),this.msg++;break}},getMin:function(t,e){for(var a=t[0][e],n=t[0],i=t.length-1;i>=0;i--)t[i][e]<a&&(a=t[i][e]);return n=t.filter((function(t){return t[e]==a})),n[0]},getMinColumnHeight:function(){var t=this;return new Promise((function(e){for(var a=[],n=function(n){var i=uni.createSelectorQuery().in(t);i.select("#waterfalls_flow_column_".concat(n)).boundingClientRect((function(t){a.push({column:n,height:t.height})})).exec((function(){t.data.column<=a.length&&e(t.getMin(a,"height"))}))},i=1;i<=t.data.column;i++)n(i)}))},initValue:function(t,e){var a=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a.isLoaded=!1,!(t>=a.data.list.length||a.refreshDatas.length)){e.next=5;break}return a.msg++,a.loaded(),e.abrupt("return",!1);case 5:return e.next=7,a.getMinColumnHeight();case 7:n=e.sent,i=a.data["column_".concat(n.column,"_values")],a.data.list[t].column=n.column,i.push((0,o.default)((0,o.default)({},a.data.list[t]),{},{cIndex:i.length,index:t,o:0})),a.msg++;case 12:case"end":return e.stop()}}),e)})))()},imgLoad:function(t,e){var a=t.index;t.o=1,this.$set(this.data["column_".concat(e,"_values")],t.cIndex,JSON.parse(JSON.stringify(t))),this.initValue(a+1)},imgError:function(t,e){var a=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(a+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 a=this;setTimeout((function(){a.$nextTick((function(){if(a.isRefresh)return!1;if(a.isLoaded){if(t.length<=a.curIndex)return a.change(t);a.data.list=t,a.$nextTick((function(){a.initValue(a.curIndex,"watch==>")}))}else a.adds.push(t)}))}),10)}},column:function(t){this.refresh()}}};e.default=r},cb51:function(t,e,a){var n=a("26a0");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("617eca84",n,!0,{sourceMap:!1,shadowMode:!1})}}]);