Browse Source

优化文档

master
ltlzx 4 years ago
parent
commit
d9d85ea4f5
  1. 2
      src/components/KLine.vue
  2. 1
      src/i18n/cn.json
  3. 55
      src/i18n/en.json
  4. 14
      src/views/components/inner-transfer.vue
  5. 12
      src/views/contract/exchange-store.vue
  6. 10
      src/views/contract/index.vue
  7. 5
      src/views/exchange/book-trades.vue
  8. 10
      src/views/exchange/make-deal.vue
  9. 2
      src/views/forgotPwd/index.vue
  10. 2
      src/views/profile/index.vue
  11. 2
      src/views/signIn/index.vue
  12. 3
      src/views/wallet/exchange-assets.vue

2
src/components/KLine.vue

@ -24,7 +24,7 @@ export default {
data() {
return {
model: null, //
interval: "1" // []TVresolution
interval: "5" // []TVresolution
};
},

1
src/i18n/cn.json

@ -231,6 +231,7 @@
"rememberMe": "记住我",
"noAccountYet": "还没有账号",
"goRegister": "注册",
"goRegister1": "注册",
"safety": "安全性验证",
"regAccount": "注册账号",
"email": "邮箱",

55
src/i18n/en.json

@ -47,8 +47,8 @@
"activity": "Marketing activities",
"news": "Industry news",
"contactUs": "Contact Us",
"sign_in": "Sign in",
"sign_up": "Sign up",
"sign_in": "Log In",
"sign_up": "Register",
"noRecord": "No Record",
"getCode": "Get Code",
"export": "Export",
@ -98,7 +98,7 @@
"order-amount": "Amount",
"order-total": "Total",
"avg-price": "Average Price",
"direction": "Direction",
"direction": "Side",
"order-type": "Type",
"executed-amount": "Executed",
"executed-total": "Turnover",
@ -180,10 +180,10 @@
"notMore": "not more",
"allRead": "all read",
"newMessage": "new message",
"footerTips1": "risk investment in the market needs to be cautious.",
"footerTips2": "legal notice: the website is operated by {name}",
"footerTips3": "risk tip: digital asset trading may cause your principal loss, please make sure you fully understand the risks.",
"footerTips4": "Restricted areas: unable to provide services to residents of specific countries / regions, such as Israel and the Islamic Republic of China"
"footerTips1": "Risk investment in the market needs to be cautious.",
"footerTips2": "Legal Notice: The website is operated by {name}",
"footerTips3": "Risk Tip: Digital asset trading may cause your principal loss, please make sure you fully understand the risks.",
"footerTips4": "Restricted Areas: Unable to provide services to residents of specific countries / regions, such as Israel and the Islamic Republic of China"
},
"exchange": {
"search": "Search",
@ -199,7 +199,7 @@
"order-total": "Order Total",
"balance": "Available Balance",
"enter-price": "Enter the Price",
"enter-amount": "Enter the Amount",
"enter-amount": "Enter the amount",
"enter-total": "Enter the Total",
"at-best-price": "Execute at the best available price",
"trigger-price": "Enter the Trigger Price",
@ -222,20 +222,21 @@
"passwordLength": "the password needs a length of {num}",
"new-password": "Enter a new password",
"confirm-password": "Confirm password",
"forgetPassword": "forget password",
"forgetPassword": "Forget password",
"rememberMe": "remember me",
"noAccountYet": "don't have a account yet",
"goRegister": "register immediately",
"noAccountYet": "No account",
"goRegister": "Register Account",
"goRegister1":"Register now",
"login": "Log In",
"come": "Welcome back! Let’s trade.",
"account": "Account",
"enterEccount": "Enter your account",
"enter-account": "Enter Phone Number/Email",
"enter-account": "Enter the registered Email",
"pwd": "Password",
"enterPwd": "Enter Password",
"forgotPwd": "Forgot Password?",
"dontAccunt": "Don’t have an account yet?",
"registerBtn": "Register",
"registerBtn": "Create Account",
"SMS": "SMS",
"Google": "Google",
"google-code": "Google Code",
@ -249,8 +250,8 @@
"iSee": "I have knew",
"terms": "the privacy terms and agreements",
"reg": "Register",
"hasAccount": "Already has an account",
"toLogin": "login in",
"hasAccount": "Already have an account",
"toLogin": "Log In",
"country": "Country code",
"enterMobile": "Enter your phone number",
"invalidPhone":"Invalid mobile number",
@ -275,7 +276,7 @@
"phoneCorrect": "Please make sure the mobile phone and area code are correct",
"securePhone": "Please make sure your phone signal is stable",
"verCode": "Verify Code",
"referrer": "Referrer",
"referrer": "Referral Code",
"referrer1": "Please fill in by the recommender",
"phoneNum": "Phone Number",
"enterPhoneNum": "Enter Phone Number",
@ -326,8 +327,8 @@
"inconsistent": "The password does not match!",
"reset": "Reset completed. Please login again",
"back": "Back",
"sign-in": "Sign In",
"find-password": "Retrieve Password",
"sign-in": "Account Login",
"find-password": "Reset login password",
"submit": "Submit",
"confirmpassword": "The two passwords are inconsistent"
},
@ -498,7 +499,7 @@
"FinancialAccount": "Financial Account",
"contractFlow": "Contract Flow",
"info": "Details",
"money": "amount"
"money": "Amount"
},
"contact": {
"contact": "Contact Us",
@ -506,7 +507,7 @@
"fullName": "Full Name",
"enterFullName": "please enter your fullname",
"email": "Email",
"enterEmail": "please enter the email address",
"enterEmail": "Enter your email",
"consultingService": "Consulting Item",
"pleseSelect": "choose please!",
"info": "Message",
@ -870,7 +871,7 @@
"a5": "Entrust freeze",
"a6": "Unrealized PNL",
"a7": "Risk Rate",
"a8": "Liq Price",
"a8": "Liq.Price",
"a9": "Symbol",
"b0": "Leverage",
"b1": "Time",
@ -939,15 +940,15 @@
"h4": "Success",
"h5": "Symbols",
"h6": "Change",
"h7": "High Price",
"h8": "Low Price",
"h9": "Volume",
"h7": "High",
"h8": "Low",
"h9": "Turnover",
"i0": "Positions",
"i1": "Open Orders",
"i2": "Order History",
"i3": "Side",
"i4": "Multi",
"i5": "Empty",
"i4": "Open Long",
"i5": "Open short",
"i6": "Only display current",
"i7": "TP",
"i8": "SL",
@ -1105,7 +1106,7 @@
},
"addinfo": {
"MarketTrend": "MarketTrend",
"HourlyCurrencyUpdates": "Hourly Currency Updates",
"HourlyCurrencyUpdates": " hour Market trend",
"TopEncryptionRiskManagement": "TOP ENCRYPTION RISK MANAGEMENT",
"EscortYourPropertySafety": "ESCORT YOUR PROPERTY SAFETY",
"BuyCoins": "BuyCoins",

14
src/views/components/inner-transfer.vue

@ -17,6 +17,7 @@
<div>
<el-cascader
v-model="fromValue"
value="1"
@change="fromChange"
ref="from"
v-if="isAccountMap"
@ -139,16 +140,16 @@ export default {
fromChild: {},
toChild: {},
form: {
from_account: "",
to_account: "",
from_account: "1",
to_account: 2,
amount: "",
pair_id: "",
coin_name: "",
coinListShow: false
},
activeCoin: {},
fromValue: [],
toValue: [],
fromValue: ['1'],
toValue: [2],
fromProps: {
lazy: true,
lazyLoad: (node, resolve) => {
@ -164,6 +165,7 @@ export default {
leaf: true
};
});
resolve(arr);
});
}
@ -174,6 +176,7 @@ export default {
lazyLoad: (node, resolve) => {
let { level } = node;
if (!level) {
console.info(this.toList)
resolve(this.toList);
} else {
this.accountPairList(node.value, list => {
@ -250,6 +253,7 @@ export default {
//
getUserCoinAssets: lodash.debounce(function() {
// console.info(this.form)
Wallet.coinList({
from_account: this.form.from_account,
to_account: this.form.to_account,
@ -358,7 +362,9 @@ export default {
})
},
created() {
this.accounts();
this.getUserCoinAssets()
}
};
</script>

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

@ -144,7 +144,7 @@
<div>{{ shortPosition }} {{ $t("contract.e2") }}</div>
</div>
</div>
<div class="" v-if="tab == 1">
<div class="exchange_button" v-if="tab == 1">
<div class="px-2 flex-fill mb-4">
<button
@click="ifOpenPosition(1)"
@ -154,7 +154,7 @@
{{ $t("contract.d0") }}
<!-- <span class="fn-12"> {{ $t("contract.e6") }} </span> -->
</button>
<div class="text-center">
<div class="text-left">
{{ $t("contract.e7") }} {{ maxNum }}
<!-- {{ $t("contract.e2") }} -->
</div>
@ -168,7 +168,8 @@
{{ $t("contract.d2") }}
<!-- <span class="fn-12"> {{ $t("contract.e8") }} </span> -->
</button>
<div class="text-center">
<!-- <div class="text-center"> -->
<div class="text-right">
{{ $t("contract.e7") }} {{ maxNum }}
<!-- {{ $t("contract.e2") }} -->
</div>
@ -461,3 +462,8 @@ export default {
}
};
</script>
<style scoped="scoped">
.exchange_button{
display: flex;
}
</style>

10
src/views/contract/index.vue

@ -89,15 +89,15 @@
<div class="d-flex fn-12">
<div class="item px-2">
<div class="title mb-1 text-secondary">
{{ $t("contract.h7") }}
24H {{ $t("contract.h7") }}
</div>
<div>
{{ activeContract.high }}
{{ activeContract.high }}
</div>
</div>
<div class="item px-2">
<div class="title mb-1 text-secondary">
{{ $t("contract.h8") }}
24H {{ $t("contract.h8") }}
</div>
<div>
{{ activeContract.low }}
@ -105,7 +105,9 @@
</div>
<div class="item px-2">
<div class="title mb-1 text-secondary">
24H{{ $t("contract.h9") }}{{ $t("contract.e2") }}
24H {{ $t("contract.h9") }}
<!-- {{ $t("contract.e2") }} -->
(USDT)
</div>
<div>
{{ activeContract.vol }}

5
src/views/exchange/book-trades.vue

@ -6,7 +6,10 @@
<thead>
<tr style="display:block;">
<th class="w-33">{{ $t("exchange.price") }}({{pair.to}})</th>
<th class="w-33 text-right">{{ $t("exchange.amount") }}({{pair.from}})</th>
<th class="w-33 text-right">{{ $t("exchange.amount") }}
<!-- ({{pair.from}}) -->
({{pair.to}})
</th>
<th class="w-33 text-right">{{ $t("exchange.total") }}({{pair.from}})</th>
</tr>
</thead>

10
src/views/exchange/make-deal.vue

@ -179,8 +179,9 @@
<!-- Available -->
<p>
{{ $t('exchange.balance') }}
{{ $t('exchange.amount') }}
<span> {{toBalance}} {{pair.to}}</span><br />
{{ $t('exchange.balance') }}
<span> {{fromBalance}} {{pair.from}}</span>
</p>
<button class="btn buy" @click="handleBuyOrder">{{ $t("common.buy") }} {{pair.to}}</button>
@ -257,8 +258,10 @@
</p>
</el-popover>
<p>{{ $t('exchange.balance') }}
<p>
{{$t('exchange.amount')}}
<span> {{toBalance}} {{pair.to}} </span><br />
{{ $t('exchange.balance') }}
<span> {{fromBalance}} {{pair.from}}</span>
</p>
<button class="btn sell" @click="handleSellOrder">{{ $t("common.sell") }} {{pair.to}}</button>
@ -435,6 +438,8 @@ export default {
});
},
renderBuyAmount(val, index) {
console.info(val)
console.info(this.buyorder)
if (!this.buyorder.entrust_price) {
this.visibles.buy.limitPrice = true;
this.msgList.buy[1] = this.$t('nav.set');
@ -686,6 +691,7 @@ export default {
created() {
this.getCoinInfo()
this.reset();
},
}

2
src/views/forgotPwd/index.vue

@ -51,7 +51,7 @@
</form>
<h2>Remembered your password?
<router-link to="/sign-in">Sign in here</router-link>
<router-link to="/sign-in">Log In</router-link>
</h2>
</div>
</div>

2
src/views/profile/index.vue

@ -26,7 +26,7 @@
<div>
{{$t('profile.max')}}
<span class="font-weight-bold">1k</span>
<span class="font-weight-bold light-purple">USD</span>
<span class="font-weight-bold ">USD</span>
<span class="font-weight-bold">24</span>
{{$t('profile.limitH')}}
{{$t('profile.tips')}}

2
src/views/signIn/index.vue

@ -68,7 +68,7 @@
<h2>
{{$t('login.noAccountYet')}}?
<router-link to="/sign-up">{{$t('login.goRegister')}}</router-link>
<router-link to="/sign-up">{{$t('login.goRegister1')}}</router-link>
</h2>
</div>
</div>

3
src/views/wallet/exchange-assets.vue

@ -750,4 +750,7 @@ created() {
background-color: #1e2834;
}
}
.label{
font-size: 16px;
}
</style>

Loading…
Cancel
Save