Browse Source

修改语言,币币布局更改,input隐藏浏览器的提示

master
liaoxinyu 2 years ago
parent
commit
405725e9d7
  1. BIN
      src/assets/img/home/kos.png
  2. BIN
      src/assets/img/home/vgn.png
  3. 2
      src/components/CommonFooter.vue
  4. 2
      src/components/CommonHeader.vue
  5. 14
      src/views/contract/exchange-store.vue
  6. 9
      src/views/exchange/index.vue
  7. 8
      src/views/home/index.vue
  8. 6
      src/views/profile/certification.vue
  9. 8
      src/views/signIn/index.vue
  10. 18
      src/views/signUp/index.vue

BIN
src/assets/img/home/kos.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
src/assets/img/home/vgn.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

2
src/components/CommonFooter.vue

@ -260,7 +260,7 @@
<div style="font-size: 20px;">{{ $t("homeNewText.bb41",{name:'Vgncoin'}) }}</div>
<router-link class="jump_btn" to="/sign-up" v-if="!isLogin">{{ $t("homeNewText.bb45") }}</router-link>
<router-link class="jump_btn" to="/exchange" v-else>{{ $t("homeNewText.bb44") }}</router-link>
<img src="" alt="" style="width: 120px;height: 120px;">
<img src="@/assets/img/home/vgn.png" alt="" style="width: 120px;height: 120px;">
<div style="font-size: 16px; color: #9c9c9c;margin-top: 12px;">{{ $t("homeNewText.bb42",{name:'Vgncoin'}) }}</div>
</div>
</div>

2
src/components/CommonHeader.vue

@ -142,7 +142,7 @@
<div class="dropdown-menu download">
<div class="dropdown-item">
<div style="width:142px;white-space: pre-wrap;line-height: 25px;">{{ $t("homeNewText.bb43") }}</div>
<img src="" alt="">
<img src="@/assets/img/home/vgn.png" alt="">
</div>
</div>
</li>

14
src/views/contract/exchange-store.vue

@ -71,6 +71,7 @@
v-model="buyform.entrust_price"
class="form-control"
placeholder=""
title=""
/>
<div class="input-group-append">
<span class="input-group-text">USDT</span>
@ -83,6 +84,7 @@
:value="$t('contract.d9')"
class="form-control"
:placeholder="$t('contract.d9')"
title=""
/>
</template>
</div>
@ -99,6 +101,7 @@
class="form-control"
v-model="marginBuy"
:placeholder="tips"
title=""
/>
<!-- <div class="input-group-append">
<span class="input-group-text">{{ $t("contract.e2") }}</span>
@ -153,7 +156,7 @@
</div>
<!-- 止盈止损 -->
<div class="d-flex mb-4 border-top py-2">
<input type="checkbox" name="" id="" v-model="checkboxBuy">
<input type="checkbox" name="" id="" v-model="checkboxBuy" title="">
<div>{{ $t("contact.Profit&Loss") }}</div>
</div>
<template v-if="checkboxBuy">
@ -166,6 +169,7 @@
class="form-control"
v-model="buyform.pri1"
:placeholder="tips"
title=""
/>
</div>
<div class="input-group mb-4 input-group-sm">
@ -177,6 +181,7 @@
class="form-control"
v-model="buyform.pri2"
:placeholder="tips"
title=""
/>
</div>
</template>
@ -194,6 +199,7 @@
v-model="sellform.entrust_price"
class="form-control"
placeholder=""
title=""
/>
<div class="input-group-append">
<span class="input-group-text">USDT</span>
@ -206,6 +212,7 @@
:value="$t('contract.d9')"
class="form-control"
:placeholder="$t('contract.d9')"
title=""
/>
</template>
</div>
@ -222,6 +229,7 @@
class="form-control"
v-model="marginSell"
:placeholder="tips"
title=""
/>
<!-- <div class="input-group-append">
<span class="input-group-text">{{ $t("contract.e2") }}</span>
@ -265,7 +273,7 @@
</div>
<!-- 止盈止损 -->
<div class="d-flex mb-4 border-top py-2">
<input type="checkbox" name="" id="" v-model="checkboxSell">
<input type="checkbox" name="" id="" v-model="checkboxSell" title="">
<div>{{ $t("contact.Profit&Loss") }}</div>
</div>
<template v-if="checkboxSell">
@ -278,6 +286,7 @@
class="form-control"
v-model="sellform.pri1"
:placeholder="tips"
title=""
/>
</div>
<div class="input-group mb-4 input-group-sm">
@ -289,6 +298,7 @@
class="form-control"
v-model="sellform.pri2"
:placeholder="tips"
title=""
/>
</div>
</template>

