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
19 KiB
1 lines
19 KiB
{"version":3,"sources":["uni-app:///main.js",null,"webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/release/index.vue?7db8","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/release/index.vue?451b","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/release/index.vue?19b9","uni-app:///pages/release/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/release/index.vue?9a6d","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/release/index.vue?322d"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,+F;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AACgN;AAChN,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;AAAm0B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8Cv1B;AACA,mB;;AAEA;AACA,MADA,kBACA;AACA;AACA,kBADA;AAEA,mBAFA;AAGA,oBAHA;AAIA,yBAJA;AAKA,kBALA;;AAOA,GATA;;AAWA,gBAXA;AAYA,WAZ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AJA,EAIA;AACA;AACA,2DADA;;AAGA,WARA;;;AAWA,OAZA,MAYA;AACA;AACA,sBADA;AAEA,wCAFA;;AAIA;AACA,KAnIA,EA5DA,E;;;;;;;;;;;;;ACjDA;AAAA;AAAA;AAAA;AAAgrC,CAAgB,gmCAAG,EAAC,C;;;;;;;;;;;ACApsC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/release/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/release/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=13fadc21&\"\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/release/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=13fadc21&\"","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/release/index.wxml-->\n<view class=\"release-page\">\n <view class=\"auth-btn-box acea-row row-column row-middle\">\n <view class=\"auth-btn\" @tap=\"toCompanyAuth\" v-if=\"authStatus == 0 || authStatus == 3\">企业认证<image src=\"/static/images/back.png\"></image></view>\n <view class=\"auth-btn bgG\" @tap=\"toPersonlAuth\" v-if=\"authStatus == 0 || authStatus == 3\">个人认证<image src=\"/static/images/back.png\"></image></view>\n </view>\n <view :class=\"'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')\">\n <view class=\"tips-box\">\n <view class=\"tips acea-row-nowrap row-middle\" v-if=\"authStatus == 0 || authStatus == 3\">\n <!-- <view class=\"icon\">!</view> -->\n <view>注:完成企业认证后可以发布资源及需求,个人认证后只可发布需求</view>\n </view>\n <view class=\"tips acea-row row-middle\" v-if=\"authStatus == 0 || authStatus == 3\">\n <view class=\"icon\">!</view>\n <view>请先完成认证</view>\n </view>\n <view class=\"tips acea-row row-middle\" v-if=\"authStatus == 1\">\n <view class=\"icon\">!</view>\n <view>{{authType == 1 ? '企业信息审核中,请耐心等待!' : '个人信息审核中, 请耐心等待'}}</view>\n </view>\n <view class=\"tips acea-row row-middle\" v-if=\"authStatus == 2\">\n <view class=\"icon\">!</view>\n <view>{{authType == 1 ? '企业信息审核通过,可以发布资源和需求!' : '个人信息审核通过,可以发布需求'}}</view>\n </view>\n <view class=\"tips acea-row row-middle\" v-if=\"authStatus == 3\">\n <view class=\"icon\">!</view>\n <view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view>\n </view>\n </view>\n <view class=\"btn-box acea-row row-between\">\n <view :class=\"'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )\" @tap=\"toResources\">\n <view class=\"tip\">我能提供...</view>\n <image :class=\"authStatus == 2 && authType == 1 ? '' : 'default'\" src=\"/static/images/yrz1.png\"></image>\n </view>\n <view :class=\"'btn ' + (authStatus == 2 ? 'auth' : '' )\" @tap=\"toNeeds\">\n <view class=\"tip\">我有需求...</view>\n <image :class=\"authStatus == 2 ? '' : 'default'\" src=\"/static/images/yrz2.png\"></image>\n </view>\n </view>\n <view class=\"close\" @tap=\"back\"><image src=\"/static/images/fabu-close.png\"></image></view>\n </view>\n</view>\n</template>\n\n<script>\n// pages/release/index.js\nconst app = getApp();\n\nexport default {\n data() {\n return {\n userInfo: {},\n authStatus: 0,\n authType: null,\n completeState: null,\n authInfo: {}\n };\n },\n\n components: {},\n props: {},\n\n /**\n * 生命周期函数--监听页面加载\n */\n onLoad: function (options) {},\n\n /**\n * 生命周期函数--监听页面显示\n */\n onShow: function () {\n let userInfo = uni.getStorageSync('userInfo');\n\t\tconsole.log(userInfo.phone && userInfo.phone != '')\n if (userInfo.phone && userInfo.phone != '') {\n this.isAuthentication();\n } else {\n\t\t\tvar pages = getCurrentPages().pop(); //当前页面\n\t\t\tuni.setStorageSync('redirect','/'+pages.route)\n uni.navigateTo({\n url: '/pages/authorization/index'\n });\n }\n },\n\n /**\n * 生命周期函数--监听页面隐藏\n */\n onHide: function () {},\n\n /**\n * 生命周期函数--监听页面卸载\n */\n onUnload: function () {},\n\n /**\n * 页面相关事件处理函数--监听用户下拉动作\n */\n onPullDownRefresh: function () {},\n\n /**\n * 页面上拉触底事件的处理函数\n */\n onReachBottom: function () {},\n\n /**\n * 用户点击右上角分享\n */\n onShareAppMessage: function () {},\n methods: {\n back() {\n\t\t\tlet pages = getCurrentPages();\n\t\t\tlet pagePath = '/' + pages[pages.length - 2].route;\n\t\t\t// if(pagePath){\n\t\t\t// \tuni.navigateTo({\n\t\t\t// \t url: pagePath\n\t\t\t// \t});\n\t\t\t// } else{\n\t\t\t// \tuni.switchTab({\n\t\t\t// \t url: '/pages/home/index'\n\t\t\t// \t});\n\t\t\t// }\n\t\t\tuni.switchTab({\n\t\t\t url: '/pages/user/index'\n\t\t\t});\n },\n\n toPersonlAuth() {\n if (this.authStatus == 0) {\n uni.navigateTo({\n url: '/pages/release/personAuth/index'\n });\n } else if (this.authStatus == 3) {\n let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));\n uni.navigateTo({\n url: '/pages/release/personAuth/index?authInfo=' + authInfo\n });\n } else if (this.authStatus == 1) {\n uni.showToast({\n title: '认证申请审核中,请等待!',\n icon: 'none'\n });\n }\n },\n\n toCompanyAuth() {\n if (this.authStatus == 0) {\n uni.navigateTo({\n url: '/pages/release/companyAuth/index'\n });\n } else if (this.authStatus == 3) {\n let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));\n uni.navigateTo({\n url: '/pages/release/companyAuth/index?authInfo=' + authInfo\n });\n } else if (this.authStatus == 1) {\n uni.showToast({\n title: '认证申请审核中,请等待!',\n icon: 'none'\n });\n }\n },\n\n isAuthentication() {\n app.http('get', 'user/isAuthentication').then(res => {\n if (res.data.success) {\n this.setData({\n authStatus: res.data.data.authenticationState,\n authType: res.data.data.authorizationType,\n completeState: res.data.data.completeState,\n authInfo: res.data.data.authInfo\n });\n }\n });\n },\n\n toResources() {\n let that = this;\n console.log(this.authStatus, 'authStatus');\n console.log(this.authType, 'authType');\n console.log(this.completeState, 'completeState');\n\n if (this.authStatus == 2 && this.authType == 1 && this.completeState == true) {\n uni.navigateTo({\n url: '/pages/user/editNeeds/index?type=1'\n });\n } else if (this.authStatus == 2 && this.authType == 1 && this.completeState == false) {\n uni.showModal({\n title: '提示!',\n content: '您还未完善企业信息,点击确定去完善吧~',\n\n success(res) {\n if (res.confirm) {\n uni.navigateTo({\n url: '/pages/release/perfectCompanyInfo/index'\n });\n }\n }\n\n });\n } else if (this.authStatus == 0 && (this.authType == 1 || this.authType == 0) && this.completeState == false) {\n uni.showModal({\n title: '提示!',\n content: '您还未完成企业认证,点击确定去认证吧~',\n\n success(res) {\n if (res.confirm) {\n uni.navigateTo({\n url: '/pages/release/companyAuth/index'\n });\n }\n }\n\n });\n }\n },\n\n toNeeds() {\n if (this.authStatus == 2 && (this.authType == 2 || this.authType == 1) && this.completeState == true) {\n uni.navigateTo({\n url: '/pages/user/editNeeds/index?type=2'\n });\n } else if (this.authStatus == 2 && (this.authType == 2 || this.authType == 0) && this.completeState == false) {\n uni.showModal({\n title: '提示!',\n content: '您还未完善个人信息,点击确定去完善吧~',\n\n success(res) {\n uni.navigateTo({\n url: '/pages/release/perfectPersonInfo/index'\n });\n }\n\n });\n } else if (this.authStatus == 0 && (this.authType == 2 || this.authType == 0) && this.completeState == false) {\n uni.showModal({\n title: '提示!',\n content: '您还未完成认证,点击上方按钮去认证吧!'\n });\n }\n }\n\n }\n};\n</script>\n<style>\n/* pages/release/index.wxss */\n\n.auth-btn-box{\n width: 100%;\n margin-top: 300rpx;\n}\n.auth-btn{\n width: 310rpx;\n height: 101rpx;\n background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%);\n border-radius: 12rpx;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n margin-bottom: 50rpx;\n}\n.auth-btn image{\n width: 32rpx;\n height: 32rpx;\n transform: rotate(180deg);\n}\n.bgG{\n background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%);\n}\n.posi{\n position: absolute;\n width: 100%;\n bottom: 100rpx;\n}\n.top30{\n bottom: 30%;\n}\n.tips-box{\n /* margin-top: 15%; */\n}\n.tips{\n color: #FF0000;\n font-size: 26rpx;\n padding-left: 54rpx;\n margin-bottom: 10rpx;\n}\n.icon{\n width: 26rpx;\n height: 26rpx;\n border: 1rpx solid #FF0000;\n text-align: center;\n line-height: 22rpx;\n border-radius: 50%;\n font-size: 20rpx;\n margin-right: 10rpx;\n}\n.btn-box{\n width: 100%;\n padding: 0 36rpx;\n margin-top: 28rpx;\n}\n.btn{\n width: 320rpx;\n height: 378rpx;\n position: relative;\n}\n.btn-box image{\n width: 320rpx;\n height: 378rpx;\n position: absolute;\n left: 0;\n top: 0;\n}\n.btn-box .default{\n filter: grayscale(1);\n}\n.btn .tip{\n color: #9C9C9C;\n font-weight: 500;\n font-size: 32rpx;\n position: relative;\n left: 0;\n top: 70rpx;\n text-align: center;\n z-index: 3;\n}\n.btn .auth{\n color: #1D1D1D;\n}\n.close {\n text-align: center;\n}\n.close image{\n width: 88rpx;\n height: 88rpx;\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 // 1635513326162\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":""} |