videoNumber-center-index.6b13c45c.js 24 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["videoNumber-center-index"],{"0281":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-05573061] .u-form-item--right__content__slot > uni-view,[data-v-05573061] .u-form-item--right__content__slot > div,[data-v-05573061] .u-form-item--right__content__slot > span,[data-v-05573061] .u-form-item--right__content__slot > uni-text{width:100%}.u-search[data-v-05573061]{display:flex;flex-direction:row;align-items:center;flex:1}.u-content[data-v-05573061]{display:flex;flex-direction:row;align-items:center;padding:0 %?18?%;flex:1}.u-clear-icon[data-v-05573061]{display:flex;flex-direction:row;align-items:center}.u-input[data-v-05573061]{flex:1;font-size:%?28?%;line-height:1;margin:0 %?10?%;color:#909399}.u-close-wrap[data-v-05573061]{width:%?40?%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-05573061]{color:#909399}.u-action[data-v-05573061]{font-size:%?28?%;color:#303133;width:0;overflow:hidden;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-05573061]{width:%?80?%;margin-left:%?10?%}',""]),t.exports=e},2646:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uSticky:i("61b0").default,uSearch:i("5a0a").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 0==t.shenheStatus?i("v-uni-view",{staticClass:"pages"},[i("u-sticky",{attrs:{"h5-nav-height":0}},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"search"},[i("u-search",{attrs:{"show-action":!1,placeholder:"请输入商品名称搜索"},on:{search:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("v-uni-view",{staticClass:"cat"},t._l(t.catList,(function(e){return i("v-uni-view",{key:e.id,class:["item",e.id===t.catId?"on":""],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handle("changeCategory",e.id)}}},[t._v(t._s(e.name))])})),1),t.catId?i("v-uni-view",{staticClass:"ranking"},[i("v-uni-view",{staticClass:"hd flex"},[i("v-uni-view",{staticClass:"s s1"},[i("v-uni-view",{staticClass:"tit"},[t._v("用户信息")])],1),i("v-uni-view",{staticClass:"s s2 tac"},[i("v-uni-view",{staticClass:"tit"},[t._v("订单数")])],1),i("v-uni-view",{staticClass:"s s2 tac"},[i("v-uni-view",{staticClass:"tit"},[t._v("订单金额")])],1),i("v-uni-view",{staticClass:"s s2 tar"},[i("v-uni-view",{staticClass:"tit"},[t._v("推广人数")])],1)],1)],1):i("v-uni-view",{staticClass:"filter"},t._l(t.sortList,(function(e){return i("v-uni-view",{key:e.id,class:["item",t.getClass(e.id),e.id===t.sort?"active":""],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handle("changeFilter",e.id)}}},[t._v(t._s(e.name)),2===e.id?i("v-uni-view",{staticClass:"icons"},[i("v-uni-view",{staticClass:"s s1"},[i("i",{staticClass:"iconfont icon-arrow-down-filling"})]),i("v-uni-view",{staticClass:"s s2"},[i("i",{staticClass:"iconfont icon-arrow-down-filling"})])],1):t._e()],1)})),1)],1)],1),i("v-uni-view",{staticClass:"content"},[t.catId?i("v-uni-view",{staticClass:"ranking"},t._l(t.rankingList,(function(e,n){return i("v-uni-view",{key:e.sharer_id,staticClass:"bd flex"},[i("v-uni-view",{staticClass:"s s1"},[i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"img"},[0===n?i("v-uni-image",{staticClass:"icon",attrs:{mode:"widthFix",src:t.asyncImgs.video_shop.img_1}}):t._e(),1===n?i("v-uni-image",{staticClass:"icon",attrs:{mode:"widthFix",src:t.asyncImgs.video_shop.img_2}}):t._e(),2===n?i("v-uni-image",{staticClass:"icon",attrs:{mode:"widthFix",src:t.asyncImgs.video_shop.img_3}}):t._e(),i("v-uni-image",{staticClass:"pic",attrs:{mode:"aspectFill",src:e.avatar}})],1),i("v-uni-view",{staticClass:"goodsName"},[t._v(t._s(e.nickname))])],1)],1),i("v-uni-view",{staticClass:"s s2 tac"},[i("v-uni-view",{staticClass:"tit"},[t._v(t._s(e.order_num))])],1),i("v-uni-view",{staticClass:"s s2 tac"},[i("v-uni-view",{staticClass:"tit"},[t._v(t._s(e.order_sum))])],1),i("v-uni-view",{staticClass:"s s2 tar"},[i("v-uni-view",{staticClass:"tit"},[t._v(t._s(e.first_count))])],1)],1)})),1):i("v-uni-view",{staticClass:"goodsList"},t._l(t.goodsList,(function(e){return i("v-uni-view",{key:e.id,staticClass:"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$utils.toUrl("/videoNumber/goods/index?id="+e.id+"&product_id="+e.wx_product_id)}}},[i("v-uni-view",{staticClass:"img"},[i("v-uni-image",{attrs:{mode:"aspectFill",src:e.pic_url}})],1),i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"tag"},[i("v-uni-view",[t._v("销量 "+t._s(e.sales)+"件")])],1),i("v-uni-view",{staticClass:"fd"},[i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v(t._s(t._f("priceBeforeZero")(e.price)))]),t._v(t._s(t._f("priceAfterZero")(e.price)))],1),i("v-uni-view",{staticClass:"amount"},[i("v-uni-view",[t._v("¥"+t._s(e.rebate))]),t.asyncImgs?i("v-uni-image",{attrs:{mode:"heightFix",src:t.asyncImgs.video_shop.zhuan}}):t._e()],1)],1)],1)],1)})),1)],1)],1):1==t.shenheStatus?i("Shenhe"):t._e()},s=[]},2688:function(t,e,i){"use strict";i.r(e);var n=i("f605"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"2c76":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{},[i("v-uni-view",{staticClass:"u-sticky-wrap",class:[t.elClass],style:{height:t.fixed?t.height+"px":"auto",backgroundColor:t.bgColor}},[i("v-uni-view",{staticClass:"u-sticky",style:{position:t.fixed?"fixed":"static",top:t.stickyTop+"px",left:t.left+"px",width:"auto"==t.width?"auto":t.width+"px",zIndex:t.uZIndex}},[t._t("default")],2)],1)],1)},a=[]},"55c7":function(t,e,i){var n=i("6cb5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("67603d30",n,!0,{sourceMap:!1,shadowMode:!1})},"5a0a":function(t,e,i){"use strict";i.r(e);var n=i("c667"),a=i("8dd1");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("a0bf");var o=i("828b"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"05573061",null,!1,n["a"],void 0);e["default"]=r.exports},"61b0":function(t,e,i){"use strict";i.r(e);var n=i("2c76"),a=i("a99f");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("9d77");var o=i("828b"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"1ef8cf66",null,!1,n["a"],void 0);e["default"]=r.exports},"6a01":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-1ef8cf66] .u-form-item--right__content__slot > uni-view,[data-v-1ef8cf66] .u-form-item--right__content__slot > div,[data-v-1ef8cf66] .u-form-item--right__content__slot > span,[data-v-1ef8cf66] .u-form-item--right__content__slot > uni-text{width:100%}.u-sticky[data-v-1ef8cf66]{z-index:9999999999}',""]),t.exports=e},"6cb5":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-40fac2b3] .u-form-item--right__content__slot > uni-view,[data-v-40fac2b3] .u-form-item--right__content__slot > div,[data-v-40fac2b3] .u-form-item--right__content__slot > span,[data-v-40fac2b3] .u-form-item--right__content__slot > uni-text{width:100%}.pages[data-v-40fac2b3]{min-height:100vh;background:#f2f2f2}.header[data-v-40fac2b3]{background:#fff;padding:0 %?24?%}.header .search[data-v-40fac2b3]{padding:%?18?% 0}.header .cat[data-v-40fac2b3]{display:flex}.header .cat .item[data-v-40fac2b3]{position:relative;margin-right:%?60?%;padding:%?26?% %?18?%;line-height:%?40?%;font-size:%?28?%;color:#262626}.header .cat .item.on[data-v-40fac2b3]{font-weight:700}.header .cat .item.on[data-v-40fac2b3]:after{content:"";position:absolute;left:50%;bottom:%?20?%;margin-left:%?-12?%;width:%?24?%;height:%?4?%;background:#f0250e}.content[data-v-40fac2b3]{padding:%?24?%}.goodsList .item[data-v-40fac2b3]{display:flex;margin-bottom:%?24?%;padding:%?24?%;background:#fff;border-radius:%?20?%}.goodsList .img[data-v-40fac2b3]{width:%?160?%;height:%?160?%}.goodsList .img uni-image[data-v-40fac2b3]{display:block;width:100%;height:100%}.goodsList .con[data-v-40fac2b3]{flex:1;overflow:hidden;margin-left:%?20?%}.goodsList .name[data-v-40fac2b3]{display:-webkit-box;white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;overflow:hidden;height:%?80?%;line-height:%?40?%;font-size:%?28?%;font-weight:700;color:#262626}.goodsList .tag[data-v-40fac2b3]{display:flex;flex-wrap:wrap;padding:0 0 %?14?%;font-size:%?24?%;color:#8c8c8c}.goodsList .tag uni-view[data-v-40fac2b3]{margin-right:%?24?%}.goodsList .fd[data-v-40fac2b3]{display:flex;justify-content:space-between;align-items:center;color:#f0250e}.goodsList .amount[data-v-40fac2b3]{position:relative;display:flex}.goodsList .amount uni-view[data-v-40fac2b3]{display:flex;align-items:center;padding-left:%?20?%;border-radius:%?10?% 0 0 %?10?%;height:%?50?%;background:#fef5f3;font-size:%?30?%;font-weight:700}.goodsList .amount uni-image[data-v-40fac2b3]{height:%?50?%}.goodsList .price[data-v-40fac2b3]{display:flex;align-items:flex-end;font-size:%?24?%;font-weight:700;line-height:1}.goodsList .price[data-v-40fac2b3]:before{content:"¥"}.goodsList .price uni-text[data-v-40fac2b3]{font-size:%?36?%;line-height:.9}.ranking[data-v-40fac2b3]{overflow:hidden}.ranking .flex[data-v-40fac2b3]{display:flex;font-size:%?24?%;color:#262626}.ranking .hd[data-v-40fac2b3]{margin-bottom:%?14?%;padding:%?12?% %?24?%;background:#f5f5f5;border-radius:32px}.ranking .bd[data-v-40fac2b3]{align-items:center;margin-bottom:%?24?%;padding:%?24?%;background:#fff;font-weight:700;border-radius:%?20?%}.ranking .tar[data-v-40fac2b3]{text-align:right}.ranking .tac[data-v-40fac2b3]{text-align:center}.ranking .info[data-v-40fac2b3]{display:flex;align-items:center;flex:1;overflow:hidden}.ranking .info .img[data-v-40fac2b3]{position:relative;width:%?90?%;height:%?90?%;border-radius:%?10?%;border:%?2?% solid #efefef}.ranking .info .img .pic[data-v-40fac2b3]{display:block;width:100%;height:100%;border-radius:%?10?%}.ranking .info .img .icon[data-v-40fac2b3]{position:absolute;left:0;top:0;width:%?24?%}.ranking .info .goodsName[data-v-40fac2b3]{flex:1;overflow:hidden;margin-left:%?20?%}.ranking .s1[data-v-40fac2b3]{flex:1;overflow:hidden}.ranking .s2[data-v-40fac2b3]{width:20%}.filter[data-v-40fac2b3]{display:flex;flex-wrap:wrap}.filter .item[data-v-40fac2b3]{display:flex;align-items:center;margin:0 %?24?% %?14?% 0;padding:0 %?24?%;height:%?58?%;background:#f5f5f5;border-radius:32px;font-size:%?24?%;color:#262626}.filter .item.active[data-v-40fac2b3]{color:#f0250e}.filter .item.down .s1 .iconfont[data-v-40fac2b3]{color:#f0250e}.filter .item.up .s2 .iconfont[data-v-40fac2b3]{color:#f0250e}.filter .icons[data-v-40fac2b3]{position:relative;margin-left:%?10?%;height:100%;width:%?20?%}.filter .s[data-v-40fac2b3]{position:absolute;left:0}.filter .s1[data-v-40fac2b3]{bottom:18%}.filter .s2[data-v-40fac2b3]{top:18%;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.filter .iconfont[data-v-40fac2b3]{vertical-align:bottom;font-size:%?22?%;color:#8c8c8c}',""]),t.exports=e},"6e82":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var n={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String,default:"0"},searchIcon:{type:String,default:"search"}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(t){this.$emit("input",t),this.$emit("change",t)},value:{immediate:!0,handler:function(t){this.keyword=t}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(t){this.keyword=t.detail.value},clear:function(){var t=this;this.keyword="",this.$nextTick((function(){t.$emit("clear")}))},search:function(t){this.$emit("search",t.detail.value);try{uni.hideKeyboard()}catch(t){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(t){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var t=this;setTimeout((function(){t.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};e.default=n},"83a4":function(t,e,i){"use strict";var n=i("55c7"),a=i.n(n);a.a},"83fa2":function(t,e,i){var n=i("0281");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("54f3a7ee",n,!0,{sourceMap:!1,shadowMode:!1})},"8d11":function(t,e,i){var n=i("6a01");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("1c9053b7",n,!0,{sourceMap:!1,shadowMode:!1})},"8dd1":function(t,e,i){"use strict";i.r(e);var n=i("6e82"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"9d77":function(t,e,i){"use strict";var n=i("8d11"),a=i.n(n);a.a},a0bf:function(t,e,i){"use strict";var n=i("83fa2"),a=i.n(n);a.a},a5df:function(t,e,i){"use strict";i.r(e);var n=i("2646"),a=i("2688");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("83a4");var o=i("828b"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"40fac2b3",null,!1,n["a"],void 0);e["default"]=r.exports},a99f:function(t,e,i){"use strict";i.r(e);var n=i("be9f"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},af86:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.bindSharer=function(t,e){return a.default.POST("/video-shop/bind-sharer",t,e)},e.sharerLink=function(t,e){return a.default.GET("/video-shop/sharer-link",t,e)},e.sharerOrderNum=function(t,e){return a.default.GET("/video-shop/sharer-order-num",t,e)},e.sharerStatus=function(t,e){return a.default.GET("/video-shop/sharer-status",t,e)},e.userSharerList=function(t,e){return a.default.GET("/video-shop/user-sharer-list",t,e)};var a=n(i("cc29"))},be9f:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("9c4e");var n={name:"u-sticky",props:{offsetTop:{type:[Number,String],default:0},index:{type:[Number,String],default:""},enable:{type:Boolean,default:!0},h5NavHeight:{type:[Number,String],default:44},bgColor:{type:String,default:"#ffffff"},zIndex:{type:[Number,String],default:""}},data:function(){return{fixed:!1,height:"auto",stickyTop:0,elClass:this.$u.guid(),left:0,width:"auto"}},watch:{offsetTop:function(t){this.initObserver()},enable:function(t){0==t?(this.fixed=!1,this.disconnectObserver("contentObserver")):this.initObserver()}},computed:{uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.sticky}},mounted:function(){this.initObserver()},methods:{initObserver:function(){var t=this;this.enable&&(this.stickyTop=0!=this.offsetTop?uni.upx2px(this.offsetTop)+this.h5NavHeight:this.h5NavHeight,this.disconnectObserver("contentObserver"),this.$uGetRect("."+this.elClass).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=this.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("."+this.elClass,(function(e){t.enable&&t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<this.stickyTop;e?this.$emit("fixed",this.index):this.fixed&&this.$emit("unfixed",this.index),this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=n},c667:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uIcon:i("0852").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-search",style:{margin:t.margin},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-content",style:{backgroundColor:t.bgColor,borderRadius:"round"==t.shape?"100rpx":"10rpx",border:t.borderStyle,height:t.height+"rpx"}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[i("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:t.searchIcon,color:t.searchIconColor?t.searchIconColor:t.color}})],1),i("v-uni-input",{staticClass:"u-input",style:[{textAlign:t.inputAlign,color:t.color,backgroundColor:t.bgColor},t.inputStyle],attrs:{"confirm-type":"search",value:t.value,disabled:t.disabled,focus:t.focus,maxlength:t.maxlength,"placeholder-class":"u-placeholder-class",placeholder:t.placeholder,"placeholder-style":"color: "+t.placeholderColor,type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.blur.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.getFocus.apply(void 0,arguments)}}}),t.keyword&&t.clearabled&&t.focused?i("v-uni-view",{staticClass:"u-close-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[i("u-icon",{staticClass:"u-clear-icon",attrs:{name:"close-circle-fill",size:"34",color:"#c0c4cc"}})],1):t._e()],1),i("v-uni-view",{staticClass:"u-action",class:[t.showActionBtn||t.show?"u-action-active":""],style:[t.actionStyle],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.custom.apply(void 0,arguments)}}},[t._v(t._s(t.actionText))])],1)},s=[]},f605:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("b7c7")),s=n(i("2634")),o=n(i("2fdc"));i("5ef2"),i("4100"),i("5c47"),i("af8f"),i("c223"),i("e838");var r=n(i("2ba3")),c=i("af86"),d={components:{Shenhe:r.default},computed:{getClass:function(){var t=this;return function(e){if(2==e){var i=t.sort_type,n="";switch(i){case"0":n="down";break;case"1":n="up";break;default:break}return n}return""}}},filters:{priceBeforeZero:function(t){return t.indexOf(".")<0?"".concat(t,"."):t.substr(0,t.indexOf("."))},priceAfterZero:function(t){return t.indexOf(".")<0?"00":t.substr(t.indexOf("."),t.lenhth)}},data:function(){return{keyword:"",catId:0,catList:[{id:0,name:"热销商品"},{id:1,name:"带货排行"}],sort_type:"",sort:"",sortList:[{id:1,name:"新上架"},{id:3,name:"销量"},{id:2,name:"价格"}],goodsList:[],rankingList:[],page:1,is_end:!1}},onLoad:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getGoodsList();case 1:case"end":return e.stop()}}),e)})))()},onShow:function(){},methods:{getList:function(){this.catId?this.getRankingList():this.getGoodsList()},clear:function(){this.goodsList=[],this.rankingList=[],this.page=1,this.is_end=!1,this.getList()},getGoodsList:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i,n,o,r,c,d,u,l,f;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.page,n=t.sort,o=t.sort_type,r=t.keyword,c={page:i,sort:n,sort_type:o,is_videoShopGoods:1,keyword:r},e.next=3,t.$allrequest.search.getSearchList(c);case 3:d=e.sent,d.code||(i+=1,u=d.data,l=u.list,f=u.row_count,t.goodsList=[].concat((0,a.default)(t.goodsList),(0,a.default)(l)),t.goodsList.length>=parseFloat(f)&&(t.is_end=!0));case 5:case"end":return e.stop()}}),e)})))()},getRankingList:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i,n,o,r,d,u;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.page,n={page:i},e.next=3,(0,c.sharerOrderNum)(n);case 3:o=e.sent,o.code||(i+=1,r=o.data,d=r.list,u=r.totalCount,t.rankingList=[].concat((0,a.default)(t.rankingList),(0,a.default)(d)),t.rankingList.length>=u&&(t.is_end=!0));case 5:case"end":return e.stop()}}),e)})))()},handle:function(t,e){var i=this;this.$u.throttle((function(){switch(t){case"changeCategory":i.catId=e;break;case"changeFilter":if(2===e){var n="";switch(i.sort_type){case"":n="1";break;case"1":n="0";break;default:n="";break}i.sort_type=n}i.sort!==e&&(i.sort=e);break;default:break}i.clear()}),500)}},onReachBottom:function(){this.is_end||this.getList()}};e.default=d}}]);