Browse Source

提交代码

zys
杨豪 3 years ago
parent
commit
d1a90eb69d
  1. 90
      components/CustomNavigator.vue
  2. 2
      config/index.js
  3. 3
      pages/demandHall/business/index.vue
  4. 2
      pages/demandHall/supplyHall/index.vue
  5. 29
      pages/home/activityCenter/index.vue
  6. 16
      pages/home/index.vue
  7. 8
      pages/information/index.vue
  8. 2
      pages/life/index.vue
  9. 785
      pages/release/index.vue
  10. 785
      pages/release/index2.vue
  11. 24
      pages/user/index.vue

90
components/CustomNavigator.vue

@ -0,0 +1,90 @@
<template>
<view class="pageTitle-box" :class="isFixed ? 'showPageTitle' : ''"
:style="{'padding-top':navTopHeight + 'px',height:navHeight*2+ 'px'}">
<view class="top-logo acea-row row-center"
:style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'">
{{title}}
</view>
</view>
</template>
<script>
const app = getApp();
export default {
props: {
isFixed: {
type: Boolean,
default: false
},
title: {
type: String ,
default: ''
}
},
data() {
return {
menuHeight: app.globalData.menuHeight,
navHeight: app.globalData.navHeight,
menuTop: app.globalData.menuTop,
navTopHeight: app.globalData.navTopHeight,
};
},
methods:{
}
}
</script>
<style lang="less">
.pageTitle-box {
width: 100%;
position: fixed;
top: 0;
z-index: 99;
color: #fff;
transition: all .5s;
}
.showPageTitle {
background: #fff;
color: #000000 !important;
opacity: 1;
font-weight: normal;
.top-logo {
color: #000;
}
}
.page-top-box {
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 99;
background: #fff;
padding: 0 30rpx 20rpx;
box-shadow: 0px -6px 20px rgba(0, 0, 0, 0.11);
.top-box {
.top-box-l {
font-size: 32rpx;
color: #000;
font-weight: 500;
image {
width: 26rpx;
height: 30rpx;
display: block;
margin-right: 10rpx;
}
}
}
}
.top-logo {
position: absolute;
width: 100%;
color: #fff;
font-weight: 600;
font-size: 32rpx;
transition: all .5s cubic-bezier(.25, .5, .5, .9);
}
</style>

2
config/index.js

@ -1,7 +1,7 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api' // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
// export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api' // export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
// export const VUE_APP_API_URL = 'http://10.11.32.103:8092/api' // export const VUE_APP_API_URL = 'http://192.168.1.34:8092/api'
export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api' export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'

3
pages/demandHall/business/index.vue

