Commit cd4d85e5 by 李伟康

fix(CustomerOpportunities): 修复客户弹窗滚动和布局问题

- 添加scroll-view组件解决长内容滚动问题
- 调整客户详情区域样式布局
- 移除固定高度设置以适应动态内容
- 添加flex布局属性优化内容对齐
- 修改文字换行处理方式
- 调整底部空白区域样式
- 更新暂无数据图标尺寸
1 parent e8492316
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
<uni-icons type="closeempty" size="20" color="#999EA8"></uni-icons> <uni-icons type="closeempty" size="20" color="#999EA8"></uni-icons>
</view> </view>
</view> </view>
<scroll-view class="scroll-content" scroll-y>
<view class="customer-detail"> <view class="customer-detail">
<template v-for="(item, index) in customerObject"> <template v-for="(item, index) in customerObject">
<view class="customer-item flex" :key="index" v-if="showItem(item.key)"> <view class="customer-item " :key="index" v-if="showItem(item.key)">
<view class="item-title">{{ item.title }}</view> <view class="item-title">{{ item.title }}</view>
<view class="item-content text-hide"> <view class="item-content">
<template v-if="item.key == 'customerStatus'"> <template v-if="item.key == 'customerStatus'">
<view :class="['block', orderStatusClass(options.data[item.key])]">{{ <view :class="['block', orderStatusClass(options.data[item.key])]">{{
orderStatus(options.data[item.key]) || '-' }}</view> orderStatus(options.data[item.key]) || '-' }}</view>
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
</view> </view>
<template v-if="loadComplete"> <template v-if="loadComplete">
<template v-if="taskList.length"> <template v-if="taskList.length">
<scroll-view class="content" scroll-y> <view class="content">
<template v-for="(item, index) in taskList"> <template v-for="(item, index) in taskList">
<task-item :key="index" :item="{ <task-item :key="index" :item="{
...item, ...item,
...@@ -38,7 +39,7 @@ ...@@ -38,7 +39,7 @@
}" :num="index" :type="options.type" @confirmTask="confirmTask" /> }" :num="index" :type="options.type" @confirmTask="confirmTask" />
</template> </template>
<view class="p-b"></view> <view class="p-b"></view>
</scroll-view> </view>
</template> </template>
<template v-else> <template v-else>
<view class="nothing"> <view class="nothing">
...@@ -46,6 +47,7 @@ ...@@ -46,6 +47,7 @@
</view> </view>
</template> </template>
</template> </template>
</scroll-view>
</view> </view>
</uni-popup> </uni-popup>
</template> </template>
...@@ -102,8 +104,8 @@ export default { ...@@ -102,8 +104,8 @@ export default {
}, },
mounted() { }, mounted() { },
methods: { methods: {
showItem(key){ showItem(key) {
if(key != 'qwGroupName') return true if (key != 'qwGroupName') return true
else return this.options.data[key] else return this.options.data[key]
}, },
orderStatus(status) { orderStatus(status) {
...@@ -243,7 +245,7 @@ export default { ...@@ -243,7 +245,7 @@ export default {
background: #FFFFFF; background: #FFFFFF;
border: 2rpx solid #F5F7FA; border: 2rpx solid #F5F7FA;
margin: 0 64rpx; margin: 0 64rpx;
height: 232rpx; // height: 232rpx;
border-radius: 32rpx; border-radius: 32rpx;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -256,6 +258,8 @@ export default { ...@@ -256,6 +258,8 @@ export default {
box-sizing: border-box; box-sizing: border-box;
font-size: 26rpx; font-size: 26rpx;
gap: 16rpx; gap: 16rpx;
display: flex;
align-items: flex-start;
.item-title { .item-title {
width: 120rpx; width: 120rpx;
...@@ -266,6 +270,7 @@ export default { ...@@ -266,6 +270,7 @@ export default {
.item-content { .item-content {
width: calc(100% - #{toRpx(136)}); width: calc(100% - #{toRpx(136)});
color: #292D33; color: #292D33;
word-break: break-all;
} }
.block { .block {
...@@ -290,6 +295,7 @@ export default { ...@@ -290,6 +295,7 @@ export default {
background-color: #FDECE9; background-color: #FDECE9;
color: #F24724; color: #F24724;
} }
&.warning { &.warning {
background-color: #FFF5E6; background-color: #FFF5E6;
color: #FF9D0A; color: #FF9D0A;
...@@ -323,16 +329,13 @@ export default { ...@@ -323,16 +329,13 @@ export default {
} }
.content {
height: calc(100% - #{toRpx(484)});
box-sizing: border-box;
}
.p-b { .p-b {
height: 28rpx; height: 28rpx;
} }
} }
.scroll-content{
height: calc(100% - #{toRpx(128)});
}
.nothing { .nothing {
height: calc(100% - #{toRpx(484)}); height: calc(100% - #{toRpx(484)});
} }
......
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.icon { .icon {
width: 300rpx; width: 344rpx;
height: 236rpx; height: 236rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!