切换导航条
此项目
正在载入...
登录
韩昌
/
kaoshi3-fangweishangcheng
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
韩昌
2022-12-05 17:06:32 +0800
提交
120cfb15c8f109c81f7fe8af0ea1c48ded515ea6
1 个父辈
a64d78a8
提交一次9
显示空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
pages/index/list.vue
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/list.js.map
unpackage/dist/dev/mp-weixin/pages/index/list.wxml
pages/index/list.vue
查看文件 @
120cfb1
...
...
@@ -25,7 +25,7 @@
<view slot="right" style="padding-left: 4px" @tap="rightCate = true">
<view class="rightBox">
<!-- <u-icon name="list" size="21" bold></u-icon> -->
<image style="width: 32rpx; height: 32rpx; margin-right:
4
rpx" src="/static/toggle.png" mode="scaleToFill" />
<image style="width: 32rpx; height: 32rpx; margin-right:
18
rpx" src="/static/toggle.png" mode="scaleToFill" />
</view>
</view>
</u-tabs>
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/list.js.map
查看文件 @
120cfb1
{
"version"
:
3
,
"sources"
:[
"uni-app:///main.js"
,
"webpack:///D:/vue/kaoshi3/pages/index/list.vue?6161"
,
"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"
:
"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"
,
"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 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 _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = 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!./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 <!-- @rightClick=\"rightClick\" :autoBack=\"true\" -->\r\n <u-navbar placeholder>\r\n <template #center>\r\n <view class=\"topSearchBox\">\r\n <u-search placeholder=\"请输入商家名称\" :clearabled=\"true\" :showAction=\"false\" v-model=\"searchValue\"></u-search>\r\n </view>\r\n </template>\r\n </u-navbar>\r\n <!-- @search=\"getList\" -->\r\n\r\n <!-- 粘性tabs -->\r\n <u-tabs\r\n :list=\"list1\"\r\n keyName=\"type_name\"\r\n :lineWidth=\"40\"\r\n lineColor=\"#6E16FF\"\r\n :inactiveStyle=\"inactiveStyle\"\r\n :activeStyle=\"activeStyle\"\r\n @click=\"toggleTabsHandler\"\r\n >\r\n <view slot=\"right\" style=\"padding-left: 4px\" @tap=\"rightCate = true\">\r\n <view class=\"rightBox\">\r\n <!-- <u-icon name=\"list\" size=\"21\" bold></u-icon> -->\r\n <image style=\"width: 32rpx; height: 32rpx; margin-right: 4rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" />\r\n </view>\r\n </view>\r\n </u-tabs>\r\n </u-sticky>\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n\r\n <!-- 列表版心 -->\r\n <template v-if=\"list2.length\">\r\n <view class=\"mainBox\">\r\n <custom-waterfalls-flow :value=\"list2\" :seat=\"2\" @imageClick=\"toDetailHandler\">\r\n <view class=\"item\" v-for=\"(item, index) in list2\" :key=\"item.id\" 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=\"item.user.avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.user.user_name }}</view>\r\n </view>\r\n <view class=\"flexA\">\r\n <u-icon name=\"heart\"></u-icon>\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 <view style=\"margin-top: 300rpx\">\r\n <u-empty />\r\n </view>\r\n </template>\r\n \r\n <!-- 添加按钮 -->\r\n <view class=\"incrBox flexC\" @click=\"toIncrItemHandler\">\r\n <image\r\n src=\"/static/add.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getList, getTabsCate } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n rightCate: false,\r\n list1: [],\r\n list2: [],\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 curPage: 1,\r\n last_page: 1,\r\n // 排序类型\r\n order: 1,\r\n // 商品列表 id\r\n goodlistId: 1,\r\n }\r\n },\r\n async created() {\r\n const { data } = await getTabsCate({\r\n page: 1,\r\n rows: 20,\r\n })\r\n this.list1 = data.data\r\n // this.list1.forEach((item,index) => item.name = data.data[index].type_name)\r\n \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 onLoad(){\r\n this.getList()\r\n },\r\n onReachBottom() {\r\n console.log('到底了')\r\n if (this.curPage === this.last_page) {\r\n uni.showToast({\r\n title: '没有更多数据了~',\r\n icon: 'none',\r\n mask: true,\r\n })\r\n } else {\r\n this.curPage = this.curPage + 1\r\n this.getList()\r\n }\r\n },\r\n methods: {\r\n async getList(val) {\r\n \r\n const { data } = await getList({\r\n type_id: this.goodlistId, //\tinteger\t否\t论坛类型\r\n keywords: val || '', //\tstring\t否\t关键词\r\n order: this.order, //\tstring\t是\t排序,1:评论,0:时间\r\n page: this.curPage, //\tinteger\t是\t页码\r\n rows: 6, //\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 this.last_page = data.last_page\r\n data.data.forEach(it=> it.image = JSON.parse(it.file).cover )\r\n this.list2 = this.list2.concat(data.data)\r\n // this.list2 = data.data\r\n // this.list2.forEach((item, index) => {\r\n // item.image = JSON.parse(data.data[index].file).imgList[0]\r\n // })\r\n \r\n }\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.list2 = []\r\n this.rightCate = !this.rightCate\r\n this.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\r\n this.curPage = 1\r\n this.goodlistId = e.id\r\n this.getList()\r\n },\r\n\r\n // 跳转详情\r\n toDetailHandler(e){\r\n // console.log(JSON.stringify(e.user))\r\n uni.navigateTo({ url: `/pages/index/detail?itemId=${e.id}&userInfo=${JSON.stringify(e.user)}` })\r\n },\r\n toIncrItemHandler(){\r\n uni.navigateTo({ url: '/pages/index/addItem' })\r\n }\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.topSearchBox {\r\n margin-right: 218rpx;\r\n z-index: 999;\r\n}\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.rightBox {\r\n position: relative;\r\n}\r\n.xia {\r\n width: 256rpx;\r\n height: 188rpx;\r\n padding: 24rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 20rpx;\r\n /* flex-direction: column; */\r\n background: #fff;\r\n position: fixed;\r\n top: 17vh;\r\n right: 14rpx;\r\n view {\r\n color: rgba(50, 50, 51, 1);\r\n font-size: 28rpx;\r\n }\r\n :nth-child(1) {\r\n padding-bottom: 22rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n }\r\n :nth-child(2) {\r\n padding-top: 22rpx;\r\n }\r\n}\r\n.incrBox{\r\n position: fixed;\r\n bottom: 120rpx;\r\n right: 24rpx;\r\n width: 120rpx;\r\nheight: 120rpx;\r\nborder-radius: 50%;\r\nopacity: 1;\r\nbackground: linear-gradient(90deg, rgba(140,72,255,1) 0%, rgba(123,43,255,1) 100%);\r\nbox-shadow: 0 4rpx 24rpx 0 rgba(107,36,224,0.4);\r\nimage{\r\n width: 64rpx;\r\nheight: 64rpx;\r\n}\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 // 1670227578479\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"
:
"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"
,
"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 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 _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.rightCate = 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!./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 <!-- @rightClick=\"rightClick\" :autoBack=\"true\" -->\r\n <u-navbar placeholder>\r\n <template #center>\r\n <view class=\"topSearchBox\">\r\n <u-search placeholder=\"请输入商家名称\" :clearabled=\"true\" :showAction=\"false\" v-model=\"searchValue\"></u-search>\r\n </view>\r\n </template>\r\n </u-navbar>\r\n <!-- @search=\"getList\" -->\r\n\r\n <!-- 粘性tabs -->\r\n <u-tabs\r\n :list=\"list1\"\r\n keyName=\"type_name\"\r\n :lineWidth=\"40\"\r\n lineColor=\"#6E16FF\"\r\n :inactiveStyle=\"inactiveStyle\"\r\n :activeStyle=\"activeStyle\"\r\n @click=\"toggleTabsHandler\"\r\n >\r\n <view slot=\"right\" style=\"padding-left: 4px\" @tap=\"rightCate = true\">\r\n <view class=\"rightBox\">\r\n <!-- <u-icon name=\"list\" size=\"21\" bold></u-icon> -->\r\n <image style=\"width: 32rpx; height: 32rpx; margin-right: 18rpx\" src=\"/static/toggle.png\" mode=\"scaleToFill\" />\r\n </view>\r\n </view>\r\n </u-tabs>\r\n </u-sticky>\r\n <view class=\"xia\" v-if=\"rightCate\">\r\n <view class=\"flexC\" @click=\"sortHandler(0)\">时间排序</view>\r\n <view class=\"flexC\" @click=\"sortHandler(1)\">热度排序</view>\r\n </view>\r\n\r\n <!-- 列表版心 -->\r\n <template v-if=\"list2.length\">\r\n <view class=\"mainBox\">\r\n <custom-waterfalls-flow :value=\"list2\" :seat=\"2\" @imageClick=\"toDetailHandler\">\r\n <view class=\"item\" v-for=\"(item, index) in list2\" :key=\"item.id\" 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=\"item.user.avatar\" mode=\"scaleToFill\" />\r\n <view>{{ item.user.user_name }}</view>\r\n </view>\r\n <view class=\"flexA\">\r\n <u-icon name=\"heart\"></u-icon>\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 <view style=\"margin-top: 300rpx\">\r\n <u-empty />\r\n </view>\r\n </template>\r\n \r\n <!-- 添加按钮 -->\r\n <view class=\"incrBox flexC\" @click=\"toIncrItemHandler\">\r\n <image\r\n src=\"/static/add.png\"\r\n mode=\"scaleToFill\"\r\n />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script>\r\nimport { getList, getTabsCate } from '@/api'\r\nexport default {\r\n data() {\r\n return {\r\n rightCate: false,\r\n list1: [],\r\n list2: [],\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 curPage: 1,\r\n last_page: 1,\r\n // 排序类型\r\n order: 1,\r\n // 商品列表 id\r\n goodlistId: 1,\r\n }\r\n },\r\n async created() {\r\n const { data } = await getTabsCate({\r\n page: 1,\r\n rows: 20,\r\n })\r\n this.list1 = data.data\r\n // this.list1.forEach((item,index) => item.name = data.data[index].type_name)\r\n \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 onLoad(){\r\n this.getList()\r\n },\r\n onReachBottom() {\r\n console.log('到底了')\r\n if (this.curPage === this.last_page) {\r\n uni.showToast({\r\n title: '没有更多数据了~',\r\n icon: 'none',\r\n mask: true,\r\n })\r\n } else {\r\n this.curPage = this.curPage + 1\r\n this.getList()\r\n }\r\n },\r\n methods: {\r\n async getList(val) {\r\n \r\n const { data } = await getList({\r\n type_id: this.goodlistId, //\tinteger\t否\t论坛类型\r\n keywords: val || '', //\tstring\t否\t关键词\r\n order: this.order, //\tstring\t是\t排序,1:评论,0:时间\r\n page: this.curPage, //\tinteger\t是\t页码\r\n rows: 6, //\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 this.last_page = data.last_page\r\n data.data.forEach(it=> it.image = JSON.parse(it.file).cover )\r\n this.list2 = this.list2.concat(data.data)\r\n // this.list2 = data.data\r\n // this.list2.forEach((item, index) => {\r\n // item.image = JSON.parse(data.data[index].file).imgList[0]\r\n // })\r\n \r\n }\r\n },\r\n\r\n // 筛选排序\r\n sortHandler(type) {\r\n this.list2 = []\r\n this.rightCate = !this.rightCate\r\n this.order = type\r\n this.getList()\r\n },\r\n\r\n // 切换tabs\r\n toggleTabsHandler(e) {\r\n this.list2 = []\r\n this.curPage = 1\r\n this.goodlistId = e.id\r\n this.getList()\r\n },\r\n\r\n // 跳转详情\r\n toDetailHandler(e){\r\n // console.log(JSON.stringify(e.user))\r\n uni.navigateTo({ url: `/pages/index/detail?itemId=${e.id}&userInfo=${JSON.stringify(e.user)}` })\r\n },\r\n toIncrItemHandler(){\r\n uni.navigateTo({ url: '/pages/index/addItem' })\r\n }\r\n },\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.topSearchBox {\r\n margin-right: 218rpx;\r\n z-index: 999;\r\n}\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.rightBox {\r\n position: relative;\r\n}\r\n.xia {\r\n width: 256rpx;\r\n height: 188rpx;\r\n padding: 24rpx 32rpx;\r\n box-sizing: border-box;\r\n border-radius: 20rpx;\r\n /* flex-direction: column; */\r\n background: #fff;\r\n position: fixed;\r\n top: 17vh;\r\n right: 14rpx;\r\n view {\r\n color: rgba(50, 50, 51, 1);\r\n font-size: 28rpx;\r\n }\r\n :nth-child(1) {\r\n padding-bottom: 22rpx;\r\n border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);\r\n }\r\n :nth-child(2) {\r\n padding-top: 22rpx;\r\n }\r\n}\r\n.incrBox{\r\n position: fixed;\r\n bottom: 120rpx;\r\n right: 24rpx;\r\n width: 120rpx;\r\nheight: 120rpx;\r\nborder-radius: 50%;\r\nopacity: 1;\r\nbackground: linear-gradient(90deg, rgba(140,72,255,1) 0%, rgba(123,43,255,1) 100%);\r\nbox-shadow: 0 4rpx 24rpx 0 rgba(107,36,224,0.4);\r\nimage{\r\n width: 64rpx;\r\nheight: 64rpx;\r\n}\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 // 1670231155114\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/list.wxml
查看文件 @
120cfb1
<view><u-sticky vue-id="8e0fffdc-1" bgColor="#fff" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('8e0fffdc-2')+','+('8e0fffdc-1')}}" placeholder="{{true}}" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search bind:input="__e" vue-id="{{('8e0fffdc-3')+','+('8e0fffdc-2')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:__l="__l"></u-search></view></u-navbar><u-tabs vue-id="{{('8e0fffdc-4')+','+('8e0fffdc-1')}}" list="{{list1}}" keyName="type_name" lineWidth="{{40}}" lineColor="#6E16FF" inactiveStyle="{{inactiveStyle}}" activeStyle="{{activeStyle}}" data-event-opts="{{[['^click',[['toggleTabsHandler']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['right']}}"><view style="padding-left:4px;" slot="right" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view class="rightBox"><image style="width:32rpx;height:32rpx;margin-right:4rpx;" src="/static/toggle.png" mode="scaleToFill"></image></view></view></u-tabs></u-sticky><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block><block wx:if="{{list2.length}}"><view class="mainBox"><custom-waterfalls-flow vue-id="8e0fffdc-5" value="{{list2}}" seat="{{2}}" data-event-opts="{{[['^imageClick',[['toDetailHandler']]]]}}" bind:imageClick="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list2}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="item" slot="slot{{index}}"><view class="title flexC">{{item.title}}</view><view class="flexJ"><view class="flexA headerBox"><image src="{{item.user.avatar}}" mode="scaleToFill"></image><view>{{item.user.user_name}}</view></view><view class="flexA"><u-icon vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" name="heart" bind:__l="__l"></u-icon><view class="numText">{{item.id}}</view></view></view></view></block></custom-waterfalls-flow></view></block><block wx:if="{{searchState==0}}"><view style="margin-top:300rpx;"><u-empty vue-id="8e0fffdc-7" bind:__l="__l"></u-empty></view></block><view data-event-opts="{{[['tap',[['toIncrItemHandler',['$event']]]]]}}" class="incrBox flexC" bindtap="__e"><image src="/static/add.png" mode="scaleToFill"></image></view></view>
\ No newline at end of file
<view><u-sticky vue-id="8e0fffdc-1" bgColor="#fff" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('8e0fffdc-2')+','+('8e0fffdc-1')}}" placeholder="{{true}}" bind:__l="__l" vue-slots="{{['center']}}"><view class="topSearchBox" slot="center"><u-search bind:input="__e" vue-id="{{('8e0fffdc-3')+','+('8e0fffdc-2')}}" placeholder="请输入商家名称" clearabled="{{true}}" showAction="{{false}}" value="{{searchValue}}" data-event-opts="{{[['^input',[['__set_model',['','searchValue','$event',[]]]]]]}}" bind:__l="__l"></u-search></view></u-navbar><u-tabs vue-id="{{('8e0fffdc-4')+','+('8e0fffdc-1')}}" list="{{list1}}" keyName="type_name" lineWidth="{{40}}" lineColor="#6E16FF" inactiveStyle="{{inactiveStyle}}" activeStyle="{{activeStyle}}" data-event-opts="{{[['^click',[['toggleTabsHandler']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['right']}}"><view style="padding-left:4px;" slot="right" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"><view class="rightBox"><image style="width:32rpx;height:32rpx;margin-right:18rpx;" src="/static/toggle.png" mode="scaleToFill"></image></view></view></u-tabs></u-sticky><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block><block wx:if="{{list2.length}}"><view class="mainBox"><custom-waterfalls-flow vue-id="8e0fffdc-5" value="{{list2}}" seat="{{2}}" data-event-opts="{{[['^imageClick',[['toDetailHandler']]]]}}" bind:imageClick="__e" bind:__l="__l" vue-slots="{{['default']}}"><block wx:for="{{list2}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="item" slot="slot{{index}}"><view class="title flexC">{{item.title}}</view><view class="flexJ"><view class="flexA headerBox"><image src="{{item.user.avatar}}" mode="scaleToFill"></image><view>{{item.user.user_name}}</view></view><view class="flexA"><u-icon vue-id="{{('8e0fffdc-6-'+index)+','+('8e0fffdc-5')}}" name="heart" bind:__l="__l"></u-icon><view class="numText">{{item.id}}</view></view></view></view></block></custom-waterfalls-flow></view></block><block wx:if="{{searchState==0}}"><view style="margin-top:300rpx;"><u-empty vue-id="8e0fffdc-7" bind:__l="__l"></u-empty></view></block><view data-event-opts="{{[['tap',[['toIncrItemHandler',['$event']]]]]}}" class="incrBox flexC" bindtap="__e"><image src="/static/add.png" mode="scaleToFill"></image></view></view>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论