9
src/views/exchange/index.vue

@ -62,8 +62,8 @@
</div>
</div>
</div>
<div class="my-2">
<div class="d-flex" style="flex-wrap: wrap;">
<div class="my-2" style="padding-bottom: 5px;">
<div class="d-flex">
<!-- symbols -->
<symbols :marketList="marketList" :marketId="marketId" :isLogin="isLogin" :symbol.sync="symbol"></symbols>
@ -77,10 +77,9 @@
<!-- market news -->
<!-- <market-news></market-news> -->
<!-- order list -->
<order-list ref="Order" :ordersOpen="ordersOpen" :conditionOrders="conditionOrders" :ordersHistory="ordersHistory" :priceDecimals="priceDecimals" :qtyDecimals="qtyDecimals" :isLogin="isLogin" :pair="pair" @change="currentTab = $event" @update="update" @Pagination="page = $event"></order-list>
</div>
<!-- order list -->
<order-list ref="Order" :ordersOpen="ordersOpen" :conditionOrders="conditionOrders" :ordersHistory="ordersHistory" :priceDecimals="priceDecimals" :qtyDecimals="qtyDecimals" :isLogin="isLogin" :pair="pair" @change="currentTab = $event" @update="update" @Pagination="page = $event"></order-list>
</div>
</div>
</template>

8
src/views/home/index.vue

@ -417,7 +417,7 @@
<div class="learn_area">
<div class="learn_box">
<div style="color: #547AF7;font-size: 36px;text-align: center;">STEP 1</div>
<div style="font-size: 24px;text-align: center;margin-top: 20px;">{{ $t("homeNewText.bb16",{name:'Vgncoin'}) }}</div>
<div style="font-size: 24px;text-align: center;margin-top: 20px;height: 70px;">{{ $t("homeNewText.bb16",{name:'Vgncoin'}) }}</div>
<div style="font-size: 16px;text-align: center;margin-top: 20px;">{{ $t("homeNewText.bb17") }}</div>
<div style="text-align: center;">
<router-link v-if="!isLogin" class="jump_btn1" :to="{name:'signUp'}">{{ $t("homeNewText.bb6") }}</router-link>
@ -431,7 +431,7 @@
</div>
<div class="learn_box">
<div style="color: #547AF7;font-size: 36px;text-align: center;">STEP 2</div>
<div style="font-size: 24px;text-align: center;margin-top: 20px;">{{ $t("homeNewText.bb18") }}</div>
<div style="font-size: 24px;text-align: center;margin-top: 20px;height: 70px;">{{ $t("homeNewText.bb18") }}</div>
<div style="font-size: 16px;text-align: center;margin-top: 20px;">{{ $t("homeNewText.bb19") }}</div>
<div style="text-align: center;">
<router-link v-if="!isLogin" class="jump_btn1" :to="{name:'signUp'}">{{ $t("homeNewText.bb20") }}</router-link>
@ -445,7 +445,7 @@
</div>
<div class="learn_box">
<div style="color: #547AF7;font-size: 36px;text-align: center;">STEP 3</div>
<div style="font-size: 24px;text-align: center;margin-top: 20px;">{{ $t("homeNewText.bb21") }}</div>
<div style="font-size: 24px;text-align: center;margin-top: 20px;height: 70px;">{{ $t("homeNewText.bb21") }}</div>
<div style="font-size: 16px;text-align: center;margin-top: 20px;">{{ $t("homeNewText.bb22") }}</div>
<div style="text-align: center;">
<router-link v-if="!isLogin" class="jump_btn1" :to="{name:'signUp'}">{{ $t("homeNewText.bb23") }}</router-link>
@ -488,7 +488,7 @@
</div>
<div>
<div class="trade_box">
<div class="trade_img"><img src="" style="border-radius: 10px;" alt=""></div>
<div class="trade_img"><img src="@/assets/img/home/vgn.png" style="border-radius: 10px;" alt=""></div>
<div style="margin-left: 15px;">
<div style="font-weight: bold;font-size: 20px;">{{ $t("homeNewText.bb33") }}</div>
<div style="font-weight: bold;">iOS & Android</div>

