Commit 244217d4 by 李伟康

commit 提交

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