Commit 44ce1362 by 李伟康

feat(customer): 新增客户机会组件及表格展示功能

- 创建 CustomerOpportunities 主页面组件,包含今日任务提示和表格容器
- 实现 Table 子组件,展示客户信息、订单状态、标签和跟进人等数据
- 集成 dayjs 时间库显示今日日期,完善客户数据展示逻辑
- 添加标签超长截断功能,支持多行标签自适应显示
- 实现推送运营任务和查看任务记录的操作按钮
- 移除商品盒子组件中的无用计算属性和样式优化
1 parent 0fa9de97
<template>
<view class="customer-box">
<view class="tips flex">今日任务({{ toDay }})
<view class="text">根据SOP策略生成营销任务,请及时推送客户</view>
</view>
<view class="tabs-box">tabs</view>
<view class="customer-content">
<Table />
</view>
</view>
</template>
<script type='text/ecmascript-6'>
import dayjs from 'dayjs';
import Table from './components/Table'
export default {
name: 'CustomerOpportunities',
components: { Table },
data() {
return {
toDay: dayjs().format('MM-DD')
}
},
watch: {},
computed: {},
mounted() { },
methods: {}
}
</script>
<style scoped lang='scss'>
.customer-box {
width: 100%;
height: 100%;
padding: 32rpx 40rpx;
box-sizing: border-box;
.tips {
height: 64rpx;
background: #2C66F70D;
padding: 0 24rpx;
font-size: 26rpx;
color: #6C6F75;
border-radius: 20rpx;
.text {
margin-left: auto;
}
}
}
</style>
\ No newline at end of file
......@@ -85,9 +85,6 @@ export default {
watchStatus() {
return this.$store.state.user.historyStatus;
},
blockClass() {
return ['block-0', 'block-1', 'block-2'][this.blockIndex]
},
boutiqueMediaConfig() {
return this.$store.state.user.boutiqueMediaConfig
},
......@@ -189,9 +186,6 @@ export default {
console.log(goodsList)
return goodsList
},
firstClass(list = []) {
return list.length == 2 ? 'two-block' : ''
},
statusText(status) {
return status == 1 ? '主推' : '次推'
},
......@@ -249,6 +243,7 @@ export default {
line-height: toRpx(36);
max-height: toRpx(144);
overflow: hidden;
word-break: break-all;
}
.goods-price {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!