Commit 1a86bc88 by 李伟康

修改样式

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