pages-category-jf.351773c3.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-category-jf"],{1053:function(t,e,a){"use strict";var i=a("28c7"),o=a.n(i);o.a},1277:function(t,e,a){"use strict";a.r(e);var i=a("a15e"),o=a("3aa9");for(var n in o)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("d268");var d=a("f0c5"),r=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"22f3cbd6",null,!1,i["a"],void 0);e["default"]=r.exports},"23c4":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.cate-wrap[data-v-22f3cbd6]{width:%?750?%}.cate-wrap .left-wrap[data-v-22f3cbd6]{width:%?180?%;flex-shrink:0;background-color:#f2f2f2}.cate-wrap .left-wrap .left-item[data-v-22f3cbd6]{width:%?180?%;height:%?100?%;line-height:%?100?%;font-size:%?28?%;font-weight:500;color:#666;text-align:center}.cate-wrap .left-wrap .action-item[data-v-22f3cbd6]{background-color:#fff;font-weight:700;position:relative}.cate-wrap .left-wrap .action-item[data-v-22f3cbd6]::before{content:"";position:absolute;top:0;left:0;width:%?3?%;height:%?100?%;background:#ff7144}.cate-wrap .right-wrap[data-v-22f3cbd6]{flex-wrap:1;background-color:#fff}.cate-wrap .right-wrap .right-item[data-v-22f3cbd6]{width:%?520?%;height:%?240?%;padding:%?30?% 0;margin:0 auto;border-bottom:1px solid #eee;display:flex;justify-content:flex-start;align-items:center}.cate-wrap .right-wrap .right-item .good-img[data-v-22f3cbd6]{width:%?180?%;height:%?180?%;border-radius:%?20?%}.cate-wrap .right-wrap .right-item .good-info[data-v-22f3cbd6]{flex-direction:column;justify-content:space-between;align-items:flex-start;height:100%;padding-left:%?25?%}.cate-wrap .right-wrap .right-item .good-info .good-name[data-v-22f3cbd6]{font-size:%?30?%;font-weight:700;color:#333}.cate-wrap .right-wrap .right-item .good-info .good-price[data-v-22f3cbd6]{font-size:%?34?%;font-weight:700;color:#ff4c4c}.hotgoods[data-v-22f3cbd6]{margin-top:%?20?%;width:100%;display:flex;flex-wrap:wrap;padding:0 %?20?% %?30?%;justify-content:space-between}.hotgoods .hotgoods-item[data-v-22f3cbd6]{width:%?345?%;background-color:#fff;border-radius:%?12?%;box-shadow:0 0 %?15?% rgba(0,0,0,.2);margin-bottom:%?15?%}.hotgoods .hotgoods-item .image-wrapper[data-v-22f3cbd6]{width:%?345?%;height:%?345?%;border-radius:3px;overflow:hidden;position:relative}.hotgoods .hotgoods-item .image-wrapper .image-bg[data-v-22f3cbd6]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;opacity:1;border-radius:%?12?% %?12?% 0 0;z-index:2}.hotgoods .hotgoods-item .image-wrapper .image[data-v-22f3cbd6]{width:100%;height:100%;opacity:1;border-radius:%?12?% %?12?% 0 0}.hotgoods .hotgoods-item .title[data-v-22f3cbd6]{margin-top:%?24?%;padding:0 %?20?%;font-size:%?32?%;font-weight:500;color:#333}.hotgoods .hotgoods-item .hot-price[data-v-22f3cbd6]{display:flex;justify-content:flex-start;align-items:center}.hotgoods .hotgoods-item .hot-price .hotPrice-box[data-v-22f3cbd6]{padding:%?2?% %?6?%;background:linear-gradient(90deg,#c79a4c,#f9df7f);border-radius:%?5?%;text-align:center;line-height:%?28?%;font-size:%?20?%;font-family:Source Han Sans CN;font-weight:400;color:#fff}.hotgoods .hotgoods-item .hot-price .price[data-v-22f3cbd6]{margin-left:%?10?%;font-size:%?36?%;color:red;font-weight:500;display:flex;justify-content:flex-start;align-items:center}.hotgoods .hotgoods-item .hot-price .price .jf[data-v-22f3cbd6]{font-size:%?20?%}.hotgoods .hotgoods-item .hot-price .price .give-jf[data-v-22f3cbd6]{display:inline-block;padding:%?8?%;background:linear-gradient(90deg,#ff834d,#ff2600);border-radius:%?12?% 0 %?12?% 0;font-size:%?22?%;font-weight:500;color:#fff;margin-left:%?22?%}.hotgoods .hotgoods-item .hot-price .price .ot-pirce[data-v-22f3cbd6]{margin-left:%?10?%;font-size:%?26?%;font-weight:500;text-decoration:line-through;color:#999;align-self:flex-end}.hotgoods .hotgoods-item .hot-price .yuanPrice[data-v-22f3cbd6]{margin-left:%?10?%;font-size:%?20?%;font-family:PingFang SC;font-weight:500;text-decoration:line-through;color:#999}.hotgoods .hotgoods-item .hot-price .cart-icon uni-image[data-v-22f3cbd6]{width:%?44?%;height:%?44?%}.ot-pirce[data-v-22f3cbd6]{margin-left:%?7?%;font-size:%?26?%;font-weight:500;text-decoration:line-through;color:#999;align-self:flex-end}',""]),t.exports=e},"28c7":function(t,e,a){var i=a("ed83");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("22a8c087",i,!0,{sourceMap:!1,shadowMode:!1})},"35fd":function(t,e,a){"use strict";a.r(e);var i=a("7b9f"),o=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},"3aa9":function(t,e,a){"use strict";a.r(e);var i=a("daf0"),o=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},"68aa":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.cartAdd=function(t){return(0,o.default)({url:"/api/cart/add",method:"post",data:t})},e.collectAdd=function(t){return(0,o.default)({url:"/api/collect/add",method:"post",data:t})},e.collectDel=function(t){return(0,o.default)({url:"/api/collect/del",method:"post",data:t})},e.getBargainList=function(t){return(0,o.default)({url:"/api/bargain/list",method:"get",data:t})},e.getCategoryList=function(t){return(0,o.default)({url:"/api/category",method:"get",data:t})},e.getCombinationLisPink=function(t,e){return(0,o.default)({url:"/api/combination/pink/"+e,method:"get",data:t})},e.getCombinationLisRemove=function(t,e){return(0,o.default)({url:"/api/combination/remove"+e,method:"get",data:t})},e.getCombinationList=function(t){return(0,o.default)({url:"/api/combination/list",method:"get",data:t})},e.getCombinationPoster=function(t){return(0,o.default)({url:"/api/combination/poster",method:"post",data:t})},e.getProducts=function(t){return(0,o.default)({url:"/api/products",method:"get",data:t})},e.getSeckillClass=function(t){return(0,o.default)({url:"/api/seckill/index",method:"get",data:t})},e.getSeckillList=function(t,e){return(0,o.default)({url:"/api/seckill/list/"+e,method:"get",data:t})},e.goodsDetail=function(t,e){return(0,o.default)({url:"/api/product/detail/"+e,method:"get",data:t})},e.groomList=function(t,e){return(0,o.default)({url:"/api/groom/list/"+e,method:"get",data:t})},e.groupGoods=function(t,e){return(0,o.default)({url:"/api/combination/detail/"+e,method:"get",data:t})},e.poster=function(t){return(0,o.default)({url:"/api/product/poster",method:"post",data:t})},e.reply_config=function(t,e){return(0,o.default)({url:"/api/reply/config/"+e,method:"get",data:t})},e.reply_list=function(t,e){return(0,o.default)({url:"/api/reply/list/"+e,method:"get",data:t})},e.searchKeyword=function(t){return(0,o.default)({url:"/api/search/keyword",method:"get",data:t})},e.seckillGoods=function(t,e){return(0,o.default)({url:"/api/seckill/detail/"+e,method:"get",data:t})};var o=i(a("0703"))},"7b9f":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},"7fe0":function(t,e,a){var i=a("23c4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("531282c3",i,!0,{sourceMap:!1,shadowMode:!1})},a15e:function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("e28c").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"dddd",staticStyle:{height:"10rpx"}}),a("v-uni-view",{staticClass:"hotgoods"},t._l(t.list,(function(e){return a("v-uni-view",{key:e.id,staticClass:"hotgoods-item",staticStyle:{height:"520rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navto("/pages/product/product?id="+e.id+"&isjf=1")}}},[a("v-uni-view",{staticClass:"image-wrapper"},[a("v-uni-image",{staticClass:"image",attrs:{src:e.image,mode:"scaleToFill"}})],1),a("v-uni-view",{staticClass:"flex",staticStyle:{"flex-direction":"column","justify-content":"space-between","align-items":"flex-start",height:"170rpx"}},[a("v-uni-view",{staticClass:"title clamp2"},[t._v(t._s(e.store_name))]),a("v-uni-view",{staticClass:"hot-price"},[a("v-uni-view",{staticClass:"price"},[a("v-uni-text",{staticClass:"font-size-sm"}),a("v-uni-text",[t._v(t._s(1*e.integral)+"积分")]),a("v-uni-text",{staticClass:"ot-pirce"},[t._v("¥"+t._s(e.ot_price))])],1)],1)],1)],1)})),1),a("uni-load-more",{attrs:{status:t.loadingType}})],1)},n=[]},ce3c: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(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-load-more"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[a("v-uni-view",{staticClass:"load1 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load2 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load3 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),a("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},d268:function(t,e,a){"use strict";var i=a("7fe0"),o=a.n(i);o.a},daf0:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(a("c7eb")),n=i(a("1da1"));a("99af"),a("ac1f"),a("26e9"),a("4de4"),a("d3b7"),a("159b");var d=a("68aa"),r={data:function(){return{sizeCalcState:!1,tabScrollTop:0,currentId:9,flist:[],height:"",currentIndex:0,list:[],page:1,limit:20,loadingType:"more",loaded:!1}},onLoad:function(){this.loadData()},onNavigationBarSearchInputClicked:function(t){uni.navigateTo({url:"/pages/product/search"})},onReady:function(t){},onReachBottom:function(){this.getProducts()},methods:{leftClick:function(t){this.currentIndex=t,this.getProducts("reload")},getProducts:function(t){var e=this;"reload"==t&&(this.list=[],this.page=1,this.loadingType="more",this.loaded=!1),"loading"!=this.loadingType&&"noMore"!=this.loadingType&&(this.loadingType="loading",(0,d.getProducts)({page:this.page,limit:this.limit,mall_type:3}).then((function(t){e.list=e.list.concat(t.data),e.page++,e.limit==t.data.length?e.loadingType="more":e.loadingType="noMore",e.loaded=!0})))},loadData:function(){var t=this;return(0,n.default)((0,o.default)().mark((function e(){var a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t,a.getProducts();case 2:case"end":return e.stop()}}),e)})))()},tabtap:function(t){console.log(t),this.sizeCalcState||this.calcSize(),this.currentId=t.id,console.log(t.top),this.tabScrollTop=t.top,console.log(this.tabScrollTop)},asideScroll:function(t){this.sizeCalcState||this.calcSize();var e=t.detail.scrollTop,a=0,i=uni.createSelectorQuery().select(".content");i.fields({id:!0,dataset:!0,rect:!0,size:!0,scrollOffset:!0},(function(t){a=t.height})).exec();var o=this.flist.filter((function(t){return t.top-10<=e})).reverse();o.length>0&&(a+e+10>=t.detail.scrollHeight?this.currentId=this.flist[this.flist.length-1].id:this.currentId=o[0].id)},calcSize:function(){var t=0;this.flist.forEach((function(e){var a=uni.createSelectorQuery().select("#main-"+e.id);a.fields({size:!0},(function(a){e.top=t,t+=a.height,e.bottom=t})).exec()})),this.sizeCalcState=!0},navToList:function(t,e){uni.navigateTo({url:"/pages/product/list?fid="+this.currentId+"&sid="+t+"&tid="+e})},navto:function(t){uni.navigateTo({url:t})}}};e.default=r},e28c:function(t,e,a){"use strict";a.r(e);var i=a("ce3c"),o=a("35fd");for(var n in o)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("1053");var d=a("f0c5"),r=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"5516c8de",null,!1,i["a"],void 0);e["default"]=r.exports},ed83:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uni-load-more[data-v-5516c8de]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-5516c8de]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-5516c8de]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-5516c8de]{position:absolute}.uni-load-more__img>.load .item[data-v-5516c8de]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-5516c8de 1.56s ease infinite;animation:load-data-v-5516c8de 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(4){top:11px;left:0}.load1[data-v-5516c8de],\n.load2[data-v-5516c8de],\n.load3[data-v-5516c8de]{height:24px;width:24px}.load2[data-v-5516c8de]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-5516c8de]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-5516c8de{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e}}]);