1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cloud_warehouse-big_classification-index"],{"22c7":function(t,e,i){"use strict";i.r(e);var n=i("d4e3"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"2bda":function(t,e,i){"use strict";var n=i("fb9b"),a=i.n(n);a.a},"4e70":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("uvImage",{attrs:{src:t.src,mode:t.mode,width:t.width,height:t.height,shape:t.shape,radius:t.radius,lazyLoad:t.lazyLoad,showMenuByLongpress:t.showMenuByLongpress,loadingIcon:t.loadingIcon,errorIcon:t.errorIcon,showLoading:t.showLoading,showError:t.showError,fade:t.fade,webp:t.webp,duration:t.duration,bgColor:t.bgColor,customStyle:t.customStyle},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("click")},error:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("error")},load:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("load")}},scopedSlots:t._u([{key:"loading",fn:function(){return[t._t("loading")]},proxy:!0},{key:"error",fn:function(){return[t._t("error")]},proxy:!0}],null,!0)})},a=[]},5243:function(t,e,i){var n=i("e2eb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("437f3229",n,!0,{sourceMap:!1,shadowMode:!1})},"65c2":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-1428a719], uni-scroll-view[data-v-1428a719], uni-swiper-item[data-v-1428a719]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-image[data-v-1428a719]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-1428a719]{width:100%;height:100%}.u-image__loading[data-v-1428a719], .u-image__error[data-v-1428a719]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909193;font-size:%?46?%}',""]),t.exports=e},"712d":function(t,e,i){"use strict";i.r(e);var n=i("84e5"),a=i("22c7");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("2bda");var o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"1428a719",null,!1,n["a"],void 0);e["default"]=u.exports},"74e1":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uImage:i("712d").default,"u-Image":i("cea2").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"bigClassification"},[i("v-uni-view",{staticStyle:{height:"var(--status-bar-height)"}}),i("v-uni-view",{staticClass:"back-icon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBack.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"classification"},[t.list.length>0?i("v-uni-view",{staticClass:"classification-wrap"},[t._l(t.list,(function(e,n){return[i("v-uni-view",{key:n+"_0",staticClass:"classification-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goSmallType(e)}}},[i("v-uni-view",{staticClass:"classification-item-name"},[t._v(t._s(e.cate_name))]),i("v-uni-view",{staticClass:"classification-item-btn"},[t._v("立即前往")]),i("u-image",{staticClass:"img",attrs:{src:e.pic,mode:"widthFix",width:"140rpx",height:"130rpx","lazy-load":!0}},[i("v-uni-view",{staticStyle:{"font-size":"24rpx"},attrs:{slot:"error"},slot:"error"},[t._v("暂无图片")])],1)],1)]}))],2):t._e(),0==t.list.length?i("v-uni-view",{staticClass:"empty-box"},[i("v-uni-view",{staticClass:"pictrue"},[i("u--image",{attrs:{src:"../../../static/images/empty-box.png",width:"414rpx",height:"240rpx"}}),i("v-uni-view",{staticClass:"txt"},[t._v("暂无更多分类~")])],1)],1):t._e()],1)],1)},r=[]},"84e5":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uTransition:i("1488").default,uIcon:i("f8c8").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("u-transition",{attrs:{mode:"fade",show:t.show,duration:t.fade?1e3:0}},[i("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():i("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"10000px":t.$u.addUnit(t.radius),width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)},attrs:{src:t.src,mode:t.mode,"show-menu-by-longpress":t.showMenuByLongpress,"lazy-load":t.lazyLoad},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?i("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.radius),backgroundColor:this.bgColor,width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)}},[t._t("loading",[i("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})])],2):t._e(),t.showError&&t.isError&&!t.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.radius),width:t.$u.addUnit(t.width),height:t.$u.addUnit(t.height)}},[t._t("error",[i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})])],2):t._e()],1)],1)},r=[]},"857d":function(t,e,i){"use strict";i.r(e);var n=i("bab3"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"9db9":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("712d")),r=n(i("f4d6")),o={name:"u--image",mixins:[uni.$u.mpMixin,r.default,uni.$u.mixin],components:{uvImage:a.default}};e.default=o},b8a1:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.cloudWarehouse=function(t){return a.default.get("store/product/cloudWarehouse",t)},e.getCartCounts=function(t){return a.default.get("user/cart/count",t)},e.getCartList=function(t){return a.default.get("user/cart/lst",t)},e.getCategoryListLevel=function(t){return a.default.get("category/list_level",t)},e.getCityCloundShop=function(t){return a.default.get("city/get_cloud_shop",t)},e.supMenuApi=function(t){return a.default.get("intention/v2/cate",t)},e.townCloud=function(t){return a.default.get("store/product/town_cloud",t)};var a=n(i("df89"))},bab3:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("d700"),a=(i("b8a1"),i("3093")),r={data:function(){return{list:[],mer_id:"",type_id:"",street_id:"",town_name:""}},onLoad:function(t){this.type_id=t.type_id,this.street_id=t.street_id,this.town_name=t.town_name,this.getCloundShop()},methods:{getCloundShop:function(){var t=this;uni.showLoading({title:"加载中..."}),(0,n.getCategory)("prod"==a.ENV?259:244).then((function(e){uni.hideLoading(),t.list=e.data})).catch((function(){uni.hideLoading()}))},handleBack:function(){uni.navigateBack({delta:1})},goSmallType:function(t){t.children?(uni.setStorageSync("market_type_parent",t),uni.navigateTo({url:"/pages/cloud_warehouse/small_classification/index"})):this.$util.Tips({title:"暂无商品!"})}}};e.default=r},cea2:function(t,e,i){"use strict";i.r(e);var n=i("4e70"),a=i("d344");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);var o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},d344:function(t,e,i){"use strict";i.r(e);var n=i("9db9"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},d4e3:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("f4d6")),r={name:"u-image",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{},show:!1}},watch:{src:{immediate:!0,handler:function(t){t?(this.isError=!1,this.loading=!0):this.isError=!0}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"10000px":uni.$u.addUnit(this.radius),t.overflow=this.borderRadius>0?"hidden":"visible",uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},mounted:function(){this.show=!0},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(t){this.loading=!1,this.isError=!1,this.$emit("load",t),this.removeBgColor()},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=r},d700:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getCategory=function(t,e){var i={};e&&(i["pid"]=e);return a.default.get("store/merchant/category/lst/"+t,i)},e.getProportion=function(t){return a.default.get("product/spu/storeLabel",t)},e.getStorageList=function(t){return a.default.get("product/spu/lst",t)},e.goodsList=function(t){return a.default.get("product/spu/merchant/"+t.mer_id,t)};var a=n(i("6860"))},dd67:function(t,e,i){"use strict";var n=i("5243"),a=i.n(n);a.a},df89:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("c975");var a=i("3093"),r=(i("5eb1"),n(i("e9c8")));var o={};["options","get","post","put","head","delete","trace","connect"].forEach((function(t){o[t]=function(e,i,n){return function(t,e,i,n){n.noAuth;var o=n.noVerify,u=void 0!==o&&o,s=a.HTTP_REQUEST_URL,d=a.HEADER;return r.default.state.app.token&&(d[a.TOKENNAME]="Bearer "+r.default.state.app.token),new Promise((function(n,a){uni.request({url:s+"/api/"+t,method:e||"GET",header:d,data:i||{},success:function(t){u||200==t.data.status?n(t.data,t):-1!==[41e4,410001,410002,4e4].indexOf(t.data.status)?a(t.data):501==t.data.status?(uni.reLaunch({url:"/pages/error/index"}),a(t.data)):a(t.data.message||"系统错误")},fail:function(t){a("请求失败")}})}))}(e,t,i,n||{})}}));var u=o;e.default=u},e2eb:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.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/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-73796d66]{height:100%;background-color:#f7f7f7}body.?%PAGE?%[data-v-73796d66]{background-color:#f7f7f7}.bigClassification[data-v-73796d66]{position:relative;width:100%;height:%?760?%;background-image:url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/06e54202402281547535138.webp);background-size:cover;background-repeat:no-repeat;background-position:50%}.back-icon[data-v-73796d66]{position:absolute;top:%?116?%;left:%?20?%;width:%?24?%;height:%?24?%;border:%?2?% solid #fff;border-bottom-color:transparent;border-right-color:transparent;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.classification[data-v-73796d66]{margin-left:%?20?%;padding-top:%?490?%}.classification .classification-wrap[data-v-73796d66]{display:flex;flex-wrap:wrap}.classification .classification-wrap .classification-item[data-v-73796d66]{width:47%;position:relative;background-color:#fff;margin:0 %?20?% %?18?% 0;border-radius:%?30?%;padding:%?26?% 0 %?26?% %?24?%}.classification .classification-wrap .classification-item .classification-item-name[data-v-73796d66]{position:relative;z-index:2;display:inline-block;font-size:%?36?%;color:#000;font-weight:700;margin-bottom:%?30?%}.classification .classification-wrap .classification-item .classification-item-name[data-v-73796d66]::before{content:"";display:inline-block;position:absolute;z-index:-1;left:%?0?%;bottom:%?-2?%;width:100%;height:%?24?%;border-radius:%?24?%;background:linear-gradient(90deg,#ff8259 0,hsla(0,0%,100%,.8) 80%)}.classification .classification-wrap .classification-item .classification-item-btn[data-v-73796d66]{width:%?140?%;height:%?48?%;line-height:%?48?%;border-radius:%?48?%;text-align:center;color:#ffb298;border:%?2?% solid #ffb298}.classification .classification-wrap .classification-item .img[data-v-73796d66]{position:absolute;bottom:0;right:0}.empty-box[data-v-73796d66]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:%?100?% auto 0}.empty-box uni-image[data-v-73796d66]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-73796d66]{font-size:%?26?%;color:#999;text-align:center}',""]),t.exports=e},f4d6:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{src:{type:String,default:uni.$u.props.image.src},mode:{type:String,default:uni.$u.props.image.mode},width:{type:[String,Number],default:uni.$u.props.image.width},height:{type:[String,Number],default:uni.$u.props.image.height},shape:{type:String,default:uni.$u.props.image.shape},radius:{type:[String,Number],default:uni.$u.props.image.radius},lazyLoad:{type:Boolean,default:uni.$u.props.image.lazyLoad},showMenuByLongpress:{type:Boolean,default:uni.$u.props.image.showMenuByLongpress},loadingIcon:{type:String,default:uni.$u.props.image.loadingIcon},errorIcon:{type:String,default:uni.$u.props.image.errorIcon},showLoading:{type:Boolean,default:uni.$u.props.image.showLoading},showError:{type:Boolean,default:uni.$u.props.image.showError},fade:{type:Boolean,default:uni.$u.props.image.fade},webp:{type:Boolean,default:uni.$u.props.image.webp},duration:{type:[String,Number],default:uni.$u.props.image.duration},bgColor:{type:String,default:uni.$u.props.image.bgColor}}};e.default=n},fb9b:function(t,e,i){var n=i("65c2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("19348162",n,!0,{sourceMap:!1,shadowMode:!1})},fbee:function(t,e,i){"use strict";i.r(e);var n=i("74e1"),a=i("857d");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("dd67");var o=i("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"73796d66",null,!1,n["a"],void 0);e["default"]=u.exports}}]); |