|
@@ -50,9 +50,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
<app-block class="mine-iconbar">
|
|
<app-block class="mine-iconbar">
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li @click="routerTo('mine-generalize')">
|
|
|
|
|
|
|
+ <li @click="showQRCode = true">
|
|
|
<img src="@mobile/assets/icons/generalize.png" />
|
|
<img src="@mobile/assets/icons/generalize.png" />
|
|
|
- <span>我的推广</span>
|
|
|
|
|
|
|
+ <span>注册编码</span>
|
|
|
</li>
|
|
</li>
|
|
|
<li @click="routerTo('my-order')">
|
|
<li @click="routerTo('my-order')">
|
|
|
<img src="@mobile/assets/icons/order.png" />
|
|
<img src="@mobile/assets/icons/order.png" />
|
|
@@ -112,6 +112,7 @@
|
|
|
<div class="mine-footer">
|
|
<div class="mine-footer">
|
|
|
<Button class="button-logout" type="primary" size="small" round @click="userLogout">退出登录</Button>
|
|
<Button class="button-logout" type="primary" size="small" round @click="userLogout">退出登录</Button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <app-register-code v-model:show="showQRCode" :text="registerCode" />
|
|
|
</app-view>
|
|
</app-view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -127,14 +128,18 @@ import { useBankAccountSign } from '@/business/bank'
|
|
|
import { queryUserAccount } from '@/services/api/account'
|
|
import { queryUserAccount } from '@/services/api/account'
|
|
|
import { AuthStatus, getAuthStatusName } from '@/constants/account'
|
|
import { AuthStatus, getAuthStatusName } from '@/constants/account'
|
|
|
import eventBus from '@/services/bus'
|
|
import eventBus from '@/services/bus'
|
|
|
|
|
+import AppRegisterCode from '@mobile/components/modules/register-code/index.vue'
|
|
|
|
|
|
|
|
const { router, routerTo } = useNavigation()
|
|
const { router, routerTo } = useNavigation()
|
|
|
const { userId, loginId, firstAccountId } = loginStore.$mapGetters()
|
|
const { userId, loginId, firstAccountId } = loginStore.$mapGetters()
|
|
|
const { userInfo } = userStore.$mapGetters()
|
|
const { userInfo } = userStore.$mapGetters()
|
|
|
const { getBankAccountList, bankInfo } = useBankAccountSign()
|
|
const { getBankAccountList, bankInfo } = useBankAccountSign()
|
|
|
const { accountInfo, freezeMargin, avaiableMoney } = accountStore.$mapGetters()
|
|
const { accountInfo, freezeMargin, avaiableMoney } = accountStore.$mapGetters()
|
|
|
|
|
+
|
|
|
const authStatus = shallowRef(AuthStatus.Uncertified) // 实名认证状态
|
|
const authStatus = shallowRef(AuthStatus.Uncertified) // 实名认证状态
|
|
|
|
|
+const registerCode = shallowRef('') // 注册编码
|
|
|
const headerRef = shallowRef<HTMLDivElement>()
|
|
const headerRef = shallowRef<HTMLDivElement>()
|
|
|
|
|
+const showQRCode = shallowRef(false)
|
|
|
|
|
|
|
|
// 用户头像
|
|
// 用户头像
|
|
|
const userAvatar = computed(() => {
|
|
const userAvatar = computed(() => {
|
|
@@ -199,6 +204,7 @@ onActivated(() => {
|
|
|
},
|
|
},
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
authStatus.value = res.data.hasauth
|
|
authStatus.value = res.data.hasauth
|
|
|
|
|
+ registerCode.value = res.data.refernum
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|