切换导航条
此项目
正在载入...
登录
韩昌
/
kaoshi3-fangweishangcheng
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
韩昌
2022-11-24 17:39:11 +0800
提交
6b95b31fadbeedb48985ab8ccd94d6edd906e677
1 个父辈
7571cff3
33
显示空白字符变更
内嵌
并排对比
正在显示
7 个修改的文件
包含
15 行增加
和
5 行删除
pages/index/index.vue
pages/index/list.vue
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/list.js.map
unpackage/dist/dev/mp-weixin/pages/index/index.js
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
unpackage/dist/dev/mp-weixin/pages/index/list.js
pages/index/index.vue
查看文件 @
6b95b31
...
...
@@ -100,6 +100,8 @@
{{ item.content }}
</view>
</template>
<view @click="toListHandler">跳转列表搜索</view>
</view>
</template>
...
...
@@ -205,6 +207,9 @@ export default {
// 调接口
this.getList(val)
},
toListHandler(){
uni.navigateTo({ url: '/pages/index/list' })
}
},
}
</script>
...
...
pages/index/list.vue
查看文件 @
6b95b31
...
...
@@ -132,7 +132,7 @@ export default {
this.list.forEach((item, index) => {
item.image = JSON.parse(data.data[index].file).imgList[0]
})
},
6
00)
},
3
00)
}
},
},
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
查看文件 @
6b95b31
{
"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"
:
""
}
\ No newline at end of file
{
"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4GzpB,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;AA+DA,iBA/DA,2BA+DA;AACA;AACA,KAjEA,EArCA,E;;;;;;;;;;;;;AC7GA;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\n <view @click=\"toListHandler\">跳转列表搜索</view>\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 toListHandler(){\n uni.navigateTo({ url: '/pages/index/list' })\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 // 1669282709121\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"
:
""
}
\ No newline at end of file
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/list.js.map
查看文件 @
6b95b31
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
null
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?569a"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?1ec6"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?3444"
,
"uni-app:///pages/index/list.vue"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?4f14"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?a8a3"
],
"names"
:[
"wx"
,
"__webpack_require_UNI_MP_PLUGIN__"
,
"__webpack_require__"
,
"createPage"
,
"Page"
],
"mappings"
:
";;;;;;;;;;kDAAA;AACA;AACA,2F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AAC0K;AAC1K,gBAAgB,6KAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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,iSAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,4QAEN;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;;;;;;;;;;;;;;AC/DA;AAAA;AAAA;AAAA;AAAooB,CAAgB,8mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiExpB,iD;AACA;AACA,MADA,kBACA;AACA;AACA;AACA;AACA,oBADA,EADA;;AAIA;AACA,oBADA,EAJA;;AAOA;AACA,oBADA,EAPA;;AAUA;AACA,mBADA,EAVA;;AAaA;AACA,oBADA,EAbA,CADA;;;AAkBA,cAlBA;;AAoBA;AACA;AACA,gCADA;AAEA,yBAFA,EArBA;;AAyBA;AACA;AACA,oCADA;AAEA,yBAFA;AAGA,yBAHA,EA1BA;;AA+BA,cA/BA;AAgCA,cAhCA;AAiCA,oBAjCA;AAkCA;AACA,qBAnCA;AAoCA,qBApCA;;AAsCA,GAxCA;AAyCA,SAzCA,qBAyCA;AACA;AACA;AACA;AACA,gOADA,CADA;;;AAKA,GAhDA;AAiDA;AACA,WADA,mBACA,GADA,EACA;AACA;AACA,+BADA,EACA;AACA,uCAFA,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;AACA,qBAFA;AAGA,mBALA,EAKA,GALA;AAMA,iBAnBA;AAoBA,KArBA,EAjDA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA2sC,CAAgB,6lCAAG,EAAC,C;;;;;;;;;;;ACA/tC;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"file"
:
"pages/index/list.js"
,
"sourcesContent"
:[
"import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/list.vue'\ncreatePage(Page)"
,
"import { render, staticRenderFns, recyclableRender, components } from \"./list.vue?vue&type=template&id=fc532118&\"\nvar renderjs\nimport script from \"./list.vue?vue&type=script&lang=js&\"\nexport * from \"./list.vue?vue&type=script&lang=js&\"\nimport style0 from \"./list.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/list.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!./list.vue?vue&type=template&id=fc532118&\""
,
"var components\ntry {\n components = {\n uSticky: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-sticky/u-sticky\" */ \"uview-ui/components/u-sticky/u-sticky.vue\"\n )\n },\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 uTabs: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-tabs/u-tabs\" */ \"uview-ui/components/u-tabs/u-tabs.vue\"\n )\n },\n customWaterfallsFlow: function() {\n return import(\n /* webpackChunkName: \"components/custom-waterfalls-flow/custom-waterfalls-flow\" */ \"@/components/custom-waterfalls-flow/custom-waterfalls-flow.vue\"\n )\n },\n uRate: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-rate/u-rate\" */ \"uview-ui/components/u-rate/u-rate.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 _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 \"-!../../../../高级前台制作/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!./list.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!./list.vue?vue&type=script&lang=js&\""
,
"<template>\r\n <view>\r\n <!-- 顶部navbar -->\r\n <u-sticky bgColor=\"#fff\">\r\n <u-navbar @rightClick=\"rightClick\" placeholder :autoBack=\"true\">\r\n <template #left>\r\n <view class=\"topSearchBox\">\r\n <u-search\r\n placeholder=\"请输入商家名称\"\r\n :clearabled=\"true\"\r\n :showAction=\"false\"\r\n v-model=\"searchValue\"\r\n @search=\"getList\"\r\n ></u-search>\r\n </view>\r\n </template>\r\n </u-navbar>\r\n\r\n <!-- 粘性tabs -->\r\n\r\n <u-tabs\r\n :list=\"list1\"\r\n :lineWidth=\"40\"\r\n lineColor=\"#6E16FF\"\r\n :inactiveStyle=\"inactiveStyle\"\r\n :activeStyle=\"activeStyle\"\r\n :scrollable=\"false\"\r\n ></u-tabs>\r\n </u-sticky>\r\n\r\n <!-- 列表版心 -->\r\n <template v-if=\"searchState == 1\">\r\n <view class=\"mainBox\">\r\n <custom-waterfalls-flow :value=\"list\" imageKey=\"image\" :seat=\"2\">\r\n <view class=\"item\" v-for=\"(item, index) in list\" :key=\"index\" slot=\"slot{{index}}\">\r\n <view class=\"title flexC\">{{ item.title }}</view>\r\n <view class=\"flexJ\">\r\n <view class=\"flexA headerBox\">\r\n <image src=\"/static/headImg.jpg\" mode=\"scaleToFill\" />\r\n <view>桥志三</view>\r\n </view>\r\n <view class=\"flexA\">\r\n <u-rate activeIcon=\"heart-fill\" inactiveIcon=\"heart\" :count=\"count\" v-model=\"value\"></u-rate>\r\n <view class=\"numText\">{{ item.id }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </custom-waterfalls-flow>\r\n </view>\r\n </template>\r\n\r\n <template v-if=\"searchState == 0\">\r\n <u-empty mode=\"car\" icon=\"http://cdn.uviewui.com/uview/empty/car.png\"></u-empty>\r\n </template>\r\n <!-- <template v-if=\"searchState == 1\">\r\n <view v-for=\"item in searchList1\" :key=\"item.id\">\r\n {{ item.title }}\r\n {{ item.id }}\r\n {{ item.content }}\r\n </view>\r\n </template> -->\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getList } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n list1: [\r\n {\r\n name: '美容美发',\r\n },\r\n {\r\n name: '长发造型',\r\n },\r\n {\r\n name: '好物分享',\r\n },\r\n {\r\n name: '吹风机',\r\n },\r\n {\r\n name: '好物评测',\r\n },\r\n ],\r\n list: [\r\n ],\r\n // 未选择样式\r\n inactiveStyle: {\r\n color: 'rgba(0,0,0,0.4)',\r\n fontSize: '27rpx',\r\n },\r\n // 选择样式\r\n activeStyle: {\r\n color: 'rgba(50, 50, 51, 1)',\r\n fontSize: '27rpx',\r\n fontWeight: '700',\r\n },\r\n count: 1,\r\n value: 1,\r\n searchState: 1,\r\n //\r\n searchValue: '',\r\n searchList1: [],\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n console.log(\r\n JSON.parse(\r\n '{\"video\":\"\",\"imgList\":[\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"],\"cover\":\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"}'\r\n )\r\n )\r\n },\r\n methods: {\r\n async getList(val) {\r\n const { data } = await getList({\r\n type_id: '', //\tinteger\t否\t论坛类型\r\n keywords: val || '', //\tstring\t否\t关键词\r\n order: 1, //\tstring\t是\t排序,1:评论,0:时间\r\n page: 1, //\tinteger\t是\t页码\r\n rows: 4, //\tinteger\t是\t条数\r\n })\r\n console.log(data)\r\n if (data.data.length == 0) {\r\n this.searchState = 0\r\n } else {\r\n this.searchState = 1\r\n setTimeout(() => {\r\n this.list = data.data\r\n this.list.forEach((item, index) => {\r\n item.image = JSON.parse(data.data[index].file).imgList[0]\r\n })\r\n }, 600)\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\npage {\r\n background: #f7f8fa;\r\n}\r\n.u-search__content {\r\n min-width: 426rpx !important;\r\n}\r\n.title {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin: 16rpx 0;\r\n}\r\n.headerBox {\r\n color: rgba(0, 0, 0, 0.6);\r\n font-size: 24rpx;\r\n image {\r\n width: 48rpx;\r\n height: 48rpx;\r\n border-radius: 50%;\r\n margin-right: 8rpx;\r\n }\r\n}\r\n.item {\r\n padding: 0 16rpx 16rpx;\r\n box-sizing: border-box;\r\n}\r\n.numText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-left: 8rpx;\r\n}\r\n.mainBox {\r\n width: 100%;\r\n height: 100%;\r\n padding: 16rpx;\r\n box-sizing: border-box;\r\n}\r\n</style>\r\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!./list.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!./list.vue?vue&type=style&index=0&lang=scss&\""
,
"// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1669280884625\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"
:
""
}
\ No newline at end of file
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
null
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?569a"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?1ec6"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?3444"
,
"uni-app:///pages/index/list.vue"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?4f14"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?a8a3"
],
"names"
:[
"wx"
,
"__webpack_require_UNI_MP_PLUGIN__"
,
"__webpack_require__"
,
"createPage"
,
"Page"
],
"mappings"
:
";;;;;;;;;;kDAAA;AACA;AACA,2F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;AACc;;;AAGjE;AAC0K;AAC1K,gBAAgB,6KAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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,iSAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP,KAAK;AACL;AACA,aAAa,4QAEN;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;;;;;;;;;;;;;;AC/DA;AAAA;AAAA;AAAA;AAAooB,CAAgB,8mBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiExpB,iD;AACA;AACA,MADA,kBACA;AACA;AACA;AACA;AACA,oBADA,EADA;;AAIA;AACA,oBADA,EAJA;;AAOA;AACA,oBADA,EAPA;;AAUA;AACA,mBADA,EAVA;;AAaA;AACA,oBADA,EAbA,CADA;;;AAkBA,cAlBA;;AAoBA;AACA;AACA,gCADA;AAEA,yBAFA,EArBA;;AAyBA;AACA;AACA,oCADA;AAEA,yBAFA;AAGA,yBAHA,EA1BA;;AA+BA,cA/BA;AAgCA,cAhCA;AAiCA,oBAjCA;AAkCA;AACA,qBAnCA;AAoCA,qBApCA;;AAsCA,GAxCA;AAyCA,SAzCA,qBAyCA;AACA;AACA;AACA;AACA,gOADA,CADA;;;AAKA,GAhDA;AAiDA;AACA,WADA,mBACA,GADA,EACA;AACA;AACA,+BADA,EACA;AACA,uCAFA,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;AACA,qBAFA;AAGA,mBALA,EAKA,GALA;AAMA,iBAnBA;AAoBA,KArBA,EAjDA,E;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAA2sC,CAAgB,6lCAAG,EAAC,C;;;;;;;;;;;ACA/tC;AACA,OAAO,KAAU,EAAE,kBAKd"
,
"file"
:
"pages/index/list.js"
,
"sourcesContent"
:[
"import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/list.vue'\ncreatePage(Page)"
,
"import { render, staticRenderFns, recyclableRender, components } from \"./list.vue?vue&type=template&id=fc532118&\"\nvar renderjs\nimport script from \"./list.vue?vue&type=script&lang=js&\"\nexport * from \"./list.vue?vue&type=script&lang=js&\"\nimport style0 from \"./list.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/list.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!./list.vue?vue&type=template&id=fc532118&\""
,
"var components\ntry {\n components = {\n uSticky: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-sticky/u-sticky\" */ \"uview-ui/components/u-sticky/u-sticky.vue\"\n )\n },\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 uTabs: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-tabs/u-tabs\" */ \"uview-ui/components/u-tabs/u-tabs.vue\"\n )\n },\n customWaterfallsFlow: function() {\n return import(\n /* webpackChunkName: \"components/custom-waterfalls-flow/custom-waterfalls-flow\" */ \"@/components/custom-waterfalls-flow/custom-waterfalls-flow.vue\"\n )\n },\n uRate: function() {\n return import(\n /* webpackChunkName: \"node-modules/uview-ui/components/u-rate/u-rate\" */ \"uview-ui/components/u-rate/u-rate.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 _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 \"-!../../../../高级前台制作/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!./list.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!./list.vue?vue&type=script&lang=js&\""
,
"<template>\r\n <view>\r\n <!-- 顶部navbar -->\r\n <u-sticky bgColor=\"#fff\">\r\n <u-navbar @rightClick=\"rightClick\" placeholder :autoBack=\"true\">\r\n <template #left>\r\n <view class=\"topSearchBox\">\r\n <u-search\r\n placeholder=\"请输入商家名称\"\r\n :clearabled=\"true\"\r\n :showAction=\"false\"\r\n v-model=\"searchValue\"\r\n @search=\"getList\"\r\n ></u-search>\r\n </view>\r\n </template>\r\n </u-navbar>\r\n\r\n <!-- 粘性tabs -->\r\n\r\n <u-tabs\r\n :list=\"list1\"\r\n :lineWidth=\"40\"\r\n lineColor=\"#6E16FF\"\r\n :inactiveStyle=\"inactiveStyle\"\r\n :activeStyle=\"activeStyle\"\r\n :scrollable=\"false\"\r\n ></u-tabs>\r\n </u-sticky>\r\n\r\n <!-- 列表版心 -->\r\n <template v-if=\"searchState == 1\">\r\n <view class=\"mainBox\">\r\n <custom-waterfalls-flow :value=\"list\" imageKey=\"image\" :seat=\"2\">\r\n <view class=\"item\" v-for=\"(item, index) in list\" :key=\"index\" slot=\"slot{{index}}\">\r\n <view class=\"title flexC\">{{ item.title }}</view>\r\n <view class=\"flexJ\">\r\n <view class=\"flexA headerBox\">\r\n <image src=\"/static/headImg.jpg\" mode=\"scaleToFill\" />\r\n <view>桥志三</view>\r\n </view>\r\n <view class=\"flexA\">\r\n <u-rate activeIcon=\"heart-fill\" inactiveIcon=\"heart\" :count=\"count\" v-model=\"value\"></u-rate>\r\n <view class=\"numText\">{{ item.id }}</view>\r\n </view>\r\n </view>\r\n </view>\r\n </custom-waterfalls-flow>\r\n </view>\r\n </template>\r\n\r\n <template v-if=\"searchState == 0\">\r\n <u-empty mode=\"car\" icon=\"http://cdn.uviewui.com/uview/empty/car.png\"></u-empty>\r\n </template>\r\n <!-- <template v-if=\"searchState == 1\">\r\n <view v-for=\"item in searchList1\" :key=\"item.id\">\r\n {{ item.title }}\r\n {{ item.id }}\r\n {{ item.content }}\r\n </view>\r\n </template> -->\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getList } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n list1: [\r\n {\r\n name: '美容美发',\r\n },\r\n {\r\n name: '长发造型',\r\n },\r\n {\r\n name: '好物分享',\r\n },\r\n {\r\n name: '吹风机',\r\n },\r\n {\r\n name: '好物评测',\r\n },\r\n ],\r\n list: [\r\n ],\r\n // 未选择样式\r\n inactiveStyle: {\r\n color: 'rgba(0,0,0,0.4)',\r\n fontSize: '27rpx',\r\n },\r\n // 选择样式\r\n activeStyle: {\r\n color: 'rgba(50, 50, 51, 1)',\r\n fontSize: '27rpx',\r\n fontWeight: '700',\r\n },\r\n count: 1,\r\n value: 1,\r\n searchState: 1,\r\n //\r\n searchValue: '',\r\n searchList1: [],\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n console.log(\r\n JSON.parse(\r\n '{\"video\":\"\",\"imgList\":[\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"],\"cover\":\"https:\\\\/\\\\/image.hairshop.vip\\\\/uploads\\\\/20220616\\\\/5998d3e20a0035e7874c4ae953659675.jpg\"}'\r\n )\r\n )\r\n },\r\n methods: {\r\n async getList(val) {\r\n const { data } = await getList({\r\n type_id: '', //\tinteger\t否\t论坛类型\r\n keywords: val || '', //\tstring\t否\t关键词\r\n order: 1, //\tstring\t是\t排序,1:评论,0:时间\r\n page: 1, //\tinteger\t是\t页码\r\n rows: 4, //\tinteger\t是\t条数\r\n })\r\n console.log(data)\r\n if (data.data.length == 0) {\r\n this.searchState = 0\r\n } else {\r\n this.searchState = 1\r\n setTimeout(() => {\r\n this.list = data.data\r\n this.list.forEach((item, index) => {\r\n item.image = JSON.parse(data.data[index].file).imgList[0]\r\n })\r\n }, 300)\r\n }\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\npage {\r\n background: #f7f8fa;\r\n}\r\n.u-search__content {\r\n min-width: 426rpx !important;\r\n}\r\n.title {\r\n color: rgba(0, 0, 0, 0.9);\r\n font-size: 28rpx;\r\n margin: 16rpx 0;\r\n}\r\n.headerBox {\r\n color: rgba(0, 0, 0, 0.6);\r\n font-size: 24rpx;\r\n image {\r\n width: 48rpx;\r\n height: 48rpx;\r\n border-radius: 50%;\r\n margin-right: 8rpx;\r\n }\r\n}\r\n.item {\r\n padding: 0 16rpx 16rpx;\r\n box-sizing: border-box;\r\n}\r\n.numText {\r\n color: rgba(0, 0, 0, 0.4);\r\n font-size: 24rpx;\r\n margin-left: 8rpx;\r\n}\r\n.mainBox {\r\n width: 100%;\r\n height: 100%;\r\n padding: 16rpx;\r\n box-sizing: border-box;\r\n}\r\n</style>\r\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!./list.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!./list.vue?vue&type=style&index=0&lang=scss&\""
,
"// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1669282731125\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"
:
""
}
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/pages/index/index.js
查看文件 @
6b95b31
...
...
@@ -281,6 +281,8 @@ __webpack_require__.r(__webpack_exports__);
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
=
{
data
:
function
data
()
{
...
...
@@ -381,6 +383,9 @@ var _api = __webpack_require__(/*! @/api */ 301);function _interopRequireDefault
// : ''
// 调接口
this
.
getList
(
val
);
},
toListHandler
:
function
toListHandler
()
{
uni
.
navigateTo
({
url
:
'/pages/index/list'
});
}
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
...
...
unpackage/dist/dev/mp-weixin/pages/index/index.wxml
查看文件 @
6b95b31
<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>
\ No newline at end of file
<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 data-event-opts="{{[['tap',[['toListHandler',['$event']]]]]}}" bindtap="__e">跳转列表搜索</view></view>
\ No newline at end of file
...
...
unpackage/dist/dev/mp-weixin/pages/index/list.js
查看文件 @
6b95b31
...
...
@@ -305,7 +305,7 @@ var _api = __webpack_require__(/*! @/api */ 301);function _interopRequireDefault
_this
.
list
.
forEach
(
function
(
item
,
index
)
{
item
.
image
=
JSON
.
parse
(
data
.
data
[
index
].
file
).
imgList
[
0
];
});
},
6
00
);
},
3
00
);
}
case
6
:
case
"end"
:
return
_context
.
stop
();}}},
_callee
);}))();
}
}
};
exports
.
default
=
_default
;
...
...
请
注册
或
登录
后发表评论