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

合同缺省页

parent 3918983e
...@@ -7,17 +7,23 @@ ...@@ -7,17 +7,23 @@
:border-bottom="false" :border-bottom="false"
></u-navbar> ></u-navbar>
<view class="content"> <view class="content">
<text class="title">合同清单</text> <view v-if="res.length > 0">
<view <text class="title">合同清单</text>
class="jf-currency-class" <view
v-for="item in res" class="jf-currency-class"
:key="item.id" v-for="item in res"
@click="goBaidu(item.url)" :key="item.id"
> @click="goBaidu(item.url)"
<view class="left">{{ item.name }}</view> >
<view class="text1">《{{ item.name }}》</view> <view class="left">{{ item.name }}</view>
<view class="text2">下载时间: {{ item.create_at }}</view> <view class="text1">《{{ item.name }}》</view>
</view> <view class="text2">下载时间: {{ item.create_at }}</view>
</view>
</view>
<view v-else class="no-contract">
<image :src="zanwuhetonImage" class="no-contract-image"></image>
<text>当前暂无合同</text>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -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