Compare commits
No commits in common. '99d8a466ec2c3acc96e7376239b1567b481f7052' and 'e06f4c8692b2b8e4d3a2d3944d8061d2e876dc3d' have entirely different histories.
99d8a466ec
...
e06f4c8692
17 changed files with 954 additions and 1597 deletions
@ -1,78 +1,73 @@
|
||||
{ |
||||
"name" : "zhaoshangMiniApp", |
||||
"appid" : "", |
||||
"description" : "", |
||||
"versionName" : "1.0.0", |
||||
"versionCode" : "100", |
||||
"transformPx" : false, |
||||
"app-plus" : { |
||||
"usingComponents" : true, |
||||
"nvueCompiler" : "uni-app", |
||||
"compilerVersion" : 3, |
||||
"splashscreen" : { |
||||
"alwaysShowBeforeRender" : true, |
||||
"waiting" : true, |
||||
"autoclose" : true, |
||||
"delay" : 0 |
||||
}, |
||||
"modules" : {}, |
||||
"distribute" : { |
||||
"android" : { |
||||
"permissions" : [ |
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>", |
||||
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", |
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", |
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", |
||||
"<uses-feature android:name=\"android.hardware.camera\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", |
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" |
||||
] |
||||
}, |
||||
"ios" : {}, |
||||
"sdkConfigs" : {} |
||||
} |
||||
}, |
||||
"quickapp" : {}, |
||||
"mp-weixin" : { |
||||
"appid" : "wx5348e39dcbbefe1e", |
||||
"setting" : { |
||||
"urlCheck" : false |
||||
}, |
||||
"usingComponents" : true, |
||||
"permission" : { |
||||
"scope.userLocation" : { |
||||
"desc" : "你的位置信息将用于小程序位置接口的效果展示" |
||||
} |
||||
}, |
||||
"plugins" : {} |
||||
}, |
||||
"mp-alipay" : { |
||||
"usingComponents" : true |
||||
}, |
||||
"mp-baidu" : { |
||||
"usingComponents" : true |
||||
}, |
||||
"mp-toutiao" : { |
||||
"usingComponents" : true |
||||
}, |
||||
"h5" : { |
||||
"router" : { |
||||
"mode" : "history" |
||||
} |
||||
} |
||||
"name": "zhaoshangMiniApp", |
||||
"appid": "", |
||||
"description": "", |
||||
"versionName": "1.0.0", |
||||
"versionCode": "100", |
||||
"transformPx": false, |
||||
"app-plus": { |
||||
"usingComponents": true, |
||||
"nvueCompiler": "uni-app", |
||||
"compilerVersion": 3, |
||||
"splashscreen": { |
||||
"alwaysShowBeforeRender": true, |
||||
"waiting": true, |
||||
"autoclose": true, |
||||
"delay": 0 |
||||
}, |
||||
"modules": {}, |
||||
"distribute": { |
||||
"android": { |
||||
"permissions": [ |
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
||||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>", |
||||
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", |
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", |
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
||||
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", |
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", |
||||
"<uses-feature android:name=\"android.hardware.camera\"/>", |
||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", |
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" |
||||
] |
||||
}, |
||||
"ios": {}, |
||||
"sdkConfigs": {} |
||||
} |
||||
}, |
||||
"quickapp": {}, |
||||
"mp-weixin": { |
||||
"appid": "wx5348e39dcbbefe1e", |
||||
"setting": { |
||||
"urlCheck": false |
||||
}, |
||||
"usingComponents": true, |
||||
"permission": { |
||||
"scope.userLocation": { |
||||
"desc": "你的位置信息将用于小程序位置接口的效果展示" |
||||
} |
||||
}, |
||||
"plugins": {} |
||||
}, |
||||
"mp-alipay": { |
||||
"usingComponents": true |
||||
}, |
||||
"mp-baidu": { |
||||
"usingComponents": true |
||||
}, |
||||
"mp-toutiao": { |
||||
"usingComponents": true |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -1,378 +0,0 @@
|
||||
<template> |
||||
<view class="information-box"> |
||||
<view class="search-box acea-row row-middle" > |
||||
<image src="../../../static/images/search-icon.png" mode=""></image> |
||||
<input type="text" value="" placeholder="请输入相关关键词"/> |
||||
<view class="search acea-row row-center-wrapper">搜一下</view> |
||||
</view> |
||||
<view class="vote-box"> |
||||
<view class="news"> |
||||
<view class="news-title-h">武汉12月底双层公交车将全面下线</view> |
||||
<view class="news-title-s">趁着有时间和你爱的人再去回味一下,那你认为有下线的必要吗?</view> |
||||
</view> |
||||
<view class="vote"> |
||||
|
||||
</view> |
||||
</view> |
||||
<scroll-view class="scroll-view_N" scroll-x="true" > |
||||
<view class="rotaion" v-for="(item,index) in 7" :key="index"> |
||||
<view class="acea-row row-center"> |
||||
<image src="../../../static/images/collect.png" mode=""></image> |
||||
<view class="rotaion-h">今日大事</view> |
||||
<view class="rotaion-s">每日热点资讯</view> |
||||
</view> |
||||
|
||||
</view> |
||||
</scroll-view> |
||||
<!-- 最新资讯 --> |
||||
<view class="newInfo-box"> |
||||
<image src="../../../static/images/newInfo.png" mode="" class="newInfo-title-img"></image> |
||||
<view class="newInfo" > |
||||
<view class="modular acea-row row-between" v-for="(item,index) in 3" :key="index"> |
||||
<view class="acea-row title" > |
||||
<view class="modular-h">海鸥出行将大巴车市场带入平台化阶段,提高包车出行效率</view> |
||||
<view class="title-l acea-row row-between"> |
||||
<view>云资讯</view> |
||||
<view>1小时前</view> |
||||
<view class="acea-row row-middle">203 |
||||
<image src="../../../static/images/eye.png" mode="" ></image> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<image src="../../../static/images/home/top-bg.png" mode="" ></image> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<!-- 热点精选 --> |
||||
<view class="hotspot-box"> |
||||
<image src="../../../static/images/user/hotspot.png" mode="" class="title-h-img"></image> |
||||
<scroll-view class="scroll-view_H acea-row" scroll-x="true" > |
||||
<view class="slide-box" v-for="(item,index) in 3" :key="index"> |
||||
<image src="../../../static/images/home/top-bg.png" mode=""></image> |
||||
<view class="hotspot-con"> |
||||
<view class="hotspot-icon">热点</view> |
||||
<view class="hotspot-title-h">禅易云生态:加入云生态,共建万亿私域资源圈获取海量资源与福利。</view> |
||||
</view> |
||||
</view> |
||||
</scroll-view> |
||||
</view> |
||||
<!-- 值得关注 --> |
||||
<view class="follow-box"> |
||||
<image src="../../../static/images/follow-title.png" mode="" class="title-h-img"></image> |
||||
<view class="follow-con" v-for="(item,index) in 3" :key="index"> |
||||
<view class="follow-top acea-row row-between"> |
||||
<view class="acea-row follow-title" > |
||||
<view class="follow-h">2021中国酒店与商用厨具行业品牌盛会</view> |
||||
<view class="follow-title-l acea-row row-between"> |
||||
<view>云资讯</view> |
||||
<view>1小时前</view> |
||||
<view class="acea-row row-middle">203 |
||||
<image src="../../../static/images/eye.png" mode="" ></image> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
<image src="../../../static/images/home/top-bg.png" mode="" ></image> |
||||
</view> |
||||
<view class="follow-bottom acea-row row-middle"> |
||||
<image src="../../../static/images/collect.png" mode=""></image> |
||||
<view class="follow-title-b"> |
||||
<view class="title-s">云咨詢</view> |
||||
<view class="title-con">每天发布商业/生活等相关内容...</view> |
||||
</view> |
||||
<view class="follow-btn">关注+</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
</script> |
||||
|
||||
<style> |
||||
.information-box{ |
||||
width: 100%; |
||||
height: 100vh; |
||||
position: relative; |
||||
} |
||||
.search-box{ |
||||
width: 670rpx; |
||||
height: 68rpx; |
||||
border: 2rpx solid #FF5100; |
||||
border-radius: 8rpx; |
||||
margin: 52rpx auto; |
||||
font-size: 28rpx; |
||||
position: relative; |
||||
} |
||||
.search-box image{ |
||||
width: 35rpx; |
||||
height: 35rpx; |
||||
margin: 0 29rpx 0 52rpx; |
||||
} |
||||
.search{ |
||||
position: absolute; |
||||
right: 0; |
||||
width: 132rpx; |
||||
height: 68rpx; |
||||
background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%); |
||||
border-radius: 8rpx; |
||||
color: #fff; |
||||
|
||||
} |
||||
.vote-box{ |
||||
width: 670rpx; |
||||
height: 358rpx; |
||||
background: #FFFFFF; |
||||
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16); |
||||
border-radius: 16rpx; |
||||
margin: 0 auto; |
||||
position: relative; |
||||
} |
||||
.news{ |
||||
width: 100%; |
||||
height: 248rpx; |
||||
background: #D2D2D2; |
||||
border-radius: 16rpx 16rpx 0 0; |
||||
color: #FFF; |
||||
position: absolute; |
||||
padding-left: 42rpx; |
||||
} |
||||
.news-title-h{ |
||||
font-size: 28rpx; |
||||
position: absolute; |
||||
bottom: 54rpx; |
||||
} |
||||
.news-title-s{ |
||||
font-size: 20rpx; |
||||
position: absolute; |
||||
bottom: 18rpx; |
||||
} |
||||
.vote{ |
||||
width: 100%; |
||||
height: 110rpx; |
||||
position: absolute; |
||||
bottom: 0; |
||||
border: 1rpx solid #000000; |
||||
} |
||||
.scroll-view_N{ |
||||
width: 100%; |
||||
height: 228rpx; |
||||
margin: 30rpx 0 0 30rpx; |
||||
white-space: nowrap; |
||||
} |
||||
.rotaion{ |
||||
width: 168rpx; |
||||
padding: 32rpx 0 16rpx 0; |
||||
background: #FFFFFF; |
||||
box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16); |
||||
border-radius: 16rpx; |
||||
margin: 10rpx 22rpx 20rpx 10rpx; |
||||
display: inline-block; |
||||
} |
||||
.rotaion image{ |
||||
width: 80rpx; |
||||
height: 80rpx; |
||||
background: #FF6D2A; |
||||
border-radius: 50%; |
||||
} |
||||
.rotaion-h{ |
||||
height: 34rpx; |
||||
font-size: 24rpx; |
||||
color: #333333; |
||||
margin: 12rpx 0 4rpx 0; |
||||
font-weight: 600; |
||||
} |
||||
.rotaion-s{ |
||||
height: 26rpx; |
||||
font-size: 18rpx; |
||||
color: #9D9D9D; |
||||
} |
||||
/* 最新资讯 */ |
||||
.newInfo-box{ |
||||
margin: 44rpx 0 0rpx 0; |
||||
} |
||||
.newInfo-title-img{ |
||||
width: 160rpx; |
||||
height: 52rpx; |
||||
margin: 0 0 18rpx 38rpx; |
||||
} |
||||
.newInfo{ |
||||
width: 100%; |
||||
height: 528rpx; |
||||
border-top: 2rpx solid #EFEFEF; |
||||
} |
||||
.modular{ |
||||
width: 100%; |
||||
height: 176rpx; |
||||
border-bottom: 2rpx solid #EFEFEF; |
||||
padding: 20rpx 40rpx 22rpx 40rpx; |
||||
} |
||||
|
||||
.modular-h{ |
||||
width: 392rpx; |
||||
height: 80rpx; |
||||
font-size: 28rpx; |
||||
color: #4A4A4A; |
||||
font-weight: 600; |
||||
} |
||||
.modular image{ |
||||
width: 204rpx; |
||||
height: 134rpx; |
||||
} |
||||
.title{ |
||||
width: 392rpx; |
||||
height: 134rpx; |
||||
} |
||||
.title-l{ |
||||
width: 310rpx; |
||||
height: 34rpx; |
||||
font-size: 24rpx; |
||||
color: #707070; |
||||
} |
||||
.title-l image{ |
||||
width: 24rpx; |
||||
height: 24rpx; |
||||
margin-left: 5rpx; |
||||
} |
||||
/* 热点精选 */ |
||||
.hotspot-box{ |
||||
width: 100%; |
||||
height: 456rpx; |
||||
} |
||||
.title-h-img{ |
||||
width: 162rpx; |
||||
height: 62rpx; |
||||
margin: 32rpx 0 5rpx 40rpx; |
||||
} |
||||
.scroll-view_H{ |
||||
width: 100%; |
||||
height: 344rpx; |
||||
white-space: nowrap; |
||||
} |
||||
.scroll-view_H image{ |
||||
width: 670rpx; |
||||
height: 344rpx; |
||||
border-radius: 10rpx; |
||||
position: absolute; |
||||
} |
||||
.slide-box{ |
||||
position: relative; |
||||
width: 670rpx; |
||||
height: 100%; |
||||
display: inline-block; |
||||
margin-right: 16rpx; |
||||
} |
||||
.hotspot-con{ |
||||
width: 588rpx; |
||||
height: 130rpx; |
||||
bottom: 34rpx; |
||||
left: 24rpx; |
||||
position: absolute; |
||||
} |
||||
.hotspot-icon{ |
||||
width: 72rpx; |
||||
height: 32rpx; |
||||
background: #FE3737; |
||||
border-radius: 12rpx 2rpx 12rpx 0; |
||||
position: absolute; |
||||
font-size: 22rpx; |
||||
color: #fff; |
||||
text-align: center; |
||||
|
||||
} |
||||
.hotspot-title-h{ |
||||
width: 588rpx; |
||||
height: 80rpx; |
||||
font-size: 28rpx; |
||||
color: #FFFFFF; |
||||
position: absolute; |
||||
bottom: 0; |
||||
white-space:pre-wrap; |
||||
} |
||||
/* 值得关注 */ |
||||
.follow-box{ |
||||
width: 100%; |
||||
height: 950rpx; |
||||
margin-bottom: 50rpx; |
||||
} |
||||
.follow-con{ |
||||
width: 670rpx; |
||||
height: 250rpx; |
||||
margin: 0 auto; |
||||
background: #FFFFFF; |
||||
box-shadow: 0rpx 4rpx 10rpx rgba(0, 0, 0, 0.16); |
||||
border-radius: 16rpx; |
||||
margin-bottom: 32rpx; |
||||
} |
||||
.follow-top{ |
||||
width: 100%; |
||||
height: 170rpx; |
||||
padding: 20rpx 20rpx 26rpx 20rpx; |
||||
border-bottom: 1rpx solid #DCDCDC; |
||||
} |
||||
.follow-top image{ |
||||
width: 232rpx; |
||||
height: 130rpx; |
||||
border-radius: 16rpx; |
||||
} |
||||
.follow-title{ |
||||
width: 370rpx; |
||||
height: 100%; |
||||
} |
||||
.follow-h{ |
||||
width: 370rpx; |
||||
height: 80rpx; |
||||
font-size: 28rpx; |
||||
color: #000000; |
||||
font-weight: 600; |
||||
} |
||||
.follow-title-l{ |
||||
width: 250rpx; |
||||
height: 28rpx; |
||||
font-size: 20rpx; |
||||
color: #707070; |
||||
} |
||||
.follow-title-l image{ |
||||
width: 24rpx; |
||||
height: 24rpx; |
||||
margin-left: 5rpx; |
||||
} |
||||
.follow-bottom{ |
||||
width: 100%; |
||||
height: 80rpx; |
||||
padding: 12rpx 20rpx 16rpx 20rpx; |
||||
} |
||||
.follow-bottom image{ |
||||
width: 52rpx; |
||||
height: 52rpx; |
||||
border-radius: 50%; |
||||
margin-right: 8rpx; |
||||
} |
||||
.follow-title-b{ |
||||
|
||||
} |
||||
|
||||
.title-s{ |
||||
height: 28rpx; |
||||
font-size: 20rpx; |
||||
margin-bottom: 6rpx; |
||||
font-weight: 600; |
||||
} |
||||
.title-con{ |
||||
height: 22rpx; |
||||
font-size: 16rpx; |
||||
color: #707070; |
||||
} |
||||
|
||||
.follow-btn{ |
||||
width: 136rpx; |
||||
height: 40rpx; |
||||
background: linear-gradient(39deg, #FF5A0D 0%, #FFAC85 100%); |
||||
border-radius: 26rpx; |
||||
font-size: 28rpx; |
||||
color: #fff; |
||||
text-align: center; |
||||
position: absolute; |
||||
right: 60rpx; |
||||
} |
||||
</style> |
@ -1,358 +1,332 @@
|
||||
<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…
Reference in new issue