diff --git a/src/App.vue b/src/App.vue
index 8ba523a..f35da2f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -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()
}
})
diff --git a/src/views/borrowInfo/index.vue b/src/views/borrowInfo/index.vue
index 4c4ac2e..9b1d7a6 100644
--- a/src/views/borrowInfo/index.vue
+++ b/src/views/borrowInfo/index.vue
@@ -26,11 +26,11 @@
{{ $t('borrowInfo.loanDetails') }}
-
+
-
+
@@ -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": "",
diff --git a/src/views/index/home/index.vue b/src/views/index/home/index.vue
index f487f75..0620b58 100644
--- a/src/views/index/home/index.vue
+++ b/src/views/index/home/index.vue
@@ -21,7 +21,7 @@
{{$t('home.borrowingLimit')}}
-
{{ loans.defaultCoinUnit }}{{ loans.loansMinAccount }}-{{ loans.loansMaxAccount }}
+
{{ defaultCoinUnit }}{{ loans.loansMinAccount }}-{{ loans.loansMaxAccount }}
{{$t('home.installmentPeriod')}}
@@ -33,7 +33,7 @@
-
{{$t('home.applicationAmount')}}({{$t('app.yuan')}})
+
{{$t('home.applicationAmount')}}
{{ strip }}
@@ -64,8 +64,8 @@
{{ $t('home.repaymentPerInstallment') }}
-
{{ calLoan.defaultCoinUnit }}{{ calLoan.avgRepayment }}
-
({{ $t('home.dailyInterestRate') }}{{ calLoan.loanRateDay*100 }}% {{ $t('home.totalInterest') }}{{ calLoan.defaultCoinUnit }}{{ calLoan.totalInterest }})
+
{{ defaultCoinUnit }}{{ calLoan.avgRepayment }}
+
({{ $t('home.dailyInterestRate') }}{{ calLoan.loanRateDay*100 }}% {{ $t('home.totalInterest') }}{{ defaultCoinUnit }}{{ calLoan.totalInterest }})
@@ -76,7 +76,7 @@
{{ loansUser.time }}
{{ loansUser.phone }}
{{ $t('home.successfulBorrowing') }}
-
{{ loansUser.defaultCoinUnit }}{{ loansUser.amount }}
+
{{ defaultCoinUnit }}{{ loansUser.amount }}
@@ -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('')
diff --git a/src/views/index/serveList/index.vue b/src/views/index/serveList/index.vue
index faf0e4f..fdd6586 100644
--- a/src/views/index/serveList/index.vue
+++ b/src/views/index/serveList/index.vue
@@ -4,17 +4,17 @@