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

合同缺省页

parent 3918983e
......@@ -7,17 +7,23 @@
:border-bottom="false"
></u-navbar>
<view class="content">
<text class="title">合同清单</text>
<view
class="jf-currency-class"
v-for="item in res"
:key="item.id"
@click="goBaidu(item.url)"
>
<view class="left">{{ item.name }}</view>
<view class="text1">《{{ item.name }}》</view>
<view class="text2">下载时间: {{ item.create_at }}</view>
</view>
<view v-if="res.length > 0">
<text class="title">合同清单</text>
<view
class="jf-currency-class"
v-for="item in res"
:key="item.id"
@click="goBaidu(item.url)"
>
<view class="left">{{ item.name }}</view>
<view class="text1">《{{ item.name }}》</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>
</template>
......@@ -37,7 +43,11 @@ export default {
getApp().trackPage('我的合同列表页')
this.getContract(this.type);
},
computed: {},
computed: {
zanwuhetonImage() {
return process.uniEnv.qn_base_url + 'zanwuheton.png'
},
},
methods: {
getContract(params) {
this.$u.api.Mycontract(params).then((res) => {
......@@ -141,4 +151,20 @@ export default {
height: 100%;
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>
\ 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