Commit a485275c by lanse

update

parent 9f04fd68
......@@ -323,7 +323,7 @@ const messages = {
tip9: '審核流程:我們的團隊將快速審核您的申請,並與您聯繫',
tip10: '批核与拨款:一旦通过审核,您将迅速获得信贷批核和拨款',
tip11: '貸款金額',
tip12: '可貸300万日元',
tip12: '',
tip13: '個人基本信息',
tip14: '請輸入姓名',
tip15: '姓名',
......@@ -350,8 +350,10 @@ const messages = {
tip36: '聯絡客服',
tip37: '返回首頁',
tip38: '单笔信用额度',
tip39: '50-300',
tip40: '万'
tip39: '100',
tip40: '万',
tip41: '3',
tip42: '億'
},
orderLog: {
money: '金额',
......
......@@ -326,7 +326,7 @@ const messages = {
tip10: `③ 承認とお振込:
審査が承認され次第、即日でご融資金額をお振込みいたします。`,
tip11: '融資金額',
tip12: '融資額300万円',
tip12: '',
tip13: '基本的な個人情報',
tip14: 'お名前を入力してください',
tip15: 'お名前',
......@@ -353,8 +353,10 @@ const messages = {
tip36: 'お問い合わせ',
tip37: 'ホームへ戻る',
tip38: 'ご利用可能なクレジット限度額',
tip39: '50-300',
tip40: '万円'
tip39: '200',
tip40: '万円',
tip41: '3',
tip42: '億円'
},
orderLog: {
money: '金額',
......
......@@ -92,6 +92,10 @@
<view class="label">{{ t('hongli.window_yue') }}</view>
<view class="value">{{ changeMoney(userMoneyInfo.money) }}</view>
</view>
<view class="row">
<view class="label">{{ t('jiaoyiDetail.ganggan') }}</view>
<view class="value">{{ windowDetail.buy_in_ratio }}</view>
</view>
<view class="row" style="width: 100%; justify-content: space-between">
<view class="label">{{ t('ipo.windowLabel2') }}{{ t('ipo.zang') }}</view>
......@@ -163,7 +167,7 @@ const openWindow = (e: any) => {
gupiaoWindowShow.value = true
}
const totalPrice = computed(() => {
return buyParams.value.num * 100 * Number(windowDetail.value.buy_in_money)
return (buyParams.value.num * 100 * Number(windowDetail.value.buy_in_money)) / Number(windowDetail.value.buy_in_ratio)
})
// 購買
......
......@@ -99,7 +99,7 @@
</view>
<view class="row">
<view class="label">{{ t('ipo.windowLabel2') }}{{ t('ipo.zang') }}</view>
<van-stepper v-model="shengouParams.shuliang" step="1" />
<van-stepper v-model="shengouParams.shuliang" step="1000" disable-input />
</view>
<view class="button" @click="shengou">{{ t('gupiaoDetail.submit') }}</view>
<van-icon class="close" name="cross" color="#333" size="1.2rem" @click="gupiaoWindowShow = false" />
......
......@@ -16,9 +16,9 @@
<view class="tip-box">
<div class="left">
<view class="tip">{{ t('rongzi.tip38') }}</view>
<view class="value"
>{{ t('rongzi.tip39') }}<span>{{ t('rongzi.tip40') }}</span></view
>
<view class="value">
{{ t('rongzi.tip39') }}<span>{{ t('rongzi.tip40') }}</span> - {{ t('rongzi.tip41') }}<span>{{ t('rongzi.tip42') }}</span>
</view>
</div>
</view>
<view class="card">
......@@ -83,7 +83,7 @@
<input v-model="params.address" :placeholder="t('rongzi.tip19')" class="info-input" />
</view>
</view>
<view class="xian"></view>
<!-- <view class="xian"></view>
<view class="list">
<view class="list-title">{{ t('rongzi.tip20') }}</view>
<view>
......@@ -96,7 +96,7 @@
<view>
<input v-model="params.mail" :placeholder="t('rongzi.tip23')" class="info-input" />
</view>
</view>
</view> -->
<view class="xian"></view>
</view>
<view class="sumbit" @click="saveSumbit()">{{ t('rongzi.tip24') }}</view>
......@@ -187,8 +187,6 @@ const params = ref({
name: null,
card: null,
address: null,
phone: null,
mail: null,
income: null,
credit: null,
qualifications: null
......@@ -199,20 +197,8 @@ let ist = true
const saveSumbit = async () => {
if (!ist) return
ist = false
if (params.value.money < 500000) {
ist = true
return showToast({
icon: 'none',
message: t('rongzi.tip33')
})
}
if (params.value.money > 3000000) {
ist = true
return showToast({
message: t('rongzi.tip34')
})
}
if (validInfo() === true) {
showLoadingToast({ forbidClick: true })
const res = await rongziApi(params.value)
ist = true
params.value = {
......@@ -220,8 +206,6 @@ const saveSumbit = async () => {
name: null,
card: null,
address: null,
phone: null,
mail: null,
income: null,
credit: null,
qualifications: null
......@@ -229,14 +213,13 @@ const saveSumbit = async () => {
if (res.code === 1) {
state.value = 0
}
closeToast()
} else {
ist = true
}
}
const validInfo = () => {
if (params.value.name && params.value.card && params.value.address && params.value.phone && params.value.mail) {
if (params.value.name && params.value.card && params.value.address) {
return true
} else {
showToast({
......
......@@ -76,13 +76,13 @@ const checkArr = [
]
const register = async () => {
const reg = /^(070|080|090)\d{8}$/
// const reg = /^(070|080|090)\d{8}$/
if (!checkInput(checkArr, registerParams.value)) {
return
}
if (!reg.test(registerParams.value.account)) {
return showToast(t('register.tip1'))
}
// if (!reg.test(registerParams.value.account)) {
// return showToast(t('register.tip1'))
// }
if (registerParams.value.password.length < 6 || registerParams.value.password.length > 10) {
return showToast(t('register.tip2'))
......
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