search.js.map 23 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///G:/item/appBase/pages/product/search.vue?6418","webpack:///G:/item/appBase/pages/product/search.vue?23e2","webpack:///G:/item/appBase/pages/product/search.vue?5510","webpack:///G:/item/appBase/pages/product/search.vue?5bf7","uni-app:///pages/product/search.vue","webpack:///G:/item/appBase/pages/product/search.vue?99b6","webpack:///G:/item/appBase/pages/product/search.vue?b544"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,iG;AACAA,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AAC2K;AAC3K,gBAAgB,oLAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,sNAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAA8nB,CAAgB,mpBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmElpB,+D;AACA;AACA;AACA,4BADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,iBADA,EACA;AACA,iBAFA,EAEA;AACA,cAHA,EAGA;AACA,wBAJA,EAIA;AACA,mBALA;AAMA,cANA,EAMA;AACA,aAPA,EAOA;AACA,yBARA,EAQA;AACA,oBATA,EASA;AACA,mBAVA,EAUA;AACA,iBAXA,EAWA;AACA,mBAZA,CAYA;AAZA;AAcA,GAnBA;;;;;;;;;;;;;;;;;;AAqCA,QArCA,oBAqCA;AACA;AACA,GAvCA;AAwCA;AACA,mBAzCA,+BAyCA;AACA;AACA;AACA,GA5CA;AA6CA;AACA;AACA,eAFA,uBAEA,IAFA,EAEA,OAFA,EAEA;AACA,mBADA,GACA,KADA;AAEA;AAFA,sBAGA,kBAHA;;AAKA,4CALA;;;AAQA;AACA,4CATA;;;AAYA;AACA,yCAbA;;AAeA,oBAfA,GAeA;AACA,gCADA;AAEA,kCAFA;AAGA,oCAHA;AAIA,wCAJA,EAfA;;AAqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAHA,MAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAFA,MAEA;AACA;AACA;AACA;AACA,iBArBA,EA7BA;AAmDA,KArDA;AAsDA;AACA,gBAvDA,wBAuDA,CAvDA,EAuDA;AACA;AACA;AACA,KA1DA;AA2DA;AACA,YA5DA,sBA4DA;AACA;AACA,oBADA,CACA;AACA;AACA,iBAHA;AAIA,qBAJA,CAIA;AACA;AACA,iBANA,EADA;AAQA,KApEA;AAqEA;AACA,SAtEA,mBAsEA;AACA;AACA;AACA,KAzEA;AA0EA;AACA,iBA3EA,2BA2EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAlFA;AAmFA;AACA,eApFA,yBAoFA;AACA;AACA;AACA,KAvFA;AAwFA;AACA,WAzFA,mBAyFA,GAzFA,EAyFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAlGA;AAmGA;AACA,YApGA,sBAoGA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,oBAFA;;AAIA;AACA;AACA;AACA,qBADA;;AAGA,KAjHA;AAkHA,mBAlHA,2BAkHA,IAlHA,EAkHA;AACA;AACA;AACA;AACA,8CADA;;AAGA,KAxHA,EA7CA,E;;;;;;;;;;;;;ACpEA;AAAA;AAAA;AAAA;AAAwpC,CAAgB,ynCAAG,EAAC,C;;;;;;;;;;;ACA5qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/product/search.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/product/search.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./search.vue?vue&type=template&id=22023b81&\"\nvar renderjs\nimport script from \"./search.vue?vue&type=script&lang=js&\"\nexport * from \"./search.vue?vue&type=script&lang=js&\"\nimport style0 from \"./search.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/product/search.vue\"\nexport default component.exports","export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./search.vue?vue&type=template&id=22023b81&\"","var components\ntry {\n components = {\n uniLoadMore: function() {\n return import(\n /* webpackChunkName: \"components/uni-load-more/uni-load-more\" */ \"@/components/uni-load-more/uni-load-more.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./search.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./search.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<!-- 兼容小程序搜索 -->\r\n\t\t<!-- #ifdef MP || APP-PLUS -->\r\n\t\t<view class=\"vheight\"></view>\r\n\t\t<view class=\"input-box flex\">\r\n\t\t\t<view class=\" input-content flex\">\r\n\t\t\t\t<view class=\"iconfont iconsearch\"></view>\r\n\t\t\t\t<view class=\"input\"><input type=\"text\" v-model=\"keyword\" placeholder=\"请输入搜索内容\" /></view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"input-button flex\" @click=\"navTo\"><text>搜索</text></view>\r\n\t\t</view>\r\n\t\t<!-- #endif -->\r\n\t\t<swiper :current=\"tabCurrentIndex\" class=\"swiper-box \" duration=\"300\">\r\n\t\t\t<swiper-item class=\"search-hot\">\r\n\t\t\t\t<view class=\"title\"><text>热门搜索</text></view>\r\n\t\t\t\t<view class=\"hot-list\">\r\n\t\t\t\t\t<view @click=\"clickHotText(ls)\" class=\"list-item\" :key=\"ind\" v-for=\"(ls, ind) in list\">\r\n\t\t\t\t\t\t<text>{{ ls }}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</swiper-item>\r\n\t\t\t<swiper-item class=\"search-hot position-relative\">\r\n\t\t\t\t<view class=\"navbar\">\r\n\t\t\t\t\t<view class=\"nav-item\" @click=\"defaultSearch()\">默认</view>\r\n\t\t\t\t\t<view class=\"nav-item\" :class=\"{ current: searchType === 1 }\" @click=\"sortTab(1)\">\r\n\t\t\t\t\t\t<text>销量优先</text>\r\n\t\t\t\t\t\t<view class=\"p-box\">\r\n\t\t\t\t\t\t\t<text :class=\"{ active: searchType === 1 && numberOrder === 1 }\" class=\"iconfont iconfold\"></text>\r\n\t\t\t\t\t\t\t<text :class=\"{ active: searchType === 1 && numberOrder === 2 }\" class=\"iconfont iconfold xia\"></text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"nav-item\" :class=\"{ current: searchType === 2 }\" @click=\"sortTab(2)\">\r\n\t\t\t\t\t\t<text>价格</text>\r\n\t\t\t\t\t\t<view class=\"p-box\">\r\n\t\t\t\t\t\t\t<text :class=\"{ active: searchType === 2 && priceOrder === 1 }\" class=\"iconfont iconfold\"></text>\r\n\t\t\t\t\t\t\t<text :class=\"{ active: searchType === 2 && priceOrder === 2 }\" class=\"iconfont iconfold xia\"></text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"nav-item\" :class=\"{ current: newOrder == 1 }\" @click=\"newGoodsTab()\">新品</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<scroll-view scroll-y class=\"cate-list\" @scrolltolower='getProducts'>\r\n\t\t\t\t\t<view class=\"guess-section\">\r\n\t\t\t\t\t\t<view v-for=\"(item, index) in goodsList\" :key=\"index\" class=\"guess-item\" @click=\"navToDetailPage(item)\">\r\n\t\t\t\t\t\t\t<view class=\"image-wrapper\"><image :src=\"item.image\" mode=\"aspectFill\"></image></view>\r\n\t\t\t\t\t\t\t<text class=\"title clamp margin-c-20\">{{ item.store_name }}</text>\r\n\t\t\t\t\t\t\t<view class=\"cmy-hr\"></view>\r\n\t\t\t\t\t\t\t<view class=\"price margin-c-20 flex\">\r\n\t\t\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t\t\t<text class=\"font-size-sm \">¥</text>\r\n\t\t\t\t\t\t\t\t\t{{ item.price }}\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"font-size-sm\">\r\n\t\t\t\t\t\t\t\t\t<text class=\"font-color-gray\">{{ item.sales }}人购买</text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<uni-load-more :status=\"loadingType\"></uni-load-more>\r\n\t\t\t\t</scroll-view>\r\n\t\t\t</swiper-item>\r\n\t\t</swiper>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';\r\nimport { searchKeyword, getProducts } from '@/api/product.js';\r\nexport default {\r\n\tcomponents: {\r\n\t\tuniLoadMore\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tarrlist: [], //热门关键词\r\n\t\t\tkeyword: '', //关键字\r\n\t\t\tlist: [], //搜索内容\r\n\t\t\ttabCurrentIndex: 0, //切换\r\n\t\t\tgoodsList: [],\r\n\t\t\tlimit: 6, //每次加载数据条数\r\n\t\t\tpage: 1, //当前页数\r\n\t\t\tloadingType: 'more', //加载更多状态\r\n\t\t\tnumberOrder: 1, //1 销量从低到高 2销量从高到低\r\n\t\t\tpriceOrder: 1, //1 价格从低到高 2价格从高到低\r\n\t\t\tnewOrder: 0, //0 不是新品 1是新品\r\n\t\t\tsearchType: 0 //0为默认查询 1为销量 2 为价格\r\n\t\t};\r\n\t},\r\n\t// #ifndef MP\r\n\t//点击导航栏 buttons 时触发\r\n\tonNavigationBarButtonTap(e) {\r\n\t\tconst index = e.index;\r\n\t\tif (index === 0) {\r\n\t\t\tthis.navTo();\r\n\t\t}\r\n\t},\r\n\t// 点击键盘搜索事件\r\n\tonNavigationBarSearchInputConfirmed(e) {\r\n\t\tthis.navTo();\r\n\t},\r\n\t// 搜索栏内容变化事件\r\n\tonNavigationBarSearchInputChanged(e) {\r\n\t\tthis.keyword = e.text;\r\n\t},\r\n\t// #endif\r\n\tonLoad() {\r\n\t\tthis.loadData();\r\n\t},\r\n\t//下拉刷新\r\n\t\tonPullDownRefresh() {\r\n\t\t\tthis.page = 1\r\n\t\t\tthis.getProducts('refresh');\r\n\t\t},\r\n\tmethods: {\r\n\t\t// 加载商品\r\n\t\tasync getProducts(type, loading) {\r\n\t\t\tlet obj = this;\r\n\t\t\t// 判断是否为加载数据\r\n\t\t\tif (type !== 'refresh') {\r\n\t\t\t\t//没有更多数据直接跳出方法\r\n\t\t\t\tif (obj.loadingType === 'nomore') {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// 设置当前为数据载入中\r\n\t\t\t\t\tobj.loadingType = 'loading';\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//当重新加载数据时更新状态为可继续添加数据\r\n\t\t\t\tobj.loadingType = 'more';\r\n\t\t\t}\r\n\t\t\tlet data = {\r\n\t\t\t\tpage: obj.page,\r\n\t\t\t\tlimit: obj.limit,\r\n\t\t\t\tnews: obj.newOrder,\r\n\t\t\t\tkeyword: this.keyword\r\n\t\t\t};\r\n\t\t\t// 判断是否为销售数量排序\r\n\t\t\tif (this.searchType === 1) {\r\n\t\t\t\tdata.salesOrder = obj.numberOrder === 1 ? 'asc' : 'desc';\r\n\t\t\t}\r\n\t\t\t// 判断是否为金额排序\r\n\t\t\tif (this.searchType === 2) {\r\n\t\t\t\tdata.priceOrder = obj.priceOrder === 1 ? 'asc' : 'desc';\r\n\t\t\t}\r\n\t\t\tgetProducts(data).then(e => {\r\n\t\t\t\tif (type === 'refresh') {\r\n\t\t\t\t\tobj.goodsList = [];\r\n\t\t\t\t}\r\n\t\t\t\tobj.goodsList = obj.goodsList.concat(e.data);\r\n\t\t\t\t//判断是否还有下一页,有是more 没有是nomore\r\n\t\t\t\tif (obj.limit == e.data.length) {\r\n\t\t\t\t\tobj.page++;\r\n\t\t\t\t\tobj.loadingType = 'more';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobj.loadingType = 'nomore';\r\n\t\t\t\t}\r\n\t\t\t\t// 判断是否为刷新数据\r\n\t\t\t\tif (type === 'refresh') {\r\n\t\t\t\t\t// 判断是否为点击搜索按钮跳转加载\r\n\t\t\t\t\tif (loading == 1) {\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuni.stopPullDownRefresh();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\t// 点击关键词触发事件\r\n\t\tclickHotText(e) {\r\n\t\t\tthis.keyword = e;\r\n\t\t\tthis.navTo();\r\n\t\t},\r\n\t\t// 加载搜索关键字\r\n\t\tasync loadData() {\r\n\t\t\tsearchKeyword({})\r\n\t\t\t\t.then(e => {\r\n\t\t\t\t\tthis.list = e.data;\r\n\t\t\t\t})\r\n\t\t\t\t.catch(e => {\r\n\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t});\r\n\t\t},\r\n\t\t// 点击触发搜索事件\r\n\t\tnavTo() {\r\n\t\t\tthis.tabCurrentIndex = 1;\r\n\t\t\tthis.infoData()\r\n\t\t},\r\n\t\t// 默认搜索\r\n\t\tdefaultSearch() {\r\n\t\t\t// 初始化查询\r\n\t\t\tthis.numberOrder = '';\r\n\t\t\tthis.priceOrder = '';\r\n\t\t\tthis.newOrder = 0;\r\n\t\t\tthis.searchType = 0;\r\n\t\t\tthis.infoData();\r\n\t\t},\r\n\t\t// 是否为新品\r\n\t\tnewGoodsTab() {\r\n\t\t\tthis.newOrder = this.newOrder === 1 ? 0 : 1;\r\n\t\t\tthis.infoData();\r\n\t\t},\r\n\t\t// 排序\r\n\t\tsortTab(nub) {\r\n\t\t\tthis.searchType = nub;\r\n\t\t\tif (this.searchType === 1) {\r\n\t\t\t\tthis.numberOrder = this.numberOrder === 1 ? 2 : 1;\r\n\t\t\t}\r\n\t\t\tif (this.searchType === 2) {\r\n\t\t\t\tthis.priceOrder = this.priceOrder === 1 ? 2 : 1;\r\n\t\t\t}\r\n\t\t\tthis.infoData();\r\n\t\t},\r\n\t\t// 查询切换后初始化\r\n\t\tinfoData() {\r\n\t\t\t// 初始化页数\r\n\t\t\tthis.page = 1;\r\n\t\t\t// 初始化数组\r\n\t\t\tuni.pageScrollTo({\r\n\t\t\t\tduration: 300,\r\n\t\t\t\tscrollTop: 0\r\n\t\t\t});\r\n\t\t\t// 加载数据\r\n\t\t\tthis.getProducts('refresh', 1);\r\n\t\t\tuni.showLoading({\r\n\t\t\t\ttitle: '正在加载'\r\n\t\t\t});\r\n\t\t},\r\n\t\tnavToDetailPage(item) {\r\n\t\t\t//测试数据没有写id,用title代替\r\n\t\t\tlet id = item.id;\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: '/pages/product/product?id=' + id\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\">\r\npage,\r\n.content {\r\n\theight: 100%;\r\n\tbackground-color: $page-color-base;\r\n}\r\n/* #ifdef MP || APP-PLUS */\r\n.vheight{\r\n\theight: var(--status-bar-height);\r\n\tbackground-color: #FFFFFF;\r\n}\r\n.input-box {\r\n\tpadding: 25rpx;\r\n\tbackground-color: #ffffff;\r\n\theight: 44px;\r\n\t.iconsearch {\r\n\t\tfont-size: 50rpx;\r\n\t}\r\n\t.input-content {\r\n\t\tborder-radius: 99rpx;\r\n\t\tflex-grow: 1;\r\n\t\tpadding: 10rpx 30rpx;\r\n\t\tbackground-color: rgba(231, 231, 231, 0.7);\r\n\t\t.input {\r\n\t\t\tflex-grow: 1;\r\n\t\t\tinput {\r\n\t\t\t\tfont-size: $font-lg;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.input-button {\r\n\t\tpadding-left: 20rpx;\r\n\t\tfont-size: $font-lg;\r\n\t\theight: 100%;\r\n\t}\r\n}\r\n/* #endif */\r\n\r\n.swiper-box {\r\n\t/* #ifndef MP */\r\n\theight: 100%;\r\n\t/* #endif */\r\n\t/* #ifdef MP */\r\n\theight: calc(100% - 44px);\r\n\t/* #endif */\r\n\t.search-hot {\r\n\t\tpadding: 25rpx;\r\n\t\t.title {\r\n\t\t\tfont-size: $font-lg;\r\n\t\t\tcolor: $font-color-light;\r\n\t\t}\r\n\t\t.hot-list {\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-wrap: wrap;\r\n\t\t\tmargin-top: 30rpx;\r\n\t\t\t.list-item {\r\n\t\t\t\tpadding: 10rpx 20rpx;\r\n\t\t\t\tborder: 1px solid $border-color-dark;\r\n\t\t\t\tcolor: $font-color-dark;\r\n\t\t\t\tfont-size: $font-base;\r\n\t\t\t\tmargin-right: 20rpx;\r\n\t\t\t\tmargin-bottom: 20rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n// 订单\r\n%icon {\r\n\tmargin-right: 10rpx;\r\n\tdisplay: inline-block;\r\n\tpadding: 2rpx 10rpx;\r\n\tborder: 1rpx solid $color-yellow;\r\n\tcolor: $color-yellow;\r\n\tline-height: 1;\r\n\tfont-size: $font-base;\r\n\tborder-radius: 10rpx;\r\n}\r\n.guess-section {\r\n\tdisplay: flex;\r\n\tflex-wrap: wrap;\r\n\t.guess-item {\r\n\t\toverflow: hidden;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\twidth: 48%;\r\n\t\tmargin-bottom: 4%;\r\n\t\tborder-radius: $border-radius-sm;\r\n\t\tbackground-color: white;\r\n\t\tbox-shadow: $box-shadow;\r\n\t\t&:nth-child(2n + 1) {\r\n\t\t\tmargin-right: 4%;\r\n\t\t}\r\n\t}\r\n\t.image-wrapper {\r\n\t\twidth: 100%;\r\n\t\theight: 330rpx;\r\n\t\tborder-radius: 3px;\r\n\t\toverflow: hidden;\r\n\t\timage {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\topacity: 1;\r\n\t\t}\r\n\t}\r\n\t.title {\r\n\t\tfont-size: $font-base;\r\n\t\tcolor: $font-color-dark;\r\n\t\tfont-weight: bold;\r\n\t\tline-height: 80rpx;\r\n\t}\r\n\t.price {\r\n\t\tfont-size: $font-lg;\r\n\t\tcolor: $font-color-base;\r\n\t\tfont-weight: bold;\r\n\t\tline-height: 1;\r\n\t\tline-height: 80rpx;\r\n\t}\r\n\r\n\t.icon {\r\n\t\t@extend %icon;\r\n\t}\r\n\r\n\t.detail {\r\n\t\tline-height: 1;\r\n\t}\r\n\t.tip {\r\n\t\tcolor: white;\r\n\t\tbackground-color: $color-yellow;\r\n\t\tline-height: 1.5;\r\n\t\tfont-size: $font-sm;\r\n\t\tpadding-left: 20rpx;\r\n\t}\r\n}\r\n\r\n.navbar {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tdisplay: flex;\r\n\twidth: 100%;\r\n\theight: 40px;\r\n\tbackground: #fff;\r\n\tbox-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);\r\n\tz-index: 10;\r\n\t.nav-item {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\theight: 100%;\r\n\t\tfont-size: 30rpx;\r\n\t\tcolor: $font-color-dark;\r\n\t\tposition: relative;\r\n\t\t&.current {\r\n\t\t\tcolor: $base-color;\r\n\t\t\t&:after {\r\n\t\t\t\tcontent: '';\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tleft: 50%;\r\n\t\t\t\tbottom: 0;\r\n\t\t\t\ttransform: translateX(-50%);\r\n\t\t\t\twidth: 120rpx;\r\n\t\t\t\theight: 0;\r\n\t\t\t\tborder-bottom: 4rpx solid $base-color;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.p-box {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\t.iconfont {\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\twidth: 30rpx;\r\n\t\t\theight: 14rpx;\r\n\t\t\tline-height: 1;\r\n\t\t\tmargin-left: 4rpx;\r\n\t\t\tfont-size: 26rpx;\r\n\t\t\tcolor: #888;\r\n\t\t\t&.active {\r\n\t\t\t\tcolor: $base-color;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.xia {\r\n\t\t\ttransform: scaleY(-1);\r\n\t\t}\r\n\t}\r\n\t.cate-item {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\theight: 100%;\r\n\t\twidth: 80rpx;\r\n\t\tposition: relative;\r\n\t\tfont-size: 44rpx;\r\n\t\t&:after {\r\n\t\t\tcontent: '';\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 0;\r\n\t\t\ttop: 50%;\r\n\t\t\ttransform: translateY(-50%);\r\n\t\t\tborder-left: 1px solid #ddd;\r\n\t\t\twidth: 0;\r\n\t\t\theight: 36rpx;\r\n\t\t}\r\n\t}\r\n}\r\n.cate-list {\r\n\theight: 100%;\r\n\tpadding-top: 40px;\r\n}\r\n</style>\r\n","import mod from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./search.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\work\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./search.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1618025084540\n var cssReload = require(\"D:/work/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}