作者 韩昌

22

@@ -88,7 +88,10 @@ @@ -88,7 +88,10 @@
88 </view> 88 </view>
89 </template> 89 </template>
90 <template v-if="searchState == 0"> 90 <template v-if="searchState == 0">
91 - <u-empty mode="car" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty> 91 + <view style="margin-top: 300rpx">
  92 + <u-empty />
  93 + </view>
  94 + <!-- <u-empty mode="car" icon="http://cdn.uviewui.com/uview/empty/car.png"></u-empty> -->
92 </template> 95 </template>
93 <template v-if="searchState == 1"> 96 <template v-if="searchState == 1">
94 <view v-for="item in searchList1" :key="item.id"> 97 <view v-for="item in searchList1" :key="item.id">
1 -{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/vue/kaoshi3/pages/index/index.vue?04ce","webpack:///D:/vue/kaoshi3/pages/index/index.vue?af0e","webpack:///D:/vue/kaoshi3/pages/index/index.vue?a378","uni-app:///pages/index/index.vue","webpack:///D:/vue/kaoshi3/pages/index/index.vue?39ee","webpack:///D:/vue/kaoshi3/pages/index/index.vue?73d5"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,6F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC0K;AAC1K,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;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,iSAEN;AACP,KAAK;AACL;AACA,aAAa,iSAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;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;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC/DA;AAAA;AAAA;AAAA;AAAqoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuGzpB,iD;AACA;AACA,MADA,kBACA;AACA;AACA;AACA,mCADA;AAEA,oCAFA;AAGA,kCAHA;AAIA,mCAJA;AAKA,+BALA;AAMA,mCANA;AAOA,uCAPA;AAQA,gCARA;AASA,iCATA;AAUA,gCAVA,CADA;;AAaA,mBAbA;AAcA,oBAdA;AAeA;AACA,4BAhBA;AAiBA,6BAjBA;AAkBA;AACA,oBAnBA;AAoBA,gCApBA;AAqBA,oBArBA;AAsBA;AACA,qBAvBA;AAwBA;AACA,uBAzBA;AA0BA;AACA,qBA3BA;;AA6BA,GA/BA;AAgCA,QAhCA,kBAgCA,OAhCA,EAgCA;AACA;AACA;AACA;AACA,GApCA;AAqCA;AACA,WADA,mBACA,GADA,EACA;AACA;AACA,+BADA,EACA;AACA,iCAFA,EAEA;AACA,4BAHA,EAGA;AACA,2BAJA,EAIA;AACA,2BALA,CAKA;AALA,oBADA,yCACA,IADA,mBACA,IADA;AAQA;AACA;AACA;AACA,iBAFA,MAEA;AACA;AACA;AACA;AACA;AACA,mBAFA;AAGA,iBAjBA;AAkBA,KAnBA;AAoBA;AACA,qCArBA,+CAqBA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,uBAFA;;AAIA,KA7BA;AA8BA;AACA,kBA/BA,0BA+BA,GA/BA,EA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OARA,EADA;AAUA;AACA;AACA,uBAZA;AAaA,KA7CA;AA8CA;AACA,oBA/CA,4BA+CA,GA/CA,EA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OARA,EADA;AAUA;AACA;AACA,uBAZA;AAaA,KA9DA,EArCA,E;;;;;;;;;;;;;ACxGA;AAAA;AAAA;AAAA;AAA4sC,CAAgB,8lCAAG,EAAC,C;;;;;;;;;;;ACAhuC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/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/index/index.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=57280228&\"","var components\ntry {\n components = {\n uNavbar: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uModal: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-modal/u-modal\" */ \"uview-ui/components/u-modal/u-modal.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uEmpty: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-empty/u-empty\" */ \"uview-ui/components/u-empty/u-empty.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 this$1 = this\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function() {\n return (this$1.historyListShow = false)\n }\n\n _vm.e1 = function() {\n return (this$1.historyListShow = true)\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view>\n <!-- 顶部navbar -->\n <u-navbar @rightClick=\"rightClick\" placeholder :autoBack=\"true\">\n <template #center>\n <view class=\"topSearchBox\">\n <u-search\n placeholder=\"请输入商家名称\"\n :clearabled=\"true\"\n :showAction=\"false\"\n v-model=\"searchValue\"\n @search=\"searchHandler1\"\n ></u-search>\n </view>\n </template>\n </u-navbar>\n\n <!-- 清空历史记录模态框 -->\n <u-modal\n :show=\"historyListShow\"\n showCancelButton\n @cancel=\"() => (this.historyListShow = false)\"\n @confirm=\"confirmRemoveHistorySearchHandler\"\n :content=\"content\"\n ></u-modal>\n\n <!-- 版心 -->\n <template v-if=\"searchState == 2\">\n <view class=\"mainBox\">\n <view class=\"flexJ\" v-if=\"historyGoodsSearchList.length !== 0\">\n <view class=\"historyText\">历史搜索</view>\n <u-icon name=\"trash\" @click=\"() => (this.historyListShow = true)\"></u-icon>\n </view>\n\n <!-- 搜索记录 -->\n <view class=\"flexA historySearchBox\">\n <view\n class=\"historySearchText flexC\"\n v-for=\"item in historyGoodsSearchList\"\n :key=\"item\"\n @click=\"hotSearchHandler(item)\"\n >\n {{ item }}\n </view>\n </view>\n\n <!-- 热门搜索 -->\n <view class=\"hotSearchBox\">\n <view class=\"flexA\" style=\"margin-bottom: 32rpx\">\n <image style=\"width: 32rpx; height: 32rpx\" src=\"/static/hotsearch.png\" mode=\"scaleToFill\" />\n <view class=\"hotsearchText\">热门搜索</view>\n </view>\n\n <!-- 热门搜索内容 -->\n <view class=\"hotCentent\">\n <view class=\"leftHotList\">\n <view\n class=\"flexA\"\n style=\"margin-bottom: 32rpx\"\n v-for=\"item in firstList\"\n :key=\"item.id\"\n @click=\"hotSearchHandler(item.title)\"\n >\n <view\n class=\"index\"\n :style=\"{ background: item.id == 1 ? '#f03f30' : item.id == 2 ? '#f2b738' : item.id == 3 ? '#a3b5e1' : '' }\"\n >\n {{ item.id }}\n </view>\n <text>{{ item.title }}</text>\n </view>\n </view>\n <view class=\"line\"></view>\n <view class=\"rightHotList\">\n <view\n class=\"flexA\"\n style=\"margin-bottom: 32rpx\"\n v-for=\"item in secondList\"\n :key=\"item.id\"\n @click=\"hotSearchHandler(item.title)\"\n >\n <view class=\"index\">{{ item.id }}</view>\n <text>{{ item.title }}</text>\n </view>\n </view>\n </view>\n </view>\n </view>\n </template>\n <template v-if=\"searchState == 0\">\n <u-empty mode=\"car\" icon=\"http://cdn.uviewui.com/uview/empty/car.png\"></u-empty>\n </template>\n <template v-if=\"searchState == 1\">\n <view v-for=\"item in searchList1\" :key=\"item.id\">\n {{ item.title }}\n <image style=\"width: 200rpx; height: 300rpx\" :src=\"item.image\" mode=\"scaleToFill\" />\n {{ item.content }}\n </view>\n </template>\n </view>\n</template>\n\n<script>\nimport { getList } from '@/api'\nexport default {\n data() {\n return {\n hotList: [\n { id: 1, title: '小米春季新款吹风机' },\n { id: 2, title: 'Dyson黑色吹风机' },\n { id: 3, title: '便宜好用的吹风机' },\n { id: 4, title: '小米春季新款吹风机' },\n { id: 5, title: '高端吹风机' },\n { id: 6, title: '小米春季新款吹风机' },\n { id: 7, title: 'supersonic吹风机' },\n { id: 8, title: '超低价吹风机' },\n { id: 9, title: '明星同款吹风机' },\n { id: 10, title: '万能吹风机' },\n ],\n firstList: [],\n secondList: [],\n // 清空历史记录参数\n historyListShow: false,\n content: '您确定要清空历史记录吗?',\n // 搜索结果 0 有结果 1没有结果\n searchState: 2,\n historyGoodsSearchList: [],\n searchList: [],\n // 搜索框值\n searchValue: '',\n // 热门搜索数据\n hotSearchList: [],\n // 搜索出来的内容\n searchList1: [],\n }\n },\n onLoad(options) {\n this.firstList = this.hotList.slice(0, 5)\n this.secondList = this.hotList.slice(5)\n this.historyGoodsSearchList = uni.getStorageSync('historySearchList', this.historyGoodsSearchList) || []\n },\n methods: {\n async getList(val) {\n const { data } = await getList({\n type_id: '', //\tinteger\t否\t论坛类型\n keywords: val, //\tstring\t否\t关键词\n order: 1, //\tstring\t是\t排序,1:评论,0:时间\n page: 1, //\tinteger\t是\t页码\n rows: 4, //\tinteger\t是\t条数\n })\n console.log(data)\n if (data.data.length == 0) {\n this.searchState = 0\n } else {\n this.searchState = 1\n this.searchList1 = data.data\n this.searchList1.forEach((item, index) => {\n item.image = JSON.parse(data.data[index].file).imgList[0]\n })\n }\n },\n // 确定清空历史搜索记录\n confirmRemoveHistorySearchHandler() {\n uni.removeStorageSync('historySearchList')\n this.historyGoodsSearchList = []\n this.historyListShow = false\n uni.showToast({\n title: '清空历史记录成功',\n icon: 'success',\n })\n },\n // 搜索\n searchHandler1(val) {\n this.historyGoodsSearchList.indexOf(this.searchValue) == '-1'\n ? (() => {\n this.historyGoodsSearchList.push(this.searchValue)\n uni.setStorageSync('historySearchList', this.historyGoodsSearchList)\n if (this.historyGoodsSearchList.length > 10) {\n this.historyGoodsSearchList.shift()\n }\n // 调接口\n this.getList(val)\n })()\n : // : ''\n // 调接口\n this.getList(val)\n },\n // 热门搜索\n hotSearchHandler(val) {\n console.log(val)\n this.historyGoodsSearchList.indexOf(val) == '-1'\n ? (() => {\n this.historyGoodsSearchList.push(val)\n uni.setStorageSync('historySearchList', this.historyGoodsSearchList)\n if (this.historyGoodsSearchList.length > 10) {\n this.historyGoodsSearchList.shift()\n }\n // 调接口\n this.getList(val)\n })()\n : // : ''\n // 调接口\n this.getList(val)\n },\n },\n}\n</script>\n\n<style lang=\"scss\">\npage {\n background: #fff;\n}\n.topSearchBox {\n margin-right: 118rpx;\n}\n.mainBox {\n padding: 34rpx 32rpx 0;\n box-sizing: border-box;\n}\n.historyText {\n color: rgba(50, 50, 51, 1);\n font-size: 28rpx;\n font-weight: 700;\n margin-bottom: 32rpx;\n}\n.historySearchBox {\n flex-wrap: wrap;\n}\n.u-search__content {\n min-width: 426rpx !important;\n}\n/* .noSearchList {\n height: 100vh;\n background: #f6f8fa;\n} */\n.historySearchText {\n padding: 8rpx 12rpx;\n box-sizing: border-box;\n border-radius: 154rpx;\n background: rgba(247, 248, 250, 1);\n margin-right: 24rpx;\n margin-bottom: 24rpx;\n color: rgba(0, 0, 0, 0.9);\n font-size: 24rpx;\n}\n.hotsearchText {\n color: rgba(50, 50, 51, 1);\n font-size: 28rpx;\n font-weight: 700;\n margin-left: 10rpx;\n}\n.hotSearchBox {\n margin-top: 40rpx;\n border-radius: 20rpx;\n padding: 32rpx;\n box-sizing: border-box;\n background: linear-gradient(180.1deg, rgba(254, 242, 240, 1) 0%, rgba(255, 251, 248, 1) 35%, rgba(255, 255, 255, 0) 100%);\n}\n.hotCentent {\n display: flex;\n > .line {\n height: 328rpx;\n width: 2rpx;\n background: #e5e8ec;\n margin-right: 24rpx;\n }\n > .leftHotList {\n width: 286rpx;\n height: 40rpx;\n .index {\n width: 24rpx;\n height: 24rpx;\n border-radius: 8rpx;\n background: rgba(200, 201, 204, 1);\n color: rgba(255, 255, 255, 1);\n font-size: 20rpx;\n text-align: center;\n margin-right: 16rpx;\n }\n text {\n color: rgba(50, 50, 51, 1);\n font-size: 26rpx;\n }\n > .flexB {\n margin-bottom: 32rpx;\n }\n }\n > .rightHotList {\n width: 286rpx;\n height: 40rpx;\n .index {\n width: 24rpx;\n height: 24rpx;\n border-radius: 8rpx;\n background: rgba(200, 201, 204, 1);\n color: rgba(255, 255, 255, 1);\n font-size: 20rpx;\n text-align: center;\n margin-right: 16rpx;\n }\n text {\n color: rgba(50, 50, 51, 1);\n font-size: 26rpx;\n }\n > .flexB {\n margin-bottom: 32rpx;\n }\n }\n}\n</style>\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1669280781935\n var cssReload = require(\"D:/高级前台制作/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":""}  
  1 +{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/vue/kaoshi3/pages/index/index.vue?04ce","webpack:///D:/vue/kaoshi3/pages/index/index.vue?af0e","webpack:///D:/vue/kaoshi3/pages/index/index.vue?a378","uni-app:///pages/index/index.vue","webpack:///D:/vue/kaoshi3/pages/index/index.vue?39ee","webpack:///D:/vue/kaoshi3/pages/index/index.vue?73d5"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,6F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC0K;AAC1K,gBAAgB,6KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;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,iSAEN;AACP,KAAK;AACL;AACA,aAAa,iSAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;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;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC/DA;AAAA;AAAA;AAAA;AAAqoB,CAAgB,+mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0GzpB,iD;AACA;AACA,MADA,kBACA;AACA;AACA;AACA,mCADA;AAEA,oCAFA;AAGA,kCAHA;AAIA,mCAJA;AAKA,+BALA;AAMA,mCANA;AAOA,uCAPA;AAQA,gCARA;AASA,iCATA;AAUA,gCAVA,CADA;;AAaA,mBAbA;AAcA,oBAdA;AAeA;AACA,4BAhBA;AAiBA,6BAjBA;AAkBA;AACA,oBAnBA;AAoBA,gCApBA;AAqBA,oBArBA;AAsBA;AACA,qBAvBA;AAwBA;AACA,uBAzBA;AA0BA;AACA,qBA3BA;;AA6BA,GA/BA;AAgCA,QAhCA,kBAgCA,OAhCA,EAgCA;AACA;AACA;AACA;AACA,GApCA;AAqCA;AACA,WADA,mBACA,GADA,EACA;AACA;AACA,+BADA,EACA;AACA,iCAFA,EAEA;AACA,4BAHA,EAGA;AACA,2BAJA,EAIA;AACA,2BALA,CAKA;AALA,oBADA,yCACA,IADA,mBACA,IADA;AAQA;AACA;AACA;AACA,iBAFA,MAEA;AACA;AACA;AACA;AACA;AACA,mBAFA;AAGA,iBAjBA;AAkBA,KAnBA;AAoBA;AACA,qCArBA,+CAqBA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,uBAFA;;AAIA,KA7BA;AA8BA;AACA,kBA/BA,0BA+BA,GA/BA,EA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OARA,EADA;AAUA;AACA;AACA,uBAZA;AAaA,KA7CA;AA8CA;AACA,oBA/CA,4BA+CA,GA/CA,EA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OARA,EADA;AAUA;AACA;AACA,uBAZA;AAaA,KA9DA,EArCA,E;;;;;;;;;;;;;AC3GA;AAAA;AAAA;AAAA;AAA4sC,CAAgB,8lCAAG,EAAC,C;;;;;;;;;;;ACAhuC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../高级前台制作/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/index/index.vue\"\nexport default component.exports","export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=57280228&\"","var components\ntry {\n components = {\n uNavbar: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-navbar/u-navbar\" */ \"uview-ui/components/u-navbar/u-navbar.vue\"\n )\n },\n uSearch: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-search/u-search\" */ \"uview-ui/components/u-search/u-search.vue\"\n )\n },\n uModal: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-modal/u-modal\" */ \"uview-ui/components/u-modal/u-modal.vue\"\n )\n },\n uIcon: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n )\n },\n uEmpty: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-empty/u-empty\" */ \"uview-ui/components/u-empty/u-empty.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 this$1 = this\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function() {\n return (this$1.historyListShow = false)\n }\n\n _vm.e1 = function() {\n return (this$1.historyListShow = true)\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n <view>\n <!-- 顶部navbar -->\n <u-navbar @rightClick=\"rightClick\" placeholder :autoBack=\"true\">\n <template #center>\n <view class=\"topSearchBox\">\n <u-search\n placeholder=\"请输入商家名称\"\n :clearabled=\"true\"\n :showAction=\"false\"\n v-model=\"searchValue\"\n @search=\"searchHandler1\"\n ></u-search>\n </view>\n </template>\n </u-navbar>\n\n <!-- 清空历史记录模态框 -->\n <u-modal\n :show=\"historyListShow\"\n showCancelButton\n @cancel=\"() => (this.historyListShow = false)\"\n @confirm=\"confirmRemoveHistorySearchHandler\"\n :content=\"content\"\n ></u-modal>\n\n <!-- 版心 -->\n <template v-if=\"searchState == 2\">\n <view class=\"mainBox\">\n <view class=\"flexJ\" v-if=\"historyGoodsSearchList.length !== 0\">\n <view class=\"historyText\">历史搜索</view>\n <u-icon name=\"trash\" @click=\"() => (this.historyListShow = true)\"></u-icon>\n </view>\n\n <!-- 搜索记录 -->\n <view class=\"flexA historySearchBox\">\n <view\n class=\"historySearchText flexC\"\n v-for=\"item in historyGoodsSearchList\"\n :key=\"item\"\n @click=\"hotSearchHandler(item)\"\n >\n {{ item }}\n </view>\n </view>\n\n <!-- 热门搜索 -->\n <view class=\"hotSearchBox\">\n <view class=\"flexA\" style=\"margin-bottom: 32rpx\">\n <image style=\"width: 32rpx; height: 32rpx\" src=\"/static/hotsearch.png\" mode=\"scaleToFill\" />\n <view class=\"hotsearchText\">热门搜索</view>\n </view>\n\n <!-- 热门搜索内容 -->\n <view class=\"hotCentent\">\n <view class=\"leftHotList\">\n <view\n class=\"flexA\"\n style=\"margin-bottom: 32rpx\"\n v-for=\"item in firstList\"\n :key=\"item.id\"\n @click=\"hotSearchHandler(item.title)\"\n >\n <view\n class=\"index\"\n :style=\"{ background: item.id == 1 ? '#f03f30' : item.id == 2 ? '#f2b738' : item.id == 3 ? '#a3b5e1' : '' }\"\n >\n {{ item.id }}\n </view>\n <text>{{ item.title }}</text>\n </view>\n </view>\n <view class=\"line\"></view>\n <view class=\"rightHotList\">\n <view\n class=\"flexA\"\n style=\"margin-bottom: 32rpx\"\n v-for=\"item in secondList\"\n :key=\"item.id\"\n @click=\"hotSearchHandler(item.title)\"\n >\n <view class=\"index\">{{ item.id }}</view>\n <text>{{ item.title }}</text>\n </view>\n </view>\n </view>\n </view>\n </view>\n </template>\n <template v-if=\"searchState == 0\">\n <view style=\"margin-top: 300rpx\">\n <u-empty />\n </view>\n <!-- <u-empty mode=\"car\" icon=\"http://cdn.uviewui.com/uview/empty/car.png\"></u-empty> -->\n </template>\n <template v-if=\"searchState == 1\">\n <view v-for=\"item in searchList1\" :key=\"item.id\">\n {{ item.title }}\n <image style=\"width: 200rpx; height: 300rpx\" :src=\"item.image\" mode=\"scaleToFill\" />\n {{ item.content }}\n </view>\n </template>\n </view>\n</template>\n\n<script>\nimport { getList } from '@/api'\nexport default {\n data() {\n return {\n hotList: [\n { id: 1, title: '小米春季新款吹风机' },\n { id: 2, title: 'Dyson黑色吹风机' },\n { id: 3, title: '便宜好用的吹风机' },\n { id: 4, title: '小米春季新款吹风机' },\n { id: 5, title: '高端吹风机' },\n { id: 6, title: '小米春季新款吹风机' },\n { id: 7, title: 'supersonic吹风机' },\n { id: 8, title: '超低价吹风机' },\n { id: 9, title: '明星同款吹风机' },\n { id: 10, title: '万能吹风机' },\n ],\n firstList: [],\n secondList: [],\n // 清空历史记录参数\n historyListShow: false,\n content: '您确定要清空历史记录吗?',\n // 搜索结果 0 有结果 1没有结果\n searchState: 2,\n historyGoodsSearchList: [],\n searchList: [],\n // 搜索框值\n searchValue: '',\n // 热门搜索数据\n hotSearchList: [],\n // 搜索出来的内容\n searchList1: [],\n }\n },\n onLoad(options) {\n this.firstList = this.hotList.slice(0, 5)\n this.secondList = this.hotList.slice(5)\n this.historyGoodsSearchList = uni.getStorageSync('historySearchList', this.historyGoodsSearchList) || []\n },\n methods: {\n async getList(val) {\n const { data } = await getList({\n type_id: '', //\tinteger\t否\t论坛类型\n keywords: val, //\tstring\t否\t关键词\n order: 1, //\tstring\t是\t排序,1:评论,0:时间\n page: 1, //\tinteger\t是\t页码\n rows: 4, //\tinteger\t是\t条数\n })\n console.log(data)\n if (data.data.length == 0) {\n this.searchState = 0\n } else {\n this.searchState = 1\n this.searchList1 = data.data\n this.searchList1.forEach((item, index) => {\n item.image = JSON.parse(data.data[index].file).imgList[0]\n })\n }\n },\n // 确定清空历史搜索记录\n confirmRemoveHistorySearchHandler() {\n uni.removeStorageSync('historySearchList')\n this.historyGoodsSearchList = []\n this.historyListShow = false\n uni.showToast({\n title: '清空历史记录成功',\n icon: 'success',\n })\n },\n // 搜索\n searchHandler1(val) {\n this.historyGoodsSearchList.indexOf(this.searchValue) == '-1'\n ? (() => {\n this.historyGoodsSearchList.push(this.searchValue)\n uni.setStorageSync('historySearchList', this.historyGoodsSearchList)\n if (this.historyGoodsSearchList.length > 10) {\n this.historyGoodsSearchList.shift()\n }\n // 调接口\n this.getList(val)\n })()\n : // : ''\n // 调接口\n this.getList(val)\n },\n // 热门搜索\n hotSearchHandler(val) {\n console.log(val)\n this.historyGoodsSearchList.indexOf(val) == '-1'\n ? (() => {\n this.historyGoodsSearchList.push(val)\n uni.setStorageSync('historySearchList', this.historyGoodsSearchList)\n if (this.historyGoodsSearchList.length > 10) {\n this.historyGoodsSearchList.shift()\n }\n // 调接口\n this.getList(val)\n })()\n : // : ''\n // 调接口\n this.getList(val)\n },\n },\n}\n</script>\n\n<style lang=\"scss\">\npage {\n background: #fff;\n}\n.topSearchBox {\n margin-right: 118rpx;\n}\n.mainBox {\n padding: 34rpx 32rpx 0;\n box-sizing: border-box;\n}\n.historyText {\n color: rgba(50, 50, 51, 1);\n font-size: 28rpx;\n font-weight: 700;\n margin-bottom: 32rpx;\n}\n.historySearchBox {\n flex-wrap: wrap;\n}\n.u-search__content {\n min-width: 426rpx !important;\n}\n/* .noSearchList {\n height: 100vh;\n background: #f6f8fa;\n} */\n.historySearchText {\n padding: 8rpx 12rpx;\n box-sizing: border-box;\n border-radius: 154rpx;\n background: rgba(247, 248, 250, 1);\n margin-right: 24rpx;\n margin-bottom: 24rpx;\n color: rgba(0, 0, 0, 0.9);\n font-size: 24rpx;\n}\n.hotsearchText {\n color: rgba(50, 50, 51, 1);\n font-size: 28rpx;\n font-weight: 700;\n margin-left: 10rpx;\n}\n.hotSearchBox {\n margin-top: 40rpx;\n border-radius: 20rpx;\n padding: 32rpx;\n box-sizing: border-box;\n background: linear-gradient(180.1deg, rgba(254, 242, 240, 1) 0%, rgba(255, 251, 248, 1) 35%, rgba(255, 255, 255, 0) 100%);\n}\n.hotCentent {\n display: flex;\n > .line {\n height: 328rpx;\n width: 2rpx;\n background: #e5e8ec;\n margin-right: 24rpx;\n }\n > .leftHotList {\n width: 286rpx;\n height: 40rpx;\n .index {\n width: 24rpx;\n height: 24rpx;\n border-radius: 8rpx;\n background: rgba(200, 201, 204, 1);\n color: rgba(255, 255, 255, 1);\n font-size: 20rpx;\n text-align: center;\n margin-right: 16rpx;\n }\n text {\n color: rgba(50, 50, 51, 1);\n font-size: 26rpx;\n }\n > .flexB {\n margin-bottom: 32rpx;\n }\n }\n > .rightHotList {\n width: 286rpx;\n height: 40rpx;\n .index {\n width: 24rpx;\n height: 24rpx;\n border-radius: 8rpx;\n background: rgba(200, 201, 204, 1);\n color: rgba(255, 255, 255, 1);\n font-size: 20rpx;\n text-align: center;\n margin-right: 16rpx;\n }\n text {\n color: rgba(50, 50, 51, 1);\n font-size: 26rpx;\n }\n > .flexB {\n margin-bottom: 32rpx;\n }\n }\n}\n</style>\n","import mod from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1669282099791\n var cssReload = require(\"D:/高级前台制作/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":""}
@@ -278,6 +278,9 @@ __webpack_require__.r(__webpack_exports__); @@ -278,6 +278,9 @@ __webpack_require__.r(__webpack_exports__);
278 278
279 279
280 280
  281 +
  282 +
  283 +
281 var _api = __webpack_require__(/*! @/api */ 301);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}var _default = 284 var _api = __webpack_require__(/*! @/api */ 301);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}var _default =
282 { 285 {
283 data: function data() { 286 data: function data() {
1 -<view><u-navbar vue-id="8dd740cc-1" placeholder="{{true}}" autoBack="{{true}}" data-event-opts="{{[['^rightClick',[['rightClick']]]]}}" bind:rightClick="__e" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search vue-id="{{('8dd740cc-2')+','+('8dd740cc-1')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^search',[['searchHandler1']]],['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></u-navbar><u-modal vue-id="8dd740cc-3" show="{{historyListShow}}" showCancelButton="{{true}}" content="{{content}}" data-event-opts="{{[['^cancel',[['e0']]],['^confirm',[['confirmRemoveHistorySearchHandler']]]]}}" bind:cancel="__e" bind:confirm="__e" bind:__l="__l"></u-modal><block wx:if="{{searchState==2}}"><view class="mainBox"><block wx:if="{{historyGoodsSearchList.length!==0}}"><view class="flexJ"><view class="historyText">历史搜索</view><u-icon vue-id="8dd740cc-4" name="trash" data-event-opts="{{[['^click',[['e1']]]]}}" bind:click="__e" bind:__l="__l"></u-icon></view></block><view class="flexA historySearchBox"><block wx:for="{{historyGoodsSearchList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><view data-event-opts="{{[['tap',[['hotSearchHandler',['$0'],[[['historyGoodsSearchList','',__i0__]]]]]]]}}" class="historySearchText flexC" bindtap="__e">{{''+item+''}}</view></block></view><view class="hotSearchBox"><view class="flexA" style="margin-bottom:32rpx;"><image style="width:32rpx;height:32rpx;" src="/static/hotsearch.png" mode="scaleToFill"></image><view class="hotsearchText">热门搜索</view></view><view class="hotCentent"><view class="leftHotList"><block wx:for="{{firstList}}" wx:for-item="item" wx:for-index="__i1__" wx:key="id"><view data-event-opts="{{[['tap',[['hotSearchHandler',['$0'],[[['firstList','id',item.id,'title']]]]]]]}}" class="flexA" style="margin-bottom:32rpx;" bindtap="__e"><view class="index" style="{{'background:'+(item.id==1?'#f03f30':item.id==2?'#f2b738':item.id==3?'#a3b5e1':'')+';'}}">{{''+item.id+''}}</view><text>{{item.title}}</text></view></block></view><view class="line"></view><view class="rightHotList"><block wx:for="{{secondList}}" wx:for-item="item" wx:for-index="__i2__" wx:key="id"><view data-event-opts="{{[['tap',[['hotSearchHandler',['$0'],[[['secondList','id',item.id,'title']]]]]]]}}" class="flexA" style="margin-bottom:32rpx;" bindtap="__e"><view class="index">{{item.id}}</view><text>{{item.title}}</text></view></block></view></view></view></view></block><block wx:if="{{searchState==0}}"><u-empty vue-id="8dd740cc-5" mode="car" icon="http://cdn.uviewui.com/uview/empty/car.png" bind:__l="__l"></u-empty></block><block wx:if="{{searchState==1}}"><block wx:for="{{searchList1}}" wx:for-item="item" wx:for-index="__i3__" wx:key="id"><view>{{''+item.title+''}}<image style="width:200rpx;height:300rpx;" src="{{item.image}}" mode="scaleToFill"></image>{{''+item.content+''}}</view></block></block></view>  
  1 +<view><u-navbar vue-id="8dd740cc-1" placeholder="{{true}}" autoBack="{{true}}" data-event-opts="{{[['^rightClick',[['rightClick']]]]}}" bind:rightClick="__e" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search vue-id="{{('8dd740cc-2')+','+('8dd740cc-1')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^search',[['searchHandler1']]],['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></u-navbar><u-modal vue-id="8dd740cc-3" show="{{historyListShow}}" showCancelButton="{{true}}" content="{{content}}" data-event-opts="{{[['^cancel',[['e0']]],['^confirm',[['confirmRemoveHistorySearchHandler']]]]}}" bind:cancel="__e" bind:confirm="__e" bind:__l="__l"></u-modal><block wx:if="{{searchState==2}}"><view class="mainBox"><block wx:if="{{historyGoodsSearchList.length!==0}}"><view class="flexJ"><view class="historyText">历史搜索</view><u-icon vue-id="8dd740cc-4" name="trash" data-event-opts="{{[['^click',[['e1']]]]}}" bind:click="__e" bind:__l="__l"></u-icon></view></block><view class="flexA historySearchBox"><block wx:for="{{historyGoodsSearchList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><view data-event-opts="{{[['tap',[['hotSearchHandler',['$0'],[[['historyGoodsSearchList','',__i0__]]]]]]]}}" class="historySearchText flexC" bindtap="__e">{{''+item+''}}</view></block></view><view class="hotSearchBox"><view class="flexA" style="margin-bottom:32rpx;"><image style="width:32rpx;height:32rpx;" src="/static/hotsearch.png" mode="scaleToFill"></image><view class="hotsearchText">热门搜索</view></view><view class="hotCentent"><view class="leftHotList"><block wx:for="{{firstList}}" wx:for-item="item" wx:for-index="__i1__" wx:key="id"><view data-event-opts="{{[['tap',[['hotSearchHandler',['$0'],[[['firstList','id',item.id,'title']]]]]]]}}" class="flexA" style="margin-bottom:32rpx;" bindtap="__e"><view class="index" style="{{'background:'+(item.id==1?'#f03f30':item.id==2?'#f2b738':item.id==3?'#a3b5e1':'')+';'}}">{{''+item.id+''}}</view><text>{{item.title}}</text></view></block></view><view class="line"></view><view class="rightHotList"><block wx:for="{{secondList}}" wx:for-item="item" wx:for-index="__i2__" wx:key="id"><view data-event-opts="{{[['tap',[['hotSearchHandler',['$0'],[[['secondList','id',item.id,'title']]]]]]]}}" class="flexA" style="margin-bottom:32rpx;" bindtap="__e"><view class="index">{{item.id}}</view><text>{{item.title}}</text></view></block></view></view></view></view></block><block wx:if="{{searchState==0}}"><view style="margin-top:300rpx;"><u-empty vue-id="8dd740cc-5" bind:__l="__l"></u-empty></view></block><block wx:if="{{searchState==1}}"><block wx:for="{{searchList1}}" wx:for-item="item" wx:for-index="__i3__" wx:key="id"><view>{{''+item.title+''}}<image style="width:200rpx;height:300rpx;" src="{{item.image}}" mode="scaleToFill"></image>{{''+item.content+''}}</view></block></block></view>