You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
23 KiB
1 lines
23 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Documents/high-mini/pages/goods/HM-search/HM-search.vue?b72a","webpack:///C:/Users/Administrator/Documents/high-mini/pages/goods/HM-search/HM-search.vue?2542","webpack:///C:/Users/Administrator/Documents/high-mini/pages/goods/HM-search/HM-search.vue?24e2","webpack:///C:/Users/Administrator/Documents/high-mini/pages/goods/HM-search/HM-search.vue?d8ce","uni-app:///pages/goods/HM-search/HM-search.vue","webpack:///C:/Users/Administrator/Documents/high-mini/pages/goods/HM-search/HM-search.vue?8692","webpack:///C:/Users/Administrator/Documents/high-mini/pages/goods/HM-search/HM-search.vue?862e"],"names":["createPage","Page"],"mappings":"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","file":"pages/goods/HM-search/HM-search.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/goods/HM-search/HM-search.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./HM-search.vue?vue&type=template&id=05f8bd2f&\"\nvar renderjs\nimport script from \"./HM-search.vue?vue&type=script&lang=js&\"\nexport * from \"./HM-search.vue?vue&type=script&lang=js&\"\nimport style0 from \"./HM-search.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\HBuilderX\\\\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/goods/HM-search/HM-search.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./HM-search.vue?vue&type=template&id=05f8bd2f&\"","var components\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:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./HM-search.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./HM-search.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<view class=\"search-box\">\r\n\t\t\t<!-- mSearch组件 如果使用原样式,删除组件元素-->\r\n\t\t\t<mSearch class=\"mSearch-input-box\" :mode=\"2\" button=\"inside\" :placeholder=\"defaultKeyword\"\r\n\t\t\t\t@search=\"doSearch(false)\" @confirm=\"doSearch(false)\" v-model=\"keyword\"></mSearch>\r\n\t\t\t<!-- 原样式 如果使用原样式,恢复下方注销代码 -->\r\n\t\t\t<!-- \t\t\t\t\t\t\r\n\t\t\t<view class=\"input-box\">\r\n\t\t\t\t<input type=\"text\" :adjust-position=\"true\" :placeholder=\"defaultKeyword\" @input=\"inputChange\" v-model=\"keyword\" @confirm=\"doSearch(false)\"\r\n\t\t\t\t placeholder-class=\"placeholder-class\" confirm-type=\"search\">\r\n\t\t\t</view>\r\n\t\t\t<view class=\"search-btn\" @tap=\"doSearch(false)\">搜索</view> \r\n\t\t\t -->\r\n\t\t\t<!-- 原样式 end -->\r\n\t\t</view>\r\n\t\t<view class=\"search-keyword\">\r\n\t\t\t<scroll-view class=\"keyword-list-box\" v-show=\"isShowKeywordList\" scroll-y>\r\n\t\t\t\t<block v-for=\"(row,index) in keywordList\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"keyword-entry\" hover-class=\"keyword-entry-tap\">\r\n\t\t\t\t\t\t<view class=\"keyword-text\" @tap.stop=\"doSearch(keywordList[index].keyword)\">\r\n\t\t\t\t\t\t\t<rich-text :nodes=\"row.htmlStr\"></rich-text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"keyword-img\" @tap.stop=\"setKeyword(keywordList[index].keyword)\">\r\n\t\t\t\t\t\t\t<image src=\"/static/HM-search/back.png\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</block>\r\n\r\n\t\t\t</scroll-view>\r\n\t\t\t<scroll-view class=\"keyword-box\" v-show=\"!isShowKeywordList\" scroll-y>\r\n\t\t\t\t<view class=\"product-list mart15\">\r\n\t\t\t\t\t<view class=\"product\" v-for=\"product in productList\" :key=\"product.id\" @tap=\"toGoods(product.id)\">\r\n\t\t\t\t\t\t<image mode=\"widthFix\" :src=\"imageUrl+product.couponImg\"></image>\r\n\t\t\t\t\t\t<view class=\"name\">{{ product.couponName }}</view>\r\n\t\t\t\t\t\t<view class=\"info\">\r\n\t\t\t\t\t\t\t<view class=\"price\">¥{{ product.discountPrice}}</view>\r\n\t\t\t\t\t\t\t<view class=\"slogan\" v-if=\"product.discountPrice !== product.salesPrice\">\r\n\t\t\t\t\t\t\t\t¥{{ product.salesPrice}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t</view>\n\t\t<view class=\"loading-text\">{{ loadingText }}</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tgetCouponList\r\n\t} from \"../../../Utils/Api.js\";\r\n\tlet app = getApp()\r\n\t//引用mSearch组件,如不需要删除即可\r\n\timport mSearch from '@/components/mehaotian-search-revision/mehaotian-search-revision.vue';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tdefaultKeyword: \"\",\r\n\t\t\t\tkeyword: \"\",\r\n\t\t\t\toldKeywordList: [],\r\n\t\t\t\thotKeywordList: [],\r\n\t\t\t\tkeywordList: [],\r\n\t\t\t\tforbid: '',\r\n\t\t\t\tisShowKeywordList: false,\r\n\t\t\t\timageUrl: app.globalData.imgUrl,\r\n\t\t\t\tproductList: [],\n\t\t\t\tpageNum: 1,\n\t\t\t\tpageSize: 10,\n\t\t\t\tisNoMoreData: false,\n\t\t\t\tloadingText: ''\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.init();\r\n\t\t},\r\n\t\tcomponents: {\r\n\t\t\t//引用mSearch组件,如不需要删除即可\r\n\t\t\tmSearch\r\n\t\t},\n\t\tonReachBottom() {\n\t\t\tthis.getCouponList();\n\t\t},\r\n\t\tmethods: {\n\t\t\ttoGoods(e) {\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:'../../goods/goods?id='+e\n\t\t\t\t});\n\t\t\t},\r\n\t\t\tgetCouponList() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\ttitle: '加载中...'\n\t\t\t\t})\n\t\t\t\tif (this.isNoMoreData) {\n\t\t\t\t\tuni.hideLoading()\n\t\t\t\t\tthis.loadingText = '到底了';\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tlet pagenum = this.pageNum;\n\t\t\t\tlet params = {\n\t\t\t\t\tregionId: app.globalData.cityId,\n\t\t\t\t\tpageNum: pagenum,\n\t\t\t\t\tcouponName: this.keyword,\n\t\t\t\t\tpageSize: this.pageSize\n\t\t\t\t}\n\t\t\t\tgetCouponList(params).then(res => {\n\t\t\t\t\tif (res.return_code == '000000') {\n\t\t\t\t\t\tuni.hideLoading();\n\t\t\t\t\t\tthis.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true;\n\t\t\t\t\t\tthis.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;\n\t\t\t\t\t\tthis.productList = this.productList.concat(res.return_data.list);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.productList = [];\n\t\t\t\t\t\tuni.hideLoading()\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tinit() {\r\n\t\t\t\tthis.loadDefaultKeyword();\r\n\r\n\t\t\t},\r\n\t\t\tblur() {\r\n\t\t\t\tuni.hideKeyboard()\r\n\t\t\t},\r\n\t\t\t//加载默认搜索关键字\r\n\t\t\tloadDefaultKeyword() {\r\n\t\t\t\t//定义默认搜索关键字,可以自己实现ajax请求数据再赋值,用户未输入时,以水印方式显示在输入框,直接不输入内容搜索会搜索默认关键字\r\n\t\t\t\tthis.defaultKeyword = \"默认关键字\";\r\n\t\t\t},\r\n\t\t\t//加载历史搜索,自动读取本地Storage\r\n\t\t\tloadOldKeyword() {\r\n\t\t\t\tuni.getStorage({\r\n\t\t\t\t\tkey: 'OldKeys',\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tvar OldKeys = JSON.parse(res.data);\r\n\t\t\t\t\t\tthis.oldKeywordList = OldKeys;\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\t//监听输入\r\n\t\t\tinputChange(event) {\r\n\t\t\t\t//兼容引入组件时传入参数情况\r\n\t\t\t\tvar keyword = event.detail ? event.detail.value : event;\r\n\t\t\t\tif (!keyword) {\r\n\t\t\t\t\tthis.keywordList = [];\r\n\t\t\t\t\tthis.isShowKeywordList = false;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.isShowKeywordList = true;\r\n\t\t\t\t//以下示例截取淘宝的关键字,请替换成你的接口\r\n\t\t\t\tthis.getCouponList();\r\n\t\t\t},\r\n\t\t\t//高亮关键字\r\n\t\t\tdrawCorrelativeKeyword(keywords, keyword) {\r\n\t\t\t\tvar len = keywords.length,\r\n\t\t\t\t\tkeywordArr = [];\r\n\t\t\t\tfor (var i = 0; i < len; i++) {\r\n\t\t\t\t\tvar row = keywords[i];\r\n\t\t\t\t\t//定义高亮#9f9f9f\r\n\t\t\t\t\tvar html = row[0].replace(keyword, \"<span style='color: #9f9f9f;'>\" + keyword + \"</span>\");\r\n\t\t\t\t\thtml = '<div>' + html + '</div>';\r\n\t\t\t\t\tvar tmpObj = {\r\n\t\t\t\t\t\tkeyword: row[0],\r\n\t\t\t\t\t\thtmlStr: html\r\n\t\t\t\t\t};\r\n\t\t\t\t\tkeywordArr.push(tmpObj)\r\n\t\t\t\t}\r\n\t\t\t\treturn keywordArr;\r\n\t\t\t},\r\n\t\t\t//顶置关键字\r\n\t\t\tsetKeyword(index) {\r\n\t\t\t\tthis.keyword = this.keywordList[index].keyword;\r\n\t\t\t},\r\n\t\t\t//清除历史搜索\r\n\t\t\toldDelete() {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\tcontent: '确定清除历史搜索记录?',\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tconsole.log('用户点击确定');\r\n\t\t\t\t\t\t\tthis.oldKeywordList = [];\r\n\t\t\t\t\t\t\tuni.removeStorage({\r\n\t\t\t\t\t\t\t\tkey: 'OldKeys'\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else if (res.cancel) {\r\n\t\t\t\t\t\t\tconsole.log('用户点击取消');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t//热门搜索开关\r\n\t\t\thotToggle() {\r\n\t\t\t\tthis.forbid = this.forbid ? '' : '_forbid';\r\n\t\t\t},\r\n\t\t\t//执行搜索\r\n\t\t\tdoSearch(keyword) {\r\n\t\t\t\tkeyword = keyword === false ? this.keyword : keyword;\r\n\t\t\t\tthis.keyword = keyword;\n\t\t\t\tthis.pageNum = 1;\r\n\t\t\t\tthis.getCouponList();\r\n\t\t\t},\r\n\t\t\t//保存关键字到历史记录\r\n\t\t\tsaveKeyword(keyword) {\r\n\t\t\t\tuni.getStorage({\r\n\t\t\t\t\tkey: 'OldKeys',\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tvar OldKeys = JSON.parse(res.data);\r\n\t\t\t\t\t\tvar findIndex = OldKeys.indexOf(keyword);\r\n\t\t\t\t\t\tif (findIndex == -1) {\r\n\t\t\t\t\t\t\tOldKeys.unshift(keyword);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tOldKeys.splice(findIndex, 1);\r\n\t\t\t\t\t\t\tOldKeys.unshift(keyword);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//最多10个纪录\r\n\t\t\t\t\t\tOldKeys.length > 10 && OldKeys.pop();\r\n\t\t\t\t\t\tuni.setStorage({\r\n\t\t\t\t\t\t\tkey: 'OldKeys',\r\n\t\t\t\t\t\t\tdata: JSON.stringify(OldKeys)\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.oldKeywordList = OldKeys; //更新历史搜索\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail: (e) => {\r\n\t\t\t\t\t\tvar OldKeys = [keyword];\r\n\t\t\t\t\t\tuni.setStorage({\r\n\t\t\t\t\t\t\tkey: 'OldKeys',\r\n\t\t\t\t\t\t\tdata: JSON.stringify(OldKeys)\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tthis.oldKeywordList = OldKeys; //更新历史搜索\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}\r\n</script>\r\n<style lang=\"scss\">\r\n\tview {\r\n\t\tdisplay: block;\r\n\t}\r\n\n.loading-text {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\theight: 60upx;\r\n\t\tcolor: #979797;\r\n\t\tfont-size: 24upx;\r\n\t}\r\n\t.product-list {\r\n\t\twidth: 92%;\r\n\t\tpadding: 0 4% 3vw 4%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tflex-wrap: wrap;\r\n\r\n\t\t.product {\r\n\t\t\twidth: 48%;\r\n\t\t\tborder-radius: 20upx;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tmargin: 0 0 15upx 0;\r\n\t\t\tbox-shadow: 0upx 5upx 25upx rgba(0, 0, 0, 0.1);\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tborder-radius: 20upx 20upx 0 0;\r\n\t\t\t}\r\n\r\n\t\t\t.name {\r\n\t\t\t\twidth: 92%;\r\n\t\t\t\tpadding: 10upx 4%;\r\n\t\t\t\tdisplay: -webkit-box;\r\n\t\t\t\t-webkit-box-orient: vertical;\r\n\t\t\t\t-webkit-line-clamp: 2;\r\n\t\t\t\ttext-align: justify;\r\n\t\t\t\toverflow: hidden;\r\n\t\t\t\tfont-size: 30upx;\r\n\t\t\t}\r\n\r\n\t\t\t.info {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\talign-items: flex-end;\r\n\t\t\t\twidth: 92%;\r\n\t\t\t\tpadding: 10upx 4% 10upx 4%;\r\n\r\n\t\t\t\t.price {\r\n\t\t\t\t\tcolor: #e65339;\r\n\t\t\t\t\tfont-size: 30upx;\r\n\t\t\t\t\tfont-weight: 600;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.slogan {\r\n\t\t\t\t\tcolor: #807c87;\r\n\t\t\t\t\tfont-size: 24upx;\r\n\t\t\t\t\ttext-decoration: line-through;\r\n\t\t\t\t\tmargin-right: 50px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.search-box {\r\n\t\twidth: 95%;\r\n\t\tbackground-color: rgb(242, 242, 242);\r\n\t\tpadding: 15upx 2.5%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\tposition: sticky;\r\n\t\ttop: 0;\r\n\t}\r\n\r\n\t.search-box .mSearch-input-box {\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t.search-box .input-box {\r\n\t\twidth: 85%;\r\n\t\tflex-shrink: 1;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.search-box .search-btn {\r\n\t\twidth: 15%;\r\n\t\tmargin: 0 0 0 2%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tflex-shrink: 0;\r\n\t\tfont-size: 28upx;\r\n\t\tcolor: #fff;\r\n\t\tbackground: linear-gradient(to right, #ff9801, #ff570a);\r\n\t\tborder-radius: 60upx;\r\n\t}\r\n\r\n\t.search-box .input-box>input {\r\n\t\twidth: 100%;\r\n\t\theight: 60upx;\r\n\t\tfont-size: 32upx;\r\n\t\tborder: 0;\r\n\t\tborder-radius: 60upx;\r\n\t\t-webkit-appearance: none;\r\n\t\t-moz-appearance: none;\r\n\t\tappearance: none;\r\n\t\tpadding: 0 3%;\r\n\t\tmargin: 0;\r\n\t\tbackground-color: #ffffff;\r\n\t}\r\n\r\n\t.placeholder-class {\r\n\t\tcolor: #9e9e9e;\r\n\t}\r\n\r\n\t.search-keyword {\r\n\t\twidth: 100%;\r\n\t\tbackground-color: rgb(242, 242, 242);\r\n\t}\r\n\r\n\t.keyword-list-box {\r\n\t\theight: calc(100vh - 110upx);\r\n\t\tpadding-top: 10upx;\r\n\t\tborder-radius: 20upx 20upx 0 0;\r\n\t\tbackground-color: #fff;\r\n\t}\r\n\r\n\t.keyword-entry-tap {\r\n\t\tbackground-color: #eee;\r\n\t}\r\n\r\n\t.keyword-entry {\r\n\t\twidth: 94%;\r\n\t\theight: 80upx;\r\n\t\tmargin: 0 3%;\r\n\t\tfont-size: 30upx;\r\n\t\tcolor: #333;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tborder-bottom: solid 1upx #e7e7e7;\r\n\t}\r\n\r\n\t.keyword-entry image {\r\n\t\twidth: 60upx;\r\n\t\theight: 60upx;\r\n\t}\r\n\r\n\t.keyword-entry .keyword-text,\r\n\t.keyword-entry .keyword-img {\r\n\t\theight: 80upx;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.keyword-entry .keyword-text {\r\n\t\twidth: 90%;\r\n\t}\r\n\r\n\t.keyword-entry .keyword-img {\r\n\t\twidth: 10%;\r\n\t\tjustify-content: center;\r\n\t}\r\n\r\n\t.keyword-box {\r\n\t\theight: calc(100vh - 110upx);\r\n\t\tborder-radius: 20upx 20upx 0 0;\r\n\t\tbackground-color: #fff;\r\n\t}\r\n\r\n\t.keyword-box .keyword-block {\r\n\t\tpadding: 10upx 0;\r\n\t}\r\n\r\n\t.keyword-box .keyword-block .keyword-list-header {\r\n\t\twidth: 94%;\r\n\t\tpadding: 10upx 3%;\r\n\t\tfont-size: 27upx;\r\n\t\tcolor: #333;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t}\r\n\r\n\t.keyword-box .keyword-block .keyword-list-header image {\r\n\t\twidth: 40upx;\r\n\t\theight: 40upx;\r\n\t}\r\n\r\n\t.keyword-box .keyword-block .keyword {\r\n\t\twidth: 94%;\r\n\t\tpadding: 3px 3%;\r\n\t\tdisplay: flex;\r\n\t\tflex-flow: wrap;\r\n\t\tjustify-content: flex-start;\r\n\t}\r\n\r\n\t.keyword-box .keyword-block .hide-hot-tis {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\tfont-size: 28upx;\r\n\t\tcolor: #6b6b6b;\r\n\t}\r\n\r\n\t.keyword-box .keyword-block .keyword>view {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tborder-radius: 60upx;\r\n\t\tpadding: 0 20upx;\r\n\t\tmargin: 10upx 20upx 10upx 0;\r\n\t\theight: 60upx;\r\n\t\tfont-size: 28upx;\r\n\t\tbackground-color: rgb(242, 242, 242);\r\n\t\tcolor: #6b6b6b;\r\n\t}\r\n</style>\n","import mod from \"-!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./HM-search.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./HM-search.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1617416975004\n var cssReload = require(\"D:/HBuilderX/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":""} |