1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle_b-pages-community_search-community_search"],{"0e31":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uSearch:i("7882").default,mescrollUni:i("de4f").default,uWaterfall:i("28fc").default,communityList:i("79f9").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"goods-search flex-col"},[i("v-uni-view",{staticClass:"header-wrap"},[i("v-uni-view",{staticClass:"search"},[i("u-search",{attrs:{focus:t.showHistory,"bg-color":"#F4F4F4"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.showHistory=!0},search:function(e){arguments[0]=e=t.$handleEvent(e),t.onSearch.apply(void 0,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}],staticClass:"search-content bg-white"},[i("v-uni-scroll-view",{staticStyle:{height:"100%"},attrs:{"scroll-y":!0}},[t.hotList.length?i("v-uni-view",{staticClass:"search-words"},[i("v-uni-view",{staticClass:"title"},[t._v("热门搜索")]),i("v-uni-view",{staticClass:"words flex flex-wrap"},[t._l(t.hotList,(function(e,n){return[i("v-uni-navigator",{key:n+"_0",attrs:{"hover-class":"none",url:"/bundle_b/pages/community_topic/community_topic?id="+e.id+"&name="+e.name}},[i("v-uni-view",{staticClass:"item br60 m-r-20 m-b-20 lighter sm line-1"},[t._v(t._s(e.name))])],1)]}))],2)],1):t._e(),t.historyList.length?i("v-uni-view",{staticClass:"search-words"},[i("v-uni-view",{staticClass:"title flex row-between"},[i("v-uni-view",[t._v("历史搜索")]),i("v-uni-view",{staticClass:"xs muted m-r-20",staticStyle:{padding:"10rpx 20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearSearchFun.apply(void 0,arguments)}}},[t._v("清空")])],1),i("v-uni-view",{staticClass:"words flex flex-wrap"},t._l(t.historyList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item br60 m-r-20 m-b-20 lighter sm line-1",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onChangeKeyword(e)}}},[t._v(t._s(e))])})),1)],1):t._e()],1)],1),i("v-uni-view",{staticClass:"content"},[i("mescroll-uni",{ref:"mescrollRef",attrs:{up:t.upOption,down:{auto:!1},fixed:!1},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[t.goodsList.length?i("v-uni-view",{staticClass:"goods-list"},[i("u-waterfall",{ref:"uWaterfall",attrs:{"add-time":20},scopedSlots:t._u([{key:"left",fn:function(t){var e=t.leftList;return[i("v-uni-view",{staticStyle:{padding:"0 9rpx 0 30rpx"}},[i("community-list",{attrs:{width:"336rpx",type:"waterfall",list:e}})],1)]}},{key:"right",fn:function(t){var e=t.rightList;return[i("v-uni-view",{staticStyle:{padding:"0 30rpx 0 9rpx"}},[i("community-list",{attrs:{width:"336rpx",type:"waterfall",list:e}})],1)]}}],null,!1,3463676658),model:{value:t.goodsList,callback:function(e){t.goodsList=e},expression:"goodsList"}})],1):t._e()],1)],1)],1)},a=[]},"1f2b4":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-search",style:{margin:t.margin,backgroundColor:t.wrapBgColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-content",style:{backgroundColor:t.bgColor,borderRadius:"round"==t.shape?"100rpx":"10rpx",border:t.borderStyle,height:t.height+"rpx"}},[i("v-uni-view",{staticClass:"u-icon-wrap"},[i("u-icon",{staticClass:"u-clear-icon",attrs:{size:30,name:t.searchIcon,color:t.searchIconColor?t.searchIconColor:t.color}})],1),i("v-uni-input",{staticClass:"u-input",style:[{textAlign:t.inputAlign,color:t.color,backgroundColor:t.bgColor},t.inputStyle],attrs:{"confirm-type":"search",value:t.value,disabled:t.disabled,focus:t.focus,maxlength:t.maxlength,"placeholder-class":"u-placeholder-class",placeholder:t.placeholder,"placeholder-style":"color: "+t.placeholderColor,type:"text"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.blur.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.inputChange.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.getFocus.apply(void 0,arguments)}}}),t.keyword&&t.clearabled&&t.focused?i("v-uni-view",{staticClass:"u-close-wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clear.apply(void 0,arguments)}}},[i("u-icon",{staticClass:"u-clear-icon",attrs:{name:"close-circle-fill",size:"34",color:"#c0c4cc"}})],1):t._e()],1),t.hideRight?i("v-uni-view",{staticClass:"u-action",class:[t.showActionBtn||t.show?"u-action-active":""],style:[t.actionStyle],on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.custom.apply(void 0,arguments)}}},[t._v(t._s(t.actionText))]):t._e()],1)},a=[]},2267:function(t,e,i){var n=i("91b7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("6d8bbcec",n,!0,{sourceMap:!1,shadowMode:!1})},"259e":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},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?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=n},"5c2f":function(t,e,i){var n=i("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/* 行为相关颜色 */.u-image[data-v-5c6487b9]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-5c6487b9]{width:100%;height:100%}.u-image__loading[data-v-5c6487b9], .u-image__error[data-v-5c6487b9]{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:#909399;font-size:%?46?%}',""]),t.exports=e},"660b":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 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?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"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.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?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.borderRadius)}},[t.$slots.error?t._t("error"):i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},a=[]},7171:function(t,e,i){"use strict";i.r(e);var n=i("660b"),o=i("cb4c");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("7208");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"5c6487b9",null,!1,n["a"],r);e["default"]=c.exports},7208:function(t,e,i){"use strict";var n=i("774a"),o=i.n(n);o.a},"774a":function(t,e,i){var n=i("5c2f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("28f9c44e",n,!0,{sourceMap:!1,shadowMode:!1})},7882:function(t,e,i){"use strict";i.r(e);var n=i("1f2b4"),o=i("ed89");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("bc2f");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"29e1f541",null,!1,n["a"],r);e["default"]=c.exports},"848c":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-search",props:{shape:{type:String,default:"round"},bgColor:{type:String,default:"#f2f2f2"},placeholder:{type:String,default:"请输入关键字"},clearabled:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},showAction:{type:Boolean,default:!0},actionStyle:{type:Object,default:function(){return{}}},actionText:{type:String,default:"搜索"},inputAlign:{type:String,default:"left"},disabled:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},borderColor:{type:String,default:"none"},value:{type:String,default:""},height:{type:[Number,String],default:64},inputStyle:{type:Object,default:function(){return{}}},maxlength:{type:[Number,String],default:"-1"},searchIconColor:{type:String,default:""},color:{type:String,default:"#606266"},placeholderColor:{type:String,default:"#909399"},margin:{type:String},searchIcon:{type:String,default:"search"},wrapBgColor:{type:String,default:"#fff"},hideRight:{type:Boolean,default:!1}},data:function(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword:function(t){this.$emit("input",t),this.$emit("change",t)},value:{immediate:!0,handler:function(t){this.keyword=t}}},computed:{showActionBtn:function(){return!(this.animation||!this.showAction)},borderStyle:function(){return this.borderColor?"1px solid ".concat(this.borderColor):"none"}},methods:{inputChange:function(t){this.keyword=t.detail.value},clear:function(){var t=this;this.keyword="",this.$nextTick((function(){t.$emit("clear")}))},search:function(t){this.$emit("search",t.detail.value);try{uni.hideKeyboard()}catch(t){}},custom:function(){this.$emit("custom",this.keyword);try{uni.hideKeyboard()}catch(t){}},getFocus:function(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur:function(){var t=this;setTimeout((function(){t.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler:function(){this.disabled&&this.$emit("click")}}};e.default=n},"91b7":function(t,e,i){var n=i("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/* 行为相关颜色 */.u-search[data-v-29e1f541]{display:flex;flex-direction:row;align-items:center;flex:1;padding:%?15?% %?20?%}.u-content[data-v-29e1f541]{display:flex;flex-direction:row;align-items:center;padding:0 %?18?%;flex:1}.u-clear-icon[data-v-29e1f541]{display:flex;flex-direction:row;align-items:center}.u-input[data-v-29e1f541]{flex:1;font-size:%?28?%;line-height:1;margin:0 %?10?%;color:#909399}.u-close-wrap[data-v-29e1f541]{width:%?40?%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:50%}.u-placeholder-class[data-v-29e1f541]{color:#909399}.u-action[data-v-29e1f541]{font-size:%?28?%;color:#303133;width:0;overflow:hidden;transition:all .3s;white-space:nowrap;text-align:center}.u-action-active[data-v-29e1f541]{width:%?80?%;margin-left:%?10?%}',""]),t.exports=e},9770:function(t,e,i){"use strict";i.r(e);var n=i("aec4"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},aec4:function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("c740"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("5530")),a=i("c980"),r=i("26cb"),s=i("357b"),c=n(i("9df2")),u={mixins:[c.default],data:function(){return{upOption:{auto:!1,empty:{icon:"/static/images/news_null.png",tip:"暂无种草文章"}},keyword:"",sortConfig:{goodsType:"double",priceSort:"",saleSort:""},goodsList:[],showHistory:!1,hotList:[],historyList:[]}},watch:{keyword:function(t,e){t||this.id||(this.showHistory=!0)},showHistory:function(t){t&&this.getSearchpageFun()},"sortConfig.saleSort":function(){this.onSearch()},"sortConfig.priceSort":function(){this.onSearch()}},onLoad:function(t){var e=this;this.onSearch=(0,s.trottle)(this.onSearch,500,this),this.init(t),uni.$on("changeItem",(function(t){var i=e.goodsList.findIndex((function(e){return e.id==t.id}));-1!=i&&(e.$refs.uWaterfall.modify(t.id,"like",t.like),e.$refs.uWaterfall.modify(t.id,"is_like",t.is_like))}))},onUnload:function(){uni.$off("changeItem")},computed:(0,o.default)({},(0,r.mapGetters)(["sysInfo"])),methods:{downCallback:function(){this.onRefresh()},upCallback:function(t){var e=this,i=t.num,n=t.size,o=(this.goodsList,this.keyword),r=this.sortConfig,s=r.priceSort,c=r.saleSort,u={page_size:n,page_no:i,platform_cate_id:1==this.type?this.id:"",brand_id:0==this.type?this.id:"",keyword:o,sort_by_price:s,sort_by_sales:c};(0,a.getCommunityArticleLists)(u).then((function(i){var n=i.data;1==t.num&&(e.goodsList=[]);var o=n.list,a=o.length,r=!!n.more;e.goodsList=e.goodsList.concat(o),e.mescroll.endSuccess(a,r)})).catch((function(){e.mescroll.endErr()}))},onChange:function(t){this.keyword=t.value},clearSearchFun:function(){var t=this;(0,a.apiCommunityClearSearchHistory)().then((function(e){1==e.code&&t.getSearchpageFun()}))},init:function(t){var e=this,i=this.$Route.query,n=i.id,o=i.name,a=i.type;this.type=a,n?(uni.setNavigationBarTitle({title:o}),this.id=n,this.$nextTick((function(){e.onRefresh()}))):(uni.setNavigationBarTitle({title:"种草搜索"}),this.showHistory=!0)},getSearchpageFun:function(){var t=this;(0,a.getCommunitySearchHistory)().then((function(e){if(1==e.code){var i=e.data,n=i.history,o=i.topic;t.hotList=o,t.historyList=n}}))},onClear:function(){this.id&&this.onRefresh()},onSearch:function(){var t=this;this.showHistory=!1,this.$nextTick((function(){t.onRefresh()}))},onRefresh:function(){this.goodsList=[],this.mescroll.resetUpScroll()},onChangeKeyword:function(t){this.keyword=t,this.showHistory=!1,this.onRefresh()}}};e.default=u},b1ab:function(t,e,i){var n=i("e9a3");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("ff6446fe",n,!0,{sourceMap:!1,shadowMode:!1})},bc2f:function(t,e,i){"use strict";var n=i("2267"),o=i.n(n);o.a},c30d:function(t,e,i){"use strict";var n=i("b1ab"),o=i.n(n);o.a},c980:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCommunityGoods=a,e.getCommunityShop=r,e.getCommunityRecommendTopic=s,e.getCommunityTopicLists=c,e.apiCommunityAdd=u,e.apiCommunityEdit=l,e.getCommunityUserCenter=d,e.getCommunityCate=f,e.getCommunityArticleLists=h,e.apiCommunityFollow=p,e.getCommunitySetting=m,e.apiCommunitySetSetting=g,e.getCommunityFollow=y,e.getCommunityWorksLists=v,e.getCommunityLikeLists=w,e.getCommunityTopicArticle=b,e.getCommunityDetail=C,e.getCommunityGoodsLists=_,e.getCommunityShopLists=S,e.apiCommunityDel=x,e.apiCommunityCommentAdd=k,e.getCommunityCommentLists=$,e.getCommunityCommentChildLists=L,e.apiCommunityCommentLike=E,e.getCommunitySearchHistory=A,e.apiCommunityClearSearchHistory=T;var o=n(i("b175"));function a(t){return o.default.get("community/goods",{params:t})}function r(t){return o.default.get("community/shop",{params:t})}function s(){return o.default.get("community/recommendTopic")}function c(t){return o.default.get("community/topicLists",{params:t})}function u(t){return o.default.post("community/addArticle",t)}function l(t){return o.default.post("community/editArticle",t)}function d(t){return o.default.get("community_user/center",{params:t})}function f(){return o.default.get("community/cate")}function h(t){return o.default.get("community/articleLists",{params:t})}function p(t){return o.default.post("community/follow",t)}function m(){return o.default.get("community_user/getSetting")}function g(t){return o.default.post("community_user/setSetting",t)}function y(t){return o.default.get("community/followArticle",{params:t})}function v(t){return o.default.get("community/worksLists",{params:t})}function w(t){return o.default.get("community/likeLists",{params:t})}function b(t){return o.default.get("community/topicArticle",{params:t})}function C(t){return o.default.get("community/detail",{params:t})}function _(t){return o.default.get("community/relationGoods",{params:t})}function S(t){return o.default.get("community/relationShop",{params:t})}function x(t){return o.default.post("community/delArticle",t)}function k(t){return o.default.post("community_comment/add",t)}function $(t){return o.default.get("community_comment/lists",{params:t})}function L(t){return o.default.get("community_comment/commentChild",{params:t})}function E(t){return o.default.post("community/giveLike",t)}function A(){return o.default.get("community_search/lists")}function T(){return o.default.post("community_search/clear")}},cb4c:function(t,e,i){"use strict";i.r(e);var n=i("259e"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},e9a3:function(t,e,i){var n=i("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/* 行为相关颜色 */uni-page-body[data-v-1173ef0c]{height:100%;padding:0}.goods-search[data-v-1173ef0c]{height:100%;position:relative}.goods-search .header-wrap[data-v-1173ef0c]{position:relative;z-index:999}.goods-search .header-wrap .search[data-v-1173ef0c]{box-shadow:0 3px 6px rgba(0,0,0,.03);position:relative;z-index:1}.goods-search .search-content[data-v-1173ef0c]{position:absolute;width:100%;height:100%;padding-top:%?100?%;z-index:100}.goods-search .search-content .search-words[data-v-1173ef0c]{padding-left:%?24?%;padding-bottom:%?20?%}.goods-search .search-content .search-words .title[data-v-1173ef0c]{padding:%?26?% 0}.goods-search .search-content .search-words .words .item[data-v-1173ef0c]{line-height:%?52?%;height:%?52?%;padding:0 %?24?%;background-color:#f5f5f5}.goods-search .content[data-v-1173ef0c]{flex:1;min-height:0}.goods-search .content .goods-list[data-v-1173ef0c]{overflow:hidden}',""]),t.exports=e},ed89:function(t,e,i){"use strict";i.r(e);var n=i("848c"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},fd99:function(t,e,i){"use strict";i.r(e);var n=i("0e31"),o=i("9770");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("c30d");var r,s=i("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"1173ef0c",null,!1,n["a"],r);e["default"]=c.exports}}]); |