uni-Identify-quality/pages/contract/index.vue

187 lines
4.4 KiB
Vue
Raw Normal View History

2023-09-19 02:53:38 +00:00
<template>
2023-09-22 05:24:04 +00:00
<div class="contract" >
<title-block title="待签署合同">
2023-09-23 05:18:04 +00:00
<!-- <template #left>
2023-09-22 07:42:56 +00:00
<div class="wrap3" style="display: flex;align-items: center">
2023-09-22 05:24:04 +00:00
<image src="../../static/zu567@3x.png"></image>
</div>
2023-09-23 05:18:04 +00:00
</template>-->
2023-09-22 05:24:04 +00:00
</title-block>
2023-09-20 01:47:12 +00:00
<div class="content2">
<div class="wrap1">合同名称</div>
<div class="wrap2">合同编号</div>
2023-09-23 05:18:04 +00:00
<div class="wrap3">签署日期</div>
2023-09-20 01:47:12 +00:00
</div>
2023-09-23 06:38:30 +00:00
<div class="content3" >
<scroll-view :style="{height:`${elementBottom}rpx`}" :scroll-y="true" @scrolltolower="loadMore">
2023-09-22 05:24:04 +00:00
<div class="wrap1" v-for="(item,index) in mainList" :key="index">
2023-09-23 05:18:04 +00:00
<div class="wrap1_1">{{item.contractTile}}</div>
<div class="wrap1_2">{{item.contractId.length>10?`${item.contractId.slice(0,10)}...`:item.contractId}}</div>
<div class="wrap1_3"><div class="wrap1_3_1">{{item.signDate}}</div></div>
2023-09-20 01:47:12 +00:00
</div>
2023-09-23 06:38:30 +00:00
</scroll-view>
2023-09-20 01:47:12 +00:00
</div>
2023-09-23 06:38:30 +00:00
2023-09-20 01:47:12 +00:00
<tabbar :current="2"></tabbar>
</div>
2023-09-19 02:53:38 +00:00
</template>
2023-09-19 02:50:09 +00:00
<script>
2023-09-19 02:53:38 +00:00
import tabbar from "../../components/uiq-tabbar/uiq-tabbar.vue";
2023-09-22 05:24:04 +00:00
import {postDataByParams} from "../../http/service";
2023-09-19 02:53:38 +00:00
2023-09-19 02:50:09 +00:00
export default {
2023-09-19 02:53:38 +00:00
name: "index",
2023-09-22 05:24:04 +00:00
components: {tabbar},
data(){
return{
page:1,
pageSize:999,
2023-09-23 05:31:49 +00:00
mainList:[],
2023-09-23 06:38:30 +00:00
elementBottom:''
2023-09-22 05:24:04 +00:00
}
},
mounted(){
this.getData()
2023-09-23 06:38:30 +00:00
this.getDistanceFromTopToPageBottom('.content3')
2023-09-22 05:24:04 +00:00
},
methods:{
2023-09-23 06:38:30 +00:00
async getDistanceFromTopToPageBottom(classValue) {
const { windowHeight, windowWidth } = await uni.getSystemInfo();
const [{ top }] = await new Promise(resolve => uni.createSelectorQuery().select(classValue).boundingClientRect().exec(resolve));
this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 175;
},
2023-09-22 05:24:04 +00:00
loadMore(){
},
async getData() {
const data = {
page: this.page, //分页
pageSize: this.pageSize, //每页数据量
}
const res = await postDataByParams('/api/warehouse/list', data)
if (res.code === 200) {
this.mainList = res.data.data
}else {
uni.showToast({
title: res.msg,
icon:'none'
})
}
},
}
2023-09-19 02:50:09 +00:00
}
</script>
<style scoped lang="scss">
2023-09-20 01:47:12 +00:00
.contract{
2023-09-22 05:24:04 +00:00
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
2023-09-20 01:47:12 +00:00
box-sizing: border-box;
2023-09-22 05:24:04 +00:00
overflow: hidden;
2023-09-20 01:47:12 +00:00
padding-left: 30rpx;
padding-right: 30rpx;
background-size: cover;
width: 100vw;
height: 100vh;
.content3{
2023-09-23 06:38:30 +00:00
margin-top: 20rpx;
2023-09-22 05:24:04 +00:00
margin-bottom: 166rpx;
2023-09-23 05:31:49 +00:00
2023-09-20 01:47:12 +00:00
.wrap1{
2023-09-22 05:24:04 +00:00
margin-bottom: 20rpx;
2023-09-20 01:47:12 +00:00
border-radius: 20rpx;
height: 108rpx;
background: #fff;
display: flex;
align-items: center;
.wrap1_1{
flex: 1 1 0rpx;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
}
.wrap1_2{
flex: 1 1 0rpx;
color: #808080;
font-size: 24rpx;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
}
.wrap1_3{
flex: 1 1 0rpx;
display: flex;
justify-content: center;
align-items: center;
.wrap1_3_1{
display: flex;
justify-content: center;
align-items: center;
width: 208rpx;
border-radius: 20rpx;
height: 56rpx;
background:#76C458 ;
color: #fff;
font-size: 24rpx;
}
}
}
}
.content2{
margin-top: 46rpx;
display: flex;
border-radius: 20rpx;
height: 70rpx;
background: #76C458;
.wrap1{
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 0rpx;
}
.wrap2{
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 0rpx;
}
.wrap3{
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 0rpx;
}
}
.content1{
display: flex;
justify-content: space-between;
.wrap1{
width: 120rpx;
height: 20rpx;
}
.wrap2{
color: #4E964D;
font-size: 32rpx;
}
.wrap3{
image{
width: 132rpx;
height: 52rpx;
}
}
2023-09-19 02:50:09 +00:00
2023-09-20 01:47:12 +00:00
}
}
2023-09-19 02:50:09 +00:00
</style>