index.vue
2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<template>
<div class="layout">
<div class="tab">
<template v-if="tab.length">
<tab
:list="tab"
:updata="updata"
@change="change"
class="tab_style"
>
</tab>
</template>
<dropdown-menu
class="menu"
title="业务类型"
:data="businessList"
@confirm="businessConfirm"
></dropdown-menu>
</div>
<search-box
@search="search"
:keyword="materialName"
:option="option"
placeholder="输入关键词"
class="attachment"
@change="changeSort"
:index="sort"
></search-box>
<template v-if="flag">
<template v-if="list.length">
<scroll-view
class="list-box"
@ReachBottom="onReachBottom"
ref="scrollView"
>
<div class="box">
<template v-for="(i,index) in list">
<div
class="item"
:key="index"
>
<psd
:item="i"
@send="sendMessage"
hidePYQ
/>
</div>
</template>
</div>
</scroll-view>
</template>
<template v-else>
<nothing
class="nothing-box"
image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png"
>暂无可用素材</nothing>
</template>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
import { psdMixin, businessMixin, pageMixin, shareMixin } from '@/mixins'
export default {
mixins: [psdMixin, businessMixin, pageMixin, shareMixin],
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.tab {
position: relative;
.menu {
position: absolute;
right: 0;
top: 3px;
background-color: #fff;
padding-right: 5px;
}
.tab_style{
width: calc(100% - 49px);
}
}
.list-box {
height: calc(100vh - 100px);
box-sizing: border-box;
padding: 10px 16px;
.item {
margin-bottom: 10px;
}
}
.nothing-box {
height: calc(100vh - 100px);
}
/deep/.van-search {
padding: 4.5px 16px;
}
</style>