6
src/views/profile/certification.vue

@ -27,6 +27,7 @@
v-model="form.realname"
class="form-control"
:placeholder="$t('profile.pleaseEnterName')"
title=""
/>
</div>
<div class="form-group col-md-6">
@ -60,6 +61,7 @@
v-model="form.id_card"
class="form-control"
:placeholder="$t('profile.endterIDNumber')"
title=""
/>
</div>
</div>
@ -72,6 +74,7 @@
v-model="form.address"
class="form-control"
:placeholder="$t('profile.residentialAddress1')"
title=""
/>
</div>
<!-- <div class="form-row">
@ -138,6 +141,7 @@
v-model="form.phone"
class="form-control"
:placeholder="$t('profile.enterPhoneNumber')"
title=""
/>
</div>
<!-- </div>
@ -177,6 +181,7 @@
v-model="topForm.front_img"
required
:placeholder="$t('profile.uploadPhoto')"
title=""
>
<template #text>
<div class="el-upload__text">
@ -190,6 +195,7 @@
v-model="topForm.back_img"
required
:placeholder="$t('profile.reversePhoto')"
title=""
>
<template #text>
<div class="el-upload__text">

8
src/views/signIn/index.vue

@ -17,10 +17,10 @@
<template v-if="step === 1 ">
<div class="form-group">
<input type="text" name="account" v-model="user.account" required :data-has="$t('login.effectivePhoneEmail')" class="form-control" :placeholder="$t('login.enterPhoneEmail')" :data-message="$t('login.effectivePhoneEmail')" />
<input type="text" name="account" v-model="user.account" required :data-has="$t('login.effectivePhoneEmail')" class="form-control" :placeholder="$t('login.enterPhoneEmail')" :data-message="$t('login.effectivePhoneEmail')" title="" />
</div>
<div class="form-group">
<input type="password" v-model="user.password" class="form-control" name="password" required :data-has="$t('login.emailCode',{num:'8-15'})" pattern="(?=.*([a-zA-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{8,15}$" :data-message="$t('login.passwordLength',{num:'8-15'})" :placeholder="$t('login.password')" />
<input type="password" v-model="user.password" class="form-control" name="password" required :data-has="$t('login.emailCode',{num:'8-15'})" pattern="(?=.*([a-zA-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{8,15}$" :data-message="$t('login.passwordLength',{num:'8-15'})" :placeholder="$t('login.password')" title="" />
<!-- <el-input v-model="user.password" show-password required :placeholder="$t('login.password')"></el-input> -->
</div>
<div class="text-right">
@ -28,7 +28,7 @@
<!-- <router-link to="/forget-pwd">{{$t('login.forgetPassword')}}?</router-link> -->
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" v-model="isRember" class="custom-control-input" id="form-checkbox" />
<input type="checkbox" v-model="isRember" class="custom-control-input" id="form-checkbox" title="" />
<label class="custom-control-label" for="form-checkbox" style="color: #101010;">{{$t('login.rememberMe')}}</label>
</div>
<button type="submit" class="btn btn-primary rounded-pill" @click.prevent.stop="step1">{{$t('login.login')}}</button>
@ -67,7 +67,7 @@
<ul class="code-inputs">
<li v-for="pos in 6" class="code-items" :key="pos">
<input pattern="[0-9]*" class="form-control" type="text" placeholder :ref="`space-${item.name}`" @keyup="handleKeyUp(item.name, pos-1, $event)" @input="handleInput(item.name, pos-1, $event)" @paste="autofill" />
<input pattern="[0-9]*" class="form-control" type="text" placeholder :ref="`space-${item.name}`" @keyup="handleKeyUp(item.name, pos-1, $event)" @input="handleInput(item.name, pos-1, $event)" @paste="autofill" title="" />
</li>
</ul>
<!-- <el-input v-model="googleCode" @change="step3"></el-input> -->

18
src/views/signUp/index.vue

