pages-mine-myRelease.5ded4dd8.js
18.8 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-myRelease"],{"08db":function(t,e,n){"use strict";n.r(e);var i=n("9195"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},"10e9":function(t,e,n){"use strict";n.r(e);var i=n("bf68"),a=n("9c97");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("c0fa");var o,c=n("f0c5"),r=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"5605dbfc",null,!1,i["a"],o);e["default"]=r.exports},3664:function(t,e,n){var i=n("8f9c");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("1580cdad",i,!0,{sourceMap:!1,shadowMode:!1})},3915:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-page-body[data-v-fa71df90]{background:#f6f6f6}.misslist[data-v-fa71df90]{padding:%?32?% %?30?%}.u-sticky[data-v-fa71df90]{top:0!important}.item[data-v-fa71df90]{padding:%?24?%;padding-bottom:0}.item .title[data-v-fa71df90]{color:rgba(0,0,0,.9);font-size:%?26?%;font-weight:700}.item .desc[data-v-fa71df90]{justify-content:space-between;color:rgba(0,0,0,.6);font-size:%?24?%}.item .desc .money[data-v-fa71df90]{color:#f85317;font-size:%?32?%;font-weight:700}.item .bot[data-v-fa71df90]{display:flex;justify-content:flex-end}.item .bot uni-image[data-v-fa71df90]{width:%?40?%;height:%?40?%}.topState[data-v-fa71df90]{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-fa71df90]{background:#dadada;color:rgba(0,0,0,.9);font-size:%?26?%}body.?%PAGE?%[data-v-fa71df90]{background:#f6f6f6}",""]),t.exports=e},"43c6":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-sticky",style:[t.style],attrs:{id:t.elId}},[n("v-uni-view",{staticClass:"u-sticky__content",style:[t.stickyContent]},[t._t("default")],2)],1)},s=[]},"48c3":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{offsetTop:{type:[String,Number],default:uni.$u.props.sticky.offsetTop},customNavHeight:{type:[String,Number],default:44},disabled:{type:Boolean,default:uni.$u.props.sticky.disabled},bgColor:{type:String,default:uni.$u.props.sticky.bgColor},zIndex:{type:[String,Number],default:uni.$u.props.sticky.zIndex},index:{type:[String,Number],default:uni.$u.props.sticky.index}}};e.default=i},"5d24":function(t,e,n){"use strict";n.r(e);var i=n("6f40"),a=n("dd5f");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("854b8");var o,c=n("f0c5"),r=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"fa71df90",null,!1,i["a"],o);e["default"]=r.exports},"6f40":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uSticky:n("e935").default,uTabs:n("f383").default,customWaterfallsFlow:n("10e9").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("u-sticky",{attrs:{bgColor:"#fff"}},[n("u-tabs",{attrs:{list:t.list2,lineColor:"#FED000",scrollable:!1},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"misslist"},[n("custom-waterfalls-flow",{attrs:{isSend:1,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[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"title"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"desc"},[t._v(t._s(e.desc))]),n("v-uni-view",{staticClass:"desc flexA"},[t._v("张三"),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",{staticStyle:{"font-size":"20rpx"}},[t._v("¥")]),t._v("120")],1)],1)],1)]}}])})],1)],1)},s=[]},8011:function(t,e,n){var i=n("24fb");e=i(!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 i=n("8011");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("e073b3b8",i,!0,{sourceMap:!1,shadowMode:!1})},"854b8":function(t,e,n){"use strict";var i=n("b6d8"),a=n.n(i);a.a},"8f9c":function(t,e,n){var i=n("24fb");e=i(!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/* 文章场景相关 */',""]),t.exports=e},9195:function(t,e,n){"use strict";var i=n("4ea4");n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=i(n("1da1")),s=i(n("48c3")),o={name:"u-sticky",mixins:[uni.$u.mpMixin,uni.$u.mixin,s.default],data:function(){return{cssSticky:!1,stickyTop:0,elId:uni.$u.guid(),left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var t={};return this.disabled?t.position="static":this.cssSticky?(t.position="sticky",t.zIndex=this.uZindex,t.top=uni.$u.addUnit(this.stickyTop)):t.height=this.fixed?this.height+"px":"auto",t.backgroundColor=this.bgColor,uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},stickyContent:function(){var t={};return this.cssSticky||(t.position=this.fixed?"fixed":"static",t.top=this.stickyTop+"px",t.left=this.left+"px",t.width="auto"==this.width?"auto":this.width+"px",t.zIndex=this.uZindex),t},uZindex:function(){return this.zIndex?this.zIndex:uni.$u.zIndex.sticky}},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))}))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=uni.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("#".concat(this.elId),(function(e){t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<=this.stickyTop;this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()},getStickyTop:function(){this.stickyTop=uni.$u.getPx(this.offsetTop)+uni.$u.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.checkCssStickyForH5()&&(t.cssSticky=!0),"android"===uni.$u.os()&&Number(uni.$u.sys().system)>8&&(t.cssSticky=!0),"ios"===uni.$u.os()&&(t.cssSticky=!0);case 3:case"end":return e.stop()}}),e)})))()},checkComputedStyle:function(){},checkCssStickyForH5:function(){for(var t=["","-webkit-","-ms-","-moz-","-o-"],e=t.length,n=document.createElement("div"),i=0;i<e;i++)if(n.style.position=t[i]+"sticky",""!==n.style.position)return!0;return!1}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=o},"9bed":function(t,e,n){"use strict";var i=n("3664"),a=n.n(i);a.a},"9c97":function(t,e,n){"use strict";n.r(e);var i=n("c54a"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},b6d8:function(t,e,n){var i=n("3915");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("07cdc786",i,!0,{sourceMap:!1,shadowMode:!1})},bf68:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=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,i){return n("v-uni-view",{key:i,staticClass:"waterfalls-flow-column",style:{width:t.w,"margin-left":0==i?0:t.m},attrs:{id:"waterfalls_flow_column_"+(i+1),msg:t.msg}},t._l(t.columnValue(i),(function(e,a){return n("v-uni-view",{key:a,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,i+1)},error:function(n){arguments[0]=n=t.$handleEvent(n),t.imgError(e,i+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)},s=[]},c0fa:function(t,e,n){"use strict";var i=n("8293"),a=n.n(i);a.a},c54a:function(t,e,n){"use strict";var i=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 a=i(n("1da1")),s=i(n("5530")),o={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,s.default)((0,s.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,i=this.data.list.filter((function(t,n){return n>=e})),a=0;a<i.length;a++)uni.getImageInfo({src:"".concat(i[a][this.imageKey],".jpg"),complete:function(a){n++,n==i.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")],i=0;i<n.length;i++)if(t[e]&&e===n[i].index){this.data["column_".concat(this.data.list[e].column,"_values")][i]=Object.assign(n[i],t[e]),this.msg++;break}},getMin:function(t,e){for(var n=t[0][e],i=t[0],a=t.length-1;a>=0;a--)t[a][e]<n&&(n=t[a][e]);return i=t.filter((function(t){return t[e]==n})),i[0]},getMinColumnHeight:function(){var t=this;return new Promise((function(e){for(var n=[],i=function(i){var a=uni.createSelectorQuery().in(t);a.select("#waterfalls_flow_column_".concat(i)).boundingClientRect((function(t){n.push({column:i,height:t.height})})).exec((function(){t.data.column<=n.length&&e(t.getMin(n,"height"))}))},a=1;a<=t.data.column;a++)i(a)}))},initValue:function(t,e){var n=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var i,a;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:i=e.sent,a=n.data["column_".concat(i.column,"_values")],n.data.list[t].column=i.column,a.push((0,s.default)((0,s.default)({},n.data.list[t]),{},{cIndex:a.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=o},dd5f:function(t,e,n){"use strict";n.r(e);var i=n("f6ff"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},e935:function(t,e,n){"use strict";n.r(e);var i=n("43c6"),a=n("08db");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("9bed");var o,c=n("f0c5"),r=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"4c72cf65",null,!1,i["a"],o);e["default"]=r.exports},f6ff:function(t,e,n){"use strict";n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={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=i}}]);