调试接口

This commit is contained in:
wangxiaowei
2025-12-23 03:30:22 +08:00
parent 90e9448b68
commit 3af440cd21
17 changed files with 149 additions and 82 deletions

View File

@ -86,7 +86,7 @@
</view>
<!-- 昵称 -->
<view class="flex justify-between items-center" @click="showEditNicknamePopup = true">
<view class="flex justify-between items-center mb-54rpx" @click="showEditNicknamePopup = true">
<view class="font-400 text-[#303133] text-30rpx leading-42rpx">昵称</view>
<view class="flex justify-end">
<view class="flex items-center">
@ -100,20 +100,19 @@
</view>
</view>
<!-- TODO 暂时隐藏-修改手机号 -->
<!-- <view class="flex justify-between items-center" @click="Profile.handleToEditMobile">
<view class="flex justify-between items-center">
<view class="font-400 text-[#303133] text-30rpx leading-42rpx">修改手机号</view>
<view class="flex justify-end">
<view class="flex items-center">
<view class="font-400 text-[#303133] text-30rpx leading-42rpx">
+86 {{ maskedMobile }}
</view>
<view>
<wd-icon name="arrow-right" size="32rpx" color="#C0C4CC" />
</view>
<wd-button type="text" open-type="getPhoneNumber" @getphonenumber="Profile.handleToEditMobile" custom-class="!p-0 !m-0 !bg-transparent !h-auto !leading-normal !w-300rpx !text-right">
<view class="font-400 text-[#303133] text-30rpx leading-42rpx" v-if="maskedMobile">
+86 {{ maskedMobile }}
</view>
<view class="font-400 text-[#303133] text-30rpx leading-42rpx" v-else>点击绑定</view>
</wd-button>
</view>
</view>
</view> -->
</view>
</view>
<view class="bg-white rounded-16rpx mt-144rpx mx-30rpx px-30rpx py-32rpx text-center font-400 text-[#303133] text-30rpx leading-42rpx" @click="showLogoutPopup = true">
@ -129,6 +128,7 @@
import type { IUserResult } from '@/api/types/user'
import { router } from '@/utils/tools'
import { useUserStore } from '@/store'
import { getMobileByMnp } from '@/api/user'
const OSS = inject('OSS')
const showLogoutPopup = ref<boolean>(false) // 是否显示退出登录弹出框
@ -221,10 +221,8 @@
/**
* 修改手机号
*/
handleToEditMobile: () => {
uni.navigateTo({
url: '/pages/login/mobile?type=edit&userId=123' // userId仅做测试使用实际请传真实用户ID
})
handleToEditMobile: async (e: any) => {
const res = await getMobileByMnp(e.code)
},
/**