|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-buyerOrder~pages-mine-commonProblem~pages-mine-myRelease~pages-mine-sellerOrder"],{"0866":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return a}));var a={uBadge:r("2a2b").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"u-tabs"},[r("v-uni-view",{staticClass:"u-tabs__wrapper"},[e._t("left"),r("v-uni-view",{staticClass:"u-tabs__wrapper__scroll-view-wrapper"},[r("v-uni-scroll-view",{ref:"u-tabs__wrapper__scroll-view",staticClass:"u-tabs__wrapper__scroll-view",attrs:{"scroll-x":e.scrollable,"scroll-left":e.scrollLeft,"scroll-with-animation":!0,"show-scrollbar":!1}},[r("v-uni-view",{ref:"u-tabs__wrapper__nav",staticClass:"u-tabs__wrapper__nav"},[e._l(e.list,(function(t,a){return r("v-uni-view",{key:a,ref:"u-tabs__wrapper__nav__item-"+a,refInFor:!0,staticClass:"u-tabs__wrapper__nav__item",class:["u-tabs__wrapper__nav__item-"+a,t.disabled&&"u-tabs__wrapper__nav__item--disabled"],style:[e.$u.addStyle(e.itemStyle),{flex:e.scrollable?"":1}],on:{click:function(r){arguments[0]=r=e.$handleEvent(r),e.clickHandler(t,a)}}},[r("v-uni-text",{staticClass:"u-tabs__wrapper__nav__item__text",class:[t.disabled&&"u-tabs__wrapper__nav__item__text--disabled"],style:[e.textStyle(a)]},[e._v(e._s(t[e.keyName]))]),r("u-badge",{attrs:{show:!(!t.badge||!(t.badge.show||t.badge.isDot||t.badge.value)),isDot:t.badge&&t.badge.isDot||e.propsBadge.isDot,value:t.badge&&t.badge.value||e.propsBadge.value,max:t.badge&&t.badge.max||e.propsBadge.max,type:t.badge&&t.badge.type||e.propsBadge.type,showZero:t.badge&&t.badge.showZero||e.propsBadge.showZero,bgColor:t.badge&&t.badge.bgColor||e.propsBadge.bgColor,color:t.badge&&t.badge.color||e.propsBadge.color,shape:t.badge&&t.badge.shape||e.propsBadge.shape,numberType:t.badge&&t.badge.numberType||e.propsBadge.numberType,inverted:t.badge&&t.badge.inverted||e.propsBadge.inverted,customStyle:"margin-left: 4px;"}})],1)})),r("v-uni-view",{ref:"u-tabs__wrapper__nav__line",staticClass:"u-tabs__wrapper__nav__line",style:[{width:e.$u.addUnit(e.lineWidth),transform:"translate("+e.lineOffsetLeft+"px)",transitionDuration:(e.firstTime?0:e.duration)+"ms",height:e.$u.addUnit(e.lineHeight),background:e.lineColor,backgroundSize:e.lineBgSize}]})],2)],1)],1),e._t("right")],2)],1)},n=[]},"0eaa":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.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-view[data-v-2ffdb29d], uni-scroll-view[data-v-2ffdb29d], uni-swiper-item[data-v-2ffdb29d]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-tabs__wrapper[data-v-2ffdb29d]{display:flex;flex-direction:row;align-items:center}.u-tabs__wrapper__scroll-view-wrapper[data-v-2ffdb29d]{flex:1;overflow:auto hidden}.u-tabs__wrapper__scroll-view[data-v-2ffdb29d]{display:flex;flex-direction:row;flex:1}.u-tabs__wrapper__nav[data-v-2ffdb29d]{display:flex;flex-direction:row;position:relative}.u-tabs__wrapper__nav__item[data-v-2ffdb29d]{padding:0 11px;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-tabs__wrapper__nav__item--disabled[data-v-2ffdb29d]{cursor:not-allowed}.u-tabs__wrapper__nav__item__text[data-v-2ffdb29d]{font-size:15px;color:#606266}.u-tabs__wrapper__nav__item__text--disabled[data-v-2ffdb29d]{color:#c8c9cc!important}.u-tabs__wrapper__nav__line[data-v-2ffdb29d]{height:3px;background:#3c9cff;width:30px;position:absolute;bottom:2px;border-radius:100px;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.3s}',""]),e.exports=t},"2a2b":function(e,t,r){"use strict";r.r(t);var a=r("5315"),i=r("5a75");for(var n in i)"default"!==n&&function(e){r.d(t,e,(function(){return i[e]}))}(n);r("45cb");var s,u=r("f0c5"),o=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"6718ea06",null,!1,a["a"],s);t["default"]=o.exports},"310e":function(e,t,r){"use strict";var a=r("4ea4");r("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(r("7625")),n={name:"u-badge",mixins:[uni.$u.mpMixin,i.default,uni.$u.mixin],computed:{boxStyle:function(){var e={};return e},badgeStyle:function(){var e={};if(this.color&&(e.color=this.color),this.bgColor&&!this.inverted&&(e.backgroundColor=this.bgColor),this.absolute&&(e.position="absolute",this.offset.length)){var t=this.offset[0],r=this.offset[1]||t;e.top=uni.$u.addUnit(t),e.right=uni.$u.addUnit(r)}return e},showValue:function(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}}};t.default=n},"3c88":function(e,t,r){var a=r("0eaa");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("4f06").default;i("46852ee1",a,!0,{sourceMap:!1,shadowMode:!1})},"45cb":function(e,t,r){"use strict";var a=r("b20d"),i=r.n(a);i.a},5315:function(e,t,r){"use strict";var a;r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?r("v-uni-text",{staticClass:"u-badge",class:[e.isDot?"u-badge--dot":"u-badge--not-dot",e.inverted&&"u-badge--inverted","horn"===e.shape&&"u-badge--horn","u-badge--"+e.type+(e.inverted?"--inverted":"")],style:[e.$u.addStyle(e.customStyle),e.badgeStyle]},[e._v(e._s(e.isDot?"":e.showValue))]):e._e()},n=[]},"5a75":function(e,t,r){"use strict";r.r(t);var a=r("310e"),i=r.n(a);for(var n in a)"default"!==n&&function(e){r.d(t,e,(function(){return a[e]}))}(n);t["default"]=i.a},7625:function(e,t,r){"use strict";r("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{isDot:{type:Boolean,default:uni.$u.props.badge.isDot},value:{type:[Number,String],default:uni.$u.props.badge.value},show:{type:Boolean,default:uni.$u.props.badge.show},max:{type:[Number,String],default:uni.$u.props.badge.max},type:{type:String,default:uni.$u.props.badge.type},showZero:{type:Boolean,default:uni.$u.props.badge.showZero},bgColor:{type:[String,null],default:uni.$u.props.badge.bgColor},color:{type:[String,null],default:uni.$u.props.badge.color},shape:{type:String,default:uni.$u.props.badge.shape},numberType:{type:String,default:uni.$u.props.badge.numberType},offset:{type:Array,default:uni.$u.props.badge.offset},inverted:{type:Boolean,default:uni.$u.props.badge.inverted},absolute:{type:Boolean,default:uni.$u.props.badge.absolute}}};t.default=a},"89b7":function(e,t,r){"use strict";r.r(t);var a=r("b9f7"),i=r.n(a);for(var n in a)"default"!==n&&function(e){r.d(t,e,(function(){return a[e]}))}(n);t["default"]=i.a},a30f:function(e,t,r){"use strict";r("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={props:{duration:{type:Number,default:uni.$u.props.tabs.duration},list:{type:Array,default:uni.$u.props.tabs.list},lineColor:{type:String,default:uni.$u.props.tabs.lineColor},activeStyle:{type:[String,Object],default:uni.$u.props.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:uni.$u.props.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:uni.$u.props.tabs.lineWidth},lineHeight:{type:[String,Number],default:uni.$u.props.tabs.lineHeight},lineBgSize:{type:String,default:uni.$u.props.tabs.lineBgSize},itemStyle:{type:[String,Object],default:uni.$u.props.tabs.itemStyle},scrollable:{type:Boolean,default:uni.$u.props.tabs.scrollable},current:{type:[Number,String],default:uni.$u.props.tabs.current},keyName:{type:String,default:uni.$u.props.tabs.keyName}}};t.default=a},b20d:function(e,t,r){var a=r("b613");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("4f06").default;i("2b1825c9",a,!0,{sourceMap:!1,shadowMode:!1})},b613:function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.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-view[data-v-6718ea06], uni-scroll-view[data-v-6718ea06], uni-swiper-item[data-v-6718ea06]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-badge[data-v-6718ea06]{border-top-right-radius:100px;border-top-left-radius:100px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;display:flex;flex-direction:row;line-height:11px;text-align:center;font-size:11px;color:#fff}.u-badge--dot[data-v-6718ea06]{height:8px;width:8px}.u-badge--inverted[data-v-6718ea06]{font-size:13px}.u-badge--not-dot[data-v-6718ea06]{padding:2px 5px}.u-badge--horn[data-v-6718ea06]{border-bottom-left-radius:0}.u-badge--primary[data-v-6718ea06]{background-color:#3c9cff}.u-badge--primary--inverted[data-v-6718ea06]{color:#3c9cff}.u-badge--error[data-v-6718ea06]{background-color:#f56c6c}.u-badge--error--inverted[data-v-6718ea06]{color:#f56c6c}.u-badge--success[data-v-6718ea06]{background-color:#5ac725}.u-badge--success--inverted[data-v-6718ea06]{color:#5ac725}.u-badge--info[data-v-6718ea06]{background-color:#909399}.u-badge--info--inverted[data-v-6718ea06]{color:#909399}.u-badge--warning[data-v-6718ea06]{background-color:#f9ae3d}.u-badge--warning--inverted[data-v-6718ea06]{color:#f9ae3d}',""]),e.exports=t},b9f7:function(e,t,r){"use strict";var a=r("4ea4");r("d81d"),r("13d5"),r("fb6a"),r("d3b7"),r("3ca3"),r("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(r("3835")),n=a(r("5530"));r("96cf");var s=a(r("1da1")),u=a(r("a30f")),o={name:"u-tabs",mixins:[uni.$u.mpMixin,uni.$u.mixin,u.default],data:function(){return{firstTime:!0,scrollLeft:0,scrollViewWidth:0,lineOffsetLeft:0,tabsRect:{left:0},innerCurrent:0,moving:!1}},watch:{current:{immediate:!0,handler:function(e,t){var r=this;e!==this.innerCurrent&&(this.innerCurrent=e,this.$nextTick((function(){r.resize()})))}},list:function(){var e=this;this.$nextTick((function(){e.resize()}))}},computed:{textStyle:function(){var e=this;return function(t){var r={},a=t===e.innerCurrent?uni.$u.addStyle(e.activeStyle):uni.$u.addStyle(e.inactiveStyle);return e.list[t].disabled&&(r.color="#c8c9cc"),uni.$u.deepMerge(a,r)}},propsBadge:function(){return uni.$u.props.badge}},mounted:function(){var e=this;return(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.init();case 1:case"end":return t.stop()}}),t)})))()},methods:{setLineLeft:function(){var e=this,t=this.list[this.innerCurrent];if(t){var r=this.list.slice(0,this.innerCurrent).reduce((function(e,t){return e+t.rect.width}),0),a=uni.$u.getPx(this.lineWidth);this.lineOffsetLeft=r+(t.rect.width-a)/2,this.firstTime&&setTimeout((function(){e.firstTime=!1}),10)}},animation:function(e){},clickHandler:function(e,t){this.$emit("click",(0,n.default)((0,n.default)({},e),{},{index:t})),e.disabled||(this.innerCurrent=t,this.resize(),this.$emit("change",(0,n.default)((0,n.default)({},e),{},{index:t})))},init:function(){var e=this;uni.$u.sleep().then((function(){e.resize()}))},setScrollLeft:function(){var e=this.list[this.innerCurrent],t=this.list.slice(0,this.innerCurrent).reduce((function(e,t){return e+t.rect.width}),0),r=uni.$u.sys().windowWidth,a=t-(this.tabsRect.width-e.rect.width)/2-(r-this.tabsRect.right)/2+this.tabsRect.left/2;a=Math.min(a,this.scrollViewWidth-this.tabsRect.width),this.scrollLeft=Math.max(0,a)},resize:function(){var e=this;0!==this.list.length&&Promise.all([this.getTabsRect(),this.getAllItemRect()]).then((function(t){var r=(0,i.default)(t,2),a=r[0],n=r[1],s=void 0===n?[]:n;e.tabsRect=a,e.scrollViewWidth=0,s.map((function(t,r){e.scrollViewWidth+=t.width,e.list[r].rect=t})),e.setLineLeft(),e.setScrollLeft()}))},getTabsRect:function(){var e=this;return new Promise((function(t){e.queryRect("u-tabs__wrapper__scroll-view").then((function(e){return t(e)}))}))},getAllItemRect:function(){var e=this;return new Promise((function(t){var r=e.list.map((function(t,r){return e.queryRect("u-tabs__wrapper__nav__item-".concat(r),!0)}));Promise.all(r).then((function(e){return t(e)}))}))},queryRect:function(e,t){var r=this;return new Promise((function(t){r.$uGetRect(".".concat(e)).then((function(e){t(e)}))}))}}};t.default=o},f383:function(e,t,r){"use strict";r.r(t);var a=r("0866"),i=r("89b7");for(var n in i)"default"!==n&&function(e){r.d(t,e,(function(){return i[e]}))}(n);r("f7c6");var s,u=r("f0c5"),o=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,"2ffdb29d",null,!1,a["a"],s);t["default"]=o.exports},f7c6:function(e,t,r){"use strict";var a=r("3c88"),i=r.n(a);i.a}}]); |