@ -166,7 +166,6 @@
}) })
}, },
toResourcesDetail(id){ toResourcesDetail(id){
console.log(id,'id')
return return
if(id){ if(id){
this.$yrouter.push({ this.$yrouter.push({
@ -229,7 +228,7 @@
// //
toAuthentication(e){ toAuthentication(e){
uni.navigateTo({ uni.navigateTo({
url:"/pages/release/index2" url:"/pages/release/index"
}) })
} }
}, },

2
pages/demandHall/supplyHall/index.vue

@ -27,7 +27,7 @@
{{item.enterpriseType == 1 ? '企业' : '个人'}} {{item.enterpriseType == 1 ? '企业' : '个人'}}
</view> </view>
<view class="enterprise-box acea-row row-column-between"> <view class="enterprise-box acea-row row-column-between">
<view class="title-h">{{item.title}}</view> <view class="title-h line1">{{item.title}}</view>
<view class="enterprise-price">{{item.capital}}</view> <view class="enterprise-price">{{item.capital}}</view>
<view class="supply-screen acea-row"> <view class="supply-screen acea-row">
<!-- <view class="tag-item-y tag">网站建设</view> <!-- <view class="tag-item-y tag">网站建设</view>

29
pages/home/activityCenter/index.vue

@ -1,9 +1,9 @@
<template> <template>
<!-- sdsd 345 -->
<view class="activityCenter-page"> <view class="activityCenter-page">
<image src="https://download.cyjyyjy.com/center-img.png" class="top-bg"></image> <image src="https://download.cyjyyjy.com/center-img.png" class="top-bg"></image>
<view class="page-title" <view class="page-title"
:style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'"> :style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'">
<image src="../../../static/images/back.png" @click="backClick"></image>
活动中心</view> 活动中心</view>
<view class="activity-box"> <view class="activity-box">
<view class="activity-list acea-row" v-for="(item,index) in activity" :key="index" @tap="toActiveDetail" <view class="activity-list acea-row" v-for="(item,index) in activity" :key="index" @tap="toActiveDetail"
@ -21,8 +21,12 @@
</view> </view>
<view class="acea-row row-between-wrapper act-price"> <view class="acea-row row-between-wrapper act-price">
<text class="act-p">{{item.price}}</text> <text class="act-p">{{item.price}}</text>
<text class="act-i">进行中</text> <!-- <text class="act-i">进行中</text>
<view class="enter-btn">立即报名</view> <view class="enter-btn">立即报名</view> -->
<view class="act-i" v-if="item.status == 0">筹备中</view>
<view class="act-i" v-if="item.status == 1">报名中</view>
<view class="act-i" v-if="item.status == 2">待举办</view>
<view class="act-i" v-if="item.status == 3">已结束</view>
</view> </view>
</view> </view>
</view> </view>
@ -46,10 +50,19 @@
mounted: function() { mounted: function() {
this.getIndexData() this.getIndexData()
}, },
onPullDownRefresh(){
this.getIndexData()
},
methods: { methods: {
backClick(){
uni.navigateBack({
delta: 1
})
},
getIndexData() { getIndexData() {
getIndexData().then(res => { getIndexData().then(res => {
this.activity = res.data.recommendActivity.content this.activity = res.data.recommendActivity.content
uni.stopPullDownRefresh()
}) })
}, },
toActiveDetail(e) { toActiveDetail(e) {
@ -80,6 +93,14 @@
color: #fff; color: #fff;
position: absolute; position: absolute;
text-align: center; text-align: center;
image{
width: 36rpx;
height: 36rpx;
position: absolute;
left: 36rpx;
top: 50%;
margin-top: -18rpx;
}
} }
.activity-box { .activity-box {
@ -106,7 +127,7 @@
.act-con { .act-con {
width: 450rpx; width: 450rpx;
height: 236rpx; // height: 236rpx;
padding: 5rpx 0; padding: 5rpx 0;
.title { .title {

16
pages/home/index.vue

@ -2,12 +2,13 @@
<view class="productSort"> <view class="productSort">
<!-- 顶部主页 --> <!-- 顶部主页 -->
<skeleton v-if="showSkeleton" ref="skeleton" loading="chiaroscuro" selector="skeleton" bgcolor="#FFF"></skeleton> <skeleton v-if="showSkeleton" ref="skeleton" loading="chiaroscuro" selector="skeleton" bgcolor="#FFF"></skeleton>
<view class="pageTitle-box" :class="isFixed ? 'showPageTitle' : ''" <!-- <view class="pageTitle-box" :class="isFixed ? 'showPageTitle' : ''"
:style="{'padding-top':navTopHeight + 'px',height:navHeight*2+ 'px'}"> :style="{'padding-top':navTopHeight + 'px',height:navHeight*2+ 'px'}">
<view class="top-logo acea-row row-center" <view class="top-logo acea-row row-center"
:style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'">禪易生态云 :style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'">禅易云生态
</view> </view>
</view> </view> -->
<CustomNav :title="title" :isFixed="isFixed"></CustomNav>
<view class="main-box skeleton-rect"> <view class="main-box skeleton-rect">
<view class="back-bg"> <view class="back-bg">
<image src="https://download.cyjyyjy.com/life-bg.png" mode=""></image> <image src="https://download.cyjyyjy.com/life-bg.png" mode=""></image>
@ -163,21 +164,22 @@
import { import {
mapGetters mapGetters
} from 'vuex' } from 'vuex'
import tabbar from "../../tabbarComponent/tabbar";
import CustomNav from '@/components/CustomNavigator.vue'
import vSwiper from '@/components/vSwiper.vue' import vSwiper from '@/components/vSwiper.vue'
import skeleton from '@/components/quick-skeleton/quick-skeleton' import skeleton from '@/components/quick-skeleton/quick-skeleton'
const app = getApp(); const app = getApp();
export default { export default {
components: { components: {
tabbar,
vSwiper, vSwiper,
skeleton skeleton,
CustomNav
}, },
name: "GoodsClass",
computed: mapGetters(['userInfo']), computed: mapGetters(['userInfo']),
props: {}, props: {},
data: function() { data: function() {
return { return {
title: '禅易云生态',
category: [], category: [],
navActive: 0, navActive: 0,
search: "", search: "",

8
pages/information/index.vue

@ -7,11 +7,11 @@
<view class="search acea-row row-center-wrapper">搜一下</view> <view class="search acea-row row-center-wrapper">搜一下</view>
</view> </view>
<swiper class="vote-box skeleton-rect"> <swiper class="vote-box skeleton-rect">
<swiper-item v-for="(item,index) in hotList" :key="index"> <swiper-item v-for="(item,index) in hotList" :key="index" @click="toDetail(item.id)">
<image :src="item.imageInput" mode="aspectFill" class="vote-img"></image> <image :src="item.imageInput" mode="aspectFill" class="vote-img"></image>
<view class="news"> <view class="news">
<view class="news-title-h line1">{{item.title}}</view> <view class="news-title-h line1">{{item.title}}</view>
<view class="news-title-s line1">{{item.title}}</view> <view class="news-title-s line1">{{item.createTime}}</view>
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
@ -35,7 +35,7 @@
<view class="title-l acea-row row-between"> <view class="title-l acea-row row-between">
<view>{{item.author}}</view> <view>{{item.author}}</view>
<view>{{item.createTime.split(' ')[0]}}</view> <view>{{item.createTime.split(' ')[0]}}</view>
<view class="acea-row row-middle">203 <view class="acea-row row-middle">{{item.visit}}
<image src="../../static/images/eye.png" mode="aspectFill"></image> <image src="../../static/images/eye.png" mode="aspectFill"></image>
</view> </view>
</view> </view>
@ -189,7 +189,7 @@
height: 68rpx; height: 68rpx;
border: 2rpx solid #FF5100; border: 2rpx solid #FF5100;
border-radius: 8rpx; border-radius: 8rpx;
margin: 52rpx auto; margin: 24rpx auto 52rpx;
font-size: 28rpx; font-size: 28rpx;
position: relative; position: relative;
} }

2
pages/life/index.vue

@ -145,7 +145,7 @@ export default {
// }, // },
mounted: function () { mounted: function () {
this.getProducts(); this.getProducts();
this.getActivity(); // this.getActivity();
}, },
onReachBottom() { onReachBottom() {
if (this.isLoad) { if (this.isLoad) {

785
pages/release/index.vue

@ -1,358 +1,461 @@
<template> <template>
<!--pages/release/index.wxml--> <!--pages/release/index.wxml-->
<view class="release-page"> <view class="release-page">
<view class="auth-btn-box acea-row row-column row-middle"> <view class="guid-box acea-row">
<view class="auth-btn" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3">企业认证<image <view class="guid-title">发布指南</view>
src="/static/images/back.png"></image> <image src="../../static/images/handbook.png" class="handbook-img"></image>
<view class="title-s">详细阅读有助于让你快速了解云生态发布规则更准确地发布内容</view>
<image src="../../static/images/arror-right.png" class="arror-r"></image>
</view>
<view class="auth-btn-box acea-row row-column row-middle">
<view class="auth-btn acea-row row-middle" @tap="toPersonlAuth">
<view><image src="/static/images/user/person.png" class="auth-headimg person-img"></image></view>
<view>
<view class="auth-title">个人认证</view>
<view class="auth-title-h">个人认证后可发布资源项目及需求</view>
</view> </view>
<view class="auth-btn bgG" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3">个人认证<image <image src="/static/images/home/arrow-r.png" class="tojump"></image>
src="/static/images/back.png"></image> </view>
<view class="auth-btn acea-row row-middle" @tap="toCompanyAuth">
<view><image src="/static/images/user/business.png" class="auth-headimg business-img"></image></view>
<view>
<view class="auth-title">企业认证</view>
<view class="auth-title-h">企业认证后可发布资源项目及需求展示企业相关服务</view>
</view> </view>
<image src="/static/images/home/arrow-r.png" class="tojump"></image>
</view> </view>
<view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')"> <view class="auth-btn acea-row row-middle" @tap="toInvestorAuth">
<view class="tips-box"> <view><image src="/static/images/user/investor.png" class="auth-headimg investor-img"></image></view>
<view class="tips acea-row-nowrap row-middle" v-if="authStatus == 0 || authStatus == 3"> <view>
<!-- <view class="icon">!</view> --> <view class="auth-title">投资方认证</view>
<view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</view> <view class="auth-title-h">投资方认证后可查看项目方发布项目详情</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>
<view class="btn-box acea-row row-between"> <image src="/static/images/home/arrow-r.png" class="tojump"></image>
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources"> </view>
<view class="tip">我能提供...</view> </view>
<image :class="authStatus == 2 && authType == 1 ? '' : 'default'" src="/static/images/yrz1.png"> <view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')">
</image> <!-- <view class="tips-box">
<view class="tips acea-row-nowrap row-middle">
<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 ">
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? '' : 'default' )" @tap="toResources" class="acea-row row-middle btn-res">
<image src="/static/images/auth-icon1.png"></image>
<view>
<view class="tip">发布资源</view>
<view class="tip-s">我要发布我的资源展示在供应广场</view>
</view> </view>
<view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds"> </view>
<view class="tip">我有需求...</view> <view :class="'btn ' + (authStatus == 2 ? '' : 'default' )" @tap="toNeeds" class="acea-row row-middle btn-need">
<image :class="authStatus == 2 ? '' : 'default'" src="/static/images/yrz2.png"></image> <image src="/static/images/auth-icon2.png"></image>
<view>
<view class="tip">发布需求</view>
<view class="tip-s">我要发布我的资源展示在供应广场</view>
</view>
</view>
<view :class="'btn ' + (authStatus == 2 ? '' : 'default' )" @tap="" class="acea-row row-middle btn-demo">
<image src="/static/images/auth-icon3.png"></image>
<view>
<view class="tip">发布项目</view>
<view class="tip-s">发布优质项目精准推荐投资方</view>
</view> </view>
</view> </view>
<view class="close" @tap="back"> </view>
<image src="/static/images/fabu-close.png"></image> <view class="close" @tap="back"><image src="/static/images/close-icon.png"></image></view>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
// pages/release/index.js // pages/release/index.js
const app = getApp(); const app = getApp();
export default { export default {
data() { data() {
return { return {
userInfo: {}, userInfo: {},
authStatus: 0, authStatus: 0,
authType: null, authType: null,
completeState: null, completeState: null,
authInfo: {} authInfo: {}
}; };
}, },
components: {}, components: {},
props: {}, props: {},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function(options) {}, onLoad: function (options) {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function() { onShow: function () {
this.isAuthentication(); this.isAuthentication();
}, },
/** methods: {
* 生命周期函数--监听页面隐藏 back() {
*/ let pages = getCurrentPages();
onHide: function() {}, console.log(pages)
// let pagePath = '/' + pages[pages.length - 2].route;
/** // if(pagePath){
* 生命周期函数--监听页面卸载 // uni.navigateTo({
*/ // url: pagePath
onUnload: function() {}, // });
// } else{
/** // uni.switchTab({
* 页面相关事件处理函数--监听用户下拉动作 // url: '/pages/home/index'
*/ // });
onPullDownRefresh: function() {}, // }
uni.switchTab({
/** url: '/pages/user/index'
* 页面上拉触底事件的处理函数 });
*/ },
onReachBottom: function() {}, //
toPersonlAuth() {
/** if (this.authStatus == 0) {
* 用户点击右上角分享 uni.navigateTo({
*/ url: '/pages/release/personAuth/index'
onShareAppMessage: function() {}, });
methods: { } else if (this.authStatus == 3) {
back() { let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
let pages = getCurrentPages(); uni.navigateTo({
console.log(pages) url: '/pages/release/personAuth/index?authInfo=' + authInfo
// let pagePath = '/' + pages[pages.length - 2].route; });
// if(pagePath){ } else if (this.authStatus == 1) {
// uni.navigateTo({ uni.showToast({
// url: pagePath title: '认证申请审核中,请等待!',
// }); icon: 'none'
// } else{ });
// uni.switchTab({ } else if(this.authStatus == 2){
// url: '/pages/home/index' uni.showToast({
// }); title: '已完成认证',
// } icon: 'none'
uni.switchTab({
url: '/pages/user/index'
}); });
}, }
},
toPersonlAuth() { //
if (this.authStatus == 0) { toCompanyAuth() {
uni.navigateTo({ if (this.authStatus == 0) {
url: '/pages/release/personAuth/index' uni.navigateTo({
}); url: '/pages/release/companyAuth/index'
} else if (this.authStatus == 3) { });
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo)); } else if (this.authStatus == 3) {
uni.navigateTo({ let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
url: '/pages/release/personAuth/index?authInfo=' + authInfo uni.navigateTo({
}); url: '/pages/release/companyAuth/index?authInfo=' + authInfo
} else if (this.authStatus == 1) { });
uni.showToast({ } else if (this.authStatus == 1) {
title: '认证申请审核中,请等待!', uni.showToast({
icon: 'none' title: '认证申请审核中,请等待!',
}); icon: 'none'
} });
}, } else if(this.authStatus == 2){
uni.showToast({
toCompanyAuth() { title: '已完成认证',
if (this.authStatus == 0) { icon: 'none'
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: '您还未完成认证,点击上方按钮去认证吧!'
});
}
} }
},
} //
}; toInvestorAuth() {
if (this.authStatus == 0) {
uni.navigateTo({
url: '/pages/release/investorAuth/index'
});
} else if (this.authStatus == 3) {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
uni.navigateTo({
url: '/pages/release/investorAuth/index?authInfo=' + authInfo
});
} else if (this.authStatus == 1) {
uni.showToast({
title: '认证申请审核中,请等待!',
icon: 'none'
});
} else if(this.authStatus == 2){
uni.showToast({
title: '已完成认证',
icon: 'none'
});
}
},
// 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'
// });
// }
// },
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> </script>
<style> <style>
/* pages/release/index.wxss */ /* pages/release/index.wxss */
.guid-box{
.auth-btn-box { width: 662rpx;
width: 100%; height: 140rpx;
margin-top: 300rpx; margin: 196rpx 46rpx 60rpx 40rpx;
} position: relative;
}
.auth-btn { .guid-title{
width: 310rpx; width: 192rpx;
height: 101rpx; height: 56rpx;
background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%); font-size: 42rpx;
border-radius: 12rpx; color: #1D1D1D;
display: flex; }
align-items: center; .handbook-img{
justify-content: center; width: 200rpx;
color: #fff; height: 56rpx;
margin-bottom: 50rpx; }
} .title-s{
width: 650rpx;
.auth-btn image { height: 74rpx;
width: 32rpx; font-size: 24rpx;
height: 32rpx; color: #1D1D1D;
transform: rotate(180deg); margin-top: 10rpx;
} }
.arror-r{
.bgG { width: 21rpx;
background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%); height: 39rpx;
} position: absolute;
right: 0;
.posi { top: 16rpx;
position: absolute; }
width: 100%;
bottom: 100rpx; .auth-btn-box{
} width: 100%;
margin-top: 60rpx;
.top30 { }
bottom: 30%; .auth-btn{
} width: 666rpx;
height: 134rpx;
.tips-box { box-shadow: 0px 0px 12rpx rgba(164, 164, 164, 0.16);
/* margin-top: 15%; */ border-radius: 12rpx;
} margin-bottom: 22rpx;
background: #FFFFFF;
.tips { position: relative;
color: #FF0000; }
font-size: 26rpx; .auth-headimg{
padding-left: 54rpx; margin: 0 44rpx 0 44rpx;
margin-bottom: 10rpx; }
} .person-img{
width: 73rpx;
.icon { height: 68rpx;
width: 26rpx; }
height: 26rpx; .business-img{
border: 1rpx solid #FF0000; width: 65rpx;
text-align: center; height: 73rpx;
line-height: 22rpx; }
border-radius: 50%; .investor-img{
font-size: 20rpx; width: 65rpx;
margin-right: 10rpx; height: 73rpx;
} }
.auth-title{
.btn-box { width: 454rpx;
width: 100%; height: 40rpx;
padding: 0 36rpx; }
margin-top: 28rpx; .auth-title-h{
} width: 445rpx;
font-size: 24rpx;
.btn { color: #686868;
width: 320rpx; }
height: 378rpx; .tojump{
position: relative; width: 21rpx;
} height: 39rpx;
position: absolute;
.btn-box image { right: 32rpx;
width: 320rpx; }
height: 378rpx;
position: absolute; .posi{
left: 0; width: 100%;
top: 0; bottom: 100rpx;
} margin-top: 50rpx;
}
.btn-box .default { .top30{
filter: grayscale(1); bottom: 30%;
} }
.tips-box{
.btn .tip { /* margin-top: 15%; */
color: #9C9C9C; }
font-weight: 500; .tips{
font-size: 32rpx; color: #FF0000;
position: relative; font-size: 26rpx;
left: 0; padding-left: 54rpx;
top: 70rpx; margin-bottom: 10rpx;
text-align: center; }
z-index: 3; .icon{
} width: 26rpx;
height: 26rpx;
.btn .auth { border: 1rpx solid #FF0000;
color: #1D1D1D; text-align: center;
} line-height: 22rpx;
border-radius: 50%;
.close { font-size: 20rpx;
text-align: center; margin-right: 10rpx;
} }
.btn-box{
.close image { width: 598rpx;
width: 88rpx; margin: 0 auto;
height: 88rpx; }
} .btn{
width: 598rpx;
height: 150rpx;
background: #F8F8F8;
border-radius: 148px;
position: relative;
margin-bottom: 42rpx;
}
.btn-res{
background: #FF783A;
}
.btn-need{
background: #6AA5FF;
}
.btn-demo{
background: #ACAAFF;
}
.btn-box image{
width: 98rpx;
height: 98rpx;
margin: 0 32rpx 0 42rpx;
}
.btn-box .default{
filter: grayscale(100%);
}
.bgGary{
/* -webkit-filter:grayscale(100%); */
}
.btn .tip{
color: #FFFFFF;
font-weight: 500;
font-size: 32rpx;
margin-bottom: 12rpx;
}
.tip-s{
font-size: 24rpx;
color: #FFFFFF;
}
.close {
text-align: center;
margin: 114rpx 0 180rpx 0;
}
.close image{
width: 40rpx;
height: 40rpx;
}
</style> </style>

785
pages/release/index2.vue

@ -1,461 +1,358 @@
<template> <template>
<!--pages/release/index.wxml--> <!--pages/release/index.wxml-->
<view class="release-page"> <view class="release-page">
<view class="guid-box acea-row"> <view class="auth-btn-box acea-row row-column row-middle">
<view class="guid-title">发布指南</view> <view class="auth-btn" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3">企业认证<image
<image src="../../static/images/handbook.png" class="handbook-img"></image> src="/static/images/back.png"></image>
<view class="title-s">详细阅读有助于让你快速了解云生态发布规则更准确地发布内容</view>
<image src="../../static/images/arror-right.png" class="arror-r"></image>
</view>
<view class="auth-btn-box acea-row row-column row-middle">
<view class="auth-btn acea-row row-middle" @tap="toPersonlAuth">
<view><image src="/static/images/user/person.png" class="auth-headimg person-img"></image></view>
<view>
<view class="auth-title">个人认证</view>
<view class="auth-title-h">个人认证后可发布资源项目及需求</view>
</view>
<image src="/static/images/home/arrow-r.png" class="tojump"></image>
</view>
<view class="auth-btn acea-row row-middle" @tap="toCompanyAuth">
<view><image src="/static/images/user/business.png" class="auth-headimg business-img"></image></view>
<view>
<view class="auth-title">企业认证</view>
<view class="auth-title-h">企业认证后可发布资源项目及需求展示企业相关服务</view>
</view> </view>
<image src="/static/images/home/arrow-r.png" class="tojump"></image> <view class="auth-btn bgG" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3">个人认证<image
</view> src="/static/images/back.png"></image>
<view class="auth-btn acea-row row-middle" @tap="toInvestorAuth">
<view><image src="/static/images/user/investor.png" class="auth-headimg investor-img"></image></view>
<view>
<view class="auth-title">投资方认证</view>
<view class="auth-title-h">投资方认证后可查看项目方发布项目详情</view>
</view> </view>
<image src="/static/images/home/arrow-r.png" class="tojump"></image>
</view> </view>
</view> <view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')">
<view :class="'posi ' + (authStatus == 1 || authStatus == 2 ? 'top30' : '')"> <view class="tips-box">
<!-- <view class="tips-box"> <view class="tips acea-row-nowrap row-middle" v-if="authStatus == 0 || authStatus == 3">
<view class="tips acea-row-nowrap row-middle"> <!-- <view class="icon">!</view> -->
<view class="icon">!</view> <view>完成企业认证后可以发布资源及需求个人认证后只可发布需求</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 ">
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? '' : 'default' )" @tap="toResources" class="acea-row row-middle btn-res">
<image src="/static/images/auth-icon1.png"></image>
<view>
<view class="tip">发布资源</view>
<view class="tip-s">我要发布我的资源展示在供应广场</view>
</view> </view>
</view> <view class="tips acea-row row-middle" v-if="authStatus == 0">
<view :class="'btn ' + (authStatus == 2 ? '' : 'default' )" @tap="toNeeds" class="acea-row row-middle btn-need"> <view class="icon">!</view>
<image src="/static/images/auth-icon2.png"></image> <view>请先完成认证</view>
<view>
<view class="tip">发布需求</view>
<view class="tip-s">我要发布我的资源展示在供应广场</view>
</view> </view>
</view> <view class="tips acea-row row-middle" v-if="authStatus == 1">
<view :class="'btn ' + (authStatus == 2 ? '' : 'default' )" @tap="" class="acea-row row-middle btn-demo"> <view class="icon">!</view>
<image src="/static/images/auth-icon3.png"></image> <view>{{authType == 1 ? '企业信息审核中,请耐心等待!' : '个人信息审核中, 请耐心等待'}}</view>
<view> </view>
<view class="tip">发布项目</view> <view class="tips acea-row row-middle" v-if="authStatus == 2">
<view class="tip-s">发布优质项目精准推荐投资方</view> <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> </view>
</view> <view class="btn-box acea-row row-between">
<view class="close" @tap="back"><image src="/static/images/close-icon.png"></image></view> <view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources">
</view> <view class="tip">我能提供...</view>
</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> </template>
<script> <script>
// pages/release/index.js // pages/release/index.js
const app = getApp(); const app = getApp();
export default { export default {
data() { data() {
return { return {
userInfo: {}, userInfo: {},
authStatus: 0, authStatus: 0,
authType: null, authType: null,
completeState: null, completeState: null,
authInfo: {} authInfo: {}
}; };
}, },
components: {}, components: {},
props: {}, props: {},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) {}, onLoad: function(options) {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
this.isAuthentication(); this.isAuthentication();
}, },
methods: { /**
back() { * 生命周期函数--监听页面隐藏
let pages = getCurrentPages(); */
console.log(pages) onHide: function() {},
// let pagePath = '/' + pages[pages.length - 2].route;
// if(pagePath){ /**
// uni.navigateTo({ * 生命周期函数--监听页面卸载
// url: pagePath */
// }); onUnload: function() {},
// } else{
// uni.switchTab({ /**
// url: '/pages/home/index' * 页面相关事件处理函数--监听用户下拉动作
// }); */
// } onPullDownRefresh: function() {},
uni.switchTab({
url: '/pages/user/index' /**
}); * 页面上拉触底事件的处理函数
}, */
// onReachBottom: function() {},
toPersonlAuth() {
if (this.authStatus == 0) { /**
uni.navigateTo({ * 用户点击右上角分享
url: '/pages/release/personAuth/index' */
}); onShareAppMessage: function() {},
} else if (this.authStatus == 3) { methods: {
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo)); back() {
uni.navigateTo({ let pages = getCurrentPages();
url: '/pages/release/personAuth/index?authInfo=' + authInfo console.log(pages)
}); // let pagePath = '/' + pages[pages.length - 2].route;
} else if (this.authStatus == 1) { // if(pagePath){
uni.showToast({ // uni.navigateTo({
title: '认证申请审核中,请等待!', // url: pagePath
icon: 'none' // });
}); // } else{
} else if(this.authStatus == 2){ // uni.switchTab({
uni.showToast({ // url: '/pages/home/index'
title: '已完成认证', // });
icon: 'none' // }
}); uni.switchTab({
} url: '/pages/user/index'
},
//
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'
});
} else if(this.authStatus == 2){
uni.showToast({
title: '已完成认证',
icon: 'none'
}); });
} },
},
// toPersonlAuth() {
toInvestorAuth() { if (this.authStatus == 0) {
if (this.authStatus == 0) { uni.navigateTo({
uni.navigateTo({ url: '/pages/release/personAuth/index'
url: '/pages/release/investorAuth/index' });
}); } else if (this.authStatus == 3) {
} else if (this.authStatus == 3) { let authInfo = encodeURIComponent(JSON.stringify(this.authInfo));
let authInfo = encodeURIComponent(JSON.stringify(this.authInfo)); uni.navigateTo({
uni.navigateTo({ url: '/pages/release/personAuth/index?authInfo=' + authInfo
url: '/pages/release/investorAuth/index?authInfo=' + authInfo });
}); } else if (this.authStatus == 1) {
} else if (this.authStatus == 1) { uni.showToast({
uni.showToast({ title: '认证申请审核中,请等待!',
title: '认证申请审核中,请等待!', icon: 'none'
icon: 'none' });
}); }
} else if(this.authStatus == 2){ },
uni.showToast({
title: '已完成认证', toCompanyAuth() {
icon: 'none' 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: '您还未完成认证,点击上方按钮去认证吧!'
});
}
} }
},
// 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'
// });
// }
// },
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> </script>
<style> <style>
/* pages/release/index.wxss */ /* pages/release/index.wxss */
.guid-box{
width: 662rpx; .auth-btn-box {
height: 140rpx; width: 100%;
margin: 196rpx 46rpx 60rpx 40rpx; margin-top: 300rpx;
position: relative; }
}
.guid-title{ .auth-btn {
width: 192rpx; width: 310rpx;
height: 56rpx; height: 101rpx;
font-size: 42rpx; background: linear-gradient(137deg, #FFCDB8 0%, #FF9060 100%);
color: #1D1D1D; border-radius: 12rpx;
} display: flex;
.handbook-img{ align-items: center;
width: 200rpx; justify-content: center;
height: 56rpx; color: #fff;
} margin-bottom: 50rpx;
.title-s{ }
width: 650rpx;
height: 74rpx; .auth-btn image {
font-size: 24rpx; width: 32rpx;
color: #1D1D1D; height: 32rpx;
margin-top: 10rpx; transform: rotate(180deg);
} }
.arror-r{
width: 21rpx; .bgG {
height: 39rpx; background: linear-gradient(137deg, #BFD7F9 0%, #A8C8F6 100%);
position: absolute; }
right: 0;
top: 16rpx; .posi {
} position: absolute;
width: 100%;
.auth-btn-box{ bottom: 100rpx;
width: 100%; }
margin-top: 60rpx;
} .top30 {
.auth-btn{ bottom: 30%;
width: 666rpx; }
height: 134rpx;
box-shadow: 0px 0px 12rpx rgba(164, 164, 164, 0.16); .tips-box {
border-radius: 12rpx; /* margin-top: 15%; */
margin-bottom: 22rpx; }
background: #FFFFFF;
position: relative; .tips {
} color: #FF0000;
.auth-headimg{ font-size: 26rpx;
margin: 0 44rpx 0 44rpx; padding-left: 54rpx;
} margin-bottom: 10rpx;
.person-img{ }
width: 73rpx;
height: 68rpx; .icon {
} width: 26rpx;
.business-img{ height: 26rpx;
width: 65rpx; border: 1rpx solid #FF0000;
height: 73rpx; text-align: center;
} line-height: 22rpx;
.investor-img{ border-radius: 50%;
width: 65rpx; font-size: 20rpx;
height: 73rpx; margin-right: 10rpx;
} }
.auth-title{
width: 454rpx; .btn-box {
height: 40rpx; width: 100%;
} padding: 0 36rpx;
.auth-title-h{ margin-top: 28rpx;
width: 445rpx; }
font-size: 24rpx;
color: #686868; .btn {
} width: 320rpx;
.tojump{ height: 378rpx;
width: 21rpx; position: relative;
height: 39rpx; }
position: absolute;
right: 32rpx; .btn-box image {
} width: 320rpx;
height: 378rpx;
.posi{ position: absolute;
width: 100%; left: 0;
bottom: 100rpx; top: 0;
margin-top: 50rpx; }
}
.top30{ .btn-box .default {
bottom: 30%; filter: grayscale(1);
} }
.tips-box{
/* margin-top: 15%; */ .btn .tip {
} color: #9C9C9C;
.tips{ font-weight: 500;
color: #FF0000; font-size: 32rpx;
font-size: 26rpx; position: relative;
padding-left: 54rpx; left: 0;
margin-bottom: 10rpx; top: 70rpx;
} text-align: center;
.icon{ z-index: 3;
width: 26rpx; }
height: 26rpx;
border: 1rpx solid #FF0000; .btn .auth {
text-align: center; color: #1D1D1D;
line-height: 22rpx; }
border-radius: 50%;
font-size: 20rpx; .close {
margin-right: 10rpx; text-align: center;
} }
.btn-box{
width: 598rpx; .close image {
margin: 0 auto; width: 88rpx;
} height: 88rpx;
.btn{ }
width: 598rpx;
height: 150rpx;
background: #F8F8F8;
border-radius: 148px;
position: relative;
margin-bottom: 42rpx;
}
.btn-res{
background: #FF783A;
}
.btn-need{
background: #6AA5FF;
}
.btn-demo{
background: #ACAAFF;
}
.btn-box image{
width: 98rpx;
height: 98rpx;
margin: 0 32rpx 0 42rpx;
}
.btn-box .default{
filter: grayscale(100%);
}
.bgGary{
/* -webkit-filter:grayscale(100%); */
}
.btn .tip{
color: #FFFFFF;
font-weight: 500;
font-size: 32rpx;
margin-bottom: 12rpx;
}
.tip-s{
font-size: 24rpx;
color: #FFFFFF;
}
.close {
text-align: center;
margin: 114rpx 0 180rpx 0;
}
.close image{
width: 40rpx;
height: 40rpx;
}
</style> </style>

24
pages/user/index.vue

@ -2,7 +2,9 @@
<view class="home-page"> <view class="home-page">
<view class="page-top-box"> <view class="page-top-box">
<image src="https://download.cyjyyjy.com/top-bg.png" class="top-bg"></image> <image src="https://download.cyjyyjy.com/top-bg.png" class="top-bg"></image>
<view class="page-title" :style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'">禅易云生态</view> <!-- <view class="page-title" :style="'top:' + menuTop + 'px;height:' + menuHeight + 'px;line-height: ' + menuHeight + 'px;'">禅易云生态</view> -->
<CustomNav :title="'禅易云生态'" :isFixed="isFixed"></CustomNav>
<view class="top-box-content" :style="'top: ' + (CustomBar + 10) + 'rpx;'"> <view class="top-box-content" :style="'top: ' + (CustomBar + 10) + 'rpx;'">
<view class="top-set-box acea-row row-between row-middle"> <view class="top-set-box acea-row row-between row-middle">
<view class="set-box-l" v-if="authType == 1 || authType == 2" @tap="toAuthInfo">{{authType == 1 ? '企业' : '个人'}}中心</view> <view class="set-box-l" v-if="authType == 1 || authType == 2" @tap="toAuthInfo">{{authType == 1 ? '企业' : '个人'}}中心</view>
@ -108,7 +110,7 @@
</view> </view>
<view class="torelease-img" @tap="toRelease(0)"> <view class="torelease-img" @tap="toRelease(0)">
<image src="/static/images/user/fbzy.png"></image> <image src="/static/images/user/fbzy.png"></image>
<view class="to-btn">发布需求</view> <view class="to-btn">发布供应</view>
</view> </view>
</view> </view>
<view class="add-service" @click="$yrouter.push({path: '/pages/user/addServiceCode/index'})"> <view class="add-service" @click="$yrouter.push({path: '/pages/user/addServiceCode/index'})">
@ -221,6 +223,7 @@
<script> <script>
// pages/life/index.js // pages/life/index.js
const app = getApp(); const app = getApp();
import CustomNav from '@/components/CustomNavigator.vue'
import tabbar from "../../tabbarComponent/tabbar"; import tabbar from "../../tabbarComponent/tabbar";
export default { export default {
@ -237,19 +240,26 @@ export default {
authType: 0, authType: 0,
completeState: "", completeState: "",
currentTabIndex: 4, currentTabIndex: 4,
scene: app.globalData.scene scene: app.globalData.scene,
isFixed: false,
}; };
}, },
components: { components: {
tabbar tabbar,
CustomNav
}, },
props: {}, props: {},
onPageScroll(e) {
if (e.scrollTop > 60) {
this.isFixed = true;
} else {
this.isFixed = false;
};
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
this.getInfo(); this.getInfo();
}, },
/** /**
@ -480,7 +490,7 @@ export default {
font-size: 24rpx; font-size: 24rpx;
} }
.userInfo-box{ .userInfo-box{
margin-top: 34rpx; margin-top: 60rpx;
} }
.userInfo-box .header-img{ .userInfo-box .header-img{
width: 120rpx; width: 120rpx;

Loading…
Cancel
Save