Commit 35484f29 authored by 刘用法's avatar 刘用法

合同缺省页

parent 3918983e
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
:border-bottom="false" :border-bottom="false"
></u-navbar> ></u-navbar>
<view class="content"> <view class="content">
<view v-if="res.length > 0">
<text class="title">合同清单</text> <text class="title">合同清单</text>
<view <view
class="jf-currency-class" class="jf-currency-class"
...@@ -19,6 +20,11 @@ ...@@ -19,6 +20,11 @@
<view class="text2">下载时间: {{ item.create_at }}</view> <view class="text2">下载时间: {{ item.create_at }}</view>
</view> </view>
</view> </view>
<view v-else class="no-contract">
<image :src="zanwuhetonImage" class="no-contract-image"></image>
<text>当前暂无合同</text>
</view>
</view>
</view> </view>
</template> </template>
<script> <script>
...@@ -37,7 +43,11 @@ export default { ...@@ -37,7 +43,11 @@ export default {
getApp().trackPage('我的合同列表页') getApp().trackPage('我的合同列表页')
this.getContract(this.type); this.getContract(this.type);
}, },
computed: {}, computed: {
zanwuhetonImage() {
return process.uniEnv.qn_base_url + 'zanwuheton.png'
},
},
methods: { methods: {
getContract(params) { getContract(params) {
this.$u.api.Mycontract(params).then((res) => { this.$u.api.Mycontract(params).then((res) => {
...@@ -141,4 +151,20 @@ export default { ...@@ -141,4 +151,20 @@ export default {
height: 100%; height: 100%;
position: absolute; position: absolute;
} }
.no-contract {
color: #999999;
text-align: center;
margin-top: 240rpx;
font-weight: 20rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.no-contract-image {
width: 374rpx;
height: 254rpx;
margin-bottom: 50rpx;
}
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment