Compare commits

...

6 Commits

  1. 29
      api/business.js
  2. 28
      components/LoadStatus.vue
  3. 4
      config/index.js
  4. 9
      pages.json
  5. 185
      pages/demandHall/business/index.vue
  6. 49
      pages/demandHall/business/newsSwiper.vue
  7. 12
      pages/demandHall/enterpriseServer/index.vue
  8. 58
      pages/demandHall/supplyHall/index.vue
  9. 6
      pages/home/index.vue
  10. 12
      pages/information/index.vue
  11. 26
      pages/life/articleList/index.vue
  12. 2
      pages/life/index.vue
  13. 30
      pages/release/companyAuth/index.css
  14. 102
      pages/release/index2.vue
  15. 88
      pages/release/investorAuth/index.vue
  16. 71
      pages/user/editNeeds/index.vue
  17. 2
      pages/user/index.vue
  18. BIN
      static/images/home/top-bg.png

29
api/business.js

@ -0,0 +1,29 @@
import request from '@/utils/request'
// 商业简报
export function briefing(data) {
return request.get('/business/briefing', data, {
login: false,
})
}
// 推荐服务里的供应
export function supply(data) {
return request.get('/business/supply', data, {
login: false,
})
}
// 推荐服务里的分类
export function listResourcesCagetory(data) {
return request.get('/ResourcesCagetory/listResourcesCagetory', data, {
login: false,
})
}
// 优质企业列表
export function listEnterprise(data) {
return request.get('/business/listEnterprise ', data, {
login: false,
})
}

28
components/LoadStatus.vue

@ -0,0 +1,28 @@
<template>
<view class="loadStatus-box">{{loadStatus}}</view>
</template>
<script>
export default{
props: {
loadStatus: {
type: String,
default: ''
}
},
data(){
return {
}
},
}
</script>
<style>
.loadStatus-box{
text-align: center;
font-size: 28rpx;
color: #000;
padding: 30rpx 0;
}
</style>

4
config/index.js

@ -1,8 +1,8 @@
// 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://10.11.32.103: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'
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';

9
pages.json

