You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
31 KiB
1 lines
31 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/index.vue?9872","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/index.vue?79ad","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/index.vue?3eb2","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/index.vue?59b8","uni-app:///pages/demandHall/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/index.vue?4ca9","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/index.vue?5709"],"names":["createPage","Page"],"mappings":"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","file":"pages/demandHall/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/demandHall/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=762bd5c0&\"\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=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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/demandHall/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=762bd5c0&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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 \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n<view class=\"dmandhall-page\">\r\n <view class=\"top-box acea-row row-between-wrapper\">\r\n <view class=\"top-l-box acea-row\">\r\n <view :class=\"'tab-item ' + (active == 1 ? 'tab-item-a' : '')\" data-i=\"1\" @tap=\"topTabClick\">资源供应</view>\r\n <view :class=\"'tab-item ' + (active == 2 ? 'tab-item-a' : '')\" data-i=\"2\" @tap=\"topTabClick\">需求广场</view>\r\n </view>\r\n <view class=\"top-r-box acea-row\">\r\n <!-- <image src=\"../../images/home/search2.png\"></image> -->\r\n <!-- <image src=\"../../images/home/message2.png\"></image> -->\r\n </view>\r\n\t\t<view class=\"resource-tabs acea-row row-around\" v-if=\"active == 1\">\r\n\t\t <view :class=\"'tab ' + (tabActive == 1 ? 'tab-a' : '')\" data-i=\"1\" @tap=\"tabClick\">资源列表</view>\r\n\t\t <view :class=\"'tab ' + (tabActive == 2 ? 'tab-a' : '')\" data-i=\"2\" @tap=\"tabClick\">企业列表</view>\r\n\t\t</view>\r\n\t\t<view class=\"screen-box acea-row row-between-wrapper\" v-if=\"active == 1\" >\r\n\t\t <view class=\"screen-result\">\r\n\t\t {{choseCagetory}}\r\n\t\t <text v-if=\"choseCagetory != '' && choseBusiness != ''\">-</text>\r\n\t\t {{choseBusiness}}\r\n\t\t </view>\r\n\t\t <view class=\"screen acea-row row-middle\" @tap=\"showDialog\">\r\n\t\t <text>筛选</text>\r\n\t\t <image src=\"/static/images/home/screen.png\"></image>\r\n\t\t </view>\r\n\t\t</view>\r\n </view>\r\n <!-- 资源供应 -->\r\n <view class=\"resource-box\" v-if=\"active == 1\">\r\n <view class=\"resource-list\">\r\n <view v-for=\"(item, index) in list\" :key=\"index\" class=\"resource-item acea-row-nowrap\" @tap=\"toResourceDetail\" :data-id=\"item.id\" v-if=\"tabActive == 1\">\r\n <view class=\"logo-box\">\r\n <image :src=\"item.resourceImgs[0]\" mode=\"aspectFill\"></image>\r\n </view>\r\n <view class=\"resource-info\">\r\n <view class=\"title\">{{item.title}}</view>\r\n <view class=\"tags-box\">\r\n <view class=\"tag-item\">{{item.cname}}</view>\r\n </view>\r\n <view class=\"desc line1\">{{item.detailedDescription}}</view>\r\n <view class=\"price\">¥{{item.capital}}</view>\r\n <view class=\"company-info\">\r\n\t\t\t\t\t\t<!-- {{item.enterpriseName}} -->\r\n <text class=\"line1\">{{item.enterpriseName}}</text>\r\n <!-- <text>武汉</text> -->\r\n </view>\r\n <view class=\"toMore-btn\">了解详情</view>\r\n </view>\r\n </view>\r\n <view v-for=\"(item, index) in companyList\" :key=\"index\" class=\"resource-item acea-row-nowrap\" v-if=\"tabActive == 2\" @tap=\"toCompanyDetail\" :data-id=\"item.id\">\r\n <view class=\"logo-box\">\r\n <view :class=\"'tips-item ' + (item.enterpriseType == 2 ? 'bg2' : '' )\">{{item.enterpriseType == 1 ? '企业' : '个人'}}</view>\r\n <image :src=\"item.enterpriseLogo\" mode=\"aspectFill\"></image>\r\n </view>\r\n <view class=\"resource-info\">\r\n <view class=\"title line1\">{{item.enterpriseName}}</view>\r\n <view class=\"tags-box\">\r\n <view class=\"tag-item\">{{item.cname}}</view>\r\n <!-- <view class=\"tag-item bgG\">IT软件</view>\r\n <view class=\"tag-item bgO\">APP开发</view> -->\r\n </view>\r\n <view class=\"desc line2\" v-if=\"item.enterpriseType == 1\">{{item.enterpriseTitle}}</view>\r\n <view class=\"anli-list acea-row row-between\">\r\n <view class=\"anli-item acea-row\">\r\n <image v-for=\"(item, index2) in item.imgPaths\" :key=\"index2\" mode=\"aspectFill\" :src=\"item\" v-if=\"index2 < 2\"></image>\r\n <!-- <text>购物商城优秀资源</text> -->\r\n </view>\r\n <!-- <view class=\"anli-item acea-row row-column\">\r\n <image src=\"../../images/home/item-bg.png\"></image>\r\n <text>购物商城优秀资源</text>\r\n </view> -->\r\n </view>\r\n <!-- <view class=\"comment\">“非常有责任心” , “老板阅历和经验很丰富”,“很好”</view> -->\r\n </view>\r\n </view>\r\n </view>\r\n\t\t<view class=\"no-more\">\r\n\t\t\t{{loading ? '加载更多...' : '没有更多啦...'}}\r\n\t\t</view>\r\n </view>\r\n <!-- 需求 -->\r\n <view class=\"company-list-box\" v-if=\"active == 2\">\r\n <!-- <view class=\"screen-box acea-row row-between-wrapper\">\r\n <view class=\"screen-result\">IT软件 · 企业网站</view>\r\n <view class=\"screen-result\"> </view>\r\n <view class=\"screen acea-row row-middle\" @tap=\"showDialog\">\r\n <text>筛选</text>\r\n <image src=\"/static/images/home/screen.png\"></image>\r\n </view>\r\n </view> -->\r\n <view class=\"company-list\">\r\n <view v-for=\"(item, index) in list\" :key=\"index\" class=\"company-item\" :data-id=\"item.id\" @tap=\"toNeedsDetail\">\r\n <view class=\"title-box acea-row row-between\">\r\n <view class=\"title line1\">{{item.title}}</view>\r\n <view class=\"price\">{{item.capital}}</view>\r\n </view>\r\n <view class=\"tags-box\">\r\n <view class=\"tag-item\">{{item.cname}}</view>\r\n </view>\r\n <view class=\"desc line2\">{{item.detailedDescription}}</view>\r\n <view class=\"btn-box acea-row row-between row-middle\">\r\n <view class=\"end-time\">{{item.resourceEndTime}}截止报名</view>\r\n <view class=\"toMore-btn\">了解详情</view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"mask-box\" v-if=\"showScreenDialog\">\r\n <view :class=\"'screen-dialog-box ' + (showScreenDialog ? 'move' : '')\">\r\n <view class=\"screen-list\">\r\n <view class=\"screen-item\">\r\n <view class=\"screen-title\">所有服务</view>\r\n <view class=\"acea-row\">\r\n <view v-for=\"(item, index) in cagetoryList\" :key=\"index\" :class=\"'item ' + (cagetoryActive == index ? 'item-active' : '')\" @tap=\"cagetoryClick\" :data-i=\"index\" :data-item=\"item\">{{item.cagetoryName}}</view>\r\n </view>\r\n </view>\r\n <!-- <view class=\"screen-item\">\r\n <view class=\"screen-title\">主题</view>\r\n <view class=\"acea-row\">\r\n <view class=\"item\" wx:for=\"{{9}}\" wx:key=\"index\">网站开发</view>\r\n </view>\r\n </view> -->\r\n <!-- <view class=\"screen-item\">\r\n <view class=\"screen-title\">选择城市</view>\r\n <view class=\"acea-row\">\r\n <view class=\"item\" wx:for=\"{{5}}\" wx:key=\"index\">武汉</view>\r\n </view>\r\n </view> -->\r\n <!-- <view class=\"screen-item\">\r\n <view class=\"screen-title\">区间价格</view>\r\n <view class=\"price-box acea-row row-middle\">\r\n <view class=\"low-price\"><input type=\"text\" placeholder=\"最低价\" /></view>\r\n <view class=\"across-line\"></view>\r\n <view class=\"low-price\"><input type=\"text\" placeholder=\"最高价\" /></view>\r\n </view>\r\n </view> -->\r\n <view class=\"screen-item\">\r\n <view class=\"screen-title\">商家身份<text class=\"fz20\">(所有商家均实名认证)</text></view>\r\n <view class=\"acea-row\">\r\n <view :class=\"'item ' + (enterpriseType == 2 ? 'item-active' : '')\" @tap=\"businessChange\" data-name=\"个人认证\" data-type=\"2\">个人认证</view>\r\n <view :class=\"'item ' + (enterpriseType == 1 ? 'item-active' : '')\" @tap=\"businessChange\" data-name=\"企业认证\" data-type=\"1\">企业认证</view>\r\n </view>\r\n </view>\r\n <view class=\"submit-box acea-row\">\r\n <view class=\"btn reset\" @tap=\"resetClick\">重置</view>\r\n <view class=\"btn finish\" @tap=\"finishClick\">完成</view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n <tabbar :current=\"currentTabIndex\" @click=\"tabBarClick\"></tabbar>\r\n</view>\r\n</template>\r\n\r\n<script>\r\n// pages/demandHall/index.js\r\nconst app = getApp();\r\nimport tabbar from \"../../tabbarComponent/tabbar\";\r\n\r\nexport default {\r\n data() {\r\n return {\r\n tabbar: {},\r\n active: '1',\r\n // 1资源供应,2需求广场\r\n tabActive: '1',\r\n // 1资源列表,2企业列表\r\n list: [],\r\n showScreenDialog: false,\r\n companyList: [],\r\n pageSize: 5,\r\n pageNumber: 0,\r\n loading: true,\r\n //是否加载更多\r\n cagetoryList: [],\r\n // 分类列表\r\n enterpriseType: '',\r\n //筛选企业/个人\r\n resourceCagetoryId: '',\r\n //筛选分类\r\n choseCagetory: '',\r\n choseBusiness: '',\r\n cagetoryActive: \"\",\r\n size: 0,\r\n cName: \"\",\r\n\t\t\tcurrentTabIndex: 1,\r\n };\r\n },\r\n\r\n components: {\r\n tabbar\r\n },\r\n props: {},\r\n\r\n /**\r\n * 生命周期函数--监听页面加载\r\n */\r\n onLoad: function (options) {\r\n this.getCagetoryList();\r\n },\r\n\r\n /**\r\n * 页面上拉触底事件的处理函数\r\n */\r\n onReachBottom: function () {\r\n this.setData({\r\n pageNumber: this.pageNumber + 1\r\n });\r\n this.getPageData();\r\n },\r\n\r\n /**\r\n * 生命周期函数--监听页面显示\r\n */\r\n onShow: function () {\r\n this.getPageData();\r\n },\r\n\r\n /**\r\n * 页面相关事件处理函数--监听用户下拉动作\r\n */\r\n onPullDownRefresh: function () {\r\n\t\tthis.setData({\r\n\t\t loading: true,\r\n\t\t pageNumber: 0,\r\n\t\t});\r\n\t\t\r\n this.getPageData();\r\n },\r\n methods: {\r\n\t\ttabBarClick(index){\r\n\t\t\tconsole.log('返回tabBar索引:' + index)\r\n\t\t\tthis.currentTabIndex = index\r\n\t\t},\r\n topTabClick(e) {\r\n this.setData({\r\n active: e.currentTarget.dataset.i,\r\n loading: true,\r\n pageNumber: 0,\r\n list: [],\r\n enterpriseType: '',\r\n cagetoryActive: null,\r\n resourceCagetoryId: ''\r\n });\r\n\t\t\tconsole.log(this.active)\r\n this.getPageData();\r\n },\r\n\r\n tabClick(e) {\r\n this.setData({\r\n tabActive: e.currentTarget.dataset.i,\r\n loading: true,\r\n pageNumber: 0,\r\n pageSize: 5,\r\n // enterpriseType: '',\r\n cagetoryActive: null // resourceCagetoryId:''\r\n\r\n });\r\n\r\n if (e.currentTarget.dataset.i == 2) {\r\n this.getCompanyList();\r\n } else {\r\n this.getPageData();\r\n }\r\n },\r\n\r\n showDialog() {\r\n this.setData({\r\n showScreenDialog: true\r\n });\r\n },\r\n\r\n toResourceDetail(e) {\r\n let id = e.currentTarget.dataset.id;\r\n uni.navigateTo({\r\n url: '/pages/demandHall/resourcesDetail/index?id=' + id\r\n });\r\n },\r\n\r\n toCompanyDetail(e) {\r\n let id = e.currentTarget.dataset.id;\r\n uni.navigateTo({\r\n url: '/pages/demandHall/companyDetail/index?id=' + id\r\n });\r\n },\r\n\r\n toNeedsDetail(e) {\r\n let id = e.currentTarget.dataset.id;\r\n uni.navigateTo({\r\n url: '/pages/demandHall/needsDetail/index?id=' + id\r\n });\r\n },\r\n\r\n getCagetoryList() {\r\n app.http('get', 'ResourcesCagetory/listResourcesCagetory').then(res => {\r\n if (res.data.success) {\r\n this.setData({\r\n cagetoryList: res.data.data\r\n });\r\n }\r\n });\r\n },\r\n\r\n cagetoryClick(e) {\r\n let item = e.currentTarget.dataset.item;\r\n let i = e.currentTarget.dataset.i;\r\n console.log(item);\r\n this.setData({\r\n cagetoryActive: i,\r\n resourceCagetoryId: item.id,\r\n choseCagetory: item.cagetoryName\r\n });\r\n },\r\n\r\n businessChange(e) {\r\n let type = e.currentTarget.dataset.type;\r\n let name = e.currentTarget.dataset.name;\r\n this.setData({\r\n choseBusiness: name,\r\n enterpriseType: type\r\n });\r\n },\r\n\r\n finishClick() {\r\n this.setData({\r\n loading: true,\r\n pageNumber: 0,\r\n pageSize: 5\r\n });\r\n this.tabActive == 1 ? this.getPageData() : this.getCompanyList();\r\n this.setData({\r\n showScreenDialog: false\r\n });\r\n },\r\n\r\n resetClick() {\r\n this.setData({\r\n cName: '',\r\n cagetoryActive: null,\r\n resourceCagetoryId: '',\r\n enterpriseType: '',\r\n choseBusiness: '',\r\n choseCagetory: ''\r\n });\r\n },\r\n\r\n getPageData() {\r\n if (this.loading) {\r\n app.http('post', `Resources/listResources?page=${this.pageNumber}&size=${this.pageSize}`, {\r\n resourceType: this.active,\r\n resourceCagetoryId: this.resourceCagetoryId,\r\n enterpriseType: this.enterpriseType\r\n }).then(res => {\r\n if (res.data.success) {\r\n uni.stopPullDownRefresh();\r\n\r\n if (res.data.data.content.length < this.pageSize) {\r\n this.setData({\r\n loading: false\r\n });\r\n }\r\n\r\n if (this.pageNumber > 0) {\r\n this.setData({\r\n list: this.list.concat(res.data.data.content)\r\n });\r\n } else {\r\n this.setData({\r\n list: res.data.data.content\r\n });\r\n }\r\n }\r\n });\r\n } else {\r\n uni.stopPullDownRefresh();\r\n }\r\n },\r\n\r\n getCompanyList() {\r\n app.http('post', `Enterprise/listEnterprise?page=${this.pageNumber}&size=${this.pageSize}`, {\r\n industryId: this.resourceCagetoryId,\r\n enterpriseType: this.enterpriseType\r\n }).then(res => {\r\n if (res.data.success) {\r\n this.setData({\r\n companyList: res.data.data.content\r\n });\r\n }\r\n });\r\n }\r\n\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* pages/demandHall/index.wxss */\r\nimage{\r\n border-radius: 8rpx;\r\n}\r\n.dmandhall-page{\r\n padding-bottom: 210rpx;\r\n min-height: 100vh;\r\n font-size: 28rpx;\r\n background: #F5F5F5;\r\n}\r\n.top-box{\r\n width: 100%;\r\n padding: 16rpx 0;\r\n background: #fff;\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tz-index: 99;\r\n}\r\n.top-l-box{\r\n\tpadding-left: 40rpx;\r\n}\r\n.tab-item{\r\n width: 162rpx;\r\n height: 40rpx;\r\n line-height: 40rpx;\r\n text-align: center;\r\n margin-right: 12rpx;\r\n font-size: 28rpx;\r\n color: #BFBFBF;\r\n font-weight: 500;\r\n}\r\n.tab-item-a{\r\n font-size: 36rpx;\r\n color: #FF5100;\r\n}\r\n.top-r-box image{\r\n width: 36rpx;\r\n height: 36rpx;\r\n margin-left: 30rpx;\r\n}\r\n.resource-tabs{\r\n width: 100%;\r\n padding-top: 10rpx;\r\n background: #fff;\r\n border-bottom: 2rpx solid #EEEEEE;\r\n}\r\n.tab{\r\n width: 162rpx;\r\n padding: 26rpx 0;\r\n font-size: 28rpx;\r\n color: #BFBFBF;\r\n position: relative;\r\n font-weight: 500;\r\n}\r\n.tab::after{\r\n display: block;\r\n content: '';\r\n width: 50rpx;\r\n height: 16rpx;\r\n border-radius: 8rpx;\r\n background: #FF5100;\r\n position: absolute;\r\n bottom: -8rpx;\r\n left: 50%;\r\n margin-left: -50rpx;\r\n opacity: 0;\r\n transform:scaleX(0);\r\n transition: all .2s ease,opacity .15s ease;\r\n}\r\n.tab-a{\r\n color: #333;\r\n}\r\n.tab-a::after{\r\n opacity: 1;\r\n transform: scaleX(1);\r\n}\r\n.no-more{\r\n\ttext-align: center;\r\n\tline-height: 38rpx;\r\n\tfont-size: 28rpx;\r\n\tcolor: #9C9C9C;\r\n}\r\n\r\n.screen-box{\r\n width: 100%;\r\n height: 94rpx;\r\n padding: 0 38rpx;\r\n color: #666;\r\n background: #fff;\r\n}\r\n.screen-result{\r\n font-size: 28rpx;\r\n color: #FF5100;\r\n}\r\n.screen image{\r\n width: 27rpx;\r\n height: 27rpx;\r\n margin-left: 6rpx;\r\n}\r\n\r\n.resource-list{\r\n width: 100%;\r\n padding: 290rpx 40rpx 24rpx;\r\n}\r\n.resource-item{\r\n width: 100%;\r\n min-height: 302rpx;\r\n background: #fff;\r\n border-radius: 12rpx;\r\n padding: 20rpx;\r\n margin-bottom: 20rpx;\r\n position: relative;\r\n}\r\n.logo-box{\r\n width: 154rpx;\r\n height: 154rpx;\r\n margin-right: 20rpx;\r\n position: relative;\r\n}\r\n.logo-box image{\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.tips-item {\r\n padding: 2rpx 6rpx;\r\n line-height: 28rpx;\r\n font-size: 20rpx;\r\n color: #fff;\r\n background: rgba(255, 81, 0, 0.63);\r\n border-radius: 8rpx;\r\n margin-right: 14rpx;\r\n position: absolute;\r\n top: 4rpx;\r\n left: 4rpx;\r\n}\r\n.bg2 {\r\n background: rgba(255, 170, 0, 0.63);\r\n}\r\n.resource-info{\r\n width: calc(100% - 170rpx);\r\n}\r\n.resource-item .title{\r\n font-size: 32rpx;\r\n font-weight: 500;\r\n line-height: 44rpx;\r\n color: #1D1D1D;\r\n}\r\n.desc{\r\n font-size: 24rpx;\r\n color: #666666;\r\n line-height: 34rpx;\r\n}\r\n.price{\r\n color: #FF5100;\r\n line-height: 40rpx;\r\n font-weight: 600;\r\n margin: 10rpx 0 40rpx;\r\n}\r\n.company-info{\r\n\twidth: 66%;\r\n color: #A7A7A7;\r\n font-size: 24rpx;\r\n}\r\n.company-info text{\r\n display: inline-block;\r\n margin-right: 18rpx;\r\n}\r\n.tags-box{\r\n margin: 6rpx 0 10rpx;\r\n}\r\n.tag-item{\r\n width: 112rpx;\r\n height: 36rpx;\r\n display: inline-block;\r\n line-height: 34rpx;\r\n text-align: center;\r\n font-size: 20rpx;\r\n border: 2rpx solid #FFAA00;\r\n color: #FFAA00;\r\n border-radius: 4rpx;\r\n margin-right: 8rpx;\r\n}\r\n.bgG{\r\n border: 1rpx solid #3A9EFA;\r\n color: #3A9EFA;\r\n}\r\n.bgO{\r\n border: 1rpx solid #FC9367;\r\n color: #FC9367;\r\n}\r\n.toMore-btn{\r\n width: 164rpx;\r\n height: 44rpx;\r\n background: linear-gradient(141deg, #FFA782 0%, #FF6D31 100%);\r\n border-radius: 8rpx;\r\n font-size: 28rpx;\r\n font-weight: bold;\r\n line-height: 40rpx;\r\n color: #FFFFFF;\r\n text-align: center;\r\n line-height: 44rpx;\r\n position: absolute;\r\n right: 20rpx;\r\n bottom: 20rpx;\r\n}\r\n.anli-list{\r\n font-size: 24rpx;\r\n color: #666;\r\n margin: 24rpx 0 20rpx;\r\n}\r\n.anli-item image{\r\n width: 220rpx;\r\n height: 136rpx;\r\n margin-right: 8rpx;\r\n}\r\n.comment{\r\n font-size: 20rpx;\r\n color: #FF6D31;\r\n}\r\n.company-list-box{\r\n width: 100%;\r\n background: #fff;\r\n\tpadding: 90rpx 0 0;\r\n}\r\n.company-list{\r\n width: 100%;\r\n border-top: 2rpx solid #EEEEEE;\r\n}\r\n.company-item{\r\n width: 100%;\r\n padding: 40rpx;\r\n border-bottom: 2rpx solid #EEEEEE;\r\n}\r\n.title-box .title{\r\n width: 550rpx;\r\n}\r\n.title-box .price{\r\n margin: 0;\r\n}\r\n.company-item .tags-box{\r\n margin: 20rpx 0;\r\n}\r\n.btn-box{\r\n margin-top: 20rpx;\r\n font-size: 24rpx;\r\n color: #707070;\r\n}\r\n.btn-box .toMore-btn{\r\n position: static;\r\n}\r\n\r\n.mask-box{\r\n width: 100%;\r\n height: 100vh;\r\n background: rgba(0,0,0,.6);\r\n position:fixed;\r\n top: 0;/* #ifdef H5 */\r\n top: calc(88rpx + constant(safe-area-inset-top));\r\n top: calc(88rpx + env(safe-area-inset-top));/* #endif */\r\n left: 0;\r\n z-index: 9999;\r\n}\r\n.screen-dialog-box{\r\n width: 602rpx;\r\n height: 100%;\r\n /* padding-bottom: 160rpx; */\r\n overflow-y: scroll;\r\n background-color: #fff;\r\n position: absolute;\r\n top: 0;\r\n right: 0rpx;\r\n animation: move 200ms ease;\r\n}\r\n/* .move{\r\n right: 0rpx;\r\n} */\r\n@keyframes move{\r\n 0%{\r\n transform: translateX(800rpx);\r\n }\r\n 100%{\r\n transform: translateX(0rpx);\r\n }\r\n}\r\n.screen-item{\r\n width: 100%;\r\n padding: 0 38rpx;\r\n padding-bottom: 22rpx;\r\n border-bottom: 2rpx solid #EEEEEE;\r\n}\r\n.screen-title{\r\n font-size: 24rpx;\r\n color: #000;\r\n margin-bottom: 32rpx;\r\n}\r\n.screen-item{\r\n padding-top: 40rpx;\r\n}\r\n\r\n.screen-item .item{\r\n width: 162rpx;\r\n height: 48rpx;\r\n line-height: 48rpx;\r\n text-align: center;\r\n font-size: 24rpx;\r\n color: #666666;\r\n background: #F6F6F6;\r\n border-radius: 4rpx;\r\n margin-bottom: 20rpx;\r\n margin-right: 20rpx;\r\n}\r\n.screen-item .item:nth-child(3n){\r\n margin-right: 0;\r\n}\r\n.screen-item .item-active{\r\n border: 2rpx solid #FF6E33;\r\n color: #FE7D26;\r\n background: #FDEFE6;\r\n}\r\n.across-line{\r\n width: 44rpx;\r\n height: 2rpx;\r\n background: #ACABAB;\r\n margin: 0 12rpx;\r\n}\r\n.low-price{\r\n width: 228rpx;\r\n height: 60rpx;\r\n background: #F6F5F5;\r\n border-radius: 4rpx;\r\n}\r\n.low-price input{\r\n width: 100%;\r\n height: 100%;\r\n text-align: center;\r\n}\r\n.fz20{\r\n font-size: 20rpx;\r\n color: #393939;\r\n}\r\n.submit-box{\r\n width: 602rpx;\r\n height: 100rpx;\r\n box-shadow: 2rpx 0px 12rpx rgba(0, 0, 0, 0.16);\r\n position: fixed;\r\n bottom: 0;\r\n right: 0;\r\n}\r\n.submit-box .btn{\r\n width: 50%;\r\n height: 100%;\r\n line-height: 100rpx;\r\n text-align: center;\r\n}\r\n.submit-box .finish{\r\n background: #FF660C;\r\n color: #fff;\r\n}\r\n</style>","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635767016586\n var cssReload = require(\"D:/Program Files/HBuilderX.3.1.13.20210514/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":""} |