Commit 9c56e6f1 by 李伟康

commit 提交

1 parent 799127fe
...@@ -7,9 +7,7 @@ ...@@ -7,9 +7,7 @@
:maxHeight="1000" :maxHeight="1000"
@close="$emit('close')" @close="$emit('close')"
> >
<view <view class="select-views">
class="select-views"
>
<template v-for="(i,index) in list"> <template v-for="(i,index) in list">
<view <view
class="select-group" class="select-group"
...@@ -31,18 +29,17 @@ ...@@ -31,18 +29,17 @@
</view> </view>
</template> </template>
<view class="footer-btns flex">
<view
class="btn cancel"
@click="close"
>取消</view>
<view
class="btn"
@click="choose"
>确定</view>
</view>
</view> </view>
<view class="footer-btns">
<view
class="btn cancel"
@click="close"
>取消</view>
<view
class="btn"
@click="choose"
>确定</view>
</view>
</MessageBox> </MessageBox>
</template> </template>
...@@ -118,8 +115,9 @@ export default { ...@@ -118,8 +115,9 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.select-views { .select-views {
overflow-y: scroll; overflow-y: scroll;
max-height: 60vh; max-height: 50vh;
position: relative; position: relative;
padding-bottom: 128rpx;
.select-group { .select-group {
margin: 32rpx 0; margin: 32rpx 0;
.select-title { .select-title {
...@@ -159,33 +157,34 @@ export default { ...@@ -159,33 +157,34 @@ export default {
} }
} }
} }
.footer-btns { }
position: sticky; .footer-btns {
left: 0; position: absolute;
bottom: 0; left: 0;
width: 100%; bottom: 0;
height: 176rpx; width: 100%;
background: #ffffff; height: 176rpx;
box-sizing: border-box; background: #ffffff;
padding-top: 32rpx; box-sizing: border-box;
padding-top: 32rpx;
display: flex;
justify-content: center;
gap: 0 34rpx;
.btn {
width: 718rpx;
height: 80rpx;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx;
display: flex;
justify-content: center; justify-content: center;
gap: 0 34rpx; align-items: center;
.btn { font-weight: 500;
width: 718rpx; font-size: 32rpx;
height: 80rpx; color: #ffffff;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); }
border-radius: 48rpx; .cancel {
display: flex; background: #dae9ff;
justify-content: center; color: #2c66f7;
align-items: center;
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
}
.cancel {
background: #dae9ff;
color: #2c66f7;
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
>{{ >{{
{ {
1: "成交", 1: "成交",
2: "战败", 0: "战败",
}[item.receptionResult] }[item.receptionResult]
}}</view> }}</view>
<view class="name"> <view class="name">
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<template v-for="(k, ind) in itemObject"> <template v-for="(k, ind) in itemObject">
<view <view
class="info flex" class="info flex"
:key="ind" :key="`${item.id}-${ind}`"
v-if="showItem(k.key)" v-if="showItem(k.key)"
> >
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
......
...@@ -412,6 +412,17 @@ export default { ...@@ -412,6 +412,17 @@ export default {
.record-box { .record-box {
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
opacity: 1;
position: relative;
animation: show-box 0.15s forwards;
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
}
.record-content { .record-content {
padding: 96rpx 0; padding: 96rpx 0;
.data-container { .data-container {
......
...@@ -5,7 +5,12 @@ ...@@ -5,7 +5,12 @@
> >
<view :class="['home', { show: !id }]"> <view :class="['home', { show: !id }]">
<home-animation></home-animation> <home-animation></home-animation>
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" @changeTab="$emit('changeTab', $event)" @stopAudio="stopAudio" /> <left-side
:userInfo="userInfo"
:tabIndex.sync="tabIndex"
@changeTab="$emit('changeTab', $event)"
@stopAudio="stopAudio"
/>
<view class="right-side"> <view class="right-side">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<view class="right-content"> <view class="right-content">
...@@ -105,7 +110,7 @@ import CustomerFile from './components/CustomerFile.vue'; ...@@ -105,7 +110,7 @@ import CustomerFile from './components/CustomerFile.vue';
import LeftSide from './components/LeftSide.vue'; import LeftSide from './components/LeftSide.vue';
export default { export default {
mixins: [myClick, uploader], mixins: [myClick, uploader],
components: { RecordList, HomeAnimation, CustomerFile, LeftSide }, components: { RecordList, HomeAnimation, CustomerFile, LeftSide },
props: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -181,6 +186,16 @@ export default { ...@@ -181,6 +186,16 @@ export default {
padding-top: 92rpx; padding-top: 92rpx;
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
position: relative;
animation: show-box 0.15s forwards;
}
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
} }
.start { .start {
&-btn { &-btn {
......
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
const query = uni.createSelectorQuery() const query = uni.createSelectorQuery()
query.select(`#menu-${n}`).boundingClientRect((data) => { query.select(`#menu-${n}`).boundingClientRect((data) => {
let top = data.top - (view_padding_top + menuHeight) + this.menuScrollTop let top = data.top - (view_padding_top + menuHeight) + this.menuScrollTop
this.blockTop = `top:${top}px` this.blockTop = `transform:translateY(${top}px);`
}).exec() }).exec()
} }
}, },
...@@ -189,24 +189,35 @@ export default { ...@@ -189,24 +189,35 @@ export default {
}, },
methods: { methods: {
async getMaterialDetail (id) { async getMaterialDetail (id) {
const res = await uni.$api.customerApi.getMaterialDetail({ try {
id uni.showLoading({
}) mask: true
let detailInfo = []
this.caseObject = res
res.richTextInfoList?.map(e => {
e.content = this.highlightText(e.content)
if (e.level == 1) detailInfo.push({
...e,
children: []
}) })
if (e.level == 2) { const res = await uni.$api.customerApi.getMaterialDetail({
let index = detailInfo.findIndex(item => item.id == e.parentId) id
detailInfo[index].children.push(e) })
} let detailInfo = []
}) this.caseObject = res
this.detailInfo = detailInfo res.richTextInfoList?.map(e => {
this.$nextTick(() => this.initScrollListTop()) if (e.content) e.content = this.highlightText(e.content)
if (e.level == 1) detailInfo.push({
...e,
children: []
})
})
res.richTextInfoList?.map(e => {
if (e.level == 2) {
let index = detailInfo.findIndex(item => item.id == e.parentId)
if (index > -1) detailInfo[index].children.push(e)
}
})
this.detailInfo = detailInfo
this.$nextTick(() => this.initScrollListTop())
uni.hideLoading()
} catch (error) {
uni.hideLoading()
console.log(error)
}
}, },
highlightText (text) { highlightText (text) {
text = text.replace(/<\/?br\s*\/?>|\n/g, '<div></div>') text = text.replace(/<\/?br\s*\/?>|\n/g, '<div></div>')
......
...@@ -259,7 +259,6 @@ export default { ...@@ -259,7 +259,6 @@ export default {
}) })
}, },
jumpDetail (item) { jumpDetail (item) {
console.log(item.type)
// 类型:0-图片;1-视频;2-pdf;3-富文本 // 类型:0-图片;1-视频;2-pdf;3-富文本
let url = `/pages/common/caseDetail?id=${item.id}` let url = `/pages/common/caseDetail?id=${item.id}`
if (item.type != 3) { if (item.type != 3) {
...@@ -395,6 +394,9 @@ export default { ...@@ -395,6 +394,9 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a; box-shadow: 0 8rpx 24rpx 0 #2c66f71a;
border-radius: 16rpx; border-radius: 16rpx;
display: flex;
flex-direction: column;
overflow: hidden;
.img { .img {
width: 100%; width: 100%;
height: 324rpx; height: 324rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!