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() { data() {
return { return {
model: null, // model: null, //
interval: "1" // []TVresolution interval: "5" // []TVresolution
}; };
}, },

1
src/i18n/cn.json

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

55
src/i18n/en.json

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

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

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

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

@ -144,7 +144,7 @@
<div>{{ shortPosition }} {{ $t("contract.e2") }}</div> <div>{{ shortPosition }} {{ $t("contract.e2") }}</div>
</div> </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"> <div class="px-2 flex-fill mb-4">
<button <button
@click="ifOpenPosition(1)" @click="ifOpenPosition(1)"
@ -154,7 +154,7 @@
{{ $t("contract.d0") }} {{ $t("contract.d0") }}
<!-- <span class="fn-12"> {{ $t("contract.e6") }} </span> --> <!-- <span class="fn-12"> {{ $t("contract.e6") }} </span> -->
</button> </button>
<div class="text-center"> <div class="text-left">
{{ $t("contract.e7") }} {{ maxNum }} {{ $t("contract.e7") }} {{ maxNum }}
<!-- {{ $t("contract.e2") }} --> <!-- {{ $t("contract.e2") }} -->
</div> </div>
@ -168,7 +168,8 @@
{{ $t("contract.d2") }} {{ $t("contract.d2") }}
<!-- <span class="fn-12"> {{ $t("contract.e8") }} </span> --> <!-- <span class="fn-12"> {{ $t("contract.e8") }} </span> -->
</button> </button>
<div class="text-center"> <!-- <div class="text-center"> -->
<div class="text-right">
{{ $t("contract.e7") }} {{ maxNum }} {{ $t("contract.e7") }} {{ maxNum }}
<!-- {{ $t("contract.e2") }} --> <!-- {{ $t("contract.e2") }} -->
</div> </div>
@ -461,3 +462,8 @@ export default {
} }
}; };
</script> </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="d-flex fn-12">
<div class="item px-2"> <div class="item px-2">
<div class="title mb-1 text-secondary"> <div class="title mb-1 text-secondary">
{{ $t("contract.h7") }} 24H {{ $t("contract.h7") }}
</div> </div>
<div> <div>
{{ activeContract.high }} {{ activeContract.high }}
</div> </div>
</div> </div>
<div class="item px-2"> <div class="item px-2">
<div class="title mb-1 text-secondary"> <div class="title mb-1 text-secondary">
{{ $t("contract.h8") }} 24H {{ $t("contract.h8") }}
</div> </div>
<div> <div>
{{ activeContract.low }} {{ activeContract.low }}
@ -105,7 +105,9 @@
</div> </div>
<div class="item px-2"> <div class="item px-2">
<div class="title mb-1 text-secondary"> <div class="title mb-1 text-secondary">
24H{{ $t("contract.h9") }}{{ $t("contract.e2") }} 24H {{ $t("contract.h9") }}
<!-- {{ $t("contract.e2") }} -->
(USDT)
</div> </div>
<div> <div>
{{ activeContract.vol }} {{ activeContract.vol }}

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

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

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

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

2
src/views/forgotPwd/index.vue

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

2
src/views/profile/index.vue

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

2
src/views/signIn/index.vue

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

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

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

Loading…
Cancel
Save