hookehuyr

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

将点击上传封面图的事件从容器移动到无图片时的提示区域,避免误触
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
107 </view> 107 </view>
108 <!-- 封面显示区域 --> 108 <!-- 封面显示区域 -->
109 <view class="mb-4"> 109 <view class="mb-4">
110 - <view class="relative bg-gray-100 rounded-lg h-48 flex items-center justify-center" @click="chooseImage"> 110 + <view class="relative bg-gray-100 rounded-lg h-48 flex items-center justify-center">
111 <!-- 有图片时显示图片 --> 111 <!-- 有图片时显示图片 -->
112 <image 112 <image
113 v-if="familyAvatar" 113 v-if="familyAvatar"
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
117 @tap="previewAvatar" 117 @tap="previewAvatar"
118 /> 118 />
119 <!-- 没有图片时显示上传提示 --> 119 <!-- 没有图片时显示上传提示 -->
120 - <view v-else class="flex flex-col items-center justify-center text-gray-400"> 120 + <view v-else class="flex flex-col items-center justify-center text-gray-400" @click="chooseImage">
121 <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" /> 121 <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" />
122 <text class="text-sm">点击上传封面图</text> 122 <text class="text-sm">点击上传封面图</text>
123 </view> 123 </view>
......