You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

216 lines
4.7 KiB
Vue

1 year ago
<template>
11 months ago
<div class="contract">
9 months ago
<title-block title="已签署合同">
11 months ago
<!-- <template #left>
<div class="wrap3" style="display: flex;align-items: center">
<image src="../../static/zu567@3x.png"></image>
</div>
</template>-->
1 year ago
</title-block>
11 months ago
1 year ago
<div class="content2">
<div class="wrap1">合同名称</div>
1 year ago
<div class="wrap3">签署日期</div>
1 year ago
</div>
1 year ago
11 months ago
<div class="content3">
<scroll-view :style="{height:`${elementBottom}rpx`}" :scroll-y="true" @scrolltolower="loadMore">
<div class="wrap1" v-for="(item,index) in mainList" :key="index" @click="previewContract(item)">
9 months ago
<div class="wrap1_1">{{ item.artworkNum }}</div>
11 months ago
<div class="wrap1_3">
<div class="wrap1_3_1">{{ item.signDate }}</div>
</div>
</div>
1 year ago
</scroll-view>
1 year ago
</div>
1 year ago
1 year ago
<tabbar :current="2"></tabbar>
</div>
1 year ago
</template>
1 year ago
<script>
1 year ago
import tabbar from "../../components/uiq-tabbar/uiq-tabbar.vue";
1 year ago
import {postDataByParams} from "../../http/service";
1 year ago
1 year ago
export default {
1 year ago
name: "index",
1 year ago
components: {tabbar},
11 months ago
data() {
return {
show: false,
page: 1,
pageSize: 999,
mainList: [],
elementBottom: ''
1 year ago
}
},
11 months ago
onShow() {
1 year ago
this.getData()
1 year ago
},
11 months ago
mounted() {
1 year ago
1 year ago
this.getDistanceFromTopToPageBottom('.content3')
1 year ago
},
11 months ago
methods: {
async previewContract(item) {
const data={
ID:item.ID
}
const res = await postDataByParams('/api/warehouse/fdd/pdf/url',data )
if (res.code===200){
uni.setStorageSync("jumpUrl",res.data.jumpUrl)
uni.navigateTo({
url: `/pages/signwebview/index`,
});
}
},
1 year ago
async getDistanceFromTopToPageBottom(classValue) {
1 year ago
const {windowHeight, windowWidth} = await uni.getSystemInfo();
const [{top}] = await new Promise(resolve => uni.createSelectorQuery().select(classValue).boundingClientRect().exec(resolve));
1 year ago
this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 175;
1 year ago
},
11 months ago
loadMore() {
1 year ago
},
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
11 months ago
} else {
1 year ago
uni.showToast({
title: res.msg,
11 months ago
icon: 'none'
1 year ago
})
}
},
}
1 year ago
}
</script>
<style scoped lang="scss">
11 months ago
.contract {
1 year ago
background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/4fdc9a0f-d72a-46b6-a04d-ed56d5465213.png");
1 year ago
box-sizing: border-box;
1 year ago
overflow: hidden;
1 year ago
padding-left: 30rpx;
padding-right: 30rpx;
background-size: cover;
width: 100vw;
height: 100vh;
11 months ago
.content3 {
1 year ago
margin-top: 20rpx;
1 year ago
margin-bottom: 166rpx;
1 year ago
11 months ago
.wrap1 {
1 year ago
margin-bottom: 20rpx;
11 months ago
border-radius: 20rpx;
1 year ago
height: 108rpx;
background: #fff;
display: flex;
align-items: center;
11 months ago
.wrap1_1 {
1 year ago
flex: 1 1 0rpx;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
}
11 months ago
.wrap1_2 {
1 year ago
flex: 1 1 0rpx;
color: #808080;
font-size: 24rpx;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
}
11 months ago
.wrap1_3 {
1 year ago
flex: 1 1 0rpx;
display: flex;
justify-content: center;
align-items: center;
11 months ago
.wrap1_3_1 {
1 year ago
display: flex;
justify-content: center;
align-items: center;
width: 208rpx;
border-radius: 20rpx;
height: 56rpx;
11 months ago
background: #76C458;
1 year ago
color: #fff;
font-size: 24rpx;
}
}
}
}
11 months ago
.content2 {
1 year ago
margin-top: 46rpx;
display: flex;
11 months ago
border-radius: 20rpx;
1 year ago
height: 70rpx;
background: #76C458;
11 months ago
.wrap1 {
1 year ago
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 0rpx;
}
11 months ago
.wrap2 {
1 year ago
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 0rpx;
}
11 months ago
.wrap3 {
1 year ago
color: #fff;
font-size: 28rpx;
display: flex;
justify-content: center;
align-items: center;
flex: 1 1 0rpx;
}
}
11 months ago
.content1 {
1 year ago
display: flex;
justify-content: space-between;
11 months ago
.wrap1 {
1 year ago
width: 120rpx;
height: 20rpx;
}
11 months ago
.wrap2 {
1 year ago
color: #4E964D;
font-size: 32rpx;
}
11 months ago
.wrap3 {
image {
1 year ago
width: 132rpx;
height: 52rpx;
}
}
1 year ago
1 year ago
}
}
1 year ago
</style>