1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPackages-home-jdSubjectList"],{"140a":function(t,e,o){"use strict";o.r(e);var a=o("9359"),i=o.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(n);e["default"]=i.a},"184c":function(t,e,o){"use strict";var a=o("ee8c"),i=o.n(a);i.a},2909:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,a.default)(t)||(0,i.default)(t)||(0,n.default)(t)||(0,r.default)()};var a=s(o("6005")),i=s(o("db90")),n=s(o("06c5")),r=s(o("3427"));function s(t){return t&&t.__esModule?t:{default:t}}},"2be3":function(t,e,o){"use strict";o.r(e);var a=o("6d44"),i=o("140a");for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);o("184c");var r=o("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"30f61e07",null,!1,a["a"],void 0);e["default"]=s.exports},3427:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},o("d9e2"),o("d401")},5769:function(t,e,o){var a=o("bd81");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("4f06").default;i("4145eeb8",a,!0,{sourceMap:!1,shadowMode:!1})},6005:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,a.default)(t)};var a=function(t){return t&&t.__esModule?t:{default:t}}(o("6b75"))},"6d44":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return a}));var a={uNavbar:o("6103").default,uIcon:o("5fbc").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"page-wrap"},[o("u-navbar",{staticClass:"navbar-wrap",attrs:{title:t.navbarTitle,background:t.newNavbarBackground,"title-size":36,"back-icon-color":"#181818","title-color":"#181818","title-bold":!1,"is-back":!0}}),o("v-uni-view",{staticClass:"sort-wrap"},[o("v-uni-view",{class:["sort-item",3==t.filter.sort?"on":""],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickSort({isPrice:!1,sort:3})}}},[t._v("综合")]),t.user_level>1?o("v-uni-view",{class:["sort-item",2==t.filter.sort?"on":""],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickSort({isPrice:!1,sort:2})}}},[t._v("佣金")]):t._e(),o("v-uni-view",{class:["sort-item",4==t.filter.sort?"on":""],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickSort({isPrice:!1,sort:4})}}},[t._v("评论数")]),o("v-uni-view",{staticClass:"sort-item price-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickSort({isPrice:!0,sort:0})}}},[o("v-uni-text",{class:[0==t.filter.sort?"on":""]},[t._v("价格")]),o("u-icon",{class:["btn","up",0==t.filter.sort&&"asc"==t.filter.sort_type?"highlight":""],attrs:{name:"arrow-up-fill"}}),o("u-icon",{class:["btn","down",0==t.filter.sort&&"desc"==t.filter.sort_type?"highlight":""],attrs:{name:"arrow-down-fill"}})],1)],1),o("v-uni-scroll-view",{staticClass:"scroll-view-wrap",style:{height:t.scrollView.height},attrs:{"scroll-y":!0,"scroll-top":t.scrollView.scrollTop,"scroll-with-animation":!0},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.onScrollToLower.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"goods-list-double-wrap"},[t._l(t.goodsList,(function(e){return[e?o("verticalGood",{key:e.goods_id,staticClass:"verticalGoodItem",attrs:{goodsItem:e.goods,path:t.path,category_id:t.filter.category_id}}):t._e()]}))],2)],1),t.goTop_show?o("top-hang",{on:{goTop:function(e){arguments[0]=e=t.$handleEvent(e),t.onclickTophang.apply(void 0,arguments)}}}):t._e()],1)},n=[]},"76d3":function(t,e,o){var a=o("24fb");e=a(!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/* 文章场景相关 */.page-wrap[data-v-30f61e07]{position:relative;height:100vh;overflow:hidden;background-color:#f5f5f5}.page-wrap .sort-wrap[data-v-30f61e07]{display:flex;align-items:center;justify-content:space-around;padding:%?20?% %?32?%;border-radius:%?10?%;font-size:%?30?%;margin:%?10?% auto 0;color:#333;background-color:#fff}.page-wrap .sort-wrap .sort-item[data-v-30f61e07]{display:flex;align-items:center}.page-wrap .sort-wrap .sort-item.price-wrap[data-v-30f61e07]{position:relative}.page-wrap .sort-wrap .sort-item.price-wrap .btn[data-v-30f61e07]{position:absolute;font-size:%?16?%;color:#ccc}.page-wrap .sort-wrap .sort-item.price-wrap .btn.up[data-v-30f61e07]{top:%?4?%;right:%?-24?%}.page-wrap .sort-wrap .sort-item.price-wrap .btn.down[data-v-30f61e07]{bottom:%?4?%;right:%?-24?%}.page-wrap .sort-wrap .sort-item.price-wrap .btn.highlight[data-v-30f61e07]{color:#ff4040}.page-wrap .sort-wrap .sort-item .sort-img[data-v-30f61e07]{margin-left:%?10?%;width:%?28?%;height:%?28?%}.page-wrap .sort-wrap .on[data-v-30f61e07]{color:#ff4040;font-weight:700}.page-wrap .scroll-view-wrap .goods-list-double-wrap[data-v-30f61e07]{display:flex;justify-content:space-between;flex-wrap:wrap;background-color:#f5f5f5;margin:auto;margin-top:%?22?%}.page-wrap .scroll-view-wrap .goods-list-double-wrap .verticalGoodItem[data-v-30f61e07]{margin-bottom:%?22?%}.goods-list-double-wrap[data-v-30f61e07], .sort-wrap[data-v-30f61e07]{width:%?700?%}',""]),t.exports=e},9359:function(t,e,o){"use strict";o("7a82");var a=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("4de4"),o("d3b7"),o("4e82"),o("99af");var i=a(o("2909")),n=a(o("c7eb")),r=a(o("1da1")),s=a(o("fa63")),c=a(o("a4bb")),l=getApp(),d={components:{topHang:c.default,verticalGood:s.default},data:function(){return{statusBarHeight:l.globalData.statusBarHeight,newNavbarBackground:l.globalData.newNavbarBackground,navbarTitle:"",scrollView:{height:800,scrollTop:0},goodsList:[],filter:{hasNext:!0,page:1,category_id:13,sort:3,sort_type:"desc"},user_level:uni.getStorageSync("userInfo")?uni.getStorageSync("userInfo").user_level:"",goTop_show:!1,path:""}},onLoad:function(t){var e=this;return(0,r.default)((0,n.default)().mark((function o(){var a,i;return(0,n.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:a=t.id,i=t.title,e.path=t.path,e.navbarTitle=i?decodeURIComponent(i):"",e.filter.category_id=a||26,e.handleGetGoodsList();case 5:case"end":return o.stop()}}),o)})))()},onReady:function(){this.handleInitScrollView()},methods:{onclickTophang:function(){this.scrollView.scrollTop=0===this.scrollView.scrollTop?-1:0},onScroll:function(t){var e=t.target.scrollTop;this.goTop_show=e>300},handleInitScrollView:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){var o,a,i,r,s;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$u.getRect(".sort-wrap");case 2:o=e.sent,a=o.height,i=void 0===a?40:a,r=o.top,s=void 0===r?95:r,t.scrollView.height="".concat(uni.getSystemInfoSync().windowHeight-i-s,"px");case 8:case"end":return e.stop()}}),e)})))()},onScrollToLower:function(t){this.handleGetGoodsList()},handleGetGoodsList:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){var o,a,r,s,c,l,d,p,u,f,g;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=t.filter,a=o.hasNext,r=o.page,s=o.category_id,c=o.sort,l=o.sort_type,a){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,uni.showLoading({title:"加载中...",mask:!0}),d=t.$api_jd.jd_goodsListByEliteId,p={page:r,elite_id:s,sort:c,sort_type:l},e.next=9,t.$postJSON(d,p);case 9:u=e.sent,f=u.data,g=void 0===f?{}:f,g&&0==g.errno&&Array.isArray(g.rst.data)?(t.filter.hasNext=!(t.filter.page>=g.rst.pageInfo.pages),t.filter.hasNext&&t.filter.page++,t.goodsList=[].concat((0,i.default)(t.goodsList),(0,i.default)(g.rst.data))):uni.showToast({title:g.err||"操作失败",icon:"none"}),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](3),console.log("error => ",e.t0);case 18:return e.prev=18,uni.hideLoading(),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[3,15,18,21]])})))()},onClickSort:function(t){var e=t.isPrice,o=void 0!==e&&e,a=t.sort,i=void 0===a?null:a;this.filter.sort=i,o?"desc"===this.filter.sort_type?this.filter.sort_type="asc":(this.filter.sort_type,this.filter.sort_type="desc"):this.filter.sort_type="desc",this.onclickTophang(),this.filter.hasNext=!0,this.filter.page=1,this.goodsList=[],this.handleGetGoodsList()}}};e.default=d},b735:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("a9e3"),o("99af");var a=getApp(),i={name:"verticalGood",props:{goodsItem:{type:Object},path:{type:String,default:""},category_id:{type:String|Number,default:""}},data:function(){return{user_level:uni.getStorageSync("userInfo")?uni.getStorageSync("userInfo").user_level:""}},methods:{onClickGoodsItem:function(t){try{a.categoryNew_countBuy({shop_type:t.shop_type,type:0,path:this.path,category_id:this.category_id})}catch(C){}if(4==t.shop_type){console.log("goodsItem => ",t);t.img;var e=t.goods_id,o=void 0===e?"":e;t.coupon_price,t.discount_price,t.price,t.is_coupon,t.commission_rate,t.is_high_commission,t.coupon_end_time,t.coupon_start_time;uni.navigateTo({url:"/pages/subPackages/home/jdGoodsDetail?goods_id=".concat(encodeURIComponent(o))})}else{var i=t.img,n=void 0===i?"":i,r=t.goods_id,s=void 0===r?"":r,c=t.coupon_price,l=void 0===c?"":c,d=t.discount_price,p=void 0===d?"":d,u=t.price,f=void 0===u?"":u,g=t.is_coupon,v=void 0===g?"":g,m=t.commission_rate,w=void 0===m?"":m,h=t.is_high_commission,b=void 0===h?"":h,_=t.coupon_end_time,y=void 0===_?"":_,x=t.coupon_start_time,k=void 0===x?"":x;uni.navigateTo({url:"/pages/subPackages/home/goodsDetail?img=".concat(encodeURIComponent(n),"&goods_id=").concat(encodeURIComponent(s),"&coupon_price=").concat(encodeURIComponent(l),"&discount_price=").concat(encodeURIComponent(p),"&price=").concat(encodeURIComponent(f),"&is_coupon=").concat(encodeURIComponent(v),"&commission_rate=").concat(encodeURIComponent(w),"&is_high_commission=").concat(encodeURIComponent(b),"&coupon_end_time=").concat(encodeURIComponent(y),"&coupon_start_time=").concat(encodeURIComponent(k))})}}}};e.default=i},bd81:function(t,e,o){var a=o("24fb"),i=o("1de5"),n=o("2252"),r=o("2b15"),s=o("6e7b");e=a(!1);var c=i(n),l=i(r),d=i(s);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/* 文章场景相关 */.salesVolume[data-v-99fe919a]{background:url('+c+") no-repeat;background-size:100%;width:%?160?%;line-height:%?28?%;color:#ff4040;font-size:%?20?%;line-height:%?42?%;text-align:center;padding-left:%?16?%}.flex-center[data-v-99fe919a]{display:flex;align-items:center}.flex-center-between[data-v-99fe919a]{display:flex;align-items:center;justify-content:space-between}.goods-item-wrap[data-v-99fe919a]{background-color:#fff;width:%?340?%;height:%?586?%;padding:%?20?%;border-radius:%?12?%}.goods-item-wrap .tp-wrap[data-v-99fe919a]{width:%?300?%;height:%?300?%;overflow:hidden}.goods-item-wrap .tp-wrap .goods-item-img[data-v-99fe919a]{width:100%;height:100%}.goods-item-wrap .bm-wrap[data-v-99fe919a]{margin-top:%?12?%}.goods-item-wrap .bm-wrap .title[data-v-99fe919a]{font-size:%?30?%;color:#1a1a1a;line-height:%?42?%;word-break:break-all;overflow:hidden;-webkit-line-clamp:2;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;font-weight:700}.goods-item-wrap .bm-wrap .title .shop-icon[data-v-99fe919a]{width:%?30?%;height:%?30?%;border-radius:%?6?%;display:inline-block;margin-right:%?6?%;margin-top:%?-7?%;vertical-align:middle}.goods-item-wrap .bm-wrap .shop-wrap[data-v-99fe919a]{margin-top:%?8?%;display:flex;align-items:center}.goods-item-wrap .bm-wrap .shop-wrap .shop-icon[data-v-99fe919a]{width:%?26?%;height:%?26?%;vertical-align:middle}.goods-item-wrap .bm-wrap .shop-wrap .shop-name[data-v-99fe919a]{margin-left:%?6?%;font-size:%?24?%;line-height:%?34?%;color:#aaa;flex:1;max-width:%?240?%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.goods-item-wrap .bm-wrap .price-wrap[data-v-99fe919a]{margin-top:%?10?%;display:flex;align-items:center}.goods-item-wrap .bm-wrap .price-wrap .price[data-v-99fe919a]{font-size:%?36?%;line-height:%?50?%;color:#ff4040;font-weight:700}.goods-item-wrap .bm-wrap .price-wrap .start-price[data-v-99fe919a]{margin-left:%?10?%;font-size:%?24?%;color:#999;line-height:%?34?%;text-decoration:line-through}.goods-item-wrap .bm-wrap .btm-wrap[data-v-99fe919a]{display:flex;align-items:center;margin-top:%?10?%}.goods-item-wrap .bm-wrap .btm-wrap .coupon-wrap[data-v-99fe919a]{display:flex;align-items:center;width:%?144?%;height:%?36?%;background-image:url("+l+");background-repeat:no-repeat;background-size:100% 100%;color:#ff4040;font-size:%?25?%;line-height:%?36?%}.goods-item-wrap .bm-wrap .btm-wrap .coupon-wrap .label[data-v-99fe919a]{width:%?46?%;text-align:center}.goods-item-wrap .bm-wrap .btm-wrap .coupon-wrap .value[data-v-99fe919a]{flex:1;text-align:center}.goods-item-wrap .bm-wrap .btm-wrap .commission-wrap[data-v-99fe919a]{background-image:url("+d+");color:#ae4300;margin-left:%?12?%}",""]),t.exports=e},d903:function(t,e,o){"use strict";var a=o("5769"),i=o.n(a);i.a},db90:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},o("a4d3"),o("e01a"),o("d3b7"),o("d28b"),o("3ca3"),o("ddb0"),o("a630")},e4ef:function(t,e,o){"use strict";o.r(e);var a=o("b735"),i=o.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(n);e["default"]=i.a},ee8c:function(t,e,o){var a=o("76d3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("4f06").default;i("0d5e7d9d",a,!0,{sourceMap:!1,shadowMode:!1})},fa63:function(t,e,o){"use strict";o.r(e);var a=o("fbc6"),i=o("e4ef");for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);o("d903");var r=o("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"99fe919a",null,!1,a["a"],void 0);e["default"]=s.exports},fbc6:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){return a}));var a={uLazyLoad:o("1955").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"goods-item-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickGoodsItem(t.goodsItem)}}},[o("v-uni-view",{staticClass:"tp-wrap"},[o("u-lazy-load",{staticClass:"goods-item-img",attrs:{image:t.goodsItem.img,"img-mode":"aspectFit",height:"300","border-radius":"10"}})],1),o("v-uni-view",{staticClass:"bm-wrap"},[o("v-uni-view",{staticClass:"title"},[0==t.goodsItem.shop_type?o("v-uni-image",{staticClass:"shop-icon",attrs:{src:"/static/imgs/icon-tb.png"}}):1==t.goodsItem.shop_type?o("v-uni-image",{staticClass:"shop-icon",attrs:{src:"/static/imgs/icon-tmall.png"}}):4==t.goodsItem.shop_type?o("v-uni-image",{staticClass:"shop-icon",attrs:{src:"/static/imgs/jd-icon.png"}}):t._e(),o("v-uni-text",[t._v(t._s(t.goodsItem.title))])],1),o("v-uni-view",{staticClass:"shop-wrap flex-center-between"},[o("v-uni-view",{staticClass:"flex-center"},[o("v-uni-image",{staticClass:"shop-icon",attrs:{src:"/static/imgs/shop.png"}}),o("v-uni-view",{staticClass:"shop-name",style:t.goodsItem.volume>100?"max-width: 100rpx":""},[t._v(t._s(t.goodsItem.shop_title))])],1),t.goodsItem.volume>100?o("v-uni-view",{staticClass:"salesVolume"},[t._v("月销:"+t._s(t.$NumberHandle({value:t.goodsItem.volume,comma:!0}))+"+")]):t._e()],1),o("v-uni-view",{staticClass:"price-wrap"},[o("v-uni-text",{staticClass:"price"},[t._v(t._s(t.goodsItem.discount_price))]),o("v-uni-text",{staticClass:"start-price"},[t._v("¥"+t._s(t.goodsItem.price))])],1),o("v-uni-view",{staticClass:"btm-wrap"},[t.goodsItem.coupon_price>0?o("v-uni-view",{staticClass:"coupon-wrap"},[o("v-uni-text",{staticClass:"label"},[t._v("券")]),o("v-uni-text",{staticClass:"value"},[t._v("¥"+t._s(t.goodsItem.coupon_price))])],1):t._e(),t.user_level>1&&t.goodsItem.commission_price>0?o("v-uni-view",{staticClass:"coupon-wrap commission-wrap"},[o("v-uni-text",{staticClass:"label"},[t._v("返")]),o("v-uni-text",{staticClass:"value"},[t._v("¥"+t._s(t.goodsItem.commission_price))])],1):t._e()],1)],1)],1)},n=[]}}]);
|