Commit 9c56e6f1 by 李伟康

commit 提交

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