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
28 KiB
1 lines
28 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/createProject/index.vue?220f","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/createProject/index.vue?a581","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/createProject/index.vue?1288","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/createProject/index.vue?7e1c","uni-app:///pages/demandHall/createProject/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/createProject/index.vue?b176","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/demandHall/createProject/index.vue?c6aa"],"names":["createPage","Page"],"mappings":"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","file":"pages/demandHall/createProject/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/demandHall/createProject/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=e5f5cce4&\"\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/createProject/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=e5f5cce4&\"","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<!--pages/demandHall/createProject/index.wxml-->\r\n<view class=\"createProject-page\">\r\n <view class=\"resource-info-box\">\r\n <view class=\"title\">资源信息</view>\r\n <view class=\"company-card-box acea-row-nowrap\">\r\n <image :src=\"projectInfo.projectResource.logo\" class=\"company-logo\" mode=\"aspectFill\"></image>\r\n <view class=\"info\">\r\n <view class=\"company-name line1\">{{projectInfo.projectResource.name}}</view>\r\n <view class=\"tags-box\">\r\n <view class=\"tag-item\">网站建设</view>\r\n </view>\r\n <view class=\"slogan\">{{projectInfo.projectResource.content}}</view>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"project-name-box\">\r\n <view class=\"title\">项目名称</view>\r\n <view class=\"inp-box\" v-if=\"state == 1 || !state\">\r\n <input type=\"text\" placeholder=\"请填写项目名称\" :value=\"projectName\" @input=\"inpChange\" data-t=\"n\">\r\n </view>\r\n <view v-if=\"state == 3 || state == 2\">{{projectName}}</view>\r\n </view>\r\n <view class=\"project-name-box\">\r\n <view class=\"title acea-row row-middle\">项目编号 <view class=\"num\">{{projectInfo.projectCode}}</view></view>\r\n </view>\r\n <view class=\"project-name-box\">\r\n <view class=\"title acea-row row-middle\">\r\n <text>合作模式</text> \r\n <view class=\"mode-box acea-row\">\r\n <view v-for=\"(item, index) in modeList\" :key=\"index\" :class=\"'mode-item ' + (modeActive == item.id ? 'mode-item-a' : '')\" :data-id=\"item.id\" :data-nums=\"item.stageNums\" @tap=\"modeClick\">{{item.name}}</view>\r\n </view>\r\n </view>\r\n <view class=\"mode-detail\">\r\n <view class=\"m-tit\">合作规则-定金尾款模式</view>\r\n <text>{{modeList[modeActive - 1].content}}</text>\r\n </view>\r\n </view>\r\n <view class=\"project-name-box\">\r\n <view class=\"title acea-row row-middle\">交付成果</view>\r\n <view class=\"area-box\" :style=\"projectId ? 'background:#fff;border:4rpx solid #EEEEEE;' : ''\">\r\n <view class=\"p-title acea-row row-middle\">\r\n <view>总金额</view>\r\n <input type=\"text\" :disabled=\"state != 0\" :value=\"totalMoney\" @input=\"inpChange\" data-t=\"t\">\r\n <text>元</text>\r\n </view>\r\n <textarea placeholder=\"请描述交付成果\" :disabled=\"state != 0\" class=\"area\" :value=\"resultContent\" @input=\"inpChange\" data-t=\"c\"></textarea>\r\n <view clsas=\"progress-box\" v-if=\"modeActive > 1\">\r\n <view v-for=\"(mode, index) in stageResultsDtoList\" :key=\"index\" class=\"progress-item\">\r\n <view class=\"p-title acea-row row-middle\">\r\n <view>阶段{{index+1}}</view>\r\n <input type=\"text\" :value=\"mode.money\" :disabled=\"state != 0\" @input=\"changePrice\" :data-i=\"index\">\r\n <text>元</text>\r\n </view>\r\n <input type=\"text\" class=\"desc\" placeholder=\"本阶段将提供。\" :disabled=\"state != 0\" :value=\"mode.content\" @input=\"changeContent\" :data-i=\"index\">\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n <!-- <view class=\"project-name-box\">\r\n <view class=\"title acea-row row-middle\">项目资金</view>\r\n <view class=\"item acea-row row-between row-middle\">\r\n <view class=\"label\">总金额</view>\r\n <view class=\"item-r acea-row row-between row-middle\">\r\n <input type=\"text\" placeholder=\"请输入总金额\" />\r\n <text>元</text>\r\n </view>\r\n </view>\r\n <view class=\"item acea-row row-between row-middle\">\r\n <view class=\"label\">定金</view>\r\n <view class=\"item-r acea-row row-between row-middle\">\r\n <input type=\"text\" placeholder=\"请输入总定金\" />\r\n <text>元</text>\r\n </view>\r\n </view>\r\n <view class=\"item acea-row row-between row-middle\">\r\n <view class=\"label\">尾款</view>\r\n <view class=\"item-r acea-row row-between row-middle\">\r\n <input type=\"text\" placeholder=\"请输入总尾款\" />\r\n <text>元</text>\r\n </view>\r\n </view>\r\n </view> -->\r\n <view class=\"project-name-box\">\r\n <view class=\"title acea-row row-middle\">项目发起方(供方)</view>\r\n <view class=\"fqifang-box\">\r\n <view class=\"f-name\">{{projectInfo.projectProvider.name}}</view>\r\n <view class=\"f-item acea-row row-middle\">\r\n <view class=\"f-item-label\">银行账户</view>\r\n <view>{{projectInfo.projectProvider.bankNum}}</view>\r\n </view>\r\n <view class=\"f-item acea-row row-middle\">\r\n <view class=\"f-item-label\">开户信息</view>\r\n <view>{{projectInfo.projectProvider.bankInfo}}</view>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"project-name-box\">\r\n <view class=\"title acea-row row-middle\">合作方</view>\r\n <view class=\"hezuofang-box acea-row row-middle row-between\">\r\n <view class=\"header-box acea-row row-middle\">\r\n <image :src=\"projectInfo.projectReceiver.photoPath\"></image>\r\n <view>{{projectInfo.projectReceiver.name}}</view>\r\n </view>\r\n <view class=\"call\" @tap=\"call\" :data-phone=\"projectInfo.projectReceiver.phone\"><image src=\"/static/images/home/call.png\"></image></view>\r\n </view>\r\n </view>\r\n <view class=\"btn-box acea-row row-right\" v-if=\"state != 3\">\r\n <view class=\"submit-btn\" @tap=\"submit\" v-if=\"state == 0 || state == 1\">确认并发起</view>\r\n <view class=\"submit-btn\" @tap=\"confirm\" v-if=\"state == 2 && canConfirm == true\">待确认</view>\r\n </view>\r\n</view>\r\n</template>\r\n\r\n<script>\r\n// pages/demandHall/createProject/index.js\r\nconst app = getApp();\r\n\r\nexport default {\r\n data() {\r\n return {\r\n state: 0,\r\n //未申请\r\n communicateId: null,\r\n projectId: null,\r\n detail: [],\r\n projectInfo: {},\r\n modeList: [],\r\n modeActive: 1,\r\n projectName: '',\r\n resultContent: '',\r\n totalMoney: '',\r\n stageResultsDtoList: [],\r\n canConfirm: false\r\n };\r\n },\r\n\r\n components: {},\r\n props: {},\r\n\r\n /**\r\n * 生命周期函数--监听页面加载\r\n */\r\n onLoad: function (options) {\r\n console.log(options);\r\n let id = options.id; // 立项\r\n\r\n let state = options.state || 0; // 项目书状态,1已申请,2等待立项,3已成立\r\n\r\n this.setData({\r\n communicateId: id,\r\n state: state\r\n });\r\n this.getModeList();\r\n\r\n if (state == 0) {\r\n this.getProjectInfo();\r\n } else {\r\n this.getProjectDetail();\r\n }\r\n },\r\n\r\n /**\r\n * 生命周期函数--监听页面初次渲染完成\r\n */\r\n onReady: function () {},\r\n\r\n /**\r\n * 生命周期函数--监听页面显示\r\n */\r\n onShow: function () {},\r\n\r\n /**\r\n * 生命周期函数--监听页面隐藏\r\n */\r\n onHide: function () {},\r\n\r\n /**\r\n * 生命周期函数--监听页面卸载\r\n */\r\n onUnload: function () {},\r\n\r\n /**\r\n * 页面相关事件处理函数--监听用户下拉动作\r\n */\r\n onPullDownRefresh: function () {},\r\n\r\n /**\r\n * 页面上拉触底事件的处理函数\r\n */\r\n onReachBottom: function () {},\r\n\r\n /**\r\n * 用户点击右上角分享\r\n */\r\n onShareAppMessage: function () {},\r\n methods: {\r\n inpChange(e) {\r\n let t = e.currentTarget.dataset.t;\r\n let value = e.detail.value;\r\n\r\n if (t == 'n') {\r\n this.setData({\r\n projectName: value\r\n });\r\n } else if (t == 't') {\r\n this.setData({\r\n totalMoney: value\r\n });\r\n } else if (t == 'c') {\r\n this.setData({\r\n resultContent: value\r\n });\r\n }\r\n },\r\n\r\n modeClick(e) {\r\n let id = e.currentTarget.dataset.id;\r\n let nums = e.currentTarget.dataset.nums;\r\n\r\n if (this.state != 0) {\r\n return;\r\n }\r\n\r\n this.setData({\r\n stageResultsDtoList: []\r\n });\r\n let p = this.stageResultsDtoList;\r\n\r\n for (var j = 0; j < nums; j++) {\r\n p.push({\r\n name: j + 1,\r\n money: '',\r\n content: ''\r\n });\r\n }\r\n\r\n this.setData({\r\n modeActive: id,\r\n stageResultsDtoList: p\r\n });\r\n },\r\n\r\n changePrice(e) {\r\n let idx = Number(e.currentTarget.dataset.i);\r\n let stageResultsDtoList = this.stageResultsDtoList;\r\n stageResultsDtoList[idx].money = e.detail.value;\r\n this.setData({\r\n stageResultsDtoList\r\n });\r\n },\r\n\r\n changeContent(e) {\r\n let idx = Number(e.currentTarget.dataset.i);\r\n let stageResultsDtoList = this.stageResultsDtoList;\r\n stageResultsDtoList[idx].content = e.detail.value;\r\n this.setData({\r\n stageResultsDtoList\r\n });\r\n },\r\n\r\n submit() {\r\n let data = {\r\n resourcesId: this.projectInfo.projectResource.resourceId,\r\n projectName: this.projectName,\r\n projectCode: this.projectInfo.projectCode,\r\n cooperationModeId: this.modeActive,\r\n resultContent: this.resultContent,\r\n stageResultsDtoList: this.stageResultsDtoList,\r\n totalMoney: this.totalMoney,\r\n providerId: this.projectInfo.projectProvider.prividerId,\r\n receiverId: this.projectInfo.projectReceiver.receiverId,\r\n communicateId: this.communicateId\r\n };\r\n\r\n if (data.projectName == '') {\r\n uni.showToast({\r\n title: '请填写项目名称!',\r\n icon: 'none'\r\n });\r\n return;\r\n } else if (data.totalMoney == '') {\r\n uni.showToast({\r\n title: '请填写项目总金额!',\r\n icon: 'none'\r\n });\r\n return;\r\n } else if (data.resultContent == '') {\r\n uni.showToast({\r\n title: '请描述交付成果!',\r\n icon: 'none'\r\n });\r\n return;\r\n }\r\n\r\n app.http('post', 'Project/create', data).then(res => {\r\n if (res.data.success) {\r\n uni.showToast({\r\n title: '操作成功!',\r\n duration: 2000\r\n });\r\n setTimeout(() => {\r\n uni.navigateBack({\r\n delta: 1\r\n });\r\n }, 2000);\r\n }\r\n }); // console.log(this.data.stageResultsDtoList)\r\n },\r\n\r\n //获取合作模式\r\n getModeList() {\r\n app.http('get', 'CooperationMode/listCooperationMode').then(res => {\r\n if (res.data.success) {\r\n this.setData({\r\n modeList: res.data.data\r\n });\r\n }\r\n });\r\n },\r\n\r\n //获取资源信息\r\n getProjectInfo() {\r\n console.log(this.communicateId);\r\n app.http('get', 'Project/toCreateProject', {\r\n communicateId: this.communicateId\r\n }).then(res => {\r\n if (res.data.success) {\r\n this.setData({\r\n projectInfo: res.data.data\r\n });\r\n }\r\n });\r\n },\r\n\r\n //获取立项书详情\r\n getProjectDetail() {\r\n app.http('get', 'Communicate/getProjectInfo', {\r\n communicateId: this.communicateId\r\n }).then(res => {\r\n if (res.data.success) {\r\n let data = res.data.data;\r\n this.setData({//['projectInfo.projectResource']: data.projectResource\r\n //['projectInfo.projectProvider']: data.projectProvider\r\n //['projectInfo.projectReceiver']: data.projectReceiver\r\n\r\n projectName: data.projectName,\r\n stageResultsDtoList: data.stageResultsDtoList,\r\n modeActive: data.stageResultsDtoList.length,\r\n resultContent: data.resultContent,\r\n totalMoney: data.totalMoney,\r\n canConfirm: data.canConfirm,\r\n projectId: data.id,\r\n });\r\n //try fix\r\n this['projectInfo.projectReceiver'] = data.projectReceiver;\r\n //try fix\r\n this['projectInfo.projectProvider'] = data.projectProvider;\r\n //try fix\r\n this['projectInfo.projectResource'] = data.projectResource;\r\n }\r\n });\r\n },\r\n\r\n confirm() {\r\n let that = this;\r\n uni.showModal({\r\n title: '提示!',\r\n content: '是否确认立项?',\r\n\r\n success(res) {\r\n if (res.confirm) {\r\n app.http('GET', 'Communicate/aggreProject', {\r\n projectId: that.projectId\r\n }).then(res => {\r\n if (res.data.success) {\r\n uni.showToast({\r\n title: '操作成功!',\r\n duration: 2000\r\n });\r\n setTimeout(() => {\r\n uni.navigateBack({\r\n delta: 1\r\n });\r\n }, 2000);\r\n }\r\n });\r\n }\r\n }\r\n\r\n });\r\n },\r\n\r\n call(e) {\r\n uni.makePhoneCall({\r\n phoneNumber: e.currentTarget.dataset.phone\r\n });\r\n }\r\n\r\n }\r\n};\r\n</script>\r\n<style>\r\n/* pages/demandHall/createProject/index.wxss */\r\n.createProject-page{\r\n width: 100%;\r\n padding: 0 40rpx 180rpx;\r\n font-size: 28rpx;\r\n}\r\n.company-card-box {\r\n width: 100%;\r\n padding: 30rpx 12rpx;\r\n background: #FFFFFF;\r\n border: 2px solid #EEEEEE;\r\n border-radius: 12rpx;\r\n margin-bottom: 32rpx;\r\n}\r\n.info{\r\n width: 70%;\r\n}\r\n.company-logo{\r\n width: 154rpx;\r\n height: 154rpx;\r\n margin-right: 20rpx;\r\n}\r\n.company-name{\r\n font-size: 28rpx;\r\n line-height: 56rpx;\r\n font-weight: 500;\r\n color: #1D1D1D;\r\n}\r\n.slogan{\r\n font-size: 24rpx;\r\n line-height: 34rpx;\r\n color: #666;\r\n margin: 4rpx 0 12rpx;\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 line-height: 34rpx;\r\n text-align: center;\r\n border: 1rpx solid #FFAA00;\r\n color: #FFAA00;\r\n border-radius: 4rpx;\r\n margin-right: 8rpx;\r\n font-size: 24rpx;\r\n}\r\n.title{\r\n margin-bottom: 26rpx;\r\n font-weight: 500;\r\n line-height: 40rpx;\r\n color: #1D1D1D;\r\n}\r\n.num,.mode-box{\r\n margin-left: 38rpx;\r\n}\r\n.project-name-box{\r\n margin-bottom: 32rpx;\r\n}\r\n.inp-box{\r\n width: 100%;\r\n height: 60rpx;\r\n padding: 10rpx 20rpx;\r\n background: #eee;\r\n}\r\n.inp-box input{\r\n width: 100%;\r\n height: 100%;\r\n}\r\n.mode-item{\r\n width: 122rpx;\r\n height: 40rpx;\r\n border: 1rpx solid #707070;\r\n text-align: center;\r\n line-height: 38rpx;\r\n font-size: 24rpx;\r\n color: #707070;\r\n border-radius: 8rpx;\r\n margin-right: 10rpx;\r\n}\r\n.mode-item:nth-last-child(1){\r\n margin-right: 0;\r\n}\r\n.mode-item-a{\r\n border-color: #FF6D31;\r\n color: #FF6D31;\r\n}\r\n.mode-detail{\r\n width: 670rpx;\r\n height: 176rpx;\r\n background: #FFF5F0;\r\n border: 2rpx solid #FF5100;\r\n border-radius: 12rpx;\r\n font-size: 24rpx;\r\n color: #666;\r\n padding: 24rpx 20rpx;\r\n}\r\n.m-tit{\r\n font-weight: 500;\r\n line-height: 34rpx;\r\n color: #707070;\r\n margin-bottom: 20rpx;\r\n}\r\n.area-box{\r\n width: 100%;\r\n /* height: 446rpx; */\r\n background: #eee;\r\n border-radius: 8rpx;\r\n padding:28rpx 22rpx;\r\n font-size: 24rpx;\r\n}\r\n.area-box textarea{\r\n width: 100%;\r\n height: 116rpx;\r\n border-bottom: 2rpx solid #BFBFBF;\r\n margin-top: 24rpx;\r\n}\r\n.progress-item{\r\n width: 100%;\r\n height: 138rpx;\r\n border-bottom: 2rpx solid #BFBFBF;\r\n padding: 24rpx 0;\r\n}\r\n.p-title input{\r\n width: 115rpx;\r\n margin-left: 14rpx;\r\n text-align: center;\r\n border-bottom: 2rpx solid #BFBFBF;\r\n}\r\n.desc{\r\n width: 100%;\r\n margin-top: 20rpx;\r\n}\r\n\r\n.item{\r\n color: #666;\r\n margin-bottom: 26rpx;\r\n}\r\n.item-r{\r\n width: 538rpx;\r\n height: 60rpx;\r\n padding: 10rpx 20rpx;\r\n background: #eee;\r\n}\r\n.faqifang-box{\r\n color: #1D1D1D;\r\n}\r\n.f-item{\r\n margin-top: 22rpx;\r\n}\r\n.f-item-label{\r\n color: #707070;\r\n margin-right: 28rpx;\r\n}\r\n\r\n.header-box image{\r\n width: 92rpx;\r\n height: 92rpx;\r\n margin-right: 24rpx;\r\n}\r\n.call image{\r\n width: 54rpx;\r\n height: 54rpx;\r\n}\r\n.btn-box{\r\n width: 750rpx;\r\n height: 160rpx;\r\n background: #FFFFFF;\r\n box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.04);\r\n padding-top: 24rpx;\r\n padding-right: 40rpx;\r\n position: fixed;\r\n bottom: 0;\r\n left: 0;\r\n z-index: 99;\r\n}\r\n.submit-btn{\r\n width: 223rpx;\r\n height: 76rpx;\r\n background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%);\r\n border-radius: 38rpx;\r\n text-align: center;\r\n line-height: 76rpx;\r\n font-size: 32rpx;\r\n color: #fff;\r\n font-weight: 500;\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 // 1634867347992\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":""} |