list.vue
2.67 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
109
110
111
112
113
114
115
116
117
118
<template>
<div class="layout">
<search-box
@search="search"
:keyword="materialName"
:showDropdown="false"
showMenu
single
placeholder="输入关键词"
@menuSelect="menuSelect"
title="素材组"
:option="psdGroupList"
:updata="updata"
></search-box>
<van-dropdown-menu
active-color="#3975C6"
class="tab-menu attachment"
>
<van-dropdown-item ref="menu">
<template #title>
<div class="menu-title flex">
{{businessText}}
<div class="sprite-icon icon-down"></div>
</div>
</template>
<menu-checkbox
@confirm="businessConfirm"
title="业务类型"
:data="businessList"
/>
</van-dropdown-item>
<van-dropdown-item
:options="option"
v-model="sort"
@change="changeSort"
>
<template #title>
<div class="menu-title flex">
{{option[sort].text}}
<div class="sprite-icon icon-down"></div>
</div>
</template>
</van-dropdown-item>
</van-dropdown-menu>
<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"
@share="shareToExternalMoments"
/>
</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 {
name: '',
mixins: [psdMixin, businessMixin, pageMixin, shareMixin],
data () {
return {}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.tab-menu {
border-top: 1px solid rgba(195, 195, 195, 0.3);
box-shadow: 0px 1px 0px 0px #e9e9e9;
position: relative;
z-index: 2;
.icon-down {
margin-left: 4px;
}
}
/deep/.van-search {
padding: 9px 16px;
}
.list-box {
height: calc(100vh - 99px);
box-sizing: border-box;
padding: 10px 16px;
.item {
margin-bottom: 10px;
}
}
.nothing-box {
height: calc(100vh - 99px);
}
</style>