You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<!--顶部-->
|
|
|
|
<view class="Width100">
|
|
|
|
<image :src="$.imgSrc + '/scimg/nodata1.png'" mode="aspectFit" class="Img Block" :style="'margin-top:' + marginTop + 'rpx;'"></image>
|
|
|
|
<text class="Block TextCenter FontS_26rpx Color_B4BAC9 MarginT_20rpx">{{text}}</text>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "no-data",
|
|
|
|
props: {
|
|
|
|
marginTop:{
|
|
|
|
type:Number,
|
|
|
|
default:300
|
|
|
|
},
|
|
|
|
text:{
|
|
|
|
type:String,
|
|
|
|
default:'暂无数据'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
navHeight:88,
|
|
|
|
topHeight:0,
|
|
|
|
$:this.$,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted(){
|
|
|
|
},
|
|
|
|
computed:{
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
// 获取url
|
|
|
|
getCurPage() {
|
|
|
|
let pages = getCurrentPages();
|
|
|
|
let curPage = pages[pages.length - 1];
|
|
|
|
return curPage
|
|
|
|
},
|
|
|
|
// 返回
|
|
|
|
backPage(){
|
|
|
|
this.$emit('backPage')
|
|
|
|
},
|
|
|
|
// 跳转页面
|
|
|
|
skipPage(item) {
|
|
|
|
this.$emit('skipPage', item.pageUrl)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.Img{
|
|
|
|
width: 320rpx;
|
|
|
|
height: 280rpx;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
}
|
|
|
|
</style>
|