Commit 4d43c440 by 前端

滚动

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