123
This commit is contained in:
@@ -22,8 +22,9 @@ const lang = localStorage.getItem('lang')
|
||||
const _getDefaultLocal = () => {
|
||||
getDefaultLocal().then(res => {
|
||||
console.log('res', res)
|
||||
if (lang !== res) {
|
||||
localStorage.setItem('lang', res)
|
||||
if (lang !== res.defaultLocal) {
|
||||
localStorage.setItem('lang', res.defaultLocal)
|
||||
localStorage.setItem('defaultCoinUnit', res.defaultCoinUnit)
|
||||
location.reload()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
<view>{{ $t('borrowInfo.loanDetails') }}</view>
|
||||
</view>
|
||||
<van-cell :title="$t('borrowInfo.loanNo')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="borrowInfo.tradeNo" />
|
||||
<van-cell :title="$t('borrowInfo.loanAmount')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="toRoundMark(borrowInfo.totalLoanMoney)" />
|
||||
<van-cell :title="$t('borrowInfo.loanAmount')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="defaultCoinUnit + borrowInfo.totalLoanMoney" />
|
||||
<!-- <van-cell title="借款期限" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="borrowInfo.totalMonth + '个月'" />-->
|
||||
<van-cell :title="$t('borrowInfo.loanCycle')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="borrowInfo.totalMonth + $t('app.month')" />
|
||||
<van-cell :title="$t('borrowInfo.withdrawalBank')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="borrowInfo.bankType" />
|
||||
<van-cell :title="$t('borrowInfo.repaymentPerInstallment')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="toRoundMark(borrowInfo.avgRepayment)" />
|
||||
<van-cell :title="$t('borrowInfo.repaymentPerInstallment')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="defaultCoinUnit + borrowInfo.avgRepayment" />
|
||||
<van-cell :title="$t('borrowInfo.describe')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="borrowInfo.noteRemark" />
|
||||
|
||||
|
||||
@@ -45,12 +45,12 @@ import {onMounted, reactive, ref} from "vue";
|
||||
import {getBorrowInfo, getUserInfo} from "@/api";
|
||||
import {resetData} from "@/utils/dataUtil";
|
||||
import {useRoute} from "vue-router";
|
||||
import {toRoundMark} from "@/utils";
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
const route = useRoute()
|
||||
const active = ref(0);
|
||||
const { t } = useI18n()
|
||||
const defaultCoinUnit = localStorage.getItem('defaultCoinUnit')
|
||||
|
||||
const stepBorrow = reactive({
|
||||
"borrowNameStyle": "",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<div class="product-content-label">
|
||||
<div>{{$t('home.borrowingLimit')}}</div>
|
||||
<div><span>{{ loans.defaultCoinUnit }}{{ loans.loansMinAccount }}-{{ loans.loansMaxAccount }}</span></div>
|
||||
<div><span>{{ defaultCoinUnit }}{{ loans.loansMinAccount }}-{{ loans.loansMaxAccount }}</span></div>
|
||||
</div>
|
||||
<div class="product-content-label">
|
||||
<div>{{$t('home.installmentPeriod')}}</div>
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
<div class="apply">
|
||||
<div class="apply-title yellow_color">{{$t('home.applicationAmount')}}({{$t('app.yuan')}})</div>
|
||||
<div class="apply-title yellow_color">{{$t('home.applicationAmount')}}</div>
|
||||
|
||||
<div class="apply-money">{{ strip }}</div>
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
|
||||
<div class="apply-mqhk">
|
||||
<div>{{ $t('home.repaymentPerInstallment') }}</div>
|
||||
<div>{{ calLoan.defaultCoinUnit }}{{ calLoan.avgRepayment }}</div>
|
||||
<div>({{ $t('home.dailyInterestRate') }}{{ calLoan.loanRateDay*100 }}% {{ $t('home.totalInterest') }}{{ calLoan.defaultCoinUnit }}{{ calLoan.totalInterest }})</div>
|
||||
<div>{{ defaultCoinUnit }}{{ calLoan.avgRepayment }}</div>
|
||||
<div>({{ $t('home.dailyInterestRate') }}{{ calLoan.loanRateDay*100 }}% {{ $t('home.totalInterest') }}{{ defaultCoinUnit }}{{ calLoan.totalInterest }})</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -76,7 +76,7 @@
|
||||
<div>{{ loansUser.time }}</div>
|
||||
<div style="color: #ec6401">{{ loansUser.phone }}</div>
|
||||
<div>{{ $t('home.successfulBorrowing') }}</div>
|
||||
<div style="color: #BC7C1C; font-weight: 600;">{{ loansUser.defaultCoinUnit }}{{ loansUser.amount }}</div>
|
||||
<div style="color: #BC7C1C; font-weight: 600;">{{ defaultCoinUnit }}{{ loansUser.amount }}</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ const bannerList = [
|
||||
bannerUrl: getAssetsImages('home/banner_home.png')
|
||||
}
|
||||
]
|
||||
|
||||
const defaultCoinUnit = localStorage.getItem('defaultCoinUnit')
|
||||
const checked = ref(false);
|
||||
const strip = ref(3000)
|
||||
const lmChecked = ref('')
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
<view class="bg-1">
|
||||
<view class="bg-1-1">
|
||||
<div class="header-head" :style="{'--bg-image': `url(${headerImage}) no-repeat`}"></div>
|
||||
<view class="bg-1-1-text">{{$t('serveList.loan')}}:{{toRoundMark(customerInfo.borrowAccount)}}</view>
|
||||
<view class="bg-1-1-text">{{$t('serveList.loan')}}:{{defaultCoinUnit}}{{customerInfo.borrowAccount}}</view>
|
||||
</view>
|
||||
|
||||
<view class="accountBalance" style="border-bottom: 1px #fff dashed;">
|
||||
<view class="yellow_color">{{$t('serveList.balance')}}({{$t('app.yuan')}})</view>
|
||||
<view class="money">{{ toRoundMark(customerInfo.account) }}</view>
|
||||
<view class="yellow_color">{{$t('serveList.balance')}}</view>
|
||||
<view class="money">{{defaultCoinUnit}}{{ customerInfo.account }}</view>
|
||||
</view>
|
||||
|
||||
<view class="accountBalance">
|
||||
<view class="yellow_color">{{$t('serveList.amountToBeRepaid')}}({{$t('app.yuan')}})</view>
|
||||
<view class="money">{{ toRoundMark(customerInfo.repaymentAccount) }}</view>
|
||||
<view class="yellow_color">{{$t('serveList.amountToBeRepaid')}}</view>
|
||||
<view class="money">{{defaultCoinUnit}}{{ customerInfo.repaymentAccount }}</view>
|
||||
</view>
|
||||
|
||||
<view class="btn">
|
||||
@@ -79,10 +79,10 @@ import {useUserStore} from "@/store/modules/user";
|
||||
import {useRouter} from "vue-router";
|
||||
import {getBorrowWithdraw, getCustomerInfo, getStepBorrow} from "@/api";
|
||||
import {resetData} from "@/utils/dataUtil";
|
||||
import {getAssetsImages, px2vw, toRoundMark} from "../../../utils";
|
||||
import {getAssetsImages, px2vw} from "../../../utils";
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { isNull, isNullOrUnDef } from '@/utils/is';
|
||||
|
||||
const defaultCoinUnit = localStorage.getItem('defaultCoinUnit')
|
||||
|
||||
const router = useRouter()
|
||||
const userStore = useUserStore()
|
||||
|
||||
@@ -6,7 +6,12 @@
|
||||
<view class="tt">
|
||||
{{ $t('app.confirm') }}{{ $t('borrowInfo.loanInfo') }}
|
||||
</view>
|
||||
<van-cell :title="$t('borrowInfo.loanAmount')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="toRoundMark(loansInfo.totalLoanMoney)" />
|
||||
<van-cell
|
||||
:title="$t('borrowInfo.loanAmount')"
|
||||
title-style="color: #8997ae;"
|
||||
style="--van-cell-value-color: #000"
|
||||
:value="defaultCoinUnit + loansInfo.totalLoanMoney"
|
||||
/>
|
||||
<van-cell :title="$t('home.loanTerm')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="loansInfo.totalMonth + '个月'" />
|
||||
<van-cell :title="$t('borrowInfo.withdrawalBank')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="userInfo.bankType" />
|
||||
<van-cell :title="$t('borrowInfo.receivingAccount')" title-style="color: #8997ae;" style="--van-cell-value-color: #000" :value="backCardNumDesensitization(userInfo.backCardNum)" />
|
||||
@@ -49,7 +54,7 @@
|
||||
<script lang="ts" setup>
|
||||
import {onMounted, reactive, ref} from "vue";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import {px2vw, toRoundMark} from "@/utils";
|
||||
import {px2vw} from "@/utils";
|
||||
import {useUserStore} from "@/store/modules/user";
|
||||
import {getUserInfo, startBorrow} from "@/api";
|
||||
import {resetData} from "@/utils/dataUtil";
|
||||
@@ -60,6 +65,7 @@ const useUser = useUserStore()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const { t } = useI18n()
|
||||
const defaultCoinUnit = localStorage.getItem('defaultCoinUnit')
|
||||
|
||||
const loansInfo = reactive({
|
||||
"customerId": useUser.getUserInfo.id,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<view style="display: flex; justify-content: space-between">
|
||||
|
||||
<view class="j-item-c">
|
||||
<view>{{ $t('app.totalLoan') }}:{{ item.totalLoanMoney }}{{ $t('app.yuan') }}</view>
|
||||
<view>{{ $t('app.totalLoan') }}:{{ defaultCoinUnit + item.totalLoanMoney }}</view>
|
||||
<view class="yellow_color1">{{ $t('home.repaymentPerInstallment') }}:{{ item.avgRepayment }}*{{ item.totalMonth }}</view>
|
||||
<view>{{ $t('borrowInfo.applicationTime') }}:{{ new Date(item.createTime).format('yyyy-MM-dd hh:mm:ss') }}</view>
|
||||
</view>
|
||||
@@ -42,6 +42,7 @@ const loading = ref(false);
|
||||
const finished = ref(false);
|
||||
const refreshing = ref(false);
|
||||
|
||||
const defaultCoinUnit = localStorage.getItem('defaultCoinUnit')
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<view class="j-item-t">{{ $t('borrowInfo.loanNo') }}:{{item.tradeNo}}</view>
|
||||
|
||||
<view class="j-item-c">
|
||||
<view>{{ $t('app.totalLoan') }}:{{ item.totalLoanMoney }}{{ $t('app.yuan') }}</view>
|
||||
<view>{{ $t('app.totalLoan') }}:{{ defaultCoinUnit + item.totalLoanMoney }}</view>
|
||||
<view class="yellow_color1">{{ $t('home.repaymentPerInstallment') }}:{{ item.avgRepayment }}*{{ item.totalMonth }}</view>
|
||||
<view>{{ $t('borrowInfo.applicationTime') }}:{{ new Date(item.createTime).format('yyyy-MM-dd hh:mm:ss') }}</view>
|
||||
</view>
|
||||
@@ -34,6 +34,7 @@ const finished = ref(false);
|
||||
const refreshing = ref(false);
|
||||
|
||||
|
||||
const defaultCoinUnit = localStorage.getItem('defaultCoinUnit')
|
||||
const router = useRouter()
|
||||
|
||||
const onLoad = () => {
|
||||
|
||||
Reference in New Issue
Block a user