Commit cd4d85e5 by 李伟康

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

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