杨豪 3 years ago
parent
commit
7d2bf049dc
  1. 11
      pages.json
  2. 105
      pages/demandHall/business/index.vue
  3. 8
      pages/demandHall/demoInvestment/index.vue
  4. 1
      pages/demandHall/index.vue
  5. 146
      pages/demandHall/projectDetail/index.vue
  6. 1015
      pages/demandHall/supplyHall/index.vue
  7. 676
      pages/release/index.vue

11
pages.json

@ -497,12 +497,19 @@
"iconPath": "/static/tabbarComponent/icon/home.png",
"selectedIconPath": "/static/tabbarComponent/icon/home-a.png"
},
// {
// "pagePath": "pages/demandHall/index",
// "text": "供需大厅",
// "iconPath": "/static/tabbarComponent/icon/tab2.png",
// "selectedIconPath": "/static/tabbarComponent/icon/tab2-a.png"
// },
{
"pagePath": "pages/demandHall/index",
"text": "供需大厅",
"pagePath": "pages/demandHall/business/index",
"text": "商业",
"iconPath": "/static/tabbarComponent/icon/tab2.png",
"selectedIconPath": "/static/tabbarComponent/icon/tab2-a.png"
},
{
"pagePath": "pages/life/index",
"text": "生活",

105
pages/demandHall/business/index.vue

@ -9,11 +9,11 @@
<!-- 供需大厅 企业服务 项目投融 -->
<view class="acea-row row-around pa40">
<view class="img1">
<image src="../../../static/images/business-img1.png"></image>
<image src="../../../static/images/business-img1.png" @tap="toSupplyHall"></image>
</view>
<view class="img2 acea-row row-column-between">
<image src="../../../static/images/business-img2.png"></image>
<image src="../../../static/images/business-img3.png"></image>
<image src="../../../static/images/business-img2.png" @tap="toEnterpriseServer"></image>
<image src="../../../static/images/business-img3.png" @tap="toDemoInvestment"></image>
</view>
</view>
@ -60,7 +60,7 @@
<view class="service-box">
<view class="title-con acea-row row-middle">
<image src="../../../static/images/business-title2.png" class="title-img"></image>
<image src="../../../static/images/fabu-close.png" class="toadd"></image>
<image src="../../../static/images/fabu-close.png" class="toadd" @tap="toAuthentication"></image>
</view>
<view class="service-top acea-row row-between">
<view class="service-nub-left acea-row row-column-between">
@ -102,29 +102,64 @@
<!-- 优质项目 -->
<view class="project-box">
<image src="../../../static/images/business-title3.png" class="title-img"></image>
<view class="project-list acea-row" v-for="(item,index) in 3">
<image src="../../../static/images/business-img1.png" mode="" class="project-img"></image>
<view class="right-con acea-row row-column-between">
<view class="acea-row row-middle title">
<image src="../../../static/images/new-icon.png" mode="" class="new-icon">
</image>
<view class="title-h">富硒产品</view>
</view>
<view class="title-s line1">农业项目国家扶贫乡村振兴国家红利</view>
<view class="category-box acea-row">
<view class="tag-item-y tag">持续盈利</view>
<view class="tag-item-b tag">财务规范</view>
<view class="tag-item-p tag">零负债</view>
</view>
<image src="../../../static/images/business-title3.png" class="title-img"></image>
<view class="project-list acea-row" v-for="(item,index) in 3">
<image src="../../../static/images/business-img1.png" mode="" class="project-img"></image>
<view class="right-con acea-row row-column-between">
<view class="acea-row row-middle title">
<image src="../../../static/images/new-icon.png" mode="" class="new-icon">
</image>
<view class="title-h">富硒产品</view>
</view>
<view class="title-s line1">农业项目国家扶贫乡村振兴国家红利</view>
<view class="category-box acea-row">
<view class="tag-item-y tag">持续盈利</view>
<view class="tag-item-b tag">财务规范</view>
<view class="tag-item-p tag">零负债</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
methods:{
//
toSupplyHall(e){
// let id = e.currentTarget.dataset.id;
uni.navigateTo({
url:"/pages/demandHall/supplyHall/index"
})
},
//
toEnterpriseServer(e){
uni.navigateTo({
url:"/pages/demandHall/enterpriseServer/index"
})
},
//
toDemoInvestment(e){
uni.navigateTo({
url:"/pages/demandHall/demoInvestment/index"
})
},
//
toAuthentication(e){
uni.navigateTo({
url:"/pages/release/index2"
})
}
},
}
</script>
<style lang="less">
@ -224,6 +259,7 @@
.company-box {
height: 380rpx;
.update-icon {
width: 118rpx;
height: 48rpx;
@ -248,6 +284,7 @@
height: 330rpx;
white-space: nowrap;
margin-left: 30rpx;
.company-list {
width: 408rpx;
height: 304rpx;
@ -257,6 +294,7 @@
padding: 16rpx 24rpx;
display: inline-block;
margin: 15rpx 30rpx 0 10rpx;
.title {
font-size: 28rpx;
font-weight: 600;
@ -320,16 +358,19 @@
.service-box {
width: 100%;
height: 496rpx;
.toadd {
width: 88rpx;
height: 88rpx;
margin-left: auto;
transform: rotate(45deg);
}
.service-top {
padding: 0 40rpx;
height: 272rpx;
margin: 8rpx 0 16rpx 0;
.service-nub-left {
width: 344rpx;
height: 272rpx;
@ -337,13 +378,16 @@
border-radius: 12rpx;
padding: 14rpx 24rpx;
}
.service-nub-left image {
width: 288rpx;
height: 162rpx;
}
.service-nub-right {
width: 310rpx;
height: 272rpx;
.module-nub {
width: 310rpx;
height: 128rpx;
@ -353,6 +397,7 @@
}
}
}
.service-bottom {
padding: 0 40rpx;
height: 112rpx;
@ -368,6 +413,7 @@
}
}
}
.module-box {
width: 184rpx;
height: 112rpx;
@ -402,6 +448,7 @@
.module-nub .tips {
color: #FF7636;
}
.service-top .module-box {
width: 144rpx;
height: 128rpx;
@ -411,39 +458,46 @@
//
.project-box{
.project-box {
width: 100%;
height: 610rpx;
.project-list{
.project-list {
width: 100%;
height: 180rpx;
padding: 26rpx 40rpx;
border-bottom: 1rpx solid #DCDCDC;
.project-img{
.project-img {
width: 128rpx;
height: 128rpx;
margin-right: 32rpx;
}
.right-con {
.title {
font-weight: 800;
height: 35rpx;
line-height: 35rpx;
.new-icon {
width: 48rpx;
height: 24rpx;
margin-right: 8rpx;
.title-h {
color: #1D1D1D;
}
}
}
.title-s {
width: 450rpx;
height: 34rpx;
font-size: 24rpx;
color: #707070;
}
.category-box {
.tag {
width: 112rpx;
@ -454,14 +508,17 @@
margin-right: 16rpx;
text-align: center;
}
.tag-item-b {
border: 1rpx solid #3A9EFA;
color: #3A9EFA;
}
.tag-item-y {
border: 1px solid #FFAA00;
color: #FFAA00;
}
.tag-item-p {
color: #FC9367;
border: 1px solid #FC9367;
@ -470,8 +527,8 @@
}
}
}
.project-box .title-img{
.project-box .title-img {
margin: 35rpx 0 -15rpx 40rpx;
}
</style>

8
pages/demandHall/demoInvestment/index.vue

@ -21,7 +21,7 @@
<view class="modular-box">
<!-- 全部项目 -->
<view class="project-box" v-if="active == 1">
<view class="project-list" v-for="(item,index) in 2">
<view class="project-list" v-for="(item,index) in 2" @tap="toProjectDetail">
<view class="project-top acea-row row-left">
<image src="../../../static/images/home/menu6.png" class="project-img"></image>
<view class="right-con acea-row row-column-between">
@ -210,6 +210,12 @@
choseCagetory: '',
});
},
toProjectDetail(e){
uni.navigateTo({
url:"/pages/demandHall/projectDetail/index"
})
}
}
}
</script>

1
pages/demandHall/index.vue

@ -234,7 +234,6 @@
loading: true,
pageNumber: 0,
});
this.getPageData();
},
methods: {

146
pages/demandHall/projectDetail/index.vue

@ -48,7 +48,7 @@
<image src="../../../static/images/update-icon.png" mode=""></image>换一批
</view>
</view>
<scroll-view class="scroll-view_H acea-row" scroll-x="true" >
<scroll-view class="scroll-view_H acea-row" scroll-x="true">
<view class="recommend-list acea-row" v-for="(item,index) in 3">
<image src="../../../static/images/business-img1.png" mode=""></image>
<view class="recommend-bottom acea-row row-column-between">
@ -131,31 +131,33 @@
}
}
.category-box {
.tag {
width: 112rpx;
height: 36rpx;
border-radius: 4rpx;
font-size: 20rpx;
margin-right: 8rpx;
text-align: center;
}
.tag-item-b {
border: 1rpx solid #3A9EFA;
color: #3A9EFA;
}
.category-box {
.tag {
width: 112rpx;
height: 36rpx;
border-radius: 4rpx;
font-size: 20rpx;
margin-right: 5rpx;
text-align: center;
}
.tag-item-y {
border: 1px solid #FFAA00;
color: #FFAA00;
}
.tag-item-b {
border: 1rpx solid #3A9EFA;
color: #3A9EFA;
}
.tag-item-p {
color: #FC9367;
border: 1px solid #FC9367;
}
.tag-item-y {
border: 1px solid #FFAA00;
color: #FFAA00;
}
.tag-item-p {
color: #FC9367;
border: 1px solid #FC9367;
}
}
.region {
width: 670rpx;
height: 112rpx;
@ -216,40 +218,46 @@
height: 36rpx;
margin-right: 10rpx;
}
.mask-box{
width: 750rpx;
height: 384rpx;
background: #fff;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.01);
filter: blur(6rpx);
position: fixed;
top: 390rpx;
}
.mask-con{
width: 484rpx;
height: 136rpx;
z-index: 9999;
}
.con{
font-size: 36rpx;
font-weight: 600;
color: #FF5100;
margin-bottom: 20rpx;
}
.authentication-btn{
width: 148rpx;
height: 52rpx;
background: linear-gradient(315deg, #FF6D31 0%, #FFC2AA 100%);
border-radius: 12rpx;
font-size: 24rpx;
font-weight: 600;
line-height: 52rpx;
color: #FFFFFF;
text-align: center;
}
.recommend-box .title{
.mask-box {
width: 750rpx;
height: 384rpx;
background: #fff;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.01);
filter: blur(6rpx);
position: fixed;
top: 390rpx;
}
.mask-con {
width: 484rpx;
height: 136rpx;
z-index: 9999;
}
.con {
font-size: 36rpx;
font-weight: 600;
color: #FF5100;
margin-bottom: 20rpx;
}
.authentication-btn {
width: 148rpx;
height: 52rpx;
background: linear-gradient(315deg, #FF6D31 0%, #FFC2AA 100%);
border-radius: 12rpx;
font-size: 24rpx;
font-weight: 600;
line-height: 52rpx;
color: #FFFFFF;
text-align: center;
}
.recommend-box .title {
margin-left: 32rpx;
}
.recommend-box {
width: 750rpx;
height: 528rpx;
@ -267,29 +275,34 @@
margin-bottom: 26rpx;
margin-left: 32rpx;
}
.update-icon{
.update-icon {
width: 118rpx;
height: 48rpx;
background: #FFFFFF;
box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 24rpx;
font-size: 20rpx;
line-height: 26rpx;color: #666666;
line-height: 26rpx;
color: #666666;
margin-left: auto;
}
.update-icon image{
.update-icon image {
width: 26rpx;
height: 26rpx;
background: rgba(0, 0, 0, 0);
margin-right: 10rpx;
}
.scroll-view_H{
.scroll-view_H {
width: 100%;
height: 345rpx;
white-space: nowrap;
padding-left: 22rpx;
}
.recommend-list{
.recommend-list {
width: 392rpx;
background: #FFFFFF;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);
@ -299,29 +312,34 @@
display: inline-block;
margin: 0 22rpx 0 10rpx;
}
.recommend-list image{
.recommend-list image {
width: 392rpx;
height: 194rpx;
border-radius: 12rpx 12rpx 0 0;
}
.recommend-bottom{
.recommend-bottom {
height: 130rpx;
padding: 0 16rpx 15rpx 24rpx;
}
.title-item{
.title-item {
height: 30rpx;
line-height: 30rpx;
font-size: 28rpx;
font-weight: 600;
color: #1D1D1D;
}
.footer{
.footer {
width: 100%;
height: 132rpx;
background: #FFFFFF;
padding: 32rpx 32rpx 0 0;
}
.toContact{
.toContact {
width: 223rpx;
height: 76rpx;
line-height: 76rpx;

1015
pages/demandHall/supplyHall/index.vue

File diff suppressed because it is too large Load Diff

676
pages/release/index.vue

@ -1,332 +1,358 @@
<template>
<!--pages/release/index.wxml-->
<view class="release-page">
<view class="auth-btn-box acea-row row-column row-middle">
<view class="auth-btn" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3">企业认证<image src="/static/images/back.png"></image></view>
<view class="auth-btn bgG" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3">个人认证<image src="/static/images/back.png"></image></view>
</view>
<view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')">
<view class="tips-box">
<view class="tips acea-row-nowrap row-middle" v-if="authStatus == 0 || authStatus == 3">
<!-- <view class="icon">!</view> -->
<view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 0">
<view class="icon">!</view>
<view>请先完成认证</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 1">
<view class="icon">!</view>
<view>{{authType == 1 ? '企业信息审核中,请耐心等待!' : '个人信息审核中, 请耐心等待'}}</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 2">
<view class="icon">!</view>
<view>{{authType == 1 ? '企业信息审核通过,可以发布资源和需求!' : '个人信息审核通过,可以发布需求'}}</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 3">
<view class="icon">!</view>
<view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view>
<view>未通过理由{{reason}}</view>
</view>
</view>
<view class="btn-box acea-row row-between">
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources">
<view class="tip">我能提供...</view>
<image :class="authStatus == 2 && authType == 1 ? '' : 'default'" src="/static/images/yrz1.png"></image>
</view>
<view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds">
<view class="tip">我有需求...</view>
<image :class="authStatus == 2 ? '' : 'default'" src="/static/images/yrz2.png"></image>
</view>
</view>
<view class="close" @tap="back"><image src="/static/images/fabu-close.png"></image></view>
</view>
</view>
<!--pages/release/index.wxml-->
<view class="release-page">
<view class="auth-btn-box acea-row row-column row-middle">
<view class="auth-btn" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3">企业认证<image
src="/static/images/back.png"></image>
</view>
<view class="auth-btn bgG" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3">个人认证<image
src="/static/images/back.png"></image>
</view>
</view>
<view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')">
<view class="tips-box">
<view class="tips acea-row-nowrap row-middle" v-if="authStatus == 0 || authStatus == 3">
<!-- <view class="icon">!</view> -->
<view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 0">
<view class="icon">!</view>
<view>请先完成认证</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 1">
<view class="icon">!</view>
<view>{{authType == 1 ? '企业信息审核中,请耐心等待!' : '个人信息审核中, 请耐心等待'}}</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 2">
<view class="icon">!</view>
<view>{{authType == 1 ? '企业信息审核通过,可以发布资源和需求!' : '个人信息审核通过,可以发布需求'}}</view>
</view>
<view class="tips acea-row row-middle" v-if="authStatus == 3">
<view class="icon">!</view>
<view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view>
<view>未通过理由{{reason}}</view>
</view>
</view>
<view class="btn-box acea-row row-between">
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources">
<view class="tip">我能提供...</view>
<image :class="authStatus == 2 && authType == 1 ? '' : 'default'" src="/static/images/yrz1.png">
</image>
</view>
<view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds">
<view class="tip">我有需求...</view>
<image :class="authStatus == 2 ? '' : 'default'" src="/static/images/yrz2.png"></image>
</view>
</view>
<view class="close" @tap="back">
<image src="/static/images/fabu-close.png"></image>
</view>
</view>
</view>
</template>
<script>
// pages/release/index.js
const app = getApp();
export default {
data() {
return {
userInfo: {},
authStatus: 0,
authType: null,
completeState: null,
authInfo: {}
};
},
components: {},
props: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.isAuthentication();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {},
methods: {
back() {
let pages = getCurrentPages();
console.log(pages)
// let pagePath = '/' + pages[pages.length - 2].route;
// if(pagePath){
// uni.navigateTo({
// url: pagePath
// });
// } else{
// uni.switchTab({
// url: '/pages/home/index'
// });
// }
uni.switchTab({
url: '/pages/user/index'
});
},
toPersonlAuth() {
if (this.authStatus == 0) {
uni.navigateTo({
url: '/pages/release/personAuth/index'
});
} else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({
url: '/pages/release/personAuth/index?authInfo=' + authInfo
});
} else if (this.authStatus == 1) {
uni.showToast({
title: '认证申请审核中,请等待!',
icon: 'none'
});
}
},
toCompanyAuth() {
if (this.authStatus == 0) {
uni.navigateTo({
url: '/pages/release/companyAuth/index'
});
} else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({
url: '/pages/release/companyAuth/index?authInfo=' + authInfo
});
} else if (this.authStatus == 1) {
uni.showToast({
title: '认证申请审核中,请等待!',
icon: 'none'
});
}
},
isAuthentication() {
app.http('get', 'user/isAuthentication').then(res => {
if (res.data.success) {
this.setData({
authStatus: res.data.data.authenticationState,
authType: res.data.data.authorizationType,
completeState: res.data.data.completeState,
authInfo: res.data.data.authInfo,
reason: res.data.data.authInfo.reason
});
}
});
},
toResources() {
let that = this;
console.log(this.authStatus, 'authStatus');
console.log(this.authType, 'authType');
console.log(this.completeState, 'completeState');
if (this.authStatus == 2 && this.authType == 1 && this.completeState == true) {
uni.navigateTo({
url: '/pages/user/editNeeds/index?type=1'
});
} else if (this.authStatus == 2 && this.authType == 1 && this.completeState == false) {
uni.showModal({
title: '提示!',
content: '您还未完善企业信息,点击确定去完善吧~',
success(res) {
if (res.confirm) {
uni.navigateTo({
url: '/pages/release/perfectCompanyInfo/index'
});
}
}
});
} else if (this.authStatus == 0 && (this.authType == 1 || this.authType == 0) && this.completeState == false) {
uni.showModal({
title: '提示!',
content: '您还未完成企业认证,点击确定去认证吧~',
success(res) {
if (res.confirm) {
uni.navigateTo({
url: '/pages/release/companyAuth/index'
});
}
}
});
}
},
toNeeds() {
if (this.authStatus == 2 && (this.authType == 2 || this.authType == 1) && this.completeState == true) {
uni.navigateTo({
url: '/pages/user/editNeeds/index?type=2'
});
} else if (this.authStatus == 2 && (this.authType == 2 || this.authType == 0) && this.completeState == false) {
uni.showModal({
title: '提示!',
content: '您还未完善个人信息,点击确定去完善吧~',
success(res) {
uni.navigateTo({
url: '/pages/release/perfectPersonInfo/index'
});
}
});
} else if (this.authStatus == 0 && (this.authType == 2 || this.authType == 0) && this.completeState == false) {
uni.showModal({
title: '提示!',
content: '您还未完成认证,点击上方按钮去认证吧!'
});
}
}
}
};
// pages/release/index.js
const app = getApp();
export default {
data() {
return {
userInfo: {},
authStatus: 0,
authType: null,
completeState: null,
authInfo: {}
};
},
components: {},
props: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.isAuthentication();
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function() {},
methods: {
back() {
let pages = getCurrentPages();
console.log(pages)
// let pagePath = '/' + pages[pages.length - 2].route;
// if(pagePath){
// uni.navigateTo({
// url: pagePath
// });
// } else{
// uni.switchTab({
// url: '/pages/home/index'
// });
// }
uni.switchTab({
url: '/pages/user/index'
});
},
toPersonlAuth() {
if (this.authStatus == 0) {
uni.navigateTo({
url: '/pages/release/personAuth/index'
});
} else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({
url: '/pages/release/personAuth/index?authInfo=' + authInfo
});
} else if (this.authStatus == 1) {
uni.showToast({
title: '认证申请审核中,请等待!',
icon: 'none'
});
}
},
toCompanyAuth() {
if (this.authStatus == 0) {
uni.navigateTo({
url: '/pages/release/companyAuth/index'
});
} else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({
url: '/pages/release/companyAuth/index?authInfo=' + authInfo
});
} else if (this.authStatus == 1) {
uni.showToast({
title: '认证申请审核中,请等待!',
icon: 'none'
});
}
},
isAuthentication() {
app.http('get', 'user/isAuthentication').then(res => {
if (res.data.success) {
this.setData({
authStatus: res.data.data.authenticationState,
authType: res.data.data.authorizationType,
completeState: res.data.data.completeState,
authInfo: res.data.data.authInfo,
reason: res.data.data.authInfo.reason
});
}
});
},
toResources() {
let that = this;
console.log(this.authStatus, 'authStatus');
console.log(this.authType, 'authType');
console.log(this.completeState, 'completeState');
if (this.authStatus == 2 && this.authType == 1 && this.completeState == true) {
uni.navigateTo({
url: '/pages/user/editNeeds/index?type=1'
});
} else if (this.authStatus == 2 && this.authType == 1 && this.completeState == false) {
uni.showModal({
title: '提示!',
content: '您还未完善企业信息,点击确定去完善吧~',
success(res) {
if (res.confirm) {
uni.navigateTo({
url: '/pages/release/perfectCompanyInfo/index'
});
}
}
});
} else if (this.authStatus == 0 && (this.authType == 1 || this.authType == 0) && this.completeState ==
false) {
uni.showModal({
title: '提示!',
content: '您还未完成企业认证,点击确定去认证吧~',
success(res) {
if (res.confirm) {
uni.navigateTo({
url: '/pages/release/companyAuth/index'
});
}
}
});
}
},
toNeeds() {
if (this.authStatus == 2 && (this.authType == 2 || this.authType == 1) && this.completeState == true) {
uni.navigateTo({
url: '/pages/user/editNeeds/index?type=2'
});
} else if (this.authStatus == 2 && (this.authType == 2 || this.authType == 0) && this.completeState ==
false) {
uni.showModal({
title: '提示!',
content: '您还未完善个人信息,点击确定去完善吧~',
success(res) {
uni.navigateTo({
url: '/pages/release/perfectPersonInfo/index'
});
}
});
} else if (this.authStatus == 0 && (this.authType == 2 || this.authType == 0) && this.completeState ==
false) {
uni.showModal({
title: '提示!',
content: '您还未完成认证,点击上方按钮去认证吧!'
});
}
}
}
};
</script>
<style>
/* pages/release/index.wxss */
.auth-btn-box{
width: 100%;
margin-top: 300rpx;
}
.auth-btn{
width: 310rpx;
height: 101rpx;
background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%);
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
margin-bottom: 50rpx;
}
.auth-btn image{
width: 32rpx;
height: 32rpx;
transform: rotate(180deg);
}
.bgG{
background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%);
}
.posi{
position: absolute;
width: 100%;
bottom: 100rpx;
}
.top30{
bottom: 30%;
}
.tips-box{
/* margin-top: 15%; */
}
.tips{
color: #FF0000;
font-size: 26rpx;
padding-left: 54rpx;
margin-bottom: 10rpx;
}
.icon{
width: 26rpx;
height: 26rpx;
border: 1rpx solid #FF0000;
text-align: center;
line-height: 22rpx;
border-radius: 50%;
font-size: 20rpx;
margin-right: 10rpx;
}
.btn-box{
width: 100%;
padding: 0 36rpx;
margin-top: 28rpx;
}
.btn{
width: 320rpx;
height: 378rpx;
position: relative;
}
.btn-box image{
width: 320rpx;
height: 378rpx;
position: absolute;
left: 0;
top: 0;
}
.btn-box .default{
filter: grayscale(1);
}
.btn .tip{
color: #9C9C9C;
font-weight: 500;
font-size: 32rpx;
position: relative;
left: 0;
top: 70rpx;
text-align: center;
z-index: 3;
}
.btn .auth{
color: #1D1D1D;
}
.close {
text-align: center;
}
.close image{
width: 88rpx;
height: 88rpx;
}
/* pages/release/index.wxss */
.auth-btn-box {
width: 100%;
margin-top: 300rpx;
}
.auth-btn {
width: 310rpx;
height: 101rpx;
background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%);
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
margin-bottom: 50rpx;
}
.auth-btn image {
width: 32rpx;
height: 32rpx;
transform: rotate(180deg);
}
.bgG {
background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%);
}
.posi {
position: absolute;
width: 100%;
bottom: 100rpx;
}
.top30 {
bottom: 30%;
}
.tips-box {
/* margin-top: 15%; */
}
.tips {
color: #FF0000;
font-size: 26rpx;
padding-left: 54rpx;
margin-bottom: 10rpx;
}
.icon {
width: 26rpx;
height: 26rpx;
border: 1rpx solid #FF0000;
text-align: center;
line-height: 22rpx;
border-radius: 50%;
font-size: 20rpx;
margin-right: 10rpx;
}
.btn-box {
width: 100%;
padding: 0 36rpx;
margin-top: 28rpx;
}
.btn {
width: 320rpx;
height: 378rpx;
position: relative;
}
.btn-box image {
width: 320rpx;
height: 378rpx;
position: absolute;
left: 0;
top: 0;
}
.btn-box .default {
filter: grayscale(1);
}
.btn .tip {
color: #9C9C9C;
font-weight: 500;
font-size: 32rpx;
position: relative;
left: 0;
top: 70rpx;
text-align: center;
z-index: 3;
}
.btn .auth {
color: #1D1D1D;
}
.close {
text-align: center;
}
.close image {
width: 88rpx;
height: 88rpx;
}
</style>
Loading…
Cancel
Save