Browse Source

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

master
liaoxinyu 2 years ago
parent
commit
d6084efa2e
  1. BIN
      src/assets/img/home/kos.png
  2. BIN
      src/assets/img/home/mhb.png
  3. 2
      src/components/CommonFooter.vue
  4. 2
      src/components/CommonHeader.vue
  5. 2
      src/views/contract/account.vue
  6. 8
      src/views/exchange/index.vue
  7. 14
      src/views/forgotPwd/index.vue
  8. 2
      src/views/home/index.vue
  9. 6
      src/views/profile/certification.vue
  10. 8
      src/views/signIn/index.vue
  11. 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/mhb.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.bb40",{name:'Mhbcoin'}) }}</div> <div style="font-size: 20px;">{{ $t("homeNewText.bb40",{name:'Mhbcoin'}) }}</div>
<router-link class="jump_btn" to="/sign-up" v-if="!isLogin">{{ $t("homeNewText.bb38") }}</router-link> <router-link class="jump_btn" to="/sign-up" v-if="!isLogin">{{ $t("homeNewText.bb38") }}</router-link>
<router-link class="jump_btn" to="/exchange" v-else>{{ $t("homeNewText.bb39") }}</router-link> <router-link class="jump_btn" to="/exchange" v-else>{{ $t("homeNewText.bb39") }}</router-link>
<img src="" alt="" style="width: 120px;height: 120px;"> <img src="@/assets/img/home/mhb.png" alt="" style="width: 120px;height: 120px;">
<div style="font-size: 16px; color: #9c9c9c;margin-top: 12px;">{{ $t("homeNewText.bb41",{name:'Mhbcoin'}) }}</div> <div style="font-size: 16px; color: #9c9c9c;margin-top: 12px;">{{ $t("homeNewText.bb41",{name:'Mhbcoin'}) }}</div>
</div> </div>
</div> </div>

2
src/components/CommonHeader.vue

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

2
src/views/contract/account.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="account"> <div class="account">
<div class="markets-pair-list"> <div class="markets-pair-list">
<div class="nav justify-content-between" style="border-bottom: 1px solid #2e2e2e;"> <div class="d-flex justify-content-between" style="border-bottom: 1px solid #2e2e2e;">
<div class="nav-item"> <div class="nav-item">
<a class="nav-link">{{$t('contract.a0')}}</a> <a class="nav-link">{{$t('contract.a0')}}</a>
</div> </div>

8
src/views/exchange/index.vue

@ -62,8 +62,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="my-2"> <div class="my-2" style="padding-bottom: 5px;">
<div class="d-flex" style="flex-wrap: wrap;"> <div class="d-flex">
<!-- symbols --> <!-- symbols -->
<symbols :marketList="marketList" :marketId="marketId" :isLogin="isLogin" :symbol.sync="symbol"></symbols> <symbols :marketList="marketList" :marketId="marketId" :isLogin="isLogin" :symbol.sync="symbol"></symbols>
@ -77,10 +77,10 @@
<!-- market news --> <!-- market news -->
<!-- <market-news></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> </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>
</div> </div>
</template> </template>

14
src/views/forgotPwd/index.vue

@ -11,7 +11,7 @@
<!-- <span class="mt-4"></span> --> <!-- <span class="mt-4"></span> -->
<div class="form-group"> <div class="form-group">
<input type="text" v-model="user.account" class="form-control" :placeholder="$t('login.enter-account')" > <input type="text" v-model="user.account" class="form-control" :placeholder="$t('login.enter-account')" title="" >
</div> </div>
<button type="submit" class="btn btn-primary rounded-pill" @click.prevent="step1">{{ $t("login.submit") }}</button> <button type="submit" class="btn btn-primary rounded-pill" @click.prevent="step1">{{ $t("login.submit") }}</button>
</template> </template>
@ -22,31 +22,31 @@
</div> </div>
<div class="input-group mb-3" > <div class="input-group mb-3" >
<el-input v-model="user.password" type="password" show-password required :placeholder="$t('login.new-password')" ></el-input> <el-input v-model="user.password" type="password" show-password required :placeholder="$t('login.new-password')" title="" ></el-input>
</div> </div>
<div class="input-group mb-3" > <div class="input-group mb-3" >
<el-input v-model="user.password_confirmation" type="password" data-type="repassword" show-password required :placeholder="$t('login.confirm-password')" ></el-input> <el-input v-model="user.password_confirmation" type="password" data-type="repassword" show-password required :placeholder="$t('login.confirm-password')" title="" ></el-input>
</div> </div>
<!-- 图形验证码 --> <!-- 图形验证码 -->
<div class="input-group mb-3"> <div class="input-group mb-3">
<input type="text" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-6" /> <input type="text" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-6" title="" />
<img class="col-6" :src="Graph_che" @click="gett_gc_code" /> <img class="col-6" :src="Graph_che" @click="gett_gc_code" />
</div> </div>
<div class="input-group mb-3" v-if="user.google_status"> <div class="input-group mb-3" v-if="user.google_status">
<input type="text" v-model="codes.google_code" class="form-control" required pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.google-code')" /> <input type="text" v-model="codes.google_code" class="form-control" required pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.google-code')" title="" />
</div> </div>
<div class="input-group mb-3" v-if="user.email_status"> <div class="input-group mb-3" v-if="user.email_status">
<input type="text" v-model="codes.email_code" required class="form-control" pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.email-code')" /> <input type="text" v-model="codes.email_code" required class="form-control" pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.email-code')" title="" />
<div class="input-group-append"> <div class="input-group-append">
<get-code class="btn get-code btn-outline-primary" :data="{email:user.email,gc_code:user.gc_code,gc_key:user.gc_key}" :type="7" @reGetGCCode="gett_gc_code()" /> <get-code class="btn get-code btn-outline-primary" :data="{email:user.email,gc_code:user.gc_code,gc_key:user.gc_key}" :type="7" @reGetGCCode="gett_gc_code()" />
</div> </div>
</div> </div>
<div class="input-group mb-3" v-if="user.phone_status"> <div class="input-group mb-3" v-if="user.phone_status">
<input type="text" required v-model="codes.sms_code" class="form-control" pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.sms-code')" /> <input type="text" required v-model="codes.sms_code" class="form-control" pattern="\d{6}" data-message="code needs 6 number" :placeholder="$t('login.sms-code')" title="" />
<div class="input-group-append"> <div class="input-group-append">
<get-code class="btn get-code btn-outline-primary" :data="{country_code:user.country_code, phone:user.phone}" :type="6" /> <get-code class="btn get-code btn-outline-primary" :data="{country_code:user.country_code, phone:user.phone}" :type="6" />
</div> </div>

