Browse Source

优化

master
ltlzx 4 years ago
parent
commit
7c1952f470
  1. 3
      i18n/lang/en.json
  2. 3
      i18n/lang/zh-CN.json
  3. 3
      i18n/lang/zh-TW.json
  4. 6
      pages/purchase/index.vue
  5. 15
      pages/reg/index.vue

3
i18n/lang/en.json

@ -380,7 +380,8 @@
"c2": "Please read and agree to the agreement",
"c3": "Please fill in the phone number",
"c4": "Please fill in the mailbox number",
"c5": "Registered successfully"
"c5": "Registered successfully",
"c7":"Please enter the invitation code"
},
"safe": {
"a0": "Untie",

3
i18n/lang/zh-CN.json

@ -380,7 +380,8 @@
"c2": "请阅读并同意协议",
"c3": "请填写手机号",
"c4": "请填写邮箱号",
"c5": "注册成功"
"c5": "注册成功",
"c7":"请填写邀请码"
},
"safe": {
"a0": "解绑",

3
i18n/lang/zh-TW.json

@ -380,7 +380,8 @@
"c2": "請閱讀並同意協議",
"c3": "請填寫手機號",
"c4": "請填寫郵箱號",
"c5": "註冊成功"
"c5": "註冊成功",
"c7":"請填寫邀請碼"
},
"safe": {
"a0": "解綁",

6
pages/purchase/index.vue

@ -81,11 +81,13 @@
<view class="tips m-t-xs fn-sm d-flex justify-between color-sell">
<view
>1 {{ activeCoin.coin_name }}
{{ omitTo(activeCoin.proportion_amount, 4) }}
{{ omitTo((1 / detail.issue_price), 4) }}
{{ detail.coin_name }}</view
>
<view class="color-sell"
>{{ num || 0 }} {{ activeCoin.coin_name }} {{ total }}
>{{ num || 0 }} {{ activeCoin.coin_name }}
{{ omitTo(((activeCoin.CurrentPrice/ detail.issue_price)*num),4 )}}
<!-- {{ total }} -->
{{ detail.coin_name }}</view
>
</view>

15
pages/reg/index.vue

@ -111,7 +111,7 @@
</view>
<view class="form-item border-b m-b-md p-b-xs">
<view class="label m-b-xs">{{$t('reg.b2')}}</view>
<v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.b3')}(${$t('reg.b4')})`"></v-input>
<v-input class="color-light" :disabled="query.invite_code?true:false" v-model="form.invite_code" :placeholder="`${$t('reg.b3')}`"></v-input>
</view>
<view class="tips d-flex m-b-md fn-sm">
<van-checkbox
@ -165,15 +165,18 @@ export default {
},
methods: {
register() {
if (!this.form.account) {
this.$toast(this.$t('reg.a3'));
return;
}
if (!this.form.account) {
this.$toast(this.$t('reg.a3'));
return;
}
if (!this.check) {
this.$toast(this.$t('reg.c2'));
return;
}
if (!this.form.invite_code) {
this.$toast(this.$t('reg.c7'));
return;
}
if (!this.form.account) {
if (this.form.type == 1) {
this.$toast(this.$t('reg.c3'));

Loading…
Cancel
Save