From 9fe99b581ec6daa9cfd423cbb0a86ac6149fd43e Mon Sep 17 00:00:00 2001 From: lijingyu007 <904564792@qq.com> Date: Tue, 21 May 2024 18:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A1=B5=E9=9D=A2+=E5=85=AC?= =?UTF-8?q?=E5=8F=B8=E8=AE=A4=E8=AF=8140%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 21 + pages/personal/personal - 副本.vue | 474 --------------------- pages/personal/personal.vue | 587 +++++++++++++++----------- pages/personal/setup/applyType.vue | 89 ++++ pages/personal/setup/companyApply.vue | 65 +++ pages/personal/setup/companyMsg.vue | 77 ++++ pages/personal/setup/index.vue | 4 +- 7 files changed, 592 insertions(+), 725 deletions(-) delete mode 100644 pages/personal/personal - 副本.vue create mode 100644 pages/personal/setup/applyType.vue create mode 100644 pages/personal/setup/companyApply.vue create mode 100644 pages/personal/setup/companyMsg.vue diff --git a/pages.json b/pages.json index 86974b5..1f702cd 100644 --- a/pages.json +++ b/pages.json @@ -348,6 +348,27 @@ "navigationBarTitleText": "PC端使用指南", "navigationBarBackgroundColor": "#284CD1" } + }, + { + "path": "pages/personal/setup/companyApply", + "style": { + "navigationBarTitleText": "企业认证", + "navigationBarBackgroundColor": "#284CD1" + } + }, + { + "path": "pages/personal/setup/applyType", + "style": { + "navigationBarTitleText": "实名认证", + "navigationBarBackgroundColor": "#284CD1" + } + }, + { + "path": "pages/personal/setup/companyMsg", + "style": { + "navigationBarTitleText": "公司简介", + "navigationBarBackgroundColor": "#284CD1" + } } diff --git a/pages/personal/personal - 副本.vue b/pages/personal/personal - 副本.vue deleted file mode 100644 index 5bee51c..0000000 --- a/pages/personal/personal - 副本.vue +++ /dev/null @@ -1,474 +0,0 @@ - - - - - diff --git a/pages/personal/personal.vue b/pages/personal/personal.vue index 1eb8638..3f5d04b 100644 --- a/pages/personal/personal.vue +++ b/pages/personal/personal.vue @@ -1,60 +1,114 @@ @@ -159,239 +207,260 @@ export default { data() { return { - - wxUserInfo:null, - grantType:'phone', + + wxUserInfo: null, + grantType: 'phone', canIUseGetUserProfile: false, - phoneuserinfo:null, - tokenshow:false, - testerStatustext:'', - avatar:'', - nickName:'', + phoneuserinfo: null, + tokenshow: false, + testerStatustext: '', + avatar: '', + nickName: '', base: this.http.baseUrl } }, onShow() { - let Token = uni.getStorageSync('accessToken'); - // console.log('wxUserInfo',uni.getStorageSync('wxUserInfo')) - if(Token){ - this.phoneuserinfo=uni.getStorageSync('wxUserInfo'); - // console.log('基本信息',this.phoneuserinfo) - this.avatar=uni.getStorageSync('avatar'); - this.nickName=uni.getStorageSync('nickName'); - this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`,true).then(res=>{ - console.log('实名认证信息---',res) - if(res.data.code==200){ - let testerdata=res.data.data; - if(testerdata){ - if(testerdata.status==1){ - this.testerStatustext='已认证' - }else{ - this.testerStatustext='未认证' - } - }else{ - this.testerStatustext='未认证' - } - }else{ - this.testerStatustext='未认证' - } - }) - - }else{ - this.phoneuserinfo=null - } - }, - onLoad() { - // let accessToken = uni.getStorageSync('accessToken'); - // if(accessToken){ - // this.phoneuserinfo=uni.getStorageSync('wxUserInfo'); - // console.log('基本信息1',this.phoneuserinfo) - // // let testerStatus=this.phoneuserinfo.testerStatus - // this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`,true).then(res=>{ - // // console.log('实名认证信息---',res) - // if(res.data.code==200){ - // let testerdata=res.data.data; - // if(testerdata){ - // if(testerdata.status==1){ - // this.testerStatustext='已认证' - // }else{ - // this.testerStatustext='未认证' - // } - // }else{ - // this.testerStatustext='未认证' - // } - // }else{ - // this.testerStatustext='未认证' - // } - // }) - // }else{ - // this.phoneuserinfo=null - - // } - - }, - filters:{ - tiilnamechange(value){ - if (!value) return '' - if(value.length>9){ - return value.slice(0, 7) + '...' - } - return value + let Token = uni.getStorageSync('accessToken'); + if (Token) { + this.phoneuserinfo = uni.getStorageSync('wxUserInfo'); + this.avatar = uni.getStorageSync('avatar'); + this.nickName = uni.getStorageSync('nickName'); + this.http.quickGet(`/tester/cert/apply/${this.phoneuserinfo.userId}`, true).then(res => { + console.log('实名认证信息---', res) + if (res.data.code == 200) { + let testerdata = res.data.data; + if (testerdata) { + if (testerdata.status == 1) { + this.testerStatustext = '已认证' + } else { + this.testerStatustext = '未认证' + } + } else { + this.testerStatustext = '未认证' + } + } else { + this.testerStatustext = '未认证' + } + }) + + } else { + this.phoneuserinfo = null } }, + onLoad() {}, methods: { + goSetUp() { + uni.navigateTo({ + url: '/pages/personal/setup/index' + }) + }, goUserInfo() { uni.navigateTo({ url: '/pages/personal/setup/Information' }) }, - nextcert(){ - if(this.testerStatustext=='未认证'){ + nextcert() { + if (this.testerStatustext == '未认证') { uni.navigateTo({ url: '/pages/personal/setup/certification' }) } }, - lkconfirm(){ + lkconfirm() { uni.navigateTo({ url: '/pages/personal/login' }) }, - logingj(){ - + logingj() { + uni.navigateTo({ - url:'/pages/personal/login' + url: '/pages/personal/login' }) - }, - details(type,id){ - // console.log('id---',id) - if(type=='tool'){ + }, + details(type, id) { + if (type == 'tool') { uni.navigateTo({ url: `../index/tooldetails?id=${id}` }) - }else{ + } else { uni.navigateTo({ url: './crowdsourcingdetails' }) } }, //工具加入购物车 - addcart(id){ + addcart(id) { let accessToken = uni.getStorageSync('accessToken'); - if(!accessToken){ - this.tokenshow=true - }else{ + if (!accessToken) { + this.tokenshow = true + } else { // - this.http.quickGet(`/my/addShoppingCart/${id}/1`,true).then(response => { - // console.log('response',response) - if(response.data.code==200){ + this.http.quickGet(`/my/addShoppingCart/${id}/1`, true).then(response => { + if (response.data.code == 200) { console.log('111') - this.$refs.uToast.show({ - title: '添加购物车成功', - type: 'success', - duration: 1000, - isTab:true, - url:'/pages/shoppingtrolley/shoppingtrolley' - }) - } - }) + this.$refs.uToast.show({ + title: '添加购物车成功', + type: 'success', + duration: 1000, + isTab: true, + url: '/pages/shoppingtrolley/shoppingtrolley' + }) + } + }) } - + }, - orders(){ + orders() { let accessToken = uni.getStorageSync('accessToken'); - if(!accessToken){ - this.tokenshow=true - }else{ - + if (!accessToken) { + this.tokenshow = true + } else { + uni.navigateTo({ - url:'./ordernumber/ordernumber?current=0' + url: './ordernumber/ordernumber?current=0' }) } }, - changeOrderUrl(url){ + changeOrderUrl(url) { let accessToken = uni.getStorageSync('accessToken'); - if(!accessToken){ - this.tokenshow=true - }else{ + if (!accessToken) { + this.tokenshow = true + } else { uni.navigateTo({ - url:url + url: url }) } }, // 我的服务跳转页面 - servier(type){ - if(this.phoneuserinfo){ - if(type=='message'){ + servier(type) { + if (this.phoneuserinfo) { + if (type == 'message') { uni.navigateTo({ - url:'/pages/message/message' + url: '/pages/message/message' }) - }else if(type=='signup'){ + } else if (type == 'signup') { uni.navigateTo({ - url:'/pages/personal/mysignup/notice' + url: '/pages/personal/mysignup/notice' }) - }else if(type=='bcrowd'){ + } else if (type == 'bcrowd') { uni.navigateTo({ - url:'/pages/personal/mycrowdtest/mycrowdtest' + url: '/pages/personal/mycrowdtest/mycrowdtest' }) - }else if(type=='authentication'){ + } else if (type == 'authentication') { uni.navigateTo({ - url:'/pages/personal/setup/certification' + url: '/pages/personal/setup/certification' }) - }else if(type=='notes'){ + } else if (type == 'notes') { uni.navigateTo({ - url:'/pages/personal/personalresume/personalresume' + url: '/pages/personal/personalresume/personalresume' }) - }else if(type=='myper'){ + } else if (type == 'myper') { uni.navigateTo({ - url:'/pages/personal/mytestkit/mytestkit' + url: '/pages/personal/mytestkit/mytestkit' }) - }else if(type=='setmy'){ + } else if (type == 'setmy') { uni.navigateTo({ - url:'/pages/personal/setup/index' + url: '/pages/personal/setup/index' }) - }else if(type=='pcweb'){ + } else if (type == 'pcweb') { uni.navigateTo({ - url:'/pages/personal/setup/pcweb' + url: '/pages/personal/setup/pcweb' }) - } - else if(type=='peixunban'){ + } else if (type == 'peixunban') { uni.navigateTo({ - url:'/pages/personal/setup/peixunban' + url: '/pages/personal/setup/peixunban' }) - } - else if(type=='usepeople'){ + } else if (type == 'usepeople') { uni.navigateTo({ - url:'/pages/personal/setup/usepeople' + url: '/pages/personal/setup/usepeople' }) - } - else if(type=='myreview'){ + } else if (type == 'myreview') { uni.navigateTo({ - url:'/pages/personal/setup/myreview' + url: '/pages/personal/setup/myreview' }) } - - }else{ - this.tokenshow=true + + } else { + this.tokenshow = true } } } } - + \ No newline at end of file diff --git a/pages/personal/setup/applyType.vue b/pages/personal/setup/applyType.vue new file mode 100644 index 0000000..e5043a7 --- /dev/null +++ b/pages/personal/setup/applyType.vue @@ -0,0 +1,89 @@ + + + + + + \ No newline at end of file diff --git a/pages/personal/setup/companyApply.vue b/pages/personal/setup/companyApply.vue new file mode 100644 index 0000000..aa9cfad --- /dev/null +++ b/pages/personal/setup/companyApply.vue @@ -0,0 +1,65 @@ + + + + + \ No newline at end of file diff --git a/pages/personal/setup/companyMsg.vue b/pages/personal/setup/companyMsg.vue new file mode 100644 index 0000000..fbcc7ba --- /dev/null +++ b/pages/personal/setup/companyMsg.vue @@ -0,0 +1,77 @@ + + + + + \ No newline at end of file diff --git a/pages/personal/setup/index.vue b/pages/personal/setup/index.vue index d790d63..91d4866 100644 --- a/pages/personal/setup/index.vue +++ b/pages/personal/setup/index.vue @@ -1,10 +1,10 @@