Commit 244217d4 by 李伟康

commit 提交

1 parent e071906b
......@@ -10,7 +10,7 @@
/>
文件夹
</view>
<view :class="['list',{showList:!show}]">
<view :class="['list',{showList:!show},{preview: !show && type}]">
<view
class="title"
@click="show = true"
......@@ -30,15 +30,17 @@
{{i.label}}
</view>
</template>
<view class="item">
<view class="icon">
<glsx-image
src="tool/finish.png"
class="icon"
/>
<template v-if="type != 'preview'">
<view class="item" @click="finish">
<view class="icon">
<glsx-image
src="tool/finish.png"
class="icon"
/>
</view>
完成接待
</view>
完成接待
</view>
</template>
</view>
</view>
</template>
......@@ -46,6 +48,9 @@
<script type='text/ecmascript-6'>
export default {
name: 'ToolBox',
props: {
type: String
},
data () {
return {
show: true,
......@@ -87,6 +92,9 @@ export default {
jump (item) {
console.log(item)
this.$emit('choose', item)
},
finish () {
this.$emit('finish')
}
}
}
......@@ -117,13 +125,13 @@ export default {
width: 60rpx;
height: 60rpx;
margin-bottom: 8rpx;
transition: all .15s;
transition: all 0.15s;
}
}
.hideIcon{
.hideIcon {
height: 0;
overflow: hidden;
.icon{
.icon {
height: 0;
margin-bottom: 0;
}
......@@ -136,7 +144,7 @@ export default {
border-radius: 16rpx;
flex-direction: column;
align-items: center;
transition: all .15s;
transition: all 0.15s;
overflow: hidden;
.title {
width: 128rpx;
......@@ -164,9 +172,12 @@ export default {
}
}
}
.showList{
.showList {
display: flex;
height: 896rpx;
}
.preview{
height: 776rpx;
}
}
</style>
\ No newline at end of file
......@@ -7,7 +7,11 @@
-->
<template>
<view>
<tool-box />
<tool-box
:type="type"
@choose="choose"
@finish="open"
/>
详情页
<button @click="open">完成接待</button>
<pay-pop ref="pay"></pay-pop>
......@@ -20,14 +24,22 @@ import myClick from "@/mixin/click";
export default {
components: { ToolBox, payPop },
mixins: [myClick],
data() {
data () {
return {
type: 'preview'
};
},
onLoad (options) {
this.type = options.type
},
methods: {
open() {
open () {
this.$refs.pay.show()
},
/**切换素材 */
choose (e) {
console.log(e)
}
},
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!