You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/static/js/pages-goods_cate-goods_cate...

1 lines
20 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_cate-goods_cate"],{"10b8":function(t,e,o){var n=o("2a47");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=o("4f06").default;r("5720dd92",n,!0,{sourceMap:!1,shadowMode:!1})},"111c":function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return i.default.post("store/product/increase_take",t)},e.bagExplain=function(){return i.default.get("store/product/bag/explain")},e.bagRecommend=function(){return i.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return i.default.post("user/relation/create",t)},e.collectAll=function(t){return i.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return i.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return i.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return i.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return i.default.post("intention/create",t)},e.discountsCartAdd=function(t){return i.default.post("user/cart/batchCreate",t)},e.express=function(t){return i.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return i.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return i.default.get("intention/lst",t)},e.getBrandlist=function(t){return i.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return i.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return i.default.get("captcha")},e.getCategoryList=function(){return i.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return i.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,r.default)({},t),t.brand_id=t.brand_id.toString());return i.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return i.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return i.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return i.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return i.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return i.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getLiveList=function(t){return i.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return i.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return i.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return i.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return i.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return i.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t){return i.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return i.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,r.default)({},t),t.brand_id=t.brand_id.toString());return i.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return i.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return i.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return i.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return i.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return i.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return i.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return i.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return i.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreTypeApi=function(){return i.default.get("intention/type",{},{noAuth:!0})},e.merClassifly=function(){return i.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,r.default)({},e),e.brand_id=e.brand_id.toString());return i.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return i.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return i.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return i.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return i.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return i.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return i.default.post("store/certificate/".concat(t.merId),t)},e.storeListApi=function(t){return i.default.get("store_list",t,{noAuth:!0})},e.storeMerchantList=function(t){return i.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return i.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return i.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return i.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return i.default.post("user/relation/batch/delete",t)},e.verify=function(t){return i.default.post("auth/verify",t)},o("d401"),o("d3b7"),o("25f0"),o("99af");var r=n(o("5530")),i=n(o("b5ef"))},"24fd":function(t,e,o){"use strict";o.r(e);var n=o("51cb"),r=o("94ef");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("b898");var a=o("f0c5"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"5ab094b4",null,!1,n["a"],void 0);e["default"]=c.exports},"2a47":function(t,e,o){var n=o("24fb");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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productSort[data-v-5ab094b4]{display:flex;flex-direction:column;width:100%}.productSort .con-box[data-v-5ab094b4]{flex:1;display:flex;overflow:hidden}.productSort .header[data-v-5ab094b4]{width:100%;height:%?96?%;background-color:#fff;border-bottom:1px solid #f5f5f5}.productSort .header .input[data-v-5ab094b4]{width:%?700?%;height:%?60?%;background-color:#f5f5f5;border-radius:%?50?%;box-sizing:border-box;padding:0 %?25?%}.productSort .header .input .iconfont[data-v-5ab094b4]{font-size:%?35?%;color:#555}.productSort .header .input .placeholder[data-v-5ab094b4]{color:#999}.productSort .header .input .input-box[data-v-5ab094b4]{display:flex;align-items:center;font-size:%?26?%;height:100%;width:%?597?%;color:#999}.productSort .aside[data-v-5ab094b4]{background-color:#fff;overflow-y:auto;overflow-x:hidden;width:%?200?%;height:100%;overflow:hidden}.productSort .aside .item[data-v-5ab094b4]{height:%?100?%;width:100%;font-size:%?26?%;color:#424242}.productSort .aside .item_text[data-v-5ab094b4]{padding-left:%?20?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.productSort .aside .item.on[data-v-5ab094b4]{background-color:#f7f7f7;border-left:%?4?% solid var(--view-theme);width:100%;text-align:center;color:var(--view-theme);font-weight:700}.productSort .conter[data-v-5ab094b4]{flex:1;height:100%;padding:0 %?14?%;background-color:#f7f7f7}.productSort .conter .listw .title[data-v-5ab094b4]{height:%?100?%;align-items:center}.productSort .conter .listw .title .line[data-v-5ab094b4]{width:%?100?%;height:%?2?%;background-color:#f0f0f0}.productSort .conter .listw .title .name[data-v-5ab094b4]{font-size:%?28?%;color:#333;margin:0 %?30?%;font-weight:700}.productSort .conter .listw .title .list_title[data-v-5ab094b4],\n.productSort .conter .listw .title uni-image[data-v-5ab094b4],\n.productSort .conter .listw .title uni-image[data-v-5ab094b4]{width:%?110?%;height:%?26?%;border-radius:0}.productSort .conter .list[data-v-5ab094b4]{flex-wrap:wrap;background:#fff;border-radius:%?16?%;padding-bottom:%?26?%}.productSort .conter .list .item[data-v-5ab094b4]{width:%?174?%;margin-top:%?26?%}.productSort .conter .list .item .picture[data-v-5ab094b4],\n.productSort .conter uni-image[data-v-5ab094b4],\n.productSort .conter .list .item uni-image[data-v-5ab094b4],[data-v-5ab094b4] .easy-loadimage{width:%?110?%;height:%?110?%;border-radius:50%}.productSort .conter .list .item .name[data-v-5ab094b4]{font-size:%?24?%;color:#333;height:%?56?%;line-height:%?56?%;width:%?120?%;text-align:center}.page-footer[data-v-5ab094b4]{position:fixed;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-around;width:100%;height:calc(98rpx+ constant(safe-area-inset-bottom));height:calc(%?98?% + env(safe-area-inset-bottom));box-sizing:border-box;border-top:1px solid #f3f3f3;background-color:#fff;box-shadow:0 0 %?17?% %?1?% hsla(0,0%,80.8%,.32);padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.page-footer.filter[data-v-5ab094b4]{-webkit-filter:blur(%?2?%);filter:blur(%?2?%)}.page-footer .foot-item[data-v-5ab094b4]{display:flex;width:-webkit-max-content;width:max-content;align-items:center;justify-content:center;flex-direction:column;position:relative}.page-footer .foot-item .count-num[data-v-5ab094b4]{position:absolute;display:flex;justify-content:center;align-items:center;width:%?40?%;height:%?40?%;top:%?0?%;right:%?-15?%;color:#fff;font-size:%?20?%;background-color:#fd502f;border-radius:50%;padding:%?4?%}.page-footer .foot-item uni-image[data-v-5ab094b4]{height:%?50?%;width:%?50?%;text-align:center;margin:0 auto}.page-footer .foot-item .txt[data-v-5ab094b4]{font-size:%?24?%}',""]),t.exports=e},"51cb":function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={easyLoadimage:o("ae65").default},r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("skeleton",{ref:"skeleton",attrs:{show:t.showSkeleton,isNodes:t.isNodes,loading:"chiaroscuro",selector:"skeleton",bgcolor:"#FFF"}}),o("v-uni-view",{staticClass:"productSort",style:{visibility:t.showSkeleton?"hidden":"visible",height:t.winHeight+"px"}},[o("v-uni-view",{staticClass:"header acea-row row-center-wrapper"},[o("v-uni-navigator",{staticClass:"acea-row row-between-wrapper input skeleton-rect",attrs:{url:"/pages/columnGoods/goods_search/index","hover-class":"none"}},[o("v-uni-text",{staticClass:"iconfont icon-sousuo"}),o("v-uni-view",{staticClass:"input-box"},[t._v("点击搜索商品信息")])],1)],1),o("v-uni-view",{staticClass:"con-box",style:t.viewColor},[o("v-uni-view",{staticClass:"aside"},[o("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true","scroll-with-animation":"true","scroll-into-view":t.intoindex}},t._l(t.productList,(function(e,n){return o("v-uni-view",[e.children&&e.children.length>0?o("v-uni-view",{key:e.store_category_id,staticClass:"item acea-row row-center-wrapper",class:n==t.navActive?"on":"",attrs:{id:"sort"+n},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.tap(n,"b"+e.store_category_id)}}},[o("v-uni-text",{staticClass:"item_text skeleton-rect"},[t._v(t._s(e.cate_name)+t._s(t.pid))])],1):t._e()],1)})),1)],1),o("v-uni-view",{staticClass:"conter"},[o("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true","scroll-into-view":t.toView,"scroll-with-animation":"true"},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.scroll.apply(void 0,arguments)}}},[t._l(t.productList,(function(e,n){return o("v-uni-view",t._l(e.children,(function(r,i){return o("v-uni-view",{key:r.store_category_id,staticClass:"listw",attrs:{id:"b"+e.store_category_id+i}},[o("v-uni-view",{staticClass:"title acea-row"},[t.hotList.length>0&&0===n?o("v-uni-view",{staticClass:"name skeleton-rect"},[o("v-uni-image",{staticClass:"list_title",attrs:{src:t.domain+"/static/diy/recommend_cate"+t.keyColor+".png"}})],1):o("v-uni-view",{staticClass:"name skeleton-rect"},[t._v(t._s(r.cate_name))])],1),o("v-uni-view",{staticClass:"list acea-row"},[t._l(r.children,(function(e,n){return[o("v-uni-navigator",{key:e.store_category_id+"_0",staticClass:"item acea-row row-column row-middle",attrs:{"hover-class":"none",url:"/pages/columnGoods/goods_list/index?id="+e.store_category_id+"&title="+e.cate_name}},[o("v-uni-view",{staticClass:"picture skeleton-rect"},[o("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.pic}})],1),o("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.cate_name))])],1)]}))],2)],1)})),1)})),o("v-uni-view",{style:"height:"+(t.height-300)+"rpx;"})],2)],1)],1)],1),t.newData.status&&t.newData.status.status?o("v-uni-view",{staticClass:"foot"},[o("v-uni-view",{staticClass:"page-footer",style:{"background-color":t.newData.bgColor.color[0].item},attrs:{id:"target"}},t._l(t.newData.menuList,(function(e,n){return o("v-uni-view",{key:n,staticClass:"foot-item",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.goRouter(e)}}},[e.link==t.activeRouter?[o("v-uni-image",{attrs:{src:e.imgList[0]}}),o("v-uni-view",{staticClass:"txt",style:{color:t.newData.activeTxtColor.color[0].item}},[t._v(t._s(e.name))])]:[o("v-uni-image",{attrs:{src:e.imgList[1]}}),o("v-uni-view",{staticClass:"txt",style:{color:t.newData.txtColor.color[0].item}},[t._v(t._s(e.name))])]],2)})),1)],1):t._e()],1)},i=[]},"94ef":function(t,e,o){"use strict";o.r(e);var n=o("eed3"),r=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},b898:function(t,e,o){"use strict";var n=o("10b8"),r=o.n(n);r.a},eed3:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("ac1f"),o("14d9"),o("3c65"),o("d81d"),o("498a");var r=o("111c"),i=(o("31bd"),o("4f1b")),a=n(o("ae65")),c=o("26cb"),s=o("8342"),u=(getApp(),{components:{easyLoadimage:a.default},computed:(0,i.configMap)({navigation:{}},(0,c.mapGetters)(["viewColor","keyColor"])),data:function(){var t;return t=location.hash.substr(1),{domain:s.HTTP_REQUEST_URL,showSkeleton:!0,isNodes:0,navlist:[],hotList:[],productList:[{cate_name:"skeleton",store_category_id:0,children:[{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"",store_category_id:101},{cate_name:"",store_category_id:102},{cate_name:"",store_category_id:103},{cate_name:"",store_category_id:104},{cate_name:"",store_category_id:105},{cate_name:"",store_category_id:106}]},{cate_name:"skeleton",store_category_id:1,children:[{cate_name:"",store_category_id:101},{cate_name:"",store_category_id:102},{cate_name:"",store_category_id:103},{cate_name:"",store_category_id:104},{cate_name:"",store_category_id:105},{cate_name:"",store_category_id:106}]},{cate_name:"",store_category_id:20}]},{cate_name:"skeleton",store_category_id:2,children:[{cate_name:"skeleton",store_category_id:30}]},{cate_name:"skeleton",store_category_id:3,children:[{cate_name:"skeleton",store_category_id:31}]},{cate_name:"skeleton",store_category_id:4,children:[{cate_name:"skeleton",store_category_id:32}]},{cate_name:"skeleton",store_category_id:5,children:[{cate_name:"skeleton",store_category_id:33}]},{cate_name:"skeleton",store_category_id:6,children:[{cate_name:"skeleton",store_category_id:34}]},{cate_name:"skeleton",store_category_id:7,children:[{cate_name:"skeleton",store_category_id:35}]},{cate_name:"skeleton",store_category_id:8,children:[{cate_name:"skeleton",store_category_id:36}]},{cate_name:"skeleton",store_category_id:9,children:[{cate_name:"skeleton",store_category_id:37}]},{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"skeleton",store_category_id:38}]},{cate_name:"skeleton",store_category_id:11,children:[{cate_name:"skeleton",store_category_id:39}]}],navActive:0,activceCate:t,number:"",height:0,hightArr:[],toView:"",winHeight:0,pidIndex:0,intoindex:"",pid:"",newData:{},activeRouter:""}},onLoad:function(t){var e=this,o=uni.getStorageSync("storeIndex");t.activceCate?this.activceCate=t.activceCate:o&&(this.activceCate=o,uni.removeStorageSync("storeIndex")),uni.getSystemInfo({success:function(t){e.winHeight=t.windowHeight}}),document.body.addEventListener("touchmove",(function(t){"/pages/goods_cate/goods_cate"==e.$route.path&&t.preventDefault()}),{passive:!1}),this.getAllCategory()},onShow:function(){var t=this,e=getCurrentPages(),o=e[e.length-1].route;this.activeRouter="/"+o;var n=uni.getStorageSync("storeIndex");n&&(this.activceCate=n,uni.removeStorageSync("storeIndex")),this.activceCate&&(this.getCateFrom(this.productList),n&&setTimeout((function(){return t.tap(t.pidIndex,"b"+t.activceCate)}),200)),this.getNav()},onHide:function(){},onReady:function(){this.isNodes++},methods:{goRouter:function(t){var e=getCurrentPages(),o=e[e.length-1].$page.fullPath;t.link!=o&&uni.switchTab({url:t.link,fail:function(e){uni.redirectTo({url:t.link})}})},getNav:function(){this.newData=this.navigation,this.newData.status&&this.newData.status.status?uni.hideTabBar():uni.showTabBar()},infoScroll:function(){var t=this,e=this;uni.getSystemInfo({success:function(t){e.height=t.windowHeight*(750/t.windowWidth)-98}});for(var o=[],n=function(n){var r=e.productList[n];if(!e.productList[n].children)return"continue";for(var i=0;i<e.productList[n].children.length;i++){var a=uni.createSelectorQuery().in(t),c="#b"+r.store_category_id+i;a.select(c).boundingClientRect(),a.exec((function(t){if(t[0]){var e=t[0].top;o.push({top:e,i:n})}}))}},r=0;r<e.productList.length;r++)n(r);e.hightArr=o},tap:function(t,e){this.toView=""+e+0,this.navActive=t,setTimeout((function(){uni.$emit("scroll")}),300)},getAllCategory:function(){var t=this;t.pidIndex=0,(0,r.getCategoryList)().then((function(e){if(t.productList=e.data.list,t.hotList=e.data.hot,t.hotList.length>0){var o={cate_name:"推荐分类",store_category_id:0,children:[{cate_name:"推荐分类",store_category_id:1,children:t.hotList}]};t.productList.unshift(o)}t.getCateFrom(t.productList),t.$nextTick((function(){setTimeout((function(){t.infoScroll(),setTimeout((function(){return t.tap(t.pidIndex,"b"+t.activceCate)}),200)}),300)})),setTimeout((function(){t.showSkeleton=!1}),500)}))},getCateFrom:function(t){var e=this,o="";t.map((function(t,n){if(e.activceCate&&t.store_category_id==e.activceCate)return e.pidIndex=n,void(o="sort"+n)})),this.$nextTick((function(){e.intoindex=o}))},scroll:function(t){uni.$emit("scroll");for(var e=t.detail.scrollTop+10,o=this.hightArr,n=0;n<o.length;n++)e>=o[n].top-o[0].top&&e<(o[n+1]?o[n+1].top:0)-o[0].top?this.navActive=o[n].i:e>=o[o.length-1].top-o[0].top?this.navActive=o[o.length-1].i:e>=0&&e<o[1].top-o[0].top&&(this.navActive=0)},searchSubmitValue:function(t){if(!(this.$util.trim(t.detail.value).length>0))return this.$util.Tips({title:"请填写要搜索的产品信息"});uni.navigateTo({url:"/pages/columnGoods/goods_list/index?searchValue="+t.detail.value})}}});e.default=u}}]);