This commit is contained in:
weipengfei 2023-08-30 11:32:59 +08:00
parent f1d1f2a76c
commit 4be3e2c516

View File

@ -16,7 +16,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="right" @click="navToContract('')"> <view class="right" @click="navToContract('fdsf')">
<uni-icons type="paperclip" color="#3274F9"></uni-icons> <uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view> <view>查看</view>
</view> </view>
@ -25,7 +25,8 @@
<view class="card"> <view class="card">
<view class="c_title">账单记录</view> <view class="c_title">账单记录</view>
<u-line></u-line> <u-line></u-line>
<u-steps style="padding: 28rpx;" :current="-1" direction="column" activeColor="#0122c7" dot inactiveColor="#0122c7"> <u-steps style="padding: 28rpx;" :current="-1" direction="column" activeColor="#0122c7" dot
inactiveColor="#0122c7">
<u-steps-item v-for="(item, index) in 2" title="开始" desc="结算"> <u-steps-item v-for="(item, index) in 2" title="开始" desc="结算">
</u-steps-item> </u-steps-item>
</u-steps> </u-steps>
@ -58,6 +59,9 @@
<script> <script>
import { Toast } from '../../libs/uniApi'; import { Toast } from '../../libs/uniApi';
import {
download_file
} from "@/api/junziqian.js"
export default { export default {
data() { data() {
return { return {
@ -66,15 +70,22 @@ import { Toast } from '../../libs/uniApi';
}, },
methods: { methods: {
navToContract(contract_no) { navToContract(contract_no) {
if(!contract_no) return Toast('暂无合同') if (!contract_no) return Toast('暂无合同');
uni.showLoading({
title: '加载中'
});
download_file({ download_file({
applyNo: contract_no applyNo: contract_no
}).then(res => { }).then(res => {
if (res.code != 1) { if (res.code != 1) {
uni.hideLoading();
Toast(res.msg) Toast(res.msg)
} }
uni.navigateTo({ uni.navigateTo({
url: `/subpkg/pdfView/pdfView?url=${res.data.url}` url: `/subpkg/pdfView/pdfView?url=${res.data.url}`,
fail() {
uni.hideLoading();
}
}) })
}) })
}, },
@ -101,57 +112,69 @@ import { Toast } from '../../libs/uniApi';
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
.money { .money {
font-size: 70rpx; font-size: 70rpx;
} }
} }
.card { .card {
margin: 28rpx; margin: 28rpx;
width: 694rpx; width: 694rpx;
background-color: #fff; background-color: #fff;
border-radius: 14rpx; border-radius: 14rpx;
.c_title { .c_title {
color: #0022C7; color: #0022C7;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
padding: 28rpx; padding: 28rpx;
} }
.c_body { .c_body {
margin: 28rpx; margin: 28rpx;
padding-bottom: 28rpx; padding-bottom: 28rpx;
display: flex; display: flex;
border-bottom: 1px solid #F3F4F8; border-bottom: 1px solid #F3F4F8;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
} }
.icon { .icon {
width: 77rpx; width: 77rpx;
height: 77rpx; height: 77rpx;
flex-shrink: 0; flex-shrink: 0;
margin-right: 12rpx; margin-right: 12rpx;
} }
.body_text { .body_text {
flex: 1; flex: 1;
font-size: 25rpx; font-size: 25rpx;
.b_title { .b_title {
font-size: 32rpx; font-size: 32rpx;
color: #333; color: #333;
font-weight: 500; font-weight: 500;
} }
.b_text { .b_text {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 16rpx 0; padding: 16rpx 0;
font-size: 28rpx; font-size: 28rpx;
.b_avatar { .b_avatar {
width: 52rpx; width: 52rpx;
height: 52rpx; height: 52rpx;
margin-right: 8rpx; margin-right: 8rpx;
} }
&_left { &_left {
display: flex; display: flex;
align-items: center; align-items: center;
} }
&_right { &_right {
color: #F02828; color: #F02828;
display: flex; display: flex;
@ -159,6 +182,7 @@ import { Toast } from '../../libs/uniApi';
font-size: 35rpx; font-size: 35rpx;
} }
} }
.b_time { .b_time {
color: #666666; color: #666666;
} }
@ -166,6 +190,7 @@ import { Toast } from '../../libs/uniApi';
} }
} }
.button { .button {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@ -179,11 +204,14 @@ import { Toast } from '../../libs/uniApi';
line-height: 90rpx; line-height: 90rpx;
background-color: $theme-oa-color; background-color: $theme-oa-color;
display: flex; display: flex;
.retreat { .retreat {
color: $theme-oa-color; color: $theme-oa-color;
background-color: #fff; background-color: #fff;
} }
.hand, .retreat{
.hand,
.retreat {
flex: 1; flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
@ -191,6 +219,7 @@ import { Toast } from '../../libs/uniApi';
font-size: 32rpx; font-size: 32rpx;
} }
} }
.contract { .contract {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;