2
src/views/home/index.vue

@ -511,7 +511,7 @@
</div> </div>
<div class="positionBox_box4"> <div class="positionBox_box4">
<div class="trade_box"> <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/mhb.png" style="border-radius: 10px;" alt=""></div>
<div style="margin-left: 15px;"> <div style="margin-left: 15px;">
<div>{{ $t("homeNewText.bb36") }}</div> <div>{{ $t("homeNewText.bb36") }}</div>
<div style="font-weight: bold;">IOS & Android apps</div> <div style="font-weight: bold;">IOS & Android apps</div>

6
src/views/profile/certification.vue

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

8
src/views/signIn/index.vue

@ -17,10 +17,10 @@
<template v-if="step === 1 "> <template v-if="step === 1 ">
<div class="form-group"> <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>
<div class="form-group"> <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> --> <!-- <el-input v-model="user.password" show-password required :placeholder="$t('login.password')"></el-input> -->
</div> </div>
<div class="text-right"> <div class="text-right">
@ -28,7 +28,7 @@
<!-- <router-link to="/forget-pwd">{{$t('login.forgetPassword')}}?</router-link> --> <!-- <router-link to="/forget-pwd">{{$t('login.forgetPassword')}}?</router-link> -->
</div> </div>
<div class="custom-control custom-checkbox"> <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> <label class="custom-control-label" for="form-checkbox" style="color: #101010;">{{$t('login.rememberMe')}}</label>
</div> </div>
<button type="submit" class="btn btn-primary rounded-pill" @click.prevent.stop="step1">{{$t('login.login')}}</button> <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"> <ul class="code-inputs">
<li v-for="pos in 6" class="code-items" :key="pos"> <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> </li>
</ul> </ul>
<!-- <el-input v-model="googleCode" @change="step3"></el-input> --> <!-- <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规则时报错--> 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="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"> <div class="form-group">
<input type="email" name="email" class="form-control" :placeholder="$t('login.enterPhoneEmail')" 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.enterPhoneEmail')" v-model="user.email" :data-has="$t('login.pleaseEmail')" :data-message="$t('login.invalidEmail')" title="" />
</div> </div>
</div> </div>
<!-- phone number --> <!-- 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-option v-for="(item, index) in cacheOption" :key="index" :value="`${item.id}`" :label="`+${item.country_code} ${item.name} ${item.code}`"></el-option>
</el-select> </el-select>
</div> </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> </div>
</div> </div>
<div class="form-group row password"> <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> <label for="password" @click="showType('pwdType')"></label>
</div> </div>
<div class="form-group row password"> <div class="form-group row password">
<!-- 使用data-type指定额外的类型验证 --> <!-- 使用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> <label @click="showType('repwdType')"></label>
</div> </div>
<div class="form-group row password"> <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;"> <img class="" :src="Graph_che" @click="gett_gc_code" style="object-fit: contain;width: 166px;height: 56px;">
</div> </div>
<div class="form-group row"> <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')} --> <!-- ${$t('login.optional')} -->
</div> </div>
<div class="custom-control custom-checkbox"> <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;"> <label class="custom-control-label" for="form-checkbox" style="color: #101010;">
{{$t('login.iSee')}} {{$t('login.iSee')}}
<router-link to="service/10"> <router-link to="service/10">
@ -98,7 +98,7 @@
<section class="my-codes"> <section class="my-codes">
<header class="my-codes__title">{{$t('login.verCode')}}</header> <header class="my-codes__title">{{$t('login.verCode')}}</header>
<div class="my-codes__controls"> <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> </div>
</section> </section>
<aside class="prompt"> <aside class="prompt">
@ -123,7 +123,7 @@
<section class="my-codes"> <section class="my-codes">
<header class="my-codes__title">Code</header> <header class="my-codes__title">Code</header>
<div class="my-codes__controls"> <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> </div>
</section> </section>
<aside class="prompt"> <aside class="prompt">

Loading…
Cancel
Save