@ -267,8 +267,7 @@
{ {
"path": "pages/demandHall/business/index", "path": "pages/demandHall/business/index",
"style": { "style": {
"navigationBarTitleText": "商业", "navigationBarTitleText": "商业"
"enablePullDownRefresh": true
} }
}, },
@ -296,6 +295,12 @@
"navigationBarTitleText": "企业认证" "navigationBarTitleText": "企业认证"
} }
}, },
{
"path": "pages/release/investorAuth/index",
"style": {
"navigationBarTitleText": "投资方认证"
}
},
{ {
"path": "pages/release/perfectPersonInfo/index", "path": "pages/release/perfectPersonInfo/index",
"style": { "style": {

185
pages/demandHall/business/index.vue

@ -20,12 +20,18 @@
<!-- 商业简报 --> <!-- 商业简报 -->
<view class="news-box acea-row row-middle"> <view class="news-box acea-row row-middle">
<image src="../../../static/images/business-news.png" class="news-img"></image> <image src="../../../static/images/business-news.png" class="news-img"></image>
<view> <view class="news-con-box">
<view class="news-con acea-row row-middle"> <view class="news-con acea-row row-middle">
<image src="../../../static/images/hot-icon.png"></image>2021中国酒店与商用厨具行业品牌盛即将召开 <image src="../../../static/images/hot-icon.png"></image>
<view class="notice-swiper">
<NewsSwiper :list="isHotList" :interval="4000" @toArticleDetail="toArticleDetail"></NewsSwiper>
</view>
</view> </view>
<view class="news-con acea-row row-middle"> <view class="news-con acea-row row-middle">
<image src="../../../static/images/rem-icon.png"></image>2021如何具有商业思维 <image src="../../../static/images/rem-icon.png"></image>
<view class="notice-swiper">
<NewsSwiper :list="isRecommend" :interval="4000" @toArticleDetail="toArticleDetail"></NewsSwiper>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -34,22 +40,22 @@
<view class="company-box"> <view class="company-box">
<view class="title-con acea-row"> <view class="title-con acea-row">
<image src="../../../static/images/business-title1.png" class="title-img"></image> <image src="../../../static/images/business-title1.png" class="title-img"></image>
<view class="update-icon acea-row row-center-wrapper"> <view class="update-icon acea-row row-center-wrapper" @click="replaceClick">
<image src="../../../static/images/update-icon.png" mode=""></image>换一批 <image src="../../../static/images/update-icon.png" :class="showCirc ? 'circ' : ''"></image>换一批
</view> </view>
</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="company-list" v-for="(item,index) in 6"> <view class="company-list" v-for="(item,index) in enterpriseList" :key="index">
<view class="title">楚象科技有限公司</view> <view class="title">{{item.enterpriseName}}</view>
<view class="category-box acea-row"> <view class="category-box acea-row">
<view class="tag-item-b tag">持续盈利</view> <view class="tag" :class="index%2 == 0 ? 'tag-item-b' : 'tag-item-y' ">{{item.cname}}</view>
<view class="tag-item-y tag">财务规范</view> <!-- <view class="tag-item-y tag">财务规范</view>
<view class="tag-item-p tag">零负债</view> <view class="tag-item-p tag">零负债</view> -->
</view> </view>
<view class="title-s">以领先科技致力于推动客户成功</view> <view class="title-s line1">{{item.enterpriseTitle}}</view>
<view class="acea-row"> <view class="acea-row">
<image src="../../../static/images/business-img1.png" class="company-logo"></image> <image :src="item.enterpriseLogo" class="company-logo" mode="aspectFill"></image>
<view class="todetails">了解详情</view> <view class="todetails" @click="toCompanyDetail(item.id)">了解详情</view>
</view> </view>
</view> </view>
@ -64,46 +70,36 @@
</view> </view>
<view class="service-top acea-row row-between"> <view class="service-top acea-row row-between">
<view class="service-nub-left acea-row row-column-between"> <view class="service-nub-left acea-row row-column-between">
<view class="tips">我要开发小程序</view> <view class="tips line1">{{supplyList[0].title}}</view>
<view class="tips-item">最快一个月进入测试阶段</view> <view class="tips-item line1">{{supplyList[0].detailedDescription}}</view>
<image src="../../../static/images/business-img1.png" mode=""></image> <image :src="supplyList[0].resourceImgs[0]" mode="aspectFill"></image>
</view> </view>
<view class="acea-row row-between service-nub-right"> <view class="acea-row row-between service-nub-right">
<view class="acea-row row-center-wrapper module-nub"> <view class="acea-row row-center-wrapper module-nub">
<view class="tips">我要H5定制</view> <view class="tips line1">{{supplyList[1].title}}</view>
<view class="tips-item">最快半个月进入测试阶段</view> <view class="tips-item line1">{{supplyList[1].detailedDescription}}</view>
</view> </view>
<view class="module-box acea-row row-center-wrapper"> <view class="acea-row row-center-wrapper module-nub">
<view class="tips">装修服务</view> <view class="tips">{{supplyList[2].title || '广告位招租'}}</view>
<view class="tips-item">房屋装修</view> <view class="tips-item">{{supplyList[2].detailedDescription}}</view>
</view>
<view class="module-box acea-row row-center-wrapper">
<view class="tips">装修服务</view>
<view class="tips-item">房屋装修</view>
</view> </view>
</view> </view>
</view> </view>
<view class="service-bottom acea-row row-between"> <view class="service-bottom acea-row row-between">
<view class="module-box bg-red acea-row row-center-wrapper"> <view v-for="(item,index) in cagetoryList" :key="index">
<view class="tips">装修服务</view> <view class="module-box bg-red acea-row row-center-wrapper" v-if="index <= 2 ">
<view class="tips-item">房屋装修</view> <view class="tips">{{item.cagetoryName}}</view>
</view> <!-- <view class="tips-item">房屋装修</view> -->
<view class="module-box bg-blue acea-row row-center-wrapper"> </view>
<view class="tips">装修服务</view>
<view class="tips-item">房屋装修</view>
</view>
<view class="module-box bg-yellow acea-row row-center-wrapper">
<view class="tips">装修服务</view>
<view class="tips-item">房屋装修</view>
</view> </view>
<view class="tolearn acea-row row-center-wrapper">装修服务</view> <view class="tolearn acea-row row-center-wrapper">查看更多</view>
</view> </view>
</view> </view>
<!-- 优质项目 --> <!-- 优质项目 -->
<view class="project-box"> <view class="project-box">
<image src="../../../static/images/business-title3.png" class="title-img"></image> <image src="../../../static/images/business-title3.png" class="title-img"></image>
<view class="project-list acea-row" v-for="(item,index) in 3"> <view class="project-list acea-row" v-for="(item,index) in 3" :key="index">
<image src="../../../static/images/business-img1.png" mode="" class="project-img"></image> <image src="../../../static/images/business-img1.png" mode="" class="project-img"></image>
<view class="right-con acea-row row-column-between"> <view class="right-con acea-row row-column-between">
<view class="acea-row row-middle title"> <view class="acea-row row-middle title">
@ -125,16 +121,74 @@
</template> </template>
<script> <script>
import { getArticle } from "@/api/home";
import { briefing, supply, listResourcesCagetory, listEnterprise } from "@/api/business"
import NewsSwiper from "./newsSwiper.vue"
export default { export default {
components:{ NewsSwiper },
data() { data() {
return { return {
showCirc: false,
isHotList: [],
isRecommend: [],
supplyList: [],
cagetoryList: [],
enterpriseList: []
}; };
}, },
mounted(){
this.getArticleList()
this.getSupplyList()
this.getCagetoryList()
this.getEnterpriseList()
},
methods:{ methods:{
//
getArticleList(){
briefing().then((res)=>{
const articleList= res.data
this.isHotList = articleList.filter(item=> item.isHot == 1)
this.isRecommend = articleList.filter(item=> item.isRecommend == 1)
})
},
toArticleDetail(id){
uni.navigateTo({
url:"/pages/life/articleDetail/index?id=" + id
})
},
//
getSupplyList(){
supply().then((res)=>{
this.supplyList = res.data
})
},
//
getCagetoryList(){
listResourcesCagetory().then((res)=>{
this.cagetoryList = res.data
})
},
//
getEnterpriseList(){
listEnterprise().then((res)=>{
this.enterpriseList = res.data
this.showCirc = false
})
},
toCompanyDetail(id){
uni.navigateTo({
url:"/pages/life/articleDetail/index?id=" + id
})
},
//
replaceClick(){
if(!this.showCirc){
this.showCirc = true;
this.getEnterpriseList()
}
},
// //
toSupplyHall(e){ toSupplyHall(e){
// let id = e.currentTarget.dataset.id;
uni.navigateTo({ uni.navigateTo({
url:"/pages/demandHall/supplyHall/index" url:"/pages/demandHall/supplyHall/index"
}) })
@ -147,9 +201,14 @@
}, },
// //
toDemoInvestment(e){ toDemoInvestment(e){
uni.navigateTo({ uni.showModal({
url:"/pages/demandHall/demoInvestment/index" title:'提示!',
content: '模块开发中,请等待...',
showCancel: false
}) })
// uni.navigateTo({
// url:"/pages/demandHall/demoInvestment/index"
// })
}, },
// //
toAuthentication(e){ toAuthentication(e){
@ -188,7 +247,7 @@
.search { .search {
margin-left: auto; margin-left: auto;
width: 132rpx; width: 132rpx;
height: 68rpx; height: 66rpx;
background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%); background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%);
border-radius: 8rpx; border-radius: 8rpx;
color: #fff; color: #fff;
@ -235,9 +294,21 @@
height: 78rpx; height: 78rpx;
margin-left: 18rpx; margin-left: 18rpx;
} }
.news-con-box{
width: calc(100% - 100rpx);
}
.news-con { .news-con {
margin-bottom: 6rpx; margin-bottom: 6rpx;
.notice-swiper{
width: calc(100% - 116rpx);
height: 34rpx;
}
.scroll-Y{
height: 34rpx;
.swiper-item{
height: 34rpx;
}
}
} }
.news-con image { .news-con image {
@ -256,6 +327,15 @@
width: 134rpx; width: 134rpx;
height: 46rpx; height: 46rpx;
} }
@keyframes doCric{
0% {
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
.company-box { .company-box {
height: 380rpx; height: 380rpx;
@ -270,6 +350,7 @@
line-height: 26rpx; line-height: 26rpx;
color: #666666; color: #666666;
margin-left: auto; margin-left: auto;
} }
.update-icon image { .update-icon image {
@ -278,11 +359,15 @@
background: rgba(0, 0, 0, 0); background: rgba(0, 0, 0, 0);
margin-right: 10rpx; margin-right: 10rpx;
} }
.update-icon .circ{
animation: doCric 1s ease;
}
.scroll-view_H { .scroll-view_H {
width: 100%; width: 100%;
height: 330rpx; height: 330rpx;
white-space: nowrap; white-space: nowrap;
margin-left: 30rpx;
.company-list { .company-list {
width: 408rpx; width: 408rpx;
@ -292,8 +377,8 @@
border-radius: 12rpx; border-radius: 12rpx;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
display: inline-block; display: inline-block;
margin: 15rpx 32rpx 0 0rpx; margin: 15rpx 30rpx 0 10rpx;
.title { .title {
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
@ -328,6 +413,7 @@
} }
.title-s { .title-s {
height: 32rpx;
font-weight: 400; font-weight: 400;
color: #6E6E6E; color: #6E6E6E;
margin: 16rpx 0 10rpx 0; margin: 16rpx 0 10rpx 0;
@ -336,6 +422,7 @@
.company-logo { .company-logo {
width: 176rpx; width: 176rpx;
height: 128rpx; height: 128rpx;
border-radius: 8rpx;
} }
.todetails { .todetails {
@ -351,9 +438,6 @@
} }
} }
} }
.company-list:nth-child(1){
margin-left: 40rpx;
}
} }
// //
@ -384,6 +468,7 @@
.service-nub-left image { .service-nub-left image {
width: 288rpx; width: 288rpx;
height: 162rpx; height: 162rpx;
border-radius: 8rpx;
} }
.service-nub-right { .service-nub-right {
@ -395,7 +480,7 @@
height: 128rpx; height: 128rpx;
background: #FFEFE8; background: #FFEFE8;
border-radius: 12rpx; border-radius: 12rpx;
padding: 18rpx 0 32rpx 0; padding: 18rpx 12rpx 32rpx;
} }
} }
} }

49
pages/demandHall/business/newsSwiper.vue

@ -0,0 +1,49 @@
<template>
<swiper
:autoplay="autoplay"
:interval="interval"
:circular="circular"
style="height: 34rpx;"
:duration="duration"
:vertical="true"
>
<swiper-item v-for="(item,i) in list" :key="i">
<view @click="toArticleDetail(item.id)">{{item.title}}</view>
</swiper-item>
</swiper>
</template>
<script>
export default{
props:{
list: {
type: Array,
default: []
},
duration: {
type: Number,
default: 1500
},
interval: {
type: Number,
default: 5000
},
circular: {
type: Boolean,
default: true
},
autoplay: {
type: Boolean,
default: true
},
},
methods:{
toArticleDetail(id){
this.$emit('toArticleDetail',id)
}
}
}
</script>
<style>
</style>

12
pages/demandHall/enterpriseServer/index.vue

@ -23,7 +23,9 @@
<view class="resource-box" v-if="active == 1"> <view class="resource-box" v-if="active == 1">
<!-- 企业 --> <!-- 企业 -->
<view class="enterprise-list" v-for="(item,index) in 2" :key="index"> <view class="enterprise-list" v-for="(item,index) in 2" :key="index">
<image src="../../../static/images/act-time.png" mode="" class="lable-img"></image> <view :class="'business-lable' + (item.enterpriseType == 2 ? ' bg2' : '')">
{{item.enterpriseType == 1 ? '企业' : '个人'}}
</view>
<view class="enterprise-con acea-row"> <view class="enterprise-con acea-row">
<image src="../../../static/images/home/menu6.png" class="enterprise-img"></image> <image src="../../../static/images/home/menu6.png" class="enterprise-img"></image>
<view class="content-right acea-row row-column-between"> <view class="content-right acea-row row-column-between">
@ -44,7 +46,7 @@
</view> </view>
<view class="company-box" v-if="active == 2"> <view class="company-box" v-if="active == 2">
<view class="business-list" v-for="(item,index) in companyList" :key="index" @tap="toCompanyDetail" :data-id="item.id"> <view class="business-list" v-for="(item,index) in companyList" :key="index" @tap="toCompanyDetail" :data-id="item.id">
<view :class="'business-lable' + (item.enterpriseType == 2 ? 'bg2' : '')"> <view :class="'business-lable' + (item.enterpriseType == 2 ? ' bg2' : '')">
{{item.enterpriseType == 1 ? '企业' : '个人'}} {{item.enterpriseType == 1 ? '企业' : '个人'}}
</view> </view>
<view class="business-con acea-row"> <view class="business-con acea-row">
@ -338,8 +340,8 @@
} }
.tag { .tag {
width: auto; width: auto;
padding: 0 10rpx; padding: 0rpx 10rpx;
height: 36rpx; line-height: 26rpx;
border-radius: 4rpx; border-radius: 4rpx;
font-size: 20rpx; font-size: 20rpx;
margin-right: 8rpx; margin-right: 8rpx;
@ -440,7 +442,7 @@
} }
.bg2 { .bg2 {
background: rgba(255, 170, 0, 0.63); background: linear-gradient(141deg, #FFA782 0%, #FF6D31 100%);
} }

58
pages/demandHall/supplyHall/index.vue

@ -22,7 +22,7 @@
<view class="supplyHall-box"> <view class="supplyHall-box">
<view class="resource-box" v-if="active == 1"> <view class="resource-box" v-if="active == 1">
<!-- 个人 --> <!-- 个人 -->
<view class="personal-list" v-for="(item,index) in 2" :key="index"> <!-- <view class="personal-list" v-for="(item,index) in 2" :key="index">
<view :class="'tips-item ' + (item.enterpriseType == 2 ? 'bg2' : '' )"> <view :class="'tips-item ' + (item.enterpriseType == 2 ? 'bg2' : '' )">
{{item.enterpriseType == 1 ? '企业' : '个人'}} {{item.enterpriseType == 1 ? '企业' : '个人'}}
</view> </view>
@ -41,11 +41,11 @@
<view class="time-end">2021.8.30截止报名</view> <view class="time-end">2021.8.30截止报名</view>
</view> </view>
<view class="todetails">查看详情</view> <view class="todetails">查看详情</view>
</view> </view> -->
<!-- 企业 --> <!-- 企业 -->
<view class="enterprise-list" v-for="(item, index) in list" :key="index" @tap="toNeedsDetail" <view class="enterprise-list" v-for="(item, index) in list" :key="index" @tap="toNeedsDetail"
:data-id="item.id"> :data-id="item.id">
<view :class="'tips-item ' + (item.enterpriseType == 2 ? 'bg2' : '' )"> <view :class="'tips-item' + (item.enterpriseType == 2 ? ' bg2' : '')">
{{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">
@ -65,10 +65,11 @@
<view class="todetails">查看详情</view> <view class="todetails">查看详情</view>
</view> </view>
<LoadStatus :loadStatus="loadStatus"></LoadStatus>
</view> </view>
<view class="company-box" v-if="active == 2"> <view class="company-box" v-if="active == 2">
<view class="personal-list"> <view class="personal-list">
<view :class="'tips-item ' + (item.enterpriseType == 2 ? 'bg2' : '' )"> <view :class="'tips-item' + (item.enterpriseType == 2 ? ' bg2' : '' )">
{{item.enterpriseType == 1 ? '企业' : '个人'}} {{item.enterpriseType == 1 ? '企业' : '个人'}}
</view> </view>
<view class="acea-row row-column-between info-box"> <view class="acea-row row-column-between info-box">
@ -88,7 +89,7 @@
<view class="todetails">查看详情</view> <view class="todetails">查看详情</view>
</view> </view>
<view class="enterprise-list"> <view class="enterprise-list">
<view :class="'tips-item ' + (item.enterpriseType == 2 ? 'bg2' : '' )"> <view :class="'tips-item' + (item.enterpriseType == 2 ? ' bg2' : '' )">
{{item.enterpriseType == 1 ? '企业' : '个人'}} {{item.enterpriseType == 1 ? '企业' : '个人'}}
</view> </view>
<view class="enterprise-con acea-row"> <view class="enterprise-con acea-row">
@ -108,6 +109,7 @@
</view> </view>
<view class="todetails">查看详情</view> <view class="todetails">查看详情</view>
</view> </view>
<LoadStatus :loadStatus="loadStatus"></LoadStatus>
</view> </view>
</view> </view>
<view class="mask-box" v-if="showScreenDialog"> <view class="mask-box" v-if="showScreenDialog">
@ -142,7 +144,9 @@
<script> <script>
const app = getApp(); const app = getApp();
import LoadStatus from "@/components/LoadStatus.vue"
export default { export default {
components:{ LoadStatus },
data() { data() {
return { return {
active: '1', active: '1',
@ -160,8 +164,9 @@
list: [], list: [],
pageNumber: 0, pageNumber: 0,
pageSize: 5, pageSize: 10,
loading: true, loading: true,
loadStatus: '加载更多...'
} }
}, },
onShow: function() { onShow: function() {
@ -191,13 +196,12 @@
cagetoryActive: null, cagetoryActive: null,
resourceCagetoryId: '' resourceCagetoryId: ''
}); });
console.log(this.active)
this.getPageData(); this.getPageData();
}, },
showDialog() { showDialog() {
this.setData({ this.setData({
showScreenDialog: true showScreenDialog: true,
}); });
}, },
cagetoryClick(e) { cagetoryClick(e) {
@ -218,13 +222,11 @@
enterpriseType: type enterpriseType: type
}); });
}, },
finishClick() { finishClick() {
this.setData({ this.setData({
showScreenDialog: false showScreenDialog: false
}); });
}, },
resetClick() { resetClick() {
this.setData({ this.setData({
cName: '', cName: '',
@ -245,29 +247,29 @@
getPageData() { getPageData() {
if (this.loading) { if (this.loading) {
this.loadStatus = '正在加载中...'
app.http('post', `Resources/listResources?page=${this.pageNumber}&size=${this.pageSize}`, { app.http('post', `Resources/listResources?page=${this.pageNumber}&size=${this.pageSize}`, {
resourceType: this.active, resourceType: this.active,
resourceCagetoryId: this.resourceCagetoryId, resourceCagetoryId: this.resourceCagetoryId,
enterpriseType: this.enterpriseType enterpriseType: this.enterpriseType,
}).then(res => { }).then(res => {
if (res.data.success) { if (res.data.success) {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
if (res.data.data.content.length < this.pageSize) { if (res.data.data.content.length < this.pageSize) {
this.setData({ this.loading = false;
loading: false this.loadStatus = '没有更多了...'
}); } else{
} this.loadStatus = '上拉加载更多...'
if (this.pageNumber > 0) {
this.setData({
list: this.list.concat(res.data.data.content)
});
} else {
this.setData({
list: res.data.data.content
});
} }
this.list = this.list.concat(res.data.data.content)
// if (this.pageNumber > 0) {
// this.list = this.list.concat(res.data.data.content)
// } else {
// this.setData({
// list: res.data.data.content
// });
// }
} }
}); });
} else { } else {
@ -312,7 +314,7 @@
.search { .search {
margin-left: auto; margin-left: auto;
width: 132rpx; width: 132rpx;
height: 68rpx; height: 64rpx;
background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%); background: linear-gradient(39deg, #FF5100 0%, #FFA074 100%);
border-radius: 8rpx; border-radius: 8rpx;
color: #fff; color: #fff;
@ -406,7 +408,7 @@
color: #fff; color: #fff;
border-radius: 12rpx 0; border-radius: 12rpx 0;
text-align: center; text-align: center;
background-color: #007AFF; background: rgba(88, 144, 255, 0.91);
margin-bottom: 5rpx; margin-bottom: 5rpx;
} }
@ -457,7 +459,7 @@
.tag { .tag {
width: auto; width: auto;
height: 36rpx; line-height: 28rpx;
border-radius: 4rpx; border-radius: 4rpx;
font-size: 20rpx; font-size: 20rpx;
margin-right: 8rpx; margin-right: 8rpx;

6
pages/home/index.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="productSort"> <view class="productSort">
<!-- 顶部主页 --> <!-- 顶部主页 -->
<skeleton v-if="showSkeleton" ref="<strong>skeleton</strong>" loading="chiaroscuro" selector="skeleton" <skeleton v-if="showSkeleton" ref="skeleton" loading="chiaroscuro" selector="skeleton"
bgcolor="#FFF"></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'}">
@ -224,7 +224,7 @@
onReady: function() { onReady: function() {
const that = this; const that = this;
// that.$refs.skeleton.attachedAction(); that.$refs.skeleton.attachedAction();
that.$refs.skeleton.readyAction(); that.$refs.skeleton.readyAction();
}, },
@ -895,7 +895,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: ; // align-items: ;
image { image {
width: 324rpx; width: 324rpx;

12
pages/information/index.vue

@ -18,28 +18,28 @@
<scroll-view class="scroll-view_N" scroll-x="true"> <scroll-view class="scroll-view_N" scroll-x="true">
<view class="rotaion-box" @click="toTodayEvent"> <view class="rotaion-box" @click="toTodayEvent">
<view class="acea-row rotaion row-center"> <view class="acea-row rotaion row-center">
<image src="../../static/images/details1.png" mode=""></image> <image src="../../static/images/details1.png" mode="aspectFill"></image>
<view class="rotaion-h">今日大事</view> <view class="rotaion-h">今日大事</view>
<view class="rotaion-s">每日热点资讯</view> <view class="rotaion-s">每日热点资讯</view>
</view> </view>
</view> </view>
<view class="rotaion-box" @click="toBusinessInfo"> <view class="rotaion-box" @click="toBusinessInfo">
<view class="acea-row rotaion row-center"> <view class="acea-row rotaion row-center">
<image src="../../static/images/details2.png" mode=""></image> <image src="../../static/images/details2.png" mode="aspectFill"></image>
<view class="rotaion-h">商业资讯</view> <view class="rotaion-h">商业资讯</view>
<view class="rotaion-s">商业资讯抢先知</view> <view class="rotaion-s">商业资讯抢先知</view>
</view> </view>
</view> </view>
<view class="rotaion-box" @click="toGovernmentPolicy"> <view class="rotaion-box" @click="toGovernmentPolicy">
<view class="acea-row rotaion row-center"> <view class="acea-row rotaion row-center">
<image src="../../static/images/details3.png" mode=""></image> <image src="../../static/images/details3.png" mode="aspectFill"></image>
<view class="rotaion-h">政府政策</view> <view class="rotaion-h">政府政策</view>
<view class="rotaion-s">了解政府政策</view> <view class="rotaion-s">了解政府政策</view>
</view> </view>
</view> </view>
<view class="rotaion-box" @click="toLifeInfo"> <view class="rotaion-box" @click="toLifeInfo">
<view class="acea-row rotaion row-center"> <view class="acea-row rotaion row-center">
<image src="../../static/images/details4.png" mode=""></image> <image src="../../static/images/details4.png" mode="aspectFill"></image>
<view class="rotaion-h">生活资讯</view> <view class="rotaion-h">生活资讯</view>
<view class="rotaion-s">有趣好玩</view> <view class="rotaion-s">有趣好玩</view>
</view> </view>
@ -57,7 +57,7 @@
<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">203
<image src="../../static/images/eye.png" mode=""></image> <image src="../../static/images/eye.png" mode="aspectFill"></image>
</view> </view>
</view> </view>
</view> </view>
@ -89,7 +89,7 @@
<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">203
<image src="../../static/images/eye.png" mode=""></image> <image src="../../static/images/eye.png" mode="aspectFill"></image>
</view> </view>
</view> </view>
</view> </view>

26
pages/life/articleList/index.vue

@ -49,20 +49,19 @@
<view>4</view> <view>4</view>
</view> </view>
</view> </view>
<LoadStatus :loadStatus="loadStatus"></LoadStatus>
<view class="loadStatus-box">{{loadStatus}}</view>
</view> </view>
</template> </template>
<script> <script>
import { import { getArticle } from "@/api/home";
getArticle import LoadStatus from '@/components/LoadStatus.vue'
} from "@/api/home"; export default{
export default { components: {
data() { LoadStatus
return { },
active: '1', data(){
return{
articleList: [], articleList: [],
page: 0, page: 0,
size: 10, size: 10,
@ -266,12 +265,5 @@
} }
} }
} }
.loadStatus-box {
text-align: center;
font-size: 28rpx;
color: #000;
padding: 30rpx 0;
}
} }
</style> </style>

2
pages/life/index.vue

@ -431,7 +431,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: ; // align-items: ;
image { image {
width: 324rpx; width: 324rpx;
height: 190rpx; height: 190rpx;

30
pages/release/companyAuth/index.css

@ -33,6 +33,31 @@
margin-bottom: 38rpx; margin-bottom: 38rpx;
font-weight: 500; font-weight: 500;
} }
.title-l{
font-size: 36rpx;
line-height: 50rpx;
color: #343434;
font-weight: 600;
}
.title-s{
font-size: 28rpx;
font-weight: 400;
line-height: 40rpx;
color: #666666;
margin: 16rpx 0;
}
.card-bg{
width: 670rpx;
height: 320rpx;
background: #FFFFFF;
box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.16);
border-radius: 16rpx;
margin-bottom: 60rpx;
}
.card-bg image{
width: 625rpx;
height: 274rpx;
}
.form-item{ .form-item{
font-size: 28rpx; font-size: 28rpx;
color: #666666; color: #666666;
@ -43,6 +68,11 @@
width: 70%; width: 70%;
text-align: right; text-align: right;
} }
.tomore{
width: 10rpx;
height: 18rpx;
margin-left: 10rpx;
}
.yyzz image{ .yyzz image{
width: 670rpx; width: 670rpx;
height: 368rpx; height: 368rpx;

102
pages/release/index2.vue

@ -8,7 +8,7 @@
<image src="../../static/images/arror-right.png" class="arror-r"></image> <image src="../../static/images/arror-right.png" class="arror-r"></image>
</view> </view>
<view class="auth-btn-box acea-row row-column row-middle"> <view class="auth-btn-box acea-row row-column row-middle">
<view class="auth-btn acea-row row-middle" @tap="toCompanyAuth" v-if="authStatus == 0 || authStatus == 3"> <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><image src="/static/images/user/person.png" class="auth-headimg person-img"></image></view>
<view> <view>
<view class="auth-title">个人认证</view> <view class="auth-title">个人认证</view>
@ -16,7 +16,7 @@
</view> </view>
<image src="/static/images/home/arrow-r.png" class="tojump"></image> <image src="/static/images/home/arrow-r.png" class="tojump"></image>
</view> </view>
<view class="auth-btn acea-row row-middle" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3"> <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><image src="/static/images/user/business.png" class="auth-headimg business-img"></image></view>
<view> <view>
<view class="auth-title">企业认证</view> <view class="auth-title">企业认证</view>
@ -24,7 +24,7 @@
</view> </view>
<image src="/static/images/home/arrow-r.png" class="tojump"></image> <image src="/static/images/home/arrow-r.png" class="tojump"></image>
</view> </view>
<view class="auth-btn acea-row row-middle" @tap="toPersonlAuth" v-if="authStatus == 0 || authStatus == 3"> <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><image src="/static/images/user/investor.png" class="auth-headimg investor-img"></image></view>
<view> <view>
<view class="auth-title">投资方认证</view> <view class="auth-title">投资方认证</view>
@ -34,9 +34,9 @@
</view> </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>
<view class="tips acea-row row-middle" v-if="authStatus == 0"> <view class="tips acea-row row-middle" v-if="authStatus == 0">
@ -56,24 +56,24 @@
<view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view> <view>{{authType == 1 ? '企业信息未审核通过, 请重新提交审核信息!' : '个人信息未审核通过, 请重新提交审核信息!'}}</view>
<view>未通过理由{{reason}}</view> <view>未通过理由{{reason}}</view>
</view> </view>
</view> </view> -->
<view class="btn-box "> <view class="btn-box ">
<view :class="'btn ' + (authStatus == 2 && authType == 1 ? 'auth' : '' )" @tap="toResources" class="acea-row row-middle btn-res"> <view :class="'btn ' + (authStatus == 2 && authType == 1 ? '' : 'default' )" @tap="toResources" class="acea-row row-middle btn-res">
<image :class="authStatus == 2 && authType == 1 ? '' : 'default'" src="/static/images/auth-icon1.png"></image> <image src="/static/images/auth-icon1.png"></image>
<view> <view>
<view class="tip">发布资源</view> <view class="tip">发布资源</view>
<view class="tip-s">我要发布我的资源展示在供应广场</view> <view class="tip-s">我要发布我的资源展示在供应广场</view>
</view> </view>
</view> </view>
<view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds" class="acea-row row-middle btn-need"> <view :class="'btn ' + (authStatus == 2 ? '' : 'default' )" @tap="toNeeds" class="acea-row row-middle btn-need">
<image :class="authStatus == 2 ? '' : 'default'" src="/static/images/auth-icon2.png"></image> <image src="/static/images/auth-icon2.png"></image>
<view> <view>
<view class="tip">发布资源</view> <view class="tip">发布需求</view>
<view class="tip-s">我要发布我的资源展示在供应广场</view> <view class="tip-s">我要发布我的资源展示在供应广场</view>
</view> </view>
</view> </view>
<view :class="'btn ' + (authStatus == 2 ? 'auth' : '' )" @tap="toNeeds" class="acea-row row-middle btn-demo"> <view :class="'btn ' + (authStatus == 2 ? '' : 'default' )" @tap="" class="acea-row row-middle btn-demo">
<image :class="authStatus == 2 ? '' : 'default'" src="/static/images/auth-icon3.png"></image> <image src="/static/images/auth-icon3.png"></image>
<view> <view>
<view class="tip">发布项目</view> <view class="tip">发布项目</view>
<view class="tip-s">发布优质项目精准推荐投资方</view> <view class="tip-s">发布优质项目精准推荐投资方</view>
@ -115,30 +115,6 @@ export default {
this.isAuthentication(); this.isAuthentication();
}, },
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {},
methods: { methods: {
back() { back() {
let pages = getCurrentPages(); let pages = getCurrentPages();
@ -173,7 +149,12 @@ export default {
title: '认证申请审核中,请等待!', title: '认证申请审核中,请等待!',
icon: 'none' icon: 'none'
}); });
} } else if(this.authStatus == 2){
uni.showToast({
title: '已完成认证',
icon: 'none'
});
}
}, },
// //
toCompanyAuth() { toCompanyAuth() {
@ -191,14 +172,36 @@ export default {
title: '认证申请审核中,请等待!', title: '认证申请审核中,请等待!',
icon: 'none' icon: 'none'
}); });
} } else if(this.authStatus == 2){
uni.showToast({
title: '已完成认证',
icon: 'none'
});
}
}, },
// //
// toInvestorAuth() { toInvestorAuth() {
// uni.navigateTo({ if (this.authStatus == 0) {
// url: '/pages/release/investorAuth/index' 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() { // toPersonlAuth() {
// if (this.authStatus == 0) { // if (this.authStatus == 0) {
// uni.navigateTo({ // uni.navigateTo({
@ -359,8 +362,8 @@ export default {
height: 73rpx; height: 73rpx;
} }
.investor-img{ .investor-img{
width: 71rpx; width: 65rpx;
height: 79rpx; height: 73rpx;
} }
.auth-title{ .auth-title{
width: 454rpx; width: 454rpx;
@ -432,7 +435,10 @@ export default {
margin: 0 32rpx 0 42rpx; margin: 0 32rpx 0 42rpx;
} }
.btn-box .default{ .btn-box .default{
filter: grayscale(1); filter: grayscale(100%);
}
.bgGary{
/* -webkit-filter:grayscale(100%); */
} }
.btn .tip{ .btn .tip{
color: #FFFFFF; color: #FFFFFF;

88
pages/release/investorAuth/index.vue

@ -2,44 +2,56 @@
<!--pages/release/companyAuth/index.wxml--> <!--pages/release/companyAuth/index.wxml-->
<view class="auth-page"> <view class="auth-page">
<view class="company-info-box"> <view class="company-info-box">
<view class="title-l">请完善资料</view>
<view class="title-s">个人名片</view>
<view class="card-bg acea-row row-center-wrapper"><image src="https://download.cyjyyjy.com/person-card.png" mode=""></image></view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">姓名</view> <view class="label">姓名</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name" placeholder="请填写姓名"> <input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name" placeholder="请填写姓名">
</view> </view>
</view> </view>
<view class="form-item acea-row row-between row-middle"> <view class="form-item acea-row row-between row-middle">
<view class="label">手机号</view> <view class="label">企业名称</view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :value="form.legalPhone" @input="inpChange" data-type="phone" placeholder="请填写手机号"> <input type="text" :value="form.enterpriseName" @input="inpChange" data-type="enterpriseName"
</view> placeholder="请填写企业名称">
</view> </view>
<view class="form-item acea-row row-between row-middle"> </view>
<view class="label">身份证号</view> <view class="form-item acea-row row-between row-middle">
<view class="inp-box"> <view class="label">职位</view>
<input type="text" :value="form.legalPersonIdcard" @input="inpChange" data-type="idcard" placeholder="请填写身份证号"> <view class="inp-box">
</view> <input type="text" @input="inpChange" data-type="" placeholder="请填写职位">
</view> </view>
<!-- <view class="form-item noBorder"> </view>
<view class="label">身份证</view> <view class="form-item acea-row row-between row-middle">
<view class="inp-box sfz"> <view class="label">邮箱</view>
<view class="acea-row row-between-wrapper"> <view class="inp-box">
<image src="https://download.cyjyyjy.com/sfz1.png" @tap="upCard" data-type="b" v-if="form.idcardPicBehind == ''"></image> <input type="text" @input="inpChange" data-type="" placeholder="请填写邮箱">
<image :src="form.idcardPicBehind" @tap="upCard" data-type="b" v-else></image> </view>
<image src="https://download.cyjyyjy.com/sfzb.png"></image> </view>
</view> <view class="form-item acea-row row-between row-middle">
<view class="acea-row row-between-wrapper"> <view class="label">微信</view>
<image src="https://download.cyjyyjy.com/sfz2.png" @tap="upCard" data-type="f" v-if="form.idcardPicFront == ''"></image> <view class="inp-box">
<image :src="form.idcardPicFront" @tap="upCard" data-type="f" v-else></image> <input type="text" @input="inpChange" data-type="" placeholder="请填写微信号">
<image src="https://download.cyjyyjy.com/sfzz.png"></image> </view>
</view> </view>
<view class="acea-row row-between-wrapper"> <view class="form-item acea-row row-between row-middle">
<image src="https://download.cyjyyjy.com/sfz3.png" @tap="upCard" data-type="h" v-if="form.idcardPicHold == ''"></image> <view class="label">企业规模</view>
<image :src="form.idcardPicHold" @tap="upCard" data-type="h" v-else></image> <view class="inp-box">
<image src="https://download.cyjyyjy.com/sfzs.png"></image> <picker class="pick-box" @change="" mode="selector">
</view> <view class="picker">{{'请选择'}}</view>
</view> </picker>
</view> --> </view>
</view>
<view class="form-item acea-row row-between row-middle">
<view class="label">意向领域</view>
<view class="inp-box">
<picker class="pick-box" @change="" mode="selector">
<view class="picker">{{'请选择'}}</view>
</picker>
</view>
</view>
</view> </view>
<view class="submit-btn" @tap="submit">保存并提交</view> <view class="submit-btn" @tap="submit">保存并提交</view>
</view> </view>
@ -139,18 +151,6 @@ export default {
icon: 'none' icon: 'none'
}); });
return; return;
} else if (form.legalPhone == '') {
uni.showToast({
title: '请填写手机号',
icon: 'none'
});
return;
} else if (form.legalPersonIdcard == '') {
uni.showToast({
title: '请填写身份证号',
icon: 'none'
});
return;
} else { } else {
if (this.isEdit == false) { if (this.isEdit == false) {
app.http('post', 'EnterpriseAuthentication/createAuthenticInfoOne', this.form).then(res => { app.http('post', 'EnterpriseAuthentication/createAuthenticInfoOne', this.form).then(res => {

71
pages/user/editNeeds/index.vue

@ -4,17 +4,17 @@
<view class="form-box"> <view class="form-box">
<form @submit="submit"> <form @submit="submit">
<view class="form-item chose-box acea-row row-between"> <view class="form-item chose-box acea-row row-between">
<view class="label">我是供应/需求</view> <view class="label">我是{{title}}</view>
<view> {{form.resourceType == 1 ? '供应' : '需求'}} </view> <view> {{title}} </view>
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="label">{{form.resourceType == 1 ? '供应' : '需求'}}标题<text class="red">*</text></view> <view class="label">{{title}}标题<text class="red">*</text></view>
<view class="inp-box"> <view class="inp-box">
<input type="text" :placeholder="'我' + (form.resourceType == 1 ? '供应' : '需求') + '...'" :value="form.title" name="title"> <input type="text" :placeholder="'我' + (title) + '...'" :value="form.title" name="title">
</view> </view>
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="label">{{form.resourceType == 1 ? '供应' : '需求'}}类型<text class="red">*</text></view> <view class="label">{{title}}类型<text class="red">*</text></view>
<!-- <view class="inp-box"><input type="text" placeholder="我供应/需求..." value="{{form.resourceCagetoryId}}" name="resourceCagetoryId" /></view> --> <!-- <view class="inp-box"><input type="text" placeholder="我供应/需求..." value="{{form.resourceCagetoryId}}" name="resourceCagetoryId" /></view> -->
<view class="inp-box acea-row-nowrap row-between row-middle"> <view class="inp-box acea-row-nowrap row-between row-middle">
<picker class="pick-box" @change="resourcesChange" :value="idx" :range="resourcesList" :range-key="'cagetoryName'" mode="selector"> <picker class="pick-box" @change="resourcesChange" :value="idx" :range="resourcesList" :range-key="'cagetoryName'" mode="selector">
@ -25,15 +25,15 @@
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="label acea-row row-between"> <view class="label acea-row row-between">
<view>{{form.resourceType == 1 ? '供应' : '需求'}}内容<text class="red">*</text></view> <view>{{title}}内容<text class="red">*</text></view>
<!-- <view class="colO">看看别人怎么写></view> --> <!-- <view class="colO">看看别人怎么写></view> -->
</view> </view>
<view class="area-box"> <view class="area-box">
<textarea :placeholder="'请详细描述您的' + (form.resourceType == 1 ? '供应' : '需求')" :value="form.detailedDescription" name="detailedDescription"></textarea> <textarea :placeholder="'请详细描述您的' + (title)" :value="form.detailedDescription" name="detailedDescription"></textarea>
</view> </view>
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="label">补充内容/添加图片</view> <view class="label">补充内容/添加图片<text style="font-size: 20rpx; color: #666;">(建议图片尺寸200X116)</text></view>
<view class="upload-box acea-row"> <view class="upload-box acea-row">
<image v-for="(item, index) in form.resourceImgs" :key="index" :src="item" mode="aspectFill"></image> <image v-for="(item, index) in form.resourceImgs" :key="index" :src="item" mode="aspectFill"></image>
<image src="/static/images/upload.png" @tap="upImgs"></image> <image src="/static/images/upload.png" @tap="upImgs"></image>
@ -41,7 +41,7 @@
</view> </view>
<view class="form-item"> <view class="form-item">
<view class="label acea-row row-between"> <view class="label acea-row row-between">
<view>{{form.resourceType == 1 ? '供应' : '需求'}}预算<text class="red">*</text></view> <view>{{title}}预算<text class="red">*</text></view>
<view class="tab-box acea-row "> <view class="tab-box acea-row ">
<view :class="'tab-item ' + (active == 1 ? 'tab-a' : '')" data-i="1" @tap="tabClick">明确预算</view> <view :class="'tab-item ' + (active == 1 ? 'tab-a' : '')" data-i="1" @tap="tabClick">明确预算</view>
<view :class="'tab-item ' + (active == 2 ? 'tab-a' : '')" data-i="2" @tap="tabClick">价格可议</view> <view :class="'tab-item ' + (active == 2 ? 'tab-a' : '')" data-i="2" @tap="tabClick">价格可议</view>
@ -91,6 +91,7 @@ import WxValidate from '../../../utils/WxValidate.js';
export default { export default {
data() { data() {
return { return {
title: '',
form: { form: {
resourceType: 0, resourceType: 0,
title: '', title: '',
@ -120,10 +121,10 @@ export default {
this.getDetail(options.id); this.getDetail(options.id);
} }
if (options.type) { if (options.type) {
this.setData({//['form.resourceType']: Number(options.type)
});
//try fix
this.form.resourceType = Number(options.type); this.form.resourceType = Number(options.type);
console.log(this.form.resourceType)
this.title = this.form.resourceType == 1? '供应' : '需求'
uni.setNavigationBarTitle({ title: this.title+ '发布' })
} }
this.initValidate(); // this.initValidate(); //
@ -134,9 +135,6 @@ export default {
let i = e.currentTarget.dataset.i; let i = e.currentTarget.dataset.i;
if (i == 2) { if (i == 2) {
this.setData({//['form.capital']: ''
});
//try fix
this.form.capital = '价格可议'; this.form.capital = '价格可议';
} }
@ -146,9 +144,6 @@ export default {
}, },
capitalChange(e) { capitalChange(e) {
this.setData({//['form.capital']: e.detail.value
});
//try fix
this.form.capital = e.detail.value; this.form.capital = e.detail.value;
}, },
@ -156,26 +151,15 @@ export default {
console.log(e.detail.value); console.log(e.detail.value);
let timeArr = e.detail.value.split('-'); let timeArr = e.detail.value.split('-');
let year = Number(timeArr[0]) + 1; let year = Number(timeArr[0]) + 1;
this.setData({//['form.resourceStartTime']: e.detail.value
//['form.resourceEndTime']: year + '-' + timeArr[1] + '-' + timeArr[2]
});
//try fix
this.form.resourceEndTime = year + '-' + timeArr[1] + '-' + timeArr[2]; this.form.resourceEndTime = year + '-' + timeArr[1] + '-' + timeArr[2];
//try fix
this.form.resourceStartTime = e.detail.value; this.form.resourceStartTime = e.detail.value;
}, },
endTimeChange(e) { endTimeChange(e) {
this.setData({//['form.resourceEndTime']: e.detail.value
});
//try fix
this.form.resourceEndTime = e.detail.value; this.form.resourceEndTime = e.detail.value;
}, },
bindPickerChange(e) { bindPickerChange(e) {
this.setData({//['form.resourceType']: this.data.typeArr[e.detail.value]
});
//try fix
this.form.resourceType = this.typeArr[e.detail.value]; this.form.resourceType = this.typeArr[e.detail.value];
}, },
@ -194,9 +178,6 @@ export default {
resourcesChange(e) { resourcesChange(e) {
// console.log(e) // console.log(e)
let idx = Number(e.detail.value); let idx = Number(e.detail.value);
// this.setData({//['form.resourceCagetoryId']: this.data.resourcesList[idx].id
// resourcesIdx: idx,
// });
this.resourcesIdx = idx; this.resourcesIdx = idx;
//try fix //try fix
this.form.resourceCagetoryId = this.resourcesList[idx].id; this.form.resourceCagetoryId = this.resourcesList[idx].id;
@ -209,27 +190,12 @@ export default {
}).then(res => { }).then(res => {
if (res.data.success) { if (res.data.success) {
let data = res.data.data; let data = res.data.data;
this.setData({//['form.resourceType']: data.resourceType
//['form.title']: data.title
//['form.detailedDescription']: data.detailedDescription
//['form.resourceImgs']: data.resourceImgs
//['form.capital']: data.capital
//['form.resourceStartTime']: data.resourceStartTime
//['form.resourceEndTime']: data.resourceEndTime
});
//try fix
this.form.resourceEndTime = data.resourceEndTime; this.form.resourceEndTime = data.resourceEndTime;
//try fix
this.form.resourceStartTime = data.resourceStartTime; this.form.resourceStartTime = data.resourceStartTime;
//try fix
this.form.capital = data.capital; this.form.capital = data.capital;
//try fix
this.form.resourceImgs = data.resourceImgs; this.form.resourceImgs = data.resourceImgs;
//try fix
this.form.detailedDescription = data.detailedDescription; this.form.detailedDescription = data.detailedDescription;
//try fix
this.form.title = data.title; this.form.title = data.title;
//try fix
this.form.resourceType = data.resourceType; this.form.resourceType = data.resourceType;
if (isNaN(Number(data.capital))) { if (isNaN(Number(data.capital))) {
@ -283,9 +249,6 @@ export default {
util.chooseImages2(img => { util.chooseImages2(img => {
let imgs = this.form.resourceImgs; let imgs = this.form.resourceImgs;
imgs.push(img); imgs.push(img);
this.setData({//['form.resourceImgs']: imgs
});
//try fix
this.form.resourceImgs = imgs; this.form.resourceImgs = imgs;
}); });
}, },
@ -434,13 +397,13 @@ export default {
} }
.upload-box{ .upload-box{
width: 100%; width: 100%;
height: 140rpx; /* height: 140rpx; */
margin-top: 26rpx; margin-top: 26rpx;
} }
.upload-box image{ .upload-box image{
width: 140rpx; width: 216rpx;
height: 140rpx; height: 216rpx;
margin-right: 12rpx; margin-right: 22rpx;
} }
.tab-item{ .tab-item{

2
pages/user/index.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="home-page"> <view class="home-page">
<view class="page-top-box"> <view class="page-top-box">
<image src="/static/images/home/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>
<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">

BIN
static/images/home/top-bg.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Loading…
Cancel
Save