Browse Source

fix: 修复多个组件的问题并更新配置

- 将环境配置从'prod'改为'local'便于本地开发
- 修改上传组件accept属性为'media'以支持更多媒体类型
- 移除avatarStack组件中未使用的描述文本
- 为emailPopup添加safeAreaInsetBottom属性防止底部遮挡
- 为postDetail中的avatarStack添加样式并修复条件渲染
master
前端-胡立永 1 week ago
parent
commit
2477467021
5 changed files with 11 additions and 7 deletions
  1. +2
    -2
      components/list/avatarStack.vue
  2. +1
    -1
      config.js
  3. +1
    -1
      pages_order/components/list/comment/emailPopup.vue
  4. +1
    -1
      pages_order/post/addPost.vue
  5. +6
    -2
      pages_order/post/postDetail.vue

+ 2
- 2
components/list/avatarStack.vue View File

@ -38,9 +38,9 @@
</view>
<!-- 描述文本 -->
<view class="description" v-if="showDescription">
<!-- <view class="description" v-if="showDescription">
<text class="desc-text">{{ getDescriptionText() }}</text>
</view>
</view> -->
</view>
</template>


+ 1
- 1
config.js View File

@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
const type = 'prod'
const type = 'local'
// 环境配置


+ 1
- 1
pages_order/components/list/comment/emailPopup.vue View File

@ -1,6 +1,6 @@
<template>
<!-- 邮箱填写弹窗 -->
<uv-popup ref="emailPopup" :round="30">
<uv-popup ref="emailPopup" :round="30" :safeAreaInsetBottom="false">
<view class="email-popup">
<view class="email-title">
完善邮箱信息


+ 1
- 1
pages_order/post/addPost.vue View File

@ -34,7 +34,7 @@
@delete="deleteImage"
@afterRead="afterRead"
:previewFullImage="true"
:accept="'image,video'"
accept="media"
:sizeType="['original', 'compressed']"
:sourceType="['album', 'camera']"></uv-upload>
</view>


+ 6
- 2
pages_order/post/postDetail.vue View File

@ -27,7 +27,7 @@
@click="tabsClick"></uv-tabs>
</view>
<view class="" v-if="tagIndex == 1">
<view class="avatarStack" v-if="tagIndex == 1">
<!-- 头像堆叠组件 - 显示查看过的用户 -->
<avatarStack
:avatars="viewedUsers || []"
@ -250,6 +250,10 @@
}
}
}
.avatarStack {
display: flex;
justify-content: flex-end;
margin: 20rpx;
}
}
</style>

Loading…
Cancel
Save