@ -33,7 +33,7 @@
show为默认的控制显示 这里替换为v-if的渲染 这样email和phone只能存在一个 避免同时创建require规则时报错-->
<div class="tab-pane fade" :class="{show:registerType == 1, active:registerType == 1}" v-if="registerType==1" id="email" role="tabpanel" aria-labelledby="email-tab">
<div class="form-group">
<input type="email" name="email" class="form-control" :placeholder="$t('login.pleaseEmail')" v-model="user.email" :data-has="$t('login.pleaseEmail')" :data-message="$t('login.invalidEmail')" />
<input type="email" name="email" class="form-control" :placeholder="$t('login.pleaseEmail')" v-model="user.email" :data-has="$t('login.pleaseEmail')" :data-message="$t('login.invalidEmail')" title="" />
</div>
</div>
<!-- phone number -->
@ -45,35 +45,35 @@
<el-option v-for="(item, index) in cacheOption" :key="index" :value="`${item.id}`" :label="`+${item.country_code} ${item.name} ${item.code}`"></el-option>
</el-select>
</div>
<input type="text" name="phone" class="form-control" :placeholder="$t('login.enterMobile')" v-model="user.phone" :data-has="$t('login.enterMobile')"/>
<input type="text" name="phone" class="form-control" :placeholder="$t('login.enterMobile')" v-model="user.phone" :data-has="$t('login.enterMobile')" title=""/>
</div>
</div>
</div>
</div>
<div class="form-group row password">
<input :type="pwdType" id="password" v-model="user.password" required :placeholder="$t('login.password')" class="form-control" />
<input :type="pwdType" id="password" v-model="user.password" required :placeholder="$t('login.password')" class="form-control" title="" />
<label for="password" @click="showType('pwdType')"></label>
</div>
<div class="form-group row password">
<!-- 使用data-type指定额外的类型验证 -->
<input :type="repwdType" id="repassword" v-model="user.repassword" required :placeholder="$t('login.confirm-password')" class="form-control" />
<input :type="repwdType" id="repassword" v-model="user.repassword" required :placeholder="$t('login.confirm-password')" class="form-control" title="" />
<label @click="showType('repwdType')"></label>
</div>
<div class="form-group row password">
<!-- 增加图形验证码 -->
<input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-8" />
<input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-8" title="" />
<img class="" :src="Graph_che" @click="gett_gc_code" style="object-fit: contain;width: 166px;height: 56px;">
</div>
<div class="form-group row">
<input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.referrer')}`" />
<input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.referrer')}`" title="" />
<!-- ${$t('login.optional')} -->
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" />
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" title="" />
<label class="custom-control-label" for="form-checkbox" style="color: #101010;">
{{$t('login.iSee')}}
<router-link to="service/10">
@ -98,7 +98,7 @@
<section class="my-codes">
<header class="my-codes__title">{{$t('login.verCode')}}</header>
<div class="my-codes__controls">
<input style="color: #000;" type="text" v-for="pos in 6" :key="pos" pattern="[0-9]*" @focus="current=pos" @blur="current=-1" ref="spaces" class="form-control" @keyup="handleKeyUp(pos-1, $event)" @input="handleInput(pos-1, $event)" @paste="autofill" />
<input style="color: #000;" type="text" v-for="pos in 6" :key="pos" pattern="[0-9]*" @focus="current=pos" @blur="current=-1" ref="spaces" class="form-control" @keyup="handleKeyUp(pos-1, $event)" @input="handleInput(pos-1, $event)" @paste="autofill" title="" />
</div>
</section>
<aside class="prompt">
@ -123,7 +123,7 @@
<section class="my-codes">
<header class="my-codes__title">Code</header>
<div class="my-codes__controls">
<input type="text" v-for="pos in 6" :key="pos" pattern="[0-9]*" @focus="current=pos" @blur="current=-1" ref="spaces" class="form-control" @keyup="handleKeyUp(pos-1, $event)" @input="handleInput(pos-1, $event)" @paste="autofill" />
<input type="text" v-for="pos in 6" :key="pos" pattern="[0-9]*" @focus="current=pos" @blur="current=-1" ref="spaces" class="form-control" @keyup="handleKeyUp(pos-1, $event)" @input="handleInput(pos-1, $event)" @paste="autofill" title="" />
</div>
</section>
<aside class="prompt">

Loading…
Cancel
Save