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
32 KiB
1 lines
32 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/home/index.vue?2357","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/home/index.vue?8402","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/home/index.vue?54f9","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/home/index.vue?fba2","uni-app:///pages/home/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/home/index.vue?7ff7","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/home/index.vue?e7f2","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/utils/subutil.wxs?dee6","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/utils/subutil.wxs?96f7"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,2F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkT;AAClT;AACyD;AACL;AACa;;;AAGjE;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gRAAM;AACR,EAAE,yRAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oRAAU;AACZ;AACA;;AAEA;AACoO;AACpO,WAAW,iPAAM,iBAAiB,yPAAM;;AAExC;AACe,gF;;;;;;;;;;;;AC3Bf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;A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AAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA,wCAAmY,CAAgB,gcAAG,EAAC,C;;;;;;;;;;;;ACAvZ;AAAe;AACf;AACA;AACA;;AAEA,M","file":"pages/home/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/home/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=71e217db&filter-modules=eyJzcGwiOnsidHlwZSI6InNjcmlwdCIsImNvbnRlbnQiOiIiLCJzdGFydCI6NzE1MywiYXR0cnMiOnsibW9kdWxlIjoic3BsIiwibGFuZyI6Ind4cyIsInNyYyI6Ii4uLy4uL3V0aWxzL3N1YnV0aWwud3hzIn0sImVuZCI6NzE1M319&\"\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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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\n/* custom blocks */\nimport block0 from \"../../utils/subutil.wxs?vue&type=custom&index=0&blockType=script&issuerPath=%2FUsers%2Fyanghao%2FDesktop%2F%E7%A6%85%E6%98%93%E4%BA%91%2FzhaoshangMiniApp-uniapp%2Fpages%2Fhome%2Findex.vue&module=spl&lang=wxs\"\nif (typeof block0 === 'function') block0(component)\n\ncomponent.options.__file = \"pages/home/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=71e217db&filter-modules=eyJzcGwiOnsidHlwZSI6InNjcmlwdCIsImNvbnRlbnQiOiIiLCJzdGFydCI6NzE1MywiYXR0cnMiOnsibW9kdWxlIjoic3BsIiwibGFuZyI6Ind4cyIsInNyYyI6Ii4uLy4uL3V0aWxzL3N1YnV0aWwud3hzIn0sImVuZCI6NzE1M319&\"","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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n<view class=\"home-page\">\n <view class=\"top-bg-box\" @tap=\"toGuidePage\">\n <image src=\"https://download.cyjyyjy.com/index-top-bg2.png\"></image>\n </view>\n\n <!-- <view class=\"page-top-box\">\n <image src=\"../../images/home/top-bg.png\" class=\"top-bg\"></image>\n <view class=\"page-title\" style=\"top:{{menuTop}}px;height:{{menuHeight}}px;line-height: {{menuHeight}}px;\">禅意云生态</view>\n <view class=\"top-box-content\" style=\"top: {{CustomBar + menuHeight}}rpx;\">\n <view class=\"search-box acea-row row-between-wrapper\">\n <view class=\"localtion-box acea-row row-middle\">\n <image src=\"../../images/home/localtion.png\"></image>\n <text>{{city}}</text>\n </view>\n <view class=\"search acea-row row-middle\">\n <image src=\"../../images/home/search.png\"></image>\n <text>大家都在搜 APP开发</text>\n </view>\n <image class=\"message-icon\" src=\"../../images/home/message.png\"></image>\n </view>\n <view class=\"home-menu-box\">\n <view class=\"menu-list acea-row row-between\">\n <view class=\"menu-item acea-row row-column row-middle\" wx:for=\"{{menuList}}\" wx:key=\"index\">\n <image src=\"{{item.icon}}\"></image>\n <text>{{item.text}}</text>\n </view>\n </view>\n </view>\n </view>\n </view> -->\n <!-- 招商会 -->\n <view class=\"investment-box\">\n <view class=\"investment-title-box acea-row row-between-wrapper\">\n <view class=\"acea-row\">\n <text class=\"fz32\">热门活动</text>\n <view class=\"hot\">热</view>\n </view>\n <!-- <view class=\"more acea-row row-middle\">\n <text>全部</text>\n <image src=\"/static/images/home/arrow-r.png\"></image>\n </view> -->\n </view>\n <view class=\"investement-list\">\n <scroll-view class=\"scroll-view_H\" scroll-x=\"true\">\n <view v-for=\"(item, index) in recommendActivity\" v-if=\"index < 3\" :key=\"index\" class=\"investment-item\" @tap=\"toActiveDetail\" :data-id=\"item.id\">\n <image class=\"item-bg\" :src=\"item.images\" mode=\"aspectFill\"></image>\n <view class=\"tips-box acea-row row-right\">\n <view v-for=\"(flag, index2) in spl.spl(item.flag)\" :key=\"index2\" :class=\"'tips-item ' + (index2%2 == 0 ? 'bg2' : '' )\" v-if=\"index2 < 3\">{{flag}}</view>\n </view>\n <view class=\"item-info-box acea-row row-column row-center\">\n <view class=\"address-box line1\">\n <image src=\"/static/images/home/localtion.png\"></image>\n <text>{{item.address}}</text>\n </view>\n <view class=\"time-box\">\n <image src=\"/static/images/home/time.png\"></image>\n <text>{{item.activityStartTime}}</text>\n </view>\n </view>\n </view>\n </scroll-view>\n </view>\n </view>\n <!-- 尊享福利 -->\n <!-- <view class=\"welfare-box\">\n <view class=\"welfare-title\">尊享福利</view>\n <view class=\"welfare-list-box\">\n <scroll-view class=\"scroll-view_H\" scroll-x=\"true\">\n <view class=\"welfare-item\" wx:for=\"{{3}}\" wx:key=\"index\">\n <view class=\"item-box acea-row\">\n <image src=\"../../images/home/welfare1.png\"></image>\n <view class=\"welfare-info-box acea-row row-column row-between\">\n <view>\n <view class=\"w-name\">保时捷Porsche-Panamera 4S E-Hybrid 行政加长版</view>\n <view class=\"w-address\">武汉光谷保时捷中心</view>\n </view>\n <view>\n <view class=\"w-price\">140万</view>\n <view class=\"w-oldPrice\">市场价约为¥157万</view>\n </view>\n </view>\n <view class=\"buy-btn\">立即抢购</view>\n </view>\n <view class=\"item-box acea-row\">\n <image src=\"../../images/home/welfare1.png\"></image>\n <view class=\"welfare-info-box acea-row row-column row-between\">\n <view>\n <view class=\"w-name\">保时捷Porsche-Panamera 4S E-Hybrid 行政加长版</view>\n <view class=\"w-address\">武汉光谷保时捷中心</view>\n </view>\n <view>\n <view class=\"w-price\">140万</view>\n <view class=\"w-oldPrice\">市场价约为¥157万</view>\n </view>\n </view>\n <view class=\"buy-btn\">立即抢购</view>\n </view>\n </view>\n </scroll-view>\n </view>\n </view> -->\n <!-- 供需模块 -->\n <view class=\"demandhall-box\">\n <view class=\"tabs-box acea-row row-around\">\n <view :class=\"'tab-item ' + (active == 1 ? 'tab-item-a' : '')\" data-i=\"1\" @tap=\"tabClick\">最新供应</view>\n <view :class=\"'tab-item ' + (active == 2 ? 'tab-item-a' : '')\" data-i=\"2\" @tap=\"tabClick\">需求广场</view>\n <!-- <view class=\"tab-item {{active == 3 ? 'tab-item-a' : ''}}\" data-i=\"3\" bindtap=\"tabClick\">金牌投资人</view> -->\n </view>\n <view class=\"list-box\" v-if=\"active == 1\">\n <view v-for=\"(item, index) in resourcesList\" :key=\"index\" class=\"item\">\n <view class=\"item-top\">\n <view class=\"project-name line1\">{{item.title}}</view>\n <view class=\"tag\">{{item.cname}}</view>\n <view class=\"desc line2\">{{item.detailedDescription}}</view>\n <view class=\"buy-btn\" @tap=\"toResourcesDetail\" :data-id=\"item.id\">了解详情</view>\n </view>\n <view class=\"company-box acea-row\">\n <image :src=\"item.enterpriseDto.enterpriseLogo\" class=\"logo\"></image>\n <view class=\"company-info acea-row row-column row-between\">\n <view class=\"company-name line1 fz28\">{{item.enterpriseDto.enterpriseName}}</view>\n <view class=\"company-name line2 fz24\">{{item.enterpriseDto.enterpriseTitle}}</view>\n <view class=\"tags-box acea-row\">\n <!-- <view class=\"tag-item fz20\">网站建设</view> -->\n <view class=\"tag-item fz20 bgG\">{{item.cname}}</view>\n <!-- <view class=\"tag-item fz20 bgO\">网站建设</view> -->\n </view>\n </view>\n <view class=\"into-btn acea-row row-center-wrapper\" @tap=\"toCompanyDetail\" :data-id=\"item.enterpriseId\">\n <image src=\"/static/images/home/company-icon.png\"></image>\n <text>进入企业</text>\n </view>\n </view>\n </view>\n </view>\n <view class=\"list-box\" v-if=\"active == 2\">\n <view v-for=\"(item, index) in demandList\" :key=\"index\" class=\"item\" @tap=\"toNeedDetail\" :data-id=\"item.id\">\n <view class=\"item-top\">\n <view class=\"project-name\">{{item.title}}</view>\n <view class=\"desc line2\">{{item.detailedDescription}}</view>\n <view class=\"tags-box tags-box2 acea-row\">\n <view class=\"tag-item fz20\">{{item.enterpriseDto.cname}}</view>\n <!-- <view class=\"tag-item fz20 bgG\">网站建设</view>\n <view class=\"tag-item fz20 bgO\">网站建设</view> -->\n </view>\n <view class=\"price\">{{item.capital}}</view>\n </view>\n </view>\n </view>\n </view>\n <view class=\"to-demandhall acea-row row-center row-middle\" @tap=\"toTab2\">\n <text>更多内容去供需大厅</text>\n <image src=\"/static/images/home/arrow-r.png\"></image>\n </view>\n <tabbar :current=\"currentTabIndex\" @click=\"tabBarClick\"></tabbar>\n</view>\n</template>\n\n<script module=\"spl\" lang=\"wxs\" src=\"../../utils/subutil.wxs\"></script>\n\n<script>\n// index.js\n// 获取应用实例\nconst app = getApp();\nimport util from '../../utils/util';\nvar QQMapWX = require(\"../../utils/qqmap-wx-jssdk.min.js\");\nvar qqmapsdk;\nimport tabbar from \"../../tabbarComponent/tabbar\";\n\nexport default {\n data() {\n return {\n menuList: [\n\t\t\t\t{\n\t\t\t\t\ticon: \"/static/images/home/menu1.png\",\n\t\t\t\t\ttext: 'IT制作'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu2.png\",\n\t\t\t\t\ttext: 'logo设计'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu3.png\",\n\t\t\t\t\ttext: '文案策划'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu4.png\",\n\t\t\t\t\ttext: 'app开发'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu5.png\",\n\t\t\t\t\ttext: '装修服务'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu6.png\",\n\t\t\t\t\ttext: '软件定制'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu7.png\",\n\t\t\t\t\ttext: '法律服务'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu8.png\",\n\t\t\t\t\ttext: '小程序'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu9.png\",\n\t\t\t\t\ttext: '网络营销'\n\t\t\t\t}, {\n\t\t\t\t\ticon: \"/static/images/home/menu10.png\",\n\t\t\t\t\ttext: '全部分类'\n\t\t\t\t},\n\t\t\t],\n CustomBar: app.globalData.CustomBar,\n menuHeight: app.globalData.menuHeight,\n navHeight: app.globalData.navHeight,\n menuTop: app.globalData.menuTop,\n active: 1,\n recommendActivity: [],\n demandList: [],\n resourcesList: [],\n province: '',\n city: '',\n cagetoryList: \"\",\n latitude: \"\",\n longitude: \"\",\n\t\t\tcurrentTabIndex: 0\n };\n },\n\n components: {\n tabbar\n },\n props: {},\n\tonShareAppMessage: function(res) {\n\t\treturn {\n\t\t\ttitle: '禅易云生态',\n\t\t\tpath: '/pages/home/index',\n\t\t}\n\t},\n onLoad() {\n\t\tuni.hideTabBar();\n // app.globalData.editTabbar();\n\t\tthis.pagePath = '/pages/home/index'\n this.getCagetoryList();\n qqmapsdk = new QQMapWX({\n key: 'UVEBZ-M3VRS-CO4OH-6F5QZ-X7FB7-SVFOX' //这里自己的key秘钥进行填充\n\n });\n this.getLocation();\n },\n onPullDownRefresh: function () {\n //调用刷新时将执行的方法\n this.getCagetoryList();\n },\n methods: {\n\t\ttabBarClick(index){\n\t\t\t// console.log('返回tabBar索引:' + index)\n\t\t\tthis.currentTabIndex = index\n\t\t},\n toGuidePage() {\n uni.navigateTo({\n url: '/pages/guide/index'\n });\n },\n\n toActiveDetail(e) {\n let id = e.currentTarget.dataset.id;\n uni.navigateTo({\n url: '/pages/activity/detail/index?id=' + id\n });\n },\n\n tabClick(e) {\n this.setData({\n active: e.currentTarget.dataset.i\n });\n },\n\n toTab2() {\n uni.switchTab({\n url: '/pages/demandHall/index'\n });\n },\n\n getCagetoryList() {\n uni.showNavigationBarLoading();\n app.http('get', 'index').then(res => {\n if (res.data.success) {\n res.data.data.recommendActivity.content.forEach(item => {\n item.activityStartTime = util.getWeek(item.activityStartTime);\n });\n this.setData({\n demandList: res.data.data.demandList,\n resourcesList: res.data.data.resourcesDtos,\n cagetoryList: res.data.data.cagetoryDtos,\n recommendActivity: res.data.data.recommendActivity.content\n }); //隐藏导航条加载动画\n uni.hideNavigationBarLoading(); //停止下拉刷新\n uni.stopPullDownRefresh();\n }\n });\n },\n\n toResourcesDetail(e) {\n let id = e.currentTarget.dataset.id;\n uni.navigateTo({\n url: '/pages/demandHall/resourcesDetail/index?id=' + id\n });\n },\n\n toCompanyDetail(e) {\n let id = e.currentTarget.dataset.id;\n uni.navigateTo({\n url: '/pages/demandHall/companyDetail/index?id=' + id\n });\n },\n\n toNeedDetail(e) {\n let id = e.currentTarget.dataset.id;\n uni.navigateTo({\n url: '/pages/demandHall/needsDetail/index?id=' + id\n });\n },\n\n getLocation() {\n let vm = this;\n uni.getLocation({\n type: 'wgs84',\n success: function (res) {\n // console.log(JSON.stringify(res))\n var latitude = res.latitude;\n var longitude = res.longitude;\n var speed = res.speed;\n var accuracy = res.accuracy;\n vm.getLocal(latitude, longitude);\n },\n fail: function (res) {\n console.log('fail' + JSON.stringify(res));\n }\n });\n },\n\n // 获取当前地理位置\n getLocal: function (latitude, longitude) {\n let vm = this;\n qqmapsdk.reverseGeocoder({\n location: {\n latitude: latitude,\n longitude: longitude\n },\n success: function (res) {\n // console.log(JSON.stringify(res));\n let province = res.result.ad_info.province;\n let city = res.result.ad_info.city;\n vm.setData({\n province: province,\n city: city,\n latitude: latitude,\n longitude: longitude\n }); // console.log(city)\n },\n fail: function (res) {\n console.log(res);\n },\n complete: function (res) {// console.log(res);\n }\n });\n }\n }\n};\n</script>\n<style>\n\n.home-page{\n padding-bottom: 190rpx;\n}\n.top-bg-box{\n width: 750rpx;\n height: 420rpx;\n}\n.top-bg-box image{\n width: 100%;\n height: 100%;\n}\n.page-top-box{\n width: 100%;\n height: 598rpx;\n position: relative;\n}\n.page-title{\n width: 100%;\n color: #fff;\n text-align: center;\n position: relative;\n}\n.top-bg{\n width: 100%;\n height: 598rpx;\n position: absolute;\n}\n.top-box-content{\n position: relative;\n}\n.search-box{\n color: #fff;\n font-size: 32rpx;\n padding: 0 60rpx 0 40rpx;\n}\n.localtion-box image{\n width: 26rpx;\n height: 31rpx;\n margin-right: 10rpx;\n}\n.search{\n width: 448rpx;\n height: 68rpx;\n font-size: 28rpx;\n padding: 16rpx 20rpx;\n background: rgba(255, 255, 255, 0.38);\n border-radius: 8rpx;\n}\n.search image{\n width: 35rpx;\n height: 35rpx;\n margin-right: 16rpx;\n}\n.message-icon{\n width: 36rpx;\n height: 36rpx;\n}\n.home-menu-box{\n width: 670rpx;\n height: 286rpx;\n background: #FFFFFF;\n box-shadow: 0px 6rpx 20rpx rgba(151, 69, 34, 0.28);\n border-radius: 12rpx;\n margin: 28rpx auto 0;\n padding: 42rpx;\n}\n.menu-list{\n color: #1D1D1D;\n font-size: 24rpx;\n}\n.menu-item{\n width: 20%;\n /* margin-right:16rpx; */\n margin-bottom: 34rpx;\n}\n.menu-item:nth-child(5n){\n margin-right: 0;\n}\n.menu-item image{\n width: 52rpx;\n height: 52rpx;\n}\n\n.investment-box{\n width: 100%;\n padding: 40rpx 0 0 40rpx;\n}\n.investment-title-box{\n width: 100%;\n padding-right: 40rpx;\n}\n.fz32{\n font-size: 32rpx;\n color: #1D1D1D;\n}\n.hot{\n width: 26rpx;\n height: 26rpx;\n text-align: center;\n line-height: 26rpx;\n background: linear-gradient(147deg, #FB7E4A 0%, #FF5100 100%);\n border-radius: 8rpx 0px 8rpx 0px;\n font-size: 18rpx;\n color: #fff;\n margin-left: 16rpx;\n}\n.more{\n font-size: 24rpx;\n color: #999999;\n}\n.more image{\n width: 9rpx;\n height: 16rpx;\n margin-left: 12rpx;\n margin-top: 2rpx;\n}\n.investement-list{\n width: 100%;\n margin-top: 34rpx;\n}\n.scroll-view_H{\n white-space: nowrap;\n width: 100%;\n}\n.investment-item{\n display: inline-block;\n width: 324rpx;\n height: 408rpx;\n margin-right:20rpx;\n box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);\n border-radius: 8rpx;\n position: relative;\n}\n.investment-item .item-bg{\n width: 324rpx;\n height: 408rpx;\n position: absolute;\n}\n.tips-box{\n position: relative;\n top: 20rpx;\n}\n.tips-item{\n padding: 6rpx 10rpx;\n line-height: 28rpx;\n font-size: 20rpx;\n color: #fff;\n background: rgba(255, 81, 0, 0.63);\n border-radius: 8rpx;\n margin-right: 14rpx;\n}\n.bg2{\n background: rgba(255, 170, 0, 0.63);\n}\n.item-info-box{\n width: 300rpx;\n height: 102rpx;\n background: rgba(255, 255, 255, 0.8);\n box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.2);\n border-radius: 8rpx;\n position: absolute;\n bottom: 18rpx;\n left: 50%;\n margin-left: -150rpx;\n font-size: 22rpx;\n color: #404040;\n}\n.item-info-box image{\n width: 14rpx;\n height: 17rpx;\n margin: 0 12rpx 0 12rpx;\n}\n\n.welfare-box{\n width: 100%;\n padding-left: 40rpx;\n margin-top: 52rpx;\n}\n.welfare-title{\n font-size: 32rpx;\n color: #1D1D1D;\n margin-bottom: 38rpx;\n}\n.welfare-list-box{\n width: 100%;\n}\n.welfare-item{\n display: inline-block;\n margin-right: 6rpx;\n padding: 12rpx;\n}\n.item-box{\n width: 650rpx;\n height: 248rpx;\n background: #FFFFFF;\n box-shadow: 0px 0rpx 12rpx rgba(0, 0, 0, 0.16);\n padding: 22rpx 16rpx;\n border-radius: 12rpx;\n margin-bottom: 20rpx;\n position: relative;\n}\n.buy-btn{\n width: 144rpx;\n height: 52rpx;\n text-align: center;\n line-height: 52rpx;\n background: linear-gradient(315deg, #FB966C 0%, #FFC2AA 100%);\n border-radius: 12rpx;\n color: #fff;\n font-size: 24rpx;\n position: absolute;\n bottom: 30rpx;\n right: 30rpx;\n}\n.item-box image{\n width: 198rpx;\n height: 204rpx;\n margin-right: 12rpx;\n}\n.welfare-info-box{\n width: 394rpx;\n}\n.w-name{\n width: 390rpx;\n font-size: 28rpx;\n line-height: 40rpx;\n color: #1D1D1D;\n overflow: hidden;\n text-overflow: ellipsis; \n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n}\n.w-address{\n font-size: 24rpx;\n line-height: 34rpx;\n color: #707070;\n margin: 8rpx 0 14rpx;\n}\n.w-price{\n font-size: 28rpx;\n font-weight: bold;\n line-height: 40rpx;\n color: #FF7942;\n}\n.w-oldPrice{\n font-size: 20rpx;\n color: #BCBCBC;\n text-decoration: line-through;\n}\n\n.demandhall-box{\n width: 100%;\n padding: 40rpx;\n}\n.tabs-box{\n padding-left: 30rpx;\n padding-right: 12rpx;\n}\n.tab-item{\n font-size: 28rpx;\n color: #9C9C9C;\n padding-bottom: 8rpx;\n}\n.tab-item-a{\n color: #1D1D1D;\n border-bottom: 4rpx solid #FF7942;\n}\n.list-box{\n width: 100%;\n margin-top: 36rpx;\n}\n.item{\n width: 670rpx;\n background: #FFFFFF;\n box-shadow: 0px 6rpx 12rpx rgba(190, 190, 190, 0.3);\n border-radius: 12rpx;\n padding: 28rpx 20rpx 18rpx;\n margin-bottom: 32rpx;\n}\n.item-top{\n padding-bottom: 24rpx;\n position: relative;\n}\n.item-top .buy-btn{\n right: 0;\n}\n.project-name{\n width: 400rpx;\n font-size: 32rpx;\n font-weight: 500;\n line-height: 58rpx;\n color: #1D1D1D;\n}\n.tags-box2{\n margin-top: 12rpx;\n}\n.price{\n color: #FF5100;\n font-size: 28rpx;\n position: absolute;\n top: 0;\n right: 0rpx;\n}\n.tag{\n color: #74BDF7;\n font-size: 20rpx;\n line-height: 28rpx;\n margin: 12rpx 0 20rpx;\n}\n.desc{\n font-size: 24rpx;\n line-height: 34rpx;\n color: #666666;\n margin-top: 8rpx;\n}\n.company-box{\n padding-top: 12rpx;\n position: relative;\n border-top: 2rpx solid #ECECEC;\n}\n.company-box image{\n width: 128rpx;\n height: 128rpx;\n border-radius: 8rpx;\n}\n.company-info{\n\twidth: calc(100% - 298rpx);\n\tmargin-left: 12rpx;\n}\n.fz28{\n font-size: 28rpx;\n line-height: 40rpx;\n color: #1D1D1D;\n}\n.fz24{\n font-size: 24rpx;\n line-height: 34rpx;\n}\n.fz20{\n font-size: 20rpx;\n line-height: 28rpx;\n}\n.item-top .buy-btn{\n top: 0;\n}\n.into-btn{\n font-size: 20rpx;\n color: #FF5100;\n width: 144rpx;\n height: 40rpx;\n border: 1rpx solid #FF5100;\n opacity: 1;\n border-radius: 20rpx;\n position: absolute;\n top: 18rpx;\n right: 0rpx;\n}\n.into-btn image{\n width: 21rpx;\n height: 19rpx;\n margin-right: 6rpx;\n}\n.tag-item{\n width: 112rpx;\n height: 36rpx;\n line-height: 34rpx;\n text-align: center;\n border: 1rpx solid #FFAA00;\n color: #FFAA00;\n border-radius: 4rpx;\n margin-right: 8rpx;\n}\n.bgG{\n border: 1rpx solid #3A9EFA;\n color: #3A9EFA;\n}\n.bgO{\n border: 1rpx solid #FC9367;\n color: #FC9367;\n}\n.to-demandhall{\n font-size: 28rpx;\n color: #A7A7A7;\n margin-bottom: 28rpx;\n}\n.to-demandhall image{\n width: 13rpx;\n height: 23rpx;\n margin-left: 15rpx;\n}\n\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1635513139312\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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 ","import mod from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./subutil.wxs?vue&type=custom&index=0&blockType=script&issuerPath=%2FUsers%2Fyanghao%2FDesktop%2F%E7%A6%85%E6%98%93%E4%BA%91%2FzhaoshangMiniApp-uniapp%2Fpages%2Fhome%2Findex.vue&module=spl&lang=wxs\"; export default mod; export * from \"-!../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-filter-loader/index.js!./subutil.wxs?vue&type=custom&index=0&blockType=script&issuerPath=%2FUsers%2Fyanghao%2FDesktop%2F%E7%A6%85%E6%98%93%E4%BA%91%2FzhaoshangMiniApp-uniapp%2Fpages%2Fhome%2Findex.vue&module=spl&lang=wxs\"","export default function (Component) {\n if(!Component.options.wxsCallMethods){\n Component.options.wxsCallMethods = []\n }\n \n }"],"sourceRoot":""} |