Commit 1a86bc88 by 李伟康

修改样式

1 parent 28a8492f
<template> <template>
<div class="nothing text-center"> <div class="nothing">
<img <img
:src="image" :src="image"
class="image" class="image"
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: 'Nothing', name: 'Nothing',
props:{ props: {
image:String image: String
}, },
data () { data () {
return { return {
...@@ -27,10 +27,14 @@ export default { ...@@ -27,10 +27,14 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.nothing { .nothing {
display: flex;
padding-top: 103px; padding-top: 103px;
flex-direction: column; flex-direction: column;
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
align-items: center;
box-sizing: border-box;
background-color: #fff;
.image { .image {
width: 266px; width: 266px;
height: 133px; height: 133px;
......
...@@ -82,8 +82,11 @@ export default { ...@@ -82,8 +82,11 @@ export default {
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
.hide{ .hide{
height: 120px; max-height: 150px;
overflow: hidden; overflow-y: scroll;
/deep/img{
height: auto;
}
} }
} }
.bottom { .bottom {
......
...@@ -113,4 +113,7 @@ export default { ...@@ -113,4 +113,7 @@ export default {
width: 100%; width: 100%;
} }
} }
.van-icon-search:before {
color: #cdd1d4;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
module.exports = { module.exports = {
envVersion: 'trial', envVersion: 'trial',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<template v-if="flag"> <template v-if="flag">
<template v-if="list.length"> <template v-if="list.length">
<scroll-view <scroll-view
:class="['list-box']" class="list-box"
@ReachBottom="onReachBottom" @ReachBottom="onReachBottom"
ref="scrollView" ref="scrollView"
> >
...@@ -49,7 +49,10 @@ ...@@ -49,7 +49,10 @@
</scroll-view> </scroll-view>
</template> </template>
<template v-else> <template v-else>
<nothing image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png">暂无可用素材</nothing> <nothing
class="nothing-box"
image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png"
>暂无可用素材</nothing>
</template> </template>
</template> </template>
</div> </div>
...@@ -80,6 +83,8 @@ export default { ...@@ -80,6 +83,8 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
top: 3px; top: 3px;
background-color: #fff;
padding-right: 5px;
} }
} }
.list-box { .list-box {
...@@ -90,4 +95,10 @@ export default { ...@@ -90,4 +95,10 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
.nothing-box {
height: calc(100vh - 100px);
}
/deep/.van-search {
padding: 4.5px 16px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<template v-if="flag"> <template v-if="flag">
<template v-if="list.length"> <template v-if="list.length">
<scroll-view <scroll-view
:class="['list-box']" class="list-box"
@ReachBottom="onReachBottom" @ReachBottom="onReachBottom"
ref="scrollView" ref="scrollView"
> >
...@@ -66,13 +66,16 @@ ...@@ -66,13 +66,16 @@
</scroll-view> </scroll-view>
</template> </template>
<template v-else> <template v-else>
<nothing image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png">暂无可用素材</nothing> <nothing
class="nothing-box"
image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png"
>暂无可用素材</nothing>
</template> </template>
</template> </template>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { psdMixin, businessMixin, pageMixin, shareMixin} from '@/mixins' import { psdMixin, businessMixin, pageMixin, shareMixin } from '@/mixins'
export default { export default {
name: '', name: '',
mixins: [psdMixin, businessMixin, pageMixin, shareMixin], mixins: [psdMixin, businessMixin, pageMixin, shareMixin],
...@@ -109,4 +112,7 @@ export default { ...@@ -109,4 +112,7 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
.nothing-box {
height: calc(100vh - 99px);
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!