pages-home-goodsclass-Goodsclass.a8366b8c.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-goodsclass-Goodsclass"],{"0320":function(e,t,o){var i=o("0d01");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=o("4f06").default;a("22a63a76",i,!0,{sourceMap:!1,shadowMode:!1})},"0d01":function(e,t,o){var i=o("24fb"),a=o("1de5"),n=o("466f");t=i(!1);var r=a(n);t.push([e.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.dot[data-v-279828e6]{position:absolute;width:.5rem;height:.5rem;background:red;border-radius:50%;top:.2rem;right:0}.product-list-header.logo .slot[data-v-279828e6]{width:2.5rem;height:1.6rem;text-align:center;line-height:1.6rem}.product-list-header.logo .slot .img[data-v-279828e6]{max-height:100%;max-width:100%}.product-list-header.logo .common-search[data-v-279828e6]{padding:0;padding-left:.6rem;padding-right:.6rem}.header-holder[data-v-279828e6]{height:2rem}.product-list-header-wrapper[data-v-279828e6]{position:fixed;left:0;right:0;top:0;padding-top:0;z-index:10;background:#fff}.product-list-header[data-v-279828e6]{display:flex;height:2rem;padding-top:.25rem;padding-bottom:.25rem;padding-left:.6rem;padding-right:.6rem;justify-content:space-between;align-items:center;box-shadow:0 4px 4px #f7f7f7;box-sizing:border-box}.product-list-header .slot[data-v-279828e6]{width:1.6rem;font-size:.8rem}.common-search[data-v-279828e6]{flex:1;padding:.35rem .3rem .35rem 0}.common-search uni-input[data-v-279828e6]{box-sizing:border-box;width:100%;height:1.6rem;border-radius:1.6rem;background:#f4f4f4 url('+r+") no-repeat .6rem;background-size:.55rem;font-size:.6rem;color:#999;padding-left:1.6rem;border:0}.right[data-v-279828e6]{width:1.6rem;height:1.6rem;text-align:center;line-height:1.6rem;position:relative}",""]),e.exports=t},"0d5f":function(e,t,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o("0b9f"),n=i(o("3d3d")),r=i(o("6682")),s=i(o("6352")),d={name:"HomeGoodsclass",components:{HomeBase:n.default,HomeCommonSearch:r.default,GoodsclassBody:s.default},computed:{fontSize:function(){return(0,a.getFontSize)()}}};t.default=d},1314:function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return i}));var i={pageMeta:o("6d42").default},a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",[t("page-meta",{attrs:{"root-font-size":this.fontSize+"px"}}),t("home-base",{attrs:{show:!1}},[t("v-uni-view",{staticClass:"div category"},[t("home-common-search"),t("goodsclass-body")],1)],1)],1)},n=[]},"17a3":function(e,t,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,o("ac1f"),o("5319"),o("99af");var a=i(o("5530")),n=i(o("cce0")),r=o("0b9f"),s=o("26cb"),d=o("d6fd"),c=i(o("c54b")),u={name:"HomeCommonSearch",components:{HeaderMore:c.default,TitleHeader:n.default},props:["value","from"],watch:{value:function(e){e&&(this.keyword=e)}},data:function(){return{navHeight:0,query:{},keyword:this.value?this.value:"",popupVisible:!1,showDot:!1}},mounted:function(){var e=this,t=getCurrentPages(),o=t[t.length-1];this.query=o.options,this.isOnline&&(0,d.getChatCount)().then((function(t){t.result&&(e.showDot||(e.showDot={}),e.showDot["chat"]=!0)}))},computed:(0,a.default)({},(0,s.mapState)({config:function(e){return e.config.config},isOnline:function(e){return e.member.isOnline},currenKeywords:function(e){return e.homesearch.currenKeywords}})),methods:(0,a.default)((0,a.default)({},(0,s.mapMutations)({saveKeywords:"saveKeywords"})),{},{goBack:function(){uni.navigateBack({delta:1})},onSearch:function(){uni.navigateTo({url:"/pages/home/search/Search",params:{isFromHome:!0}})},goStoreGoods:function(){uni.navigateTo({url:"/pages/home/storegoodslist/Goodslist?"+(0,r.urlencode)({id:this.query.id,keyword:this.keyword})})},goSearch:function(e){if(e.replace(/\s+/g,"").length<=0)return uni.showToast({icon:"none",title:"请输入您要搜索的关键字"}),!1;if(this.keywords=e,e){var t=this.utils.arrayFilter(this.currenKeywords.concat(e));this.saveKeywords(t)}uni.navigateTo({url:"/pages/home/goodslist/Goodslist?"+(0,r.urlencode)({keywords:this.keywords})})},popupMore:function(){this.popupVisible?this.popupVisible=!1:this.popupVisible=!0}})};t.default=u},"1e48":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{staticClass:"div ui-category-body",style:"padding-top:"+e.navHeight+"px"},[o("v-uni-view",{staticClass:"common-header-holder"}),o("v-uni-view",{staticClass:"div category-flex"},[o("v-uni-view",{staticClass:"div category-sidebar"},[o("v-uni-view",{staticClass:"ul"},e._l(e.items,(function(t){return o("v-uni-view",{key:t.id,staticClass:"li item",class:{sidbaractive:e.currentItem&&t.id==e.currentItem.id,noActive:e.currentItem&&t.id!=e.currentItem.id},on:{click:function(o){arguments[0]=o=e.$handleEvent(o),t.children&&t.children.length?e.onItemClick(t):e.goProduct(t.id)}}},[o("v-uni-text",{staticClass:"a"},[e._v(e._s(t.value))])],1)})),1)],1),e.currentItem&&e.currentItem.children?o("v-uni-view",{ref:"content",staticClass:"div category-content"},[o("v-uni-view",{staticClass:"ul"},e._l(e.currentItem.children,(function(t){return o("v-uni-view",{key:t.id,staticClass:"li item clearfix"},[o("v-uni-text",{staticClass:"a",on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e.goProduct(t.id)}}},[e._v(e._s(t.value))]),e._l(t.children,(function(t){return o("v-uni-view",{key:t.id,staticClass:"dl",on:{click:function(o){arguments[0]=o=e.$handleEvent(o),e.goProduct(t.id)}}},[o("v-uni-view",{staticClass:"dt"},[o("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:t.image}})],1),o("v-uni-view",{staticClass:"dd"},[e._v(e._s(t.value))])],1)}))],2)})),1)],1):e._e()],1)],1)},a=[]},2994:function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.ui-category-body[data-v-65064b87]{width:100%;position:absolute;bottom:0;top:0}.ui-category-body .category-flex[data-v-65064b87]{height:100%;box-sizing:border-box;padding-top:2rem;background:#fff;display:flex;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex}.ui-category-body .category-flex .category-sidebar[data-v-65064b87]{flex-basis:6rem;background-color:#f0f1f5;overflow-y:scroll;border-radius:0 .8rem 0 0;margin-top:1rem}.ui-category-body .category-flex .category-sidebar .ul .li[data-v-65064b87]{display:block;padding:.8rem .25rem}.ui-category-body .category-flex .category-sidebar .ul .li .a[data-v-65064b87]{color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;font-size:.6rem;text-align:center}.ui-category-body .category-flex .category-sidebar .ul .li.noActive[data-v-65064b87]{background-color:#f0f2f5;border-left:.1rem solid transparent}.ui-category-body .category-flex .category-sidebar .ul .li.noActive .a[data-v-65064b87]{color:#333}.ui-category-body .category-flex .category-sidebar .ul .li.sidbaractive[data-v-65064b87]{background-color:#fff;border-left:.1rem solid #fb2630}.ui-category-body .category-flex .category-sidebar .ul .li.sidbaractive .a[data-v-65064b87]{font-weight:600;color:#fb2630}.ui-category-body .category-flex .category-content[data-v-65064b87]{width:100%;background-color:#fff;overflow:auto}.ui-category-body .category-flex .category-content .ul[data-v-65064b87]{height:100%}.ui-category-body .category-flex .category-content .ul .li[data-v-65064b87]{display:block;padding:.95rem 0;cursor:pointer}.ui-category-body .category-flex .category-content .ul .li .a[data-v-65064b87]{color:#333;font-size:.8rem;margin-bottom:1rem;font-weight:700;text-align:center;display:block}.ui-category-body .category-flex .category-content .ul .dl[data-v-65064b87]{display:inline-block;width:33.33%;text-align:center}.ui-category-body .category-flex .category-content .ul .dl .dt[data-v-65064b87]{position:relative}.ui-category-body .category-flex .category-content .ul .dl .dt .img[data-v-65064b87]{width:3.5rem;height:3.5rem;overflow:hidden;border-radius:.4rem}.ui-category-body .category-flex .category-content .ul .dl .dd[data-v-65064b87]{font-size:.6rem;line-height:1rem;height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:.5rem;margin-top:.2rem}',""]),e.exports=t},"466f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAAGWB6gOAAAAAXNSR0IArs4c6QAABZ9JREFUWAm9mFlMXVUUhu+EULUJSDS1onFI8MFEYx1qYgtSWlubtEasPJgKDWOM+KCJU7T6UE2dGn3ghTGCQQ2mJoZI61CwtNHYwSZ9sYHYRkHT2AEHaMFeuH7/4ezNOXcgl8mdHNbaa/z32iM3EHBbQ0NDD1+G6Qc6OzsvM53GxsbhkDqlpaX/GmEwGHzfEeL2mBFOTk7mGT7Q2tp6tToY/GmFdE44nY6OjhwrhQmNjIyc9wpS883Nzff7tAT9uampabVXiCxm+76OlU4x6MacgcTJ47uZVkCqjXidMgL6W02GoBGKolgXi8V287XX1tbWeXUOb7yMgkofamlpudX0VbvpUVhpIIDhEdtlrq60nTiGAO/GiRK7GI06JQDwfYnqKUkoFKpyuFSYEuQSdHd328IlGHhTMaKHTB9+XLyvmEZJlJfhX3cMgsH90B/4rqPIJdAlLMx/4HMp+CXZqPkCEeAbZMUY+OSOZdwfbF9EtDM/Pz+jqKgoah1QnCXToZqamo1xPjN28Yvl5OREvCsud7ZB3Axtw8PDxyMzpktDySi0EU97EXUB80IavtaERbucom9mJMW2RtISaBXkAN96Cv6VZKkatjoosrDLko1vaAgPIguSRUh/5bueL6ExnKcQhrCzOh8iK50Fw4KcJOCxlIGArrPzPb61IFAtjrBhdlZXV3+dLE9CIAXA8RyOS3G4CP8Z9De+lcgK3SCvUIY3XN4hvkA6OqLR6AmcDzMT93oNDc8WX80x3Uf/JMFuMXIbqLe3N9Lf36+98xIGbxqDVBTkqvQ+bNfKxq6jgYGBMyA5mk4QObItdFQUm5vBCcTZFmb82Qznbhml03RNkXgPN8qA7J1A7JW34J1zJZ0gxiY7O7sUPld9MzQdVJ9IMJsGqhFjbwLdxBo5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esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=o("4f06").default;a("685c0be8",i,!0,{sourceMap:!1,shadowMode:!1})},"57af":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{staticClass:"div"},[o("v-uni-view",{staticClass:"div header-holder"}),o("v-uni-view",{style:"height:"+e.navHeight+"px"}),o("v-uni-view",{staticClass:"product-list-header-wrapper"},[o("title-header"),o("v-uni-view",{staticClass:"div product-list-header",class:"logo"},[e.config?o("v-uni-view",{staticClass:"div slot"},["home"==e.from?o("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:e.config.site_mobile_logo}}):o("v-uni-view",{staticClass:"div",staticStyle:{"text-align":"left"}},[o("v-uni-text",{staticClass:"span iconfont",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack()}}},[e._v("")])],1)],1):e._e(),o("v-uni-view",{staticClass:"div common-search"},["search"==e.from?o("v-uni-input",{attrs:{type:"text",placeholder:"请输入您要搜索的商品"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.goSearch(e.keyword)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}):"store"==e.from?o("v-uni-input",{attrs:{type:"text",placeholder:"搜索店铺商品"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.goStoreGoods(e.keyword)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}}):o("v-uni-input",{attrs:{type:"text",placeholder:"请输入您要搜索的商品",readonly:"true",autocomplete:"off"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onSearch.apply(void 0,arguments)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),o("v-uni-view",{staticClass:"div right iconfont popup-menu-area",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.popupMore.apply(void 0,arguments)}}},[e._v(""),e.showDot?o("v-uni-view",{staticClass:"div dot"}):e._e()],1)],1)],1),o("header-more",{directives:[{name:"show",rawName:"v-show",value:e.popupVisible,expression:"popupVisible"}],attrs:{showDot:e.showDot},nativeOn:{blur:function(t){arguments[0]=t=e.$handleEvent(t),e.popupVisible=!1}}})],1)},a=[]},6352:function(e,t,o){"use strict";o.r(t);var i=o("1e48"),a=o("d13c");for(var n in a)["default"].indexOf(n)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(n);o("e6d5");var r=o("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"65064b87",null,!1,i["a"],void 0);t["default"]=s.exports},6682:function(e,t,o){"use strict";o.r(t);var i=o("57af"),a=o("a43d");for(var n in a)["default"].indexOf(n)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(n);o("e953");var r=o("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"279828e6",null,!1,i["a"],void 0);t["default"]=s.exports},"727d":function(e,t,o){"use strict";o.r(t);var i=o("1314"),a=o("d273");for(var n in a)["default"].indexOf(n)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(n);var r=o("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"fde72a10",null,!1,i["a"],void 0);t["default"]=s.exports},a43d:function(e,t,o){"use strict";o.r(t);var i=o("17a3"),a=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(n);t["default"]=a.a},bd67:function(e,t,o){"use strict";o("7a82");var i=o("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(o("5530")),n=o("0b9f"),r=o("26cb"),s={data:function(){return{navHeight:0,currentItem:{}}},computed:(0,a.default)({},(0,r.mapState)({items:function(e){return e.goodsclass.items}})),created:function(){this.getGoodsclassList()},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,r.mapMutations)({saveCurrentGoodsclassItem:"saveCurrentGoodsclassItem"})),(0,r.mapActions)({fetchGoodsclassList:"fetchGoodsclassList"})),{},{getGoodsclassList:function(){var e=this;this.items&&this.items.length||uni.showLoading({title:"加载中"}),this.fetchGoodsclassList().then((function(t){var o=t.result.class_list[0];e.onItemClick(o),uni.hideLoading()}),(function(e){uni.showToast({icon:"none",title:e.message}),uni.hideLoading()}))},onItemClick:function(e){this.currentItem=e},goProduct:function(e){var t={cate_id:e};uni.navigateTo({url:"/pages/home/goodslist/Goodslist?"+(0,n.urlencode)(t)})}}),mounted:function(){}};t.default=s},d13c:function(e,t,o){"use strict";o.r(t);var i=o("bd67"),a=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(n);t["default"]=a.a},d273:function(e,t,o){"use strict";o.r(t);var i=o("0d5f"),a=o.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(n);t["default"]=a.a},d6fd:function(e,t,o){"use strict";o("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.setMessage=t.joinChat=t.getChatList=t.getChatHistory=t.getChatCount=t.addInstantMessage=void 0;var i=o("887c");t.addInstantMessage=function(e){return(0,i.requestApi)("/member_instant_message/add","POST",e,"member")};t.joinChat=function(e){return(0,i.requestApi)("/member_instant_message/join","POST",{client_id:e},"member")};t.setMessage=function(e){return(0,i.requestApi)("/member_instant_message/set_message","POST",e,"member")};t.getChatHistory=function(e,t){return(0,i.requestApi)("/member_instant_message/get_chat_log","POST",{page:e.page,per_page:e.per_page,t_id:t},"member")};t.getChatList=function(){return(0,i.requestApi)("/member_instant_message/get_user_list","POST",{recent:1},"member")};t.getChatCount=function(){return(0,i.requestApi)("/member_instant_message/get_msg_count","POST",{},"member")}},e6d5:function(e,t,o){"use strict";var i=o("5270"),a=o.n(i);a.a},e953:function(e,t,o){"use strict";var i=o("0320"),a=o.n(i);a.a}}]);