Commit 53d5610f by 李伟康

commit 新增文件夹

1 parent 7e3c9bbf
<template>
<view class="tool-box">
<view
:class="['btn', {hideIcon:!show}]"
@click="show = false"
>
<glsx-image
src="tool/file.png"
class="icon"
/>
文件夹
</view>
<view :class="['list',{showList:!show}]">
<view
class="title"
@click="show = true"
>文件夹</view>
<template v-for="(i,index) in toolList">
<view
class="item"
:key="index"
@click="jump(i)"
>
<view class="icon">
<glsx-image
:src="i.icon"
class="icon"
/>
</view>
{{i.label}}
</view>
</template>
<view class="item">
<view class="icon">
<glsx-image
src="tool/finish.png"
class="icon"
/>
</view>
完成接待
</view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'ToolBox',
data () {
return {
show: true,
toolList: [
{
id: 1,
label: '交车告知书',
icon: 'tool/1.png'
},
{
id: 2,
label: '延保明细',
icon: 'tool/2.png'
},
{
id: 3,
label: '保修告知书',
icon: 'tool/3.png'
},
{
id: 4,
label: '三包政策',
icon: 'tool/4.png'
},
{
id: 5,
label: '历史成交',
icon: 'tool/5.png'
},
{
id: 6,
label: '质保升级',
icon: 'tool/6.png'
}
]
}
},
methods: {
jump (item) {
console.log(item)
this.$emit('choose', item)
}
}
}
</script>
<style scoped lang='scss'>
.tool-box {
position: fixed;
right: 40rpx;
top: 50%;
transform: translateY(-50%);
z-index: 998;
width: 128rpx;
.btn {
width: 100%;
height: 128rpx;
background-image: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
border: 2.08rpx solid #ffffff;
box-shadow: 0 8rpx 24rpx 0 #00000033;
border-radius: 16rpx;
font-size: 24rpx;
color: #292d33;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.icon {
width: 60rpx;
height: 60rpx;
margin-bottom: 8rpx;
transition: all .15s;
}
}
.hideIcon{
height: 0;
overflow: hidden;
.icon{
height: 0;
margin-bottom: 0;
}
}
.list {
width: 100%;
height: 0;
background: #ffffff;
box-shadow: 0 8rpx 22rpx 0 #00000029;
border-radius: 16rpx;
flex-direction: column;
align-items: center;
transition: all .15s;
overflow: hidden;
.title {
width: 128rpx;
height: 56rpx;
background: #f4f4f5;
border: 2rpx solid #ffffff;
border-radius: 16rpx 16rpx 0 0;
display: flex;
align-items: center;
justify-content: center;
}
.item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 20rpx;
color: #666666;
height: 120rpx;
width: 100%;
.icon {
width: 60rpx;
height: 60rpx;
margin-bottom: 8rpx;
}
}
}
.showList{
display: flex;
height: 896rpx;
}
}
</style>
\ No newline at end of file
......@@ -7,6 +7,7 @@
-->
<template>
<view>
<tool-box />
详情页
<button @click="open">完成接待</button>
<uni-popup
......@@ -75,6 +76,7 @@
</view>
</template>
<script>
import ToolBox from './components/ToolBox.vue'
const PAYMENT_TYPE = [
{
name: "扫码支付",
......@@ -109,7 +111,11 @@ const ACCOUT_LIST = [
];
import myClick from "@/mixin/click";
export default {
components: { ToolBox },
mixins: [myClick],
component:{
ToolBox
},
data() {
return {
payInfo: {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!