|
@@ -8,7 +8,7 @@
|
|
|
<view class="name-box">
|
|
|
<view class="name" v-if="isLogin">
|
|
|
<view class="text">
|
|
|
- {{user.username}}
|
|
|
+ {{user.name}}
|
|
|
</view>
|
|
|
<view class="iconfont icon-xiugai"></view>
|
|
|
</view>
|
|
@@ -28,7 +28,7 @@
|
|
|
任职机构:
|
|
|
</view>
|
|
|
<view class="text">
|
|
|
- {{isLogin ? user.corpName : ''}}
|
|
|
+ {{isLogin ? user.corpName ?? '无' : ''}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-item-box">
|
|
@@ -36,7 +36,7 @@
|
|
|
机构备案证号:
|
|
|
</view>
|
|
|
<view class="text">
|
|
|
- {{isLogin ? user.corpRegNo : ''}}
|
|
|
+ {{isLogin ? user.corpRegNo ?? '无' : ''}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -49,9 +49,9 @@
|
|
|
<view class="list-item-box" @click="onShowCreditCard(creditCard.id)">
|
|
|
<CreditCard :isLogin="isLogin" :data="creditCard" @guide="onCreditCardGuideClick()"></CreditCard>
|
|
|
</view>
|
|
|
- <view class="list-item-box" :class="[isLogin ? (user.zhongjierenzheng ? 'zhongjie-back' : 'zhongjie-back-zhiyin') : 'zhongjie-back-login']" @click="onZhongJieRenZhengClick(user.zhongjierenzheng)">
|
|
|
+ <view class="list-item-box" :class="[isLogin ? (zhongjie.zsbh ? 'zhongjie-back' : 'zhongjie-back-zhiyin') : 'zhongjie-back-login']" @click="onZhongJieRenZhengClick(zhongjie.zsbh)">
|
|
|
</view>
|
|
|
- <view class="list-item-box" :class="[isLogin ? (user.anjierenzheng ? 'anjie-back' : 'anjie-back-zhiyin') : 'anjie-back-login']" @click="onAnJieRenZhengClick(user.anjierenzheng)">
|
|
|
+ <view class="list-item-box" :class="[isLogin ? (anjie.zsbh ? 'anjie-back' : 'anjie-back-zhiyin') : 'anjie-back-login']" @click="onAnJieRenZhengClick(anjie.zsbh)">
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -160,12 +160,12 @@
|
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
import { getToken, removeToken } from '@/utils/auth.js'
|
|
|
|
|
|
- import { me } from '@/api/user.js'
|
|
|
+ import { me, getCreditCard, getZhongjie, getAnjie } from '@/api/user.js'
|
|
|
|
|
|
// 用户信息
|
|
|
const user = ref({
|
|
|
userIcon: '1',
|
|
|
- username: '某某某',
|
|
|
+ name: '某某某',
|
|
|
corpName: '广州市xx地产有限公司',
|
|
|
corpRegNo: '123xxxx',
|
|
|
zhongjierenzheng: true, // 中介认证
|
|
@@ -176,10 +176,9 @@
|
|
|
const showCreditCard = ref(false)
|
|
|
// 信用信息卡
|
|
|
const creditCard = ref({
|
|
|
- id: '1',
|
|
|
- number: 'GZ2028000001',
|
|
|
+ creditNo: 'GZ2028000001',
|
|
|
name: '彭于晏',
|
|
|
- time: '2018年6月22日',
|
|
|
+ date: '2018年6月22日',
|
|
|
publisher: '广州市住房和城乡建设委员会',
|
|
|
photo: 'https://ok.166.net/reunionpub/1_20210628_17a5105e667995566.jpeg',
|
|
|
qrCode: 'https://sylwt.top/api/visitor/resources/image?name=/ydl/menber-center/zhengshu/qrCode.png'
|
|
@@ -217,9 +216,27 @@
|
|
|
url: '/pages/certificateDetail/certificateDetail?type=anjie&title=广州市房地产按揭从业人员水平认证证书'
|
|
|
})
|
|
|
} else {
|
|
|
-
|
|
|
+ console.log('跳转按揭认证报名指引');
|
|
|
}
|
|
|
}
|
|
|
+ const zhongjie = ref({
|
|
|
+ zsbh: null,
|
|
|
+ fzbm: null,
|
|
|
+ fzrq: null,
|
|
|
+ xm: null,
|
|
|
+ xb: null,
|
|
|
+ sfzh: null,
|
|
|
+ whcd: null
|
|
|
+ })
|
|
|
+ const anjie = ref({
|
|
|
+ zsbh: null,
|
|
|
+ fzbm: null,
|
|
|
+ fzrq: null,
|
|
|
+ xm: null,
|
|
|
+ xb: null,
|
|
|
+ sfzh: null,
|
|
|
+ whcd: null
|
|
|
+ })
|
|
|
|
|
|
// 点击-会费缴交
|
|
|
function onHuiFeiJiaoJiao() {
|
|
@@ -260,6 +277,26 @@
|
|
|
})
|
|
|
|
|
|
onLoad(() => {
|
|
|
+ me().then(res => {
|
|
|
+ if (res && res.message === 'success') {
|
|
|
+ user.value = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getCreditCard().then(res => {
|
|
|
+ if (res && res.message === 'success') {
|
|
|
+ creditCard.value = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getZhongjie().then(res => {
|
|
|
+ if (res && res.message === 'success') {
|
|
|
+ zhongjie.value = res.data ?? {zsbh: null}
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getAnjie().then(res => {
|
|
|
+ if (res && res.message === 'success') {
|
|
|
+ anjie.value = res.data ?? {zsbh: null}
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
</script>
|
|
|
|