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
16 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/demandHall/resourcesContact/index.vue?fd36","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/demandHall/resourcesContact/index.vue?faea","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/demandHall/resourcesContact/index.vue?6539","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/demandHall/resourcesContact/index.vue?342d","uni-app:///pages/demandHall/resourcesContact/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/demandHall/resourcesContact/index.vue?4111","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/demandHall/resourcesContact/index.vue?86dc"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,mH;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AACmN;AACnN,gBAAgB,iNAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAk1B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwCt2B;AACA,mB;;AAEA;AACA,MADA,kBACA;AACA;AACA,kBADA;AAEA,yBAFA;AAGA,uBAHA;AAIA,iBAJA;;AAMA,GARA;;AAUA,gBAVA;AAWA,WAXA;;AAaA;;;AAGA;AACA;AACA;AACA;AACA,2BADA;;AAGA;AACA;AACA,GAxBA;AAyBA;AACA,iBADA,yBACA,CADA,EACA;AACA;AACA;AACA;AACA,0CADA;;AAGA,KAPA;;AASA,aATA,qBASA,CATA,EASA;AACA;AACA;AACA,+BADA;;AAGA,KAdA;;AAgBA,WAhBA,qBAgBA;AACA;AACA,uBADA;AAEA,UAFA,CAEA;AACA;AACA;AACA,+CADA;AAEA;AACA,wBADA,GAFA;;AAKA;AACA,gDADA;;AAGA;AACA,OAbA;AAcA,KA/BA;;AAiCA,UAjCA,oBAiCA;AACA;AACA;AACA,6BADA;AAEA,sBAFA;;AAIA;AACA;;AAEA;AACA,2CADA;AAEA,6BAFA;AAGA,6BAHA;;AAKA;AACA;AACA;AACA,0BADA;AAEA,0BAFA;;AAIA;AACA;AACA,sBADA;;AAGA,WAJA,EAIA,IAJA;AAKA,SAVA,MAUA;AACA;AACA,+BADA;AAEA,wBAFA;;AAIA;AACA,OAjBA;AAkBA,KAjEA,EAzBA,E;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAqsC,CAAgB,gmCAAG,EAAC,C;;;;;;;;;;;ACAztC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/demandHall/resourcesContact/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/demandHall/resourcesContact/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=439338c0&\"\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\ncomponent.options.__file = \"pages/demandHall/resourcesContact/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=439338c0&\"","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<!--pages/demandHall/contact/index.wxml-->\n<view class=\"contact-page\">\n <view class=\"company-card-box acea-row-nowrap\">\n <image :src=\"resourcesDetail.enterprise.enterpriseLogo\" class=\"company-logo\" mode=\"aspectFill\"></image>\n <view class=\"info\">\n <view class=\"company-name line1\">{{resourcesDetail.title}}</view>\n <view class=\"tags-box\">\n <view class=\"tag-item\">{{resourcesDetail.cname}}</view>\n </view>\n <view class=\"slogan\">{{resourcesDetail.enterprise.enterpriseName}}</view>\n </view>\n </view>\n <view class=\"tips acea-row row-middle\">\n <view class=\"t-icon\">!</view>\n <text>请明确您的需求!</text>\n </view>\n <!-- <view class=\"needs-list\" v-if=\"resourcesList.length > 0\">\n <view v-for=\"(item, index) in resourcesList\" :key=\"index\" class=\"need-item\" @tap=\"needItemClick\" :data-id=\"item.id\">\n <view :class=\"'n-title ' + (active == item.id ? 'n-title-a' : '') + ' acea-row row-middle'\">\n <view class=\"dot\"></view>\n <text>发送需求给企业(个人)</text>\n </view>\n <view class=\"n-title-box acea-row row-between row-middle\">\n <view>{{item.title}}</view>\n <view class=\"colO\">发布中</view>\n </view>\n <view class=\"n-tags acea-row\">\n <view class=\"n-tag-item\">{{item.cname}}</view>\n </view>\n </view>\n </view> -->\n <view class=\"area-box\">\n <textarea placeholder=\"请输入您的申请内容\" :value=\"content\" @input=\"inpChange\"></textarea>\n </view>\n <view class=\"submit-btn\" @tap=\"submit\">提交申请</view>\n</view>\n</template>\n\n<script>\n// pages/demandHall/contact/index.js\nconst app = getApp();\n\nexport default {\n data() {\n return {\n active: null,\n resourcesDetail: {},\n resourcesList: [],\n content: ''\n };\n },\n\n components: {},\n props: {},\n\n /**\n * 生命周期函数--监听页面加载\n */\n onLoad: function (options) {\n console.log(options);\n let data = JSON.parse(decodeURIComponent(options.detail));\n this.setData({\n resourcesDetail: data\n });\n console.log(this.resourcesDetail);\n this.getList();\n },\n methods: {\n needItemClick(e) {\n let id = e.currentTarget.dataset.id;\n console.log(id);\n this.setData({\n active: e.currentTarget.dataset.id\n });\n },\n\n inpChange(e) {\n console.log(e);\n this.setData({\n content: e.detail.value\n });\n },\n\n getList() {\n app.http('post', 'Resources/listMyResourcesPublish', {\n resourceType: 2\n }).then(res => {\n if (res.data.success) {\n res.data.data.content.length > 0 ? this.setData({\n active: res.data.data.content[0].id\n }) : this.setData({\n active: null\n });\n this.setData({\n resourcesList: res.data.data.content\n });\n }\n });\n },\n\n submit() {\n if (this.content == '' && this.active == null) {\n uni.showToast({\n title: '请填写您的申请内容!',\n icon: 'none'\n });\n return;\n }\n\n let data = {\n resourceId: this.resourcesDetail.id,\n demandId: this.active,\n content: this.content\n };\n app.http('post', 'Communicate/create', data).then(res => {\n if (res.data.success) {\n uni.showToast({\n title: '提交成功!',\n duration: 2000\n });\n setTimeout(() => {\n uni.navigateBack({\n delta: 1\n });\n }, 2000);\n } else {\n uni.showToast({\n title: res.data.msg,\n icon: 'none'\n });\n }\n });\n }\n\n }\n};\n</script>\n<style>\n/* pages/demandHall/contact/index.wxss */\n.contact-page{\n width: 100%;\n min-height: 100vh;\n padding: 40rpx;\n background: #EFEFEF;\n}\n.company-card-box {\n width: 100%;\n height: 210rpx;\n padding: 30rpx 12rpx;\n background: #FFFFFF;\n box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);\n border-radius: 12rpx;\n}\n.info{\n width: 70%;\n}\n.company-logo{\n width: 150rpx;\n height: 150rpx;\n margin-right: 20rpx;\n}\n.company-name{\n font-size: 36rpx;\n line-height: 56rpx;\n font-weight: 500;\n color: #1D1D1D;\n}\n.slogan{\n font-size: 24rpx;\n line-height: 34rpx;\n color: #666;\n margin: 4rpx 0 12rpx;\n}\n.tags-box{\n margin: 6rpx 0 10rpx;\n}\n.tag-item{\n width: 112rpx;\n height: 36rpx;\n display: inline-block;\n line-height: 36rpx;\n text-align: center;\n font-size: 20rpx;\n background: linear-gradient(314deg, #FF5100 0%, #FF8800 100%);\n color: #fff;\n border-radius: 8rpx;\n margin-right: 8rpx;\n}\n.tips{\n margin: 32rpx 0;\n font-size: 24rpx;\n color: #1D1D1D;\n}\n.t-icon{\n width: 28rpx;\n height: 28rpx;\n border-radius: 50%;\n border: 1px solid #1D1D1D;\n text-align: center;\n line-height: 25rpx;\n color: #1D1D1D;\n font-size: 24rpx;\n font-weight: bold;\n margin-right: 10rpx;\n}\n.needs-list{\n width: 100%;\n}\n.need-item{\n width: 100%;\n padding: 20rpx 0;\n background: #FFFFFF;\n box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);\n border-radius: 12rpx;\n margin-bottom: 32rpx;\n}\n.n-title{\n width: 100%;\n padding: 18rpx 26rpx;\n border-bottom: 2rpx solid #E2E2E2;\n font-size: 24rpx;\n color: #979797;\n font-weight: 500;\n}\n.dot{\n width: 28rpx;\n height: 28rpx;\n border: 2rpx solid #979797;\n border-radius: 50%;\n margin-right: 6rpx;\n}\n.n-title-a .dot{\n position: relative;\n border-color: #FF7E42;\n}\n.n-title-a .dot::before{\n content: '';\n display: inline-block;\n width: 20rpx;\n height: 20rpx;\n border-radius: 50%;\n border-color: #FF7E42;\n background: #FF7E42;\n position: absolute;\n top: 2rpx;\n left: 2rpx;\n}\n.n-title-a{\n color: #FF7E42;\n}\n\n.n-title-box{\n padding: 0 26rpx;\n font-size: 28rpx;\n color: #1D1D1D;\n margin: 16rpx 0 8rpx;\n}\n.colO{\n color: #FF5100;\n font-size: 500;\n}\n.n-tags{\n padding: 0 26rpx;\n}\n.n-tag-item{\n width: auto;\n height: 36rpx;\n padding: 0 8rpx;\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 font-size: 24rpx;\n}\n.bgG{\n border: 1rpx solid #3A9EFA;\n color: #3A9EFA;\n}\n.bgO{\n border: 1rpx solid #FC9367;\n color: #FC9367;\n}\n.area-box{\n width: 100%;\n height: 900rpx;\n padding: 42rpx 24rpx;\n background: #fff;\n border-radius: 12rpx;\n}\n.area-box textarea{\n width: 100%;\n height: 50%;\n}\n.submit-btn{\n width: 240rpx;\n height: 88rpx;\n line-height: 88rpx;\n text-align: center;\n background: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\n border-radius: 12rpx;\n font-size: 32rpx;\n color: #fff;\n /* margin: 32rpx auto; */\n position: absolute;\n bottom: 80rpx;\n left: 50%;\n margin-left: -120rpx;\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 // 1635513139029\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 "],"sourceRoot":""}