diff --git a/api/api.js b/api/api.js index 582ed68..3e38a6c 100644 --- a/api/api.js +++ b/api/api.js @@ -187,14 +187,14 @@ const config = { // 个人认证提交 infoSubmitCertification: { url: '/api/info/submitCertification', - method: 'GET', + method: 'POST', auth: true, showLoading : true, }, // 企业认证提交 infoSubmitCompanyCertification: { url: '/api/info/submitCompanyCertification', - method: 'GET', + method: 'POST', auth: true, showLoading : true, }, diff --git a/config.js b/config.js index 9a6313c..0c3a700 100644 --- a/config.js +++ b/config.js @@ -5,7 +5,7 @@ import utils from './utils/utils.js' // 当前环境 -const type = 'prod' +const type = 'dev' // 环境配置 diff --git a/pages/index/center.vue b/pages/index/center.vue index ba54752..50d9c3a 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -31,7 +31,7 @@ {{ userInfo.nickName || '微信用户' }} - {{ userInfo.phone||'暂无联系方式' }} + @@ -116,7 +116,7 @@ ...mapState(['userInfo']), isNameValid() { console.log(this.userInfo,"this.userInfo"); - return this.userInfo.idCardOpen == 'Y' + return !!this.userInfo.idCardOpen } }, data() { @@ -152,7 +152,7 @@ name: 'realNameInfo', imageUrl: 'https://tennis-oss.xzaiyp.top/2024-09-09/8bc56d2e-380a-4656-8a33-592d374d246a.svg', title: '实名信息', - gotoPageUrl: '/mine/certifiedIndividual' + gotoPageUrl: '/mine/authOption' }, { name: 'helpFeedback', @@ -192,8 +192,19 @@ this.$refs.confirmationPopup.open() return } - if (item.name == 'realNameInfo') { - this.$refs.realNameInfoPopup.open() + + // 已完成认证 + if (item.name == 'realNameInfo' + && this.userInfo.idCardOpen) { + // this.$refs.realNameInfoPopup.open() + + + // this.userInfo.idCardOpen 1企业认证 2个人认证 + uni.navigateTo({ + url: '/pages_mine/mine/certifiedIndividual?type=' + + ['firm', 'person'][this.userInfo.idCardOpen - 1] + }) + return } uni.navigateTo({ diff --git a/pages/index/index.vue b/pages/index/index.vue index c026699..89fefce 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -191,9 +191,26 @@ }) }, bannerClick(index){ - if(this.banner[index].toUrl){ + let item = this.banner[index] + if(item.toUrl){ + return uni.navigateTo({ + url: item.toUrl + }) + } + if(item.type == 0){//帖子 + uni.navigateTo({ + url: '/pages/publish/postDetail?id=' + + item.trendsId + }) + }else if(item.type == 1){//名片 + uni.navigateTo({ + url: '/pages/publish/actorDetail?id=' + + item.collectionId + }) + }else if(item.type == 2){//作品 uni.navigateTo({ - url: this.banner[index].toUrl + url: '/pages_mine/publish/worksDetail?id=' + + item.masterpieceId }) } } diff --git a/pages/publish/actorDetail.vue b/pages/publish/actorDetail.vue index 6e693b0..b2595d4 100644 --- a/pages/publish/actorDetail.vue +++ b/pages/publish/actorDetail.vue @@ -9,8 +9,7 @@ indicator height="420rpx"> --> -