pages-mine-myCollection.5b74c028.js 13.4 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-myCollection"],{"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 l,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"5605dbfc",null,!1,n["a"],l);e["default"]=c.exports},"309e":function(t,e,a){"use strict";a.r(e);var n=a("d15c"),i=a("3b31");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("5d12");var l,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"66ed65f5",null,!1,n["a"],l);e["default"]=c.exports},"3b31":function(t,e,a){"use strict";a.r(e);var n=a("74cd"),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},5674:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-66ed65f5]{background:#f6f6f6}.misslist[data-v-66ed65f5]{padding:%?32?% %?30?%}.u-sticky[data-v-66ed65f5]{top:0!important}.item[data-v-66ed65f5]{padding:%?24?%}.item .title[data-v-66ed65f5]{color:rgba(0,0,0,.9);font-size:%?26?%;font-weight:700}.item .desc[data-v-66ed65f5]{justify-content:space-between;color:rgba(0,0,0,.6);font-size:%?24?%}.item .desc .money[data-v-66ed65f5]{color:#f85317;font-size:%?32?%;font-weight:700}.item .bot[data-v-66ed65f5]{display:flex;justify-content:flex-end}.item .bot uni-image[data-v-66ed65f5]{width:%?40?%;height:%?40?%}.topState[data-v-66ed65f5]{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-66ed65f5]{background:#dadada;color:rgba(0,0,0,.9);font-size:%?26?%}body.?%PAGE?%[data-v-66ed65f5]{background:#f6f6f6}",""]),t.exports=e},"5d12":function(t,e,a){"use strict";var n=a("5d20"),i=a.n(n);i.a},"5d20":function(t,e,a){var n=a("5674");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("7bd12270",n,!0,{sourceMap:!1,shadowMode:!1})},"74cd":function(t,e,a){"use strict";a("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list2:[{name:"全部"},{name:"售卖中"},{name:"已售出"}],list:[{image:"https://via.placeholder.com/200x500.png/ff0000",title:"比特币",desc:"所属分类:1 文博收藏品"},{image:"https://via.placeholder.com/200x300.png/9400D3",title:"我是标题4",desc:"描述描述描述描述描述描述描述描述4"},{image:"https://via.placeholder.com/100x240.png/B0E0E6",title:"我是标题5",desc:"描述描述描述描述描述描述描述描述5"},{image:"https://via.placeholder.com/140x280.png/7FFFAA",title:"我是标题6",desc:"描述描述描述描述描述描述描述描述6"},{image:"https://via.placeholder.com/40x60.png/EEE8AA",title:"我是标题7",desc:"描述描述描述描述描述描述描述描述7"}]}},methods:{edit:function(t){console.log("edit",t)},del:function(t){console.log("del",t)},wapperClick:function(t){console.log("单项点击事件",t)}},onReachBottom:function(){this.list=this.list.concat(this.list)}};e.default=n},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})},"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},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")),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,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=l},d15c: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,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"misslist"},[a("custom-waterfalls-flow",{attrs:{value:t.list,columnSpace:1.5,seat:2},on:{edit:function(e){arguments[0]=e=t.$handleEvent(e),t.edit.apply(void 0,arguments)},del:function(e){arguments[0]=e=t.$handleEvent(e),t.del.apply(void 0,arguments)},wapperClick:function(e){arguments[0]=e=t.$handleEvent(e),t.wapperClick.apply(void 0,arguments)},imageClick:function(e){arguments[0]=e=t.$handleEvent(e),t.wapperClick.apply(void 0,arguments)}},scopedSlots:t._u([{key:"default",fn:function(e){return[a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(e.title))]),a("v-uni-view",{staticClass:"desc"},[t._v(t._s(e.desc))]),a("v-uni-view",{staticClass:"desc flexA"},[t._v("张三"),a("v-uni-view",{staticClass:"money"},[a("v-uni-text",{staticStyle:{"font-size":"20rpx"}},[t._v("¥")]),t._v("120")],1)],1)],1)]}}])})],1)],1)},o=[]}}]);