Commit 0046b8d4 authored by 14699's avatar 14699

'fix-测试问题修改'

parent a85a639f
<template> <template>
<div class="container"> <div class="container">
<NavBar title="关于我们" left-arrow @click-left="goBack" /> <NavBar title="关于小松融资租赁" left-arrow @click-left="goBack" />
<view class="inform">
<p class="content"> <view class="inform-title">小松(中国)融资租赁有限公司</view>
小松(中国)融资租赁有限公司成立于2007年05月24日,注册地位于中国(上海)自由贸易试验区金科路2889弄6号7层702单元,法定代表人为今吉琢也(IMAYOSHI <view class="inform-title">Komatsu Financial Leasing China Ltd.</view>
TAKUYA)。经营范围包括融资租赁业务;租赁业务;向国内外购买租赁财产;租赁财产的残值处理及维修;租赁交易咨询和担保。 【依法须经批准的项目,经相关部门批准后方可开展经营活动 <view class="inform-explain">
</p> <text class="strong">公司介绍</text>
<text>小松(中国)融资租赁有限公司是针对小松品牌的挖掘机、装载机、推土机等工程机械商品开展融资租赁业务,是小松集团在中国地区的总部-小松(中国)投资有限公司投资设立的外商独资公司。通过为小松的中国客户提供多样化的融资服务,让客户更轻松地获得小松的设备,助力客户事业获得成功,实现小松与客户的互利双赢。</text>
</view>
<view class="list">
<text class="strong">主营业务</text>
<text>融资租赁业务;租赁业务;向国内外购买租赁财产;租赁财产的残值处理及维修;租赁交易咨询和担保;</text>
<text class="strong">工商信息</text>
<text>公司名称:小松(中国)融资租赁有限公司</text>
<text>Komatsu Financial Leasing China Ltd.</text>
<text>公司类型:有限责任公司(外国法人独资)</text>
<text>成立日期:2007年5月24日</text>
<text>注册资本:人民币103000.0000万</text>
<text>公司地址:中国(上海)自由贸易试验区金科路2889弄6号3层</text>
</view>
</view>
</div> </div>
</template> </template>
...@@ -22,12 +36,86 @@ import { NavBar } from "vant"; ...@@ -22,12 +36,86 @@ import { NavBar } from "vant";
line-height: 25px; line-height: 25px;
text-indent: 2em; text-indent: 2em;
} }
.container {
background-color: #fff;
}
.inform {
width:100%;
margin: 0 auto;
padding-bottom: 15px;
text-align: left;
}
.inform-title{
font-size: 16px;
color: #656464;
letter-spacing: 0.4px;
font-weight: bold;
text-align: center;
width:100%;
height:25px;
line-height: 25px;
background-color: #fff;
display: flex;
justify-content: center;
/* top:0;
left: 0; */
}
.inform-explain{
font-size: 14px;
color: #656464;
padding-top: 50px;
width: 95%;
margin:0 auto;
/* text-indent: 50rpx; */
}
.inform .inform-explain text{
width: 95%;
margin:0 auto;
display: block;
line-height: 24px;
}
.explain{
/*font-family: PingFangSC-Regular;*/
font-size: 15px;
color: #656464;
letter-spacing: 0.4px;
margin-top:20px;
}
.inform-confirm{
background: #1989fa;
width: 100%;
height: 36px;
color: #fff;
/*font-family: PingFangSC-Semibold;*/
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
}
.inform .list{
font-size: 12px;
color: #656464;
letter-spacing: 0;
line-height: 13px;
margin-top: 10px;
}
.inform .list text{
width: 95%;
margin:0 auto;
display: block;
line-height: 24px;
}
.strong {
font-weight: bold;
color: #333;
}
</style> </style>
<route> <route>
{ {
meta: { meta: {
title: '关于我们' title: '关于小松融资租赁'
} }
} }
</route> </route>
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<div class="container"> <div class="container">
<div class="title-content"> <div class="title-content">
<div class="title-left">最新消息</div> <div class="title-left">最新消息</div>
<div class="title-right">{{messageTotal}}</div> <!-- <div class="title-right">{{messageTotal}}</div>-->
</div> </div>
<NoticeBar v-if="messageList.length === 0" left-icon="volume-o" color="#2979FF" background="#EAF2FF" text="暂无消息"/> <NoticeBar v-if="messageList.length === 0" left-icon="volume-o" color="#2979FF" background="#EAF2FF" text="暂无消息"/>
<NoticeBar v-if="messageList.length>0" left-icon="volume-o" scrollable color="#2979FF" background="#EAF2FF" :text="messageList[0].messageContent"/> <NoticeBar v-if="messageList.length>0" left-icon="volume-o" scrollable color="#2979FF" background="#EAF2FF" :text="messageList[0].messageContent"/>
<NoticeBar v-if="messageList.length>1" left-icon="volume-o" scrollable color="#2979FF" background="#EAF2FF" :text="messageList[1].messageContent"/> <NoticeBar v-if="messageList.length>1" left-icon="volume-o" scrollable color="#2979FF" background="#EAF2FF" :text="messageList[1].messageContent"/>
<div class="title-content"> <div class="title-content">
<div class="title-left">还款计划消息</div> <div class="title-left">还款计划消息</div>
<div class="title-right">{{repaymentMessageTotal}}</div> <!-- <div class="title-right">{{repaymentMessageTotal}}</div>-->
</div> </div>
<NoticeBar v-if="repaymentMessageList.length=== 0" left-icon="volume-o" color="#2979FF" background="#EAF2FF" text="暂无消息"/> <NoticeBar v-if="repaymentMessageList.length=== 0" left-icon="volume-o" color="#2979FF" background="#EAF2FF" text="暂无消息"/>
<NoticeBar v-if="repaymentMessageList.length>0" left-icon="volume-o" scrollable color="#2979FF" background="#EAF2FF" :text="repaymentMessageList[0].messageContent"/> <NoticeBar v-if="repaymentMessageList.length>0" left-icon="volume-o" scrollable color="#2979FF" background="#EAF2FF" :text="repaymentMessageList[0].messageContent"/>
......
...@@ -60,6 +60,7 @@ import { useRoute, useRouter } from "vue-router"; ...@@ -60,6 +60,7 @@ import { useRoute, useRouter } from "vue-router";
import api from "../api"; import api from "../api";
import { useMakeRepayment } from '../store/index'; import { useMakeRepayment } from '../store/index';
import { currency } from "@/utils/textFormat"; import { currency } from "@/utils/textFormat";
import moment from 'moment'
const makeRepaymentStore = useMakeRepayment() const makeRepaymentStore = useMakeRepayment()
const showDialog = ref(false); const showDialog = ref(false);
...@@ -130,19 +131,17 @@ const getRepayPlanInfo = async () => { ...@@ -130,19 +131,17 @@ const getRepayPlanInfo = async () => {
getRepayPlanInfo(); getRepayPlanInfo();
const checkCashflow = (listItem, curIndex) => { const checkCashflow = (listItem, curIndex) => {
// cashflow.find((item, index)=>{ // 判断当期之前是否已全部还清
//
// })
for(var i = 0; i< curIndex; i++) { for(var i = 0; i< curIndex; i++) {
if(cashflow[i].writeOffFlag != 'FULL'){ if(cashflow[i].writeOffFlag != 'FULL'){
return false return false
} }
} }
// cashflow.forEach((item,index) => { let monthLastDate = moment().endOf('month').format('YYYY-MM-DD') // 获取当前日期本月最后一天
// if(item.writeOffFlag != 'FULL'){ // 判断当期还款日期是否本月最后一天之后
// return false if(moment(listItem.dueDate).isAfter(monthLastDate, 'year')){
// } return false
// }) }
return true return true
} }
......
//成功回调 function downloadFile(source, target, isTemp = 'N',succesE,errorE) {
var onDownloadFileSuccess = function (message) { window.onDownloadFileSuccess = function(res){
//message:数据格式为JSON字符串 console.log('success:',res);
} succesE(res)
//失败回调 };
var onDownloadFileError = function (message) { window.onDownloadFileError = function(res){
console.error('download:',message); console.log('download:',res);
} errorE(res)
function downloadFile(source, target, isTemp = 'N') { };
var options = { var options = {
source, source,
target,//如果用户制定了文件的存放路径则直接存放,否则存放至app的默认路径,仅android target,//如果用户制定了文件的存放路径则直接存放,否则存放至app的默认路径,仅android
isTemp,//仅iOS,如果为Y会放到临时目录,当系统资源紧张会清空这个目录;如果为N会放到永久目录里 isTemp,//仅iOS,如果为Y会放到临时目录,当系统资源紧张会清空这个目录;如果为N会放到永久目录里
} }
var args = { var args = {
className: "FileBridge", className: "FileBridge",
...@@ -31,7 +31,5 @@ function downloadFile(source, target, isTemp = 'N') { ...@@ -31,7 +31,5 @@ function downloadFile(source, target, isTemp = 'N') {
// } // }
export default function downfileHips(source, succesE, errorE, target, isTemp = 'N') { export default function downfileHips(source, succesE, errorE, target, isTemp = 'N') {
succesE && (onDownloadFileSuccess = succesE); downloadFile(source, target, isTemp,succesE,errorE)
errorE && (onDownloadFileError = errorE); }
downloadFile(source, target, isTemp)
}
\ 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