调试接口
This commit is contained in:
@ -135,7 +135,7 @@
|
||||
|
||||
// 上传文件
|
||||
const fileList = ref<any[]>([])
|
||||
const action = 'https://cz.stnav.com/api/upload/image' // 仅做测试使用,实际请换成真实上传接口
|
||||
const action = 'https://76458.com/api/upload/image' // 仅做测试使用,实际请换成真实上传接口
|
||||
|
||||
// 修改昵称
|
||||
const showEditNicknamePopup = ref<boolean>(false) // 是否显示退款详情弹出框
|
||||
@ -192,7 +192,8 @@
|
||||
const response = JSON.parse(e.file.response)
|
||||
if (response.code) {
|
||||
const avatarUrl = response.data.url
|
||||
await updateUserInfo({ field: 'avatar', value: avatarUrl })
|
||||
const url = avatarUrl.replace(import.meta.env.VITE_UPLOAD_IMAGE_URL, '')
|
||||
await updateUserInfo({ field: 'avatar', value: url })
|
||||
user.value.avatar = avatarUrl
|
||||
toast.info('头像上传成功')
|
||||
} else {
|
||||
|
||||
@ -90,10 +90,10 @@
|
||||
<view class="text-[#303133] text-26rpx leading-48rpx font-500" v-if="isGroupBuying">{{ teaRoomPackage.introduce }}</view>
|
||||
<view class="text-[#6A6363] flex-1 text-22rpx leading-32rpx text-right">已售
|
||||
<template v-if="isGroupBuying">
|
||||
{{ teaRoomPackage.sold > 10 ? teaRoomPackage.sold + '+' : teaRoomPackage.sold }}
|
||||
{{ teaRoomPackage.sold > 10 ? '10+' : teaRoomPackage.sold }}
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ teaRoom.room?.sold > 10 ? teaRoom.room?.sold + '+' : teaRoom.room?.sold }}
|
||||
{{ teaRoom.room?.sold > 10 ? '10+' : teaRoom.room?.sold }}
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -89,7 +89,7 @@
|
||||
</wd-tabs>
|
||||
|
||||
<view class="mx-30rpx mt-34rpx">
|
||||
<view class="text-24rpx flex items-center justify-end" v-if="storeType != 2">
|
||||
<view class="text-24rpx flex items-center justify-end mb-20rpx" v-if="storeType != 2">
|
||||
<view class="flex items-center mr-12rpx">
|
||||
<view class="bg-[#C9C9C9] w-20rpx h-20rpx rounded-10rpx mr-10rpx"></view>
|
||||
<view>过期</view>
|
||||
|
||||
Reference in New Issue
Block a user