hookehuyr

fix(CreateFamily): 修复封面图上传点击区域错误

将点击上传封面图的事件从容器移动到无图片时的提示区域,避免误触
......@@ -107,7 +107,7 @@
</view>
<!-- 封面显示区域 -->
<view class="mb-4">
<view class="relative bg-gray-100 rounded-lg h-48 flex items-center justify-center" @click="chooseImage">
<view class="relative bg-gray-100 rounded-lg h-48 flex items-center justify-center">
<!-- 有图片时显示图片 -->
<image
v-if="familyAvatar"
......@@ -117,7 +117,7 @@
@tap="previewAvatar"
/>
<!-- 没有图片时显示上传提示 -->
<view v-else class="flex flex-col items-center justify-center text-gray-400">
<view v-else class="flex flex-col items-center justify-center text-gray-400" @click="chooseImage">
<IconFont size="48" class="mb-2" name="https://cdn.ipadbiz.cn/lls_prog/icon/%E5%88%9B%E5%BB%BA%E5%AE%B6%E5%BA%AD4.png" />
<text class="text-sm">点击上传封面图</text>
</view>
......