Commit 4d43c440 by 前端

滚动

1 parent 4fa820c2
<template>
<view class="tool-box" :style="toolStyle">
<view
:class="['btn', {hideIcon:!show}]"
@click="show = false"
>
<view class="icon sprite-icon icon-tool-file">
</view>
<view :class="['btn', { hideIcon: !show }]" @click="show = false">
<view class="icon sprite-icon icon-tool-file"></view>
文件夹
</view>
<view :class="['list',{showList:!show}]">
<view
class="title"
@click="show = true"
>文件夹</view>
<template v-for="(i,index) in data">
<view
:class="['item', {active: i[idKey] == id} ]"
:key="index"
@click="jump(i)"
>
<image
class="icon"
:src="i.shortTitleUrl"
mode="scaleToFill"
/>
{{i.shortTitle}}
</view>
</template>
<view :class="['list', { showList: !show }]">
<view class="title" @click="show = true">文件夹</view>
<view class="list-body">
<template v-for="(i, index) in data">
<view :class="['item', { active: i[idKey] == id }]" :key="index" @click="jump(i)">
<image class="icon" :src="i.shortTitleUrl" mode="scaleToFill" />
{{ i.shortTitle }}
</view>
</template>
</view>
<template v-if="showPayBtn">
<view
class="item"
@click="toPay"
>
<view class="item" @click="toPay">
<view class="icon">
<view class="sprite-icon icon-tool-pay"></view>
</view>
......@@ -39,10 +23,7 @@
</view>
</template>
<template v-if="type != 'preview'">
<view
class="item"
@click="finish"
>
<view class="item" @click="finish">
<view class="icon">
<view class="sprite-icon icon-tool-finish"></view>
</view>
......@@ -53,7 +34,7 @@
</view>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
export default {
name: 'ToolBox',
props: {
......@@ -105,7 +86,7 @@ export default {
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.tool-box {
position: fixed;
right: 40rpx;
......@@ -157,7 +138,7 @@ export default {
height: 0;
&::after {
position: absolute;
content: "";
content: '';
background: inherit;
top: 0;
left: 0;
......@@ -176,6 +157,10 @@ export default {
align-items: center;
justify-content: center;
}
.list-body {
max-height: 60vh;
overflow-y: auto;
}
.item {
display: flex;
flex-direction: column;
......@@ -215,4 +200,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -12,7 +12,7 @@
<view class="card-item" v-for="item in list" :key="item.id">
<template>
<image v-if="item.vdQuotationPaymentDoc && item.vdQuotationPaymentDoc.paymentDocUrl" class="image-box" :src="item.vdQuotationPaymentDoc.paymentDocUrl" />
<image v-else class="image-box" src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp" />
<image v-else class="image-box photo" src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/common/pay.webp" />
<view class="gradient-overlay"></view>
</template>
<view>
......@@ -262,7 +262,18 @@ export default {
}
}
.image-box {
display: none;
width: 252rpx;
height: 100%;
position: absolute;
top: 0rpx;
// opacity: 0.5;
right: 0rpx;
background-size: 100% 100%;
border-radius: 32rpx;
z-index: -1;
&.photo {
width: 250rpx;
}
}
.gradient-overlay {
z-index: -1;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-12-19 16:56:32
* @LastEditTime: 2024-12-23 11:21:12
-->
<template>
<view class="detail-box" @dblclick="dbClick">
......@@ -134,7 +134,7 @@ export default {
let ref = this.$refs[refKey]
if (ref) {
if (Array.isArray(ref)) ref = ref[0]
ref.closeAllPopup && ref.closeAllPopup()
ref && ref.closeAllPopup && ref.closeAllPopup()
}
})
this.receptionTrackLeave()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!