From 1b5d0d76d81668fffc7380bece59b599cf2c9c06 Mon Sep 17 00:00:00 2001 From: bellezhuo <65014152@qq.com> Date: Mon, 13 Jul 2020 17:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/element.css | 22 ++ src/assets/css/other.css | 20 +- src/assets/data/en.js | 30 ++- src/assets/data/zh.js | 30 ++- src/components/footer.vue | 31 ++- src/main.js | 4 +- src/router.js | 8 + src/views/assets/carryout.vue | 2 +- src/views/assets/charge.vue | 2 +- src/views/assets/coincoin_assets.vue | 102 ++------ src/views/assets/coincoin_records.vue | 2 +- src/views/assets/currency_assets.vue | 95 +++---- src/views/assets/currency_records.vue | 2 +- src/views/assets/exchange.vue | 2 +- src/views/assets/transfer.vue | 12 +- src/views/assets/transfer_in.vue | 193 ++++++++++++++ src/views/assets/withdraw.vue | 2 +- src/views/assets/withdraw_address.vue | 2 +- .../coincoin/components/trade_data_update.vue | 12 +- .../coincoin/components/trade_pair_list.vue | 66 ++++- src/views/currency/currency_ads.vue | 2 +- src/views/currency/currency_deal.vue | 2 +- src/views/currency/currency_order_details.vue | 2 +- src/views/currency/currency_release.vue | 18 +- src/views/index/components/banner.vue | 47 ++++ src/views/index/components/price.vue | 43 ++++ src/views/index/components/trend.vue | 242 ++++++++++++++++++ src/views/index/index.vue | 168 +----------- src/views/login/findpw.vue | 16 +- .../components/release_data_update.vue | 10 +- .../release/components/release_pair_list.vue | 58 ++++- 31 files changed, 865 insertions(+), 382 deletions(-) create mode 100644 src/views/assets/transfer_in.vue create mode 100644 src/views/index/components/banner.vue create mode 100644 src/views/index/components/price.vue create mode 100644 src/views/index/components/trend.vue diff --git a/src/assets/css/element.css b/src/assets/css/element.css index 26c676b..a55d9f5 100644 --- a/src/assets/css/element.css +++ b/src/assets/css/element.css @@ -67,3 +67,25 @@ float: right; margin-top: 30px; } + + +.swiper-box .el-carousel__button { + width: 12px; + height: 12px; + background: rgba(0, 0, 0, .2); + border-radius: 50%; + opacity: 1; +} +.swiper-box .is-active .el-carousel__button { + background: #007aff; +} +.swiper-box .el-carousel__arrow { + width: 44px; + height: 44px; + background: rgba(31, 45, 61, .6); + top: 75px; +} +.swiper-box .el-carousel__arrow i { + font-size: 26px; +} + diff --git a/src/assets/css/other.css b/src/assets/css/other.css index a0b7d0c..9d73a85 100644 --- a/src/assets/css/other.css +++ b/src/assets/css/other.css @@ -106,7 +106,7 @@ width: 100%; } -.banner-img-warp li a img { +.banner-img-warp li img { display: block; width: 100%; /*border: 1px solid #8767d6;*/ @@ -288,7 +288,7 @@ } .trade-block dt { - color: #ccc; + color: #66718f; font-size: 14px; line-height: 14px; height: 14px; @@ -302,11 +302,11 @@ .trade-block dd.price { font-size: 20px; line-height: 20px; - color: #ccc; + color: #66718f; } .trade-block dd.price em { - color: #66718f; + color: #ccc; line-height: 12px; font-size: 12px; } @@ -402,7 +402,7 @@ background-position: center center; background-repeat: no-repeat; background-size: 16px; - cursor: pointer; + /* cursor: pointer; */ } .soso-box .icon-searchs { @@ -410,7 +410,7 @@ background-position: center center; background-repeat: no-repeat; background-size: 16px; - cursor: pointer; + /* cursor: pointer; */ } /*tab*/ @@ -543,15 +543,15 @@ margin: 0 auto; } -.quotation-tab .tab-box td .optional.fa-star { - background-image: url(../images/fa-star.png); +.quotation-tab .tab-box td .optional.fa-star-0 { + background-image: url(../images/fa-star-0.png); background-position: center center; background-repeat: no-repeat; background-size: 16px; } -.quotation-tab .tab-box td .optional.fa-star-0 { - background-image: url(../images/fa-star-0.png); +.quotation-tab .tab-box td .optional.fa-star { + background-image: url(../images/fa-star.png); background-position: center center; background-repeat: no-repeat; background-size: 16px; diff --git a/src/assets/data/en.js b/src/assets/data/en.js index a59eb3c..381b912 100644 --- a/src/assets/data/en.js +++ b/src/assets/data/en.js @@ -30,6 +30,15 @@ module.exports = { '取消': 'cancle', '确定': 'confirm', '退出登录成功!': '退出登录成功!', + '市场有风险,投资需谨慎': '市场有风险,投资需谨慎', + '本站域名': '本站域名', + '关于': 'About', + '关于我们': 'About Us', + '条款说明': '条款说明', + '用户协议': 'User agreement', + '联系我们': 'Contact us', + '在线交谈': '在线交谈', + '客服邮箱': '客服邮箱', '登录': 'Login', '注册': 'Register', '账号': 'account', @@ -113,6 +122,8 @@ module.exports = { '最高': 'highest', '最低': 'lowest', '量': 'volunm', + '涨幅': '涨幅', + '深度图': '深度图', '现货交易': '现货交易', '安全保障': '安全保障', '超过10年金融风控管理团队全方位可定制的安全策路体系': '超过10年金融风控管理团队全方位可定制的安全策路体系', @@ -325,7 +336,17 @@ module.exports = { '请输入单价': '请输入单价', '付款方式': '付款方式', '您还未添加收款方式': '您还未添加收款方式', + '去设置': 'go to set', '立即发布': 'release immediatly', + '当前数字货币价格为系统自动计算,实际交易价格以发起交易时的价格为准,请点击查看关于': '当前数字货币价格为系统自动计算,实际交易价格以发起交易时的价格为准,请点击查看关于', + '浮动价格的说明': '浮动价格的说明', + '交易发起前,请您确认已阅读并同意卖家提出的条款,并再次确认交易内容无误后,再点击购买按钮。': '交易发起前,请您确认已阅读并同意卖家提出的条款,并再次确认交易内容无误后,再点击购买按钮。', + '交易发起后,请您于付款期限截止前转帐至指定账户,并标记已付款完毕,逾期系统将自动取消交易。': '交易发起后,请您于付款期限截止前转帐至指定账户,并标记已付款完毕,逾期系统将自动取消交易。', + '交易发起后,系统会自动将卖家的数字货币锁定,待卖家确认收到您的转帐后,将会释放数字货币至您的账户中。': '交易发起后,系统会自动将卖家的数字货币锁定,待卖家确认收到您的转帐后,将会释放数字货币至您的账户中。', + '建议您在交易前先查看卖家信息,检视相关交易记录及评价,以减少交易纠纷。': '建议您在交易前先查看卖家信息,检视相关交易记录及评价,以减少交易纠纷。', + '交易过程请使用平台的聊天系统进行沟通,平台外的对话记录将无法作为交易纠纷的依据。': '交易过程请使用平台的聊天系统进行沟通,平台外的对话记录将无法作为交易纠纷的依据。', + '温馨提示:超过三笔取消订单,将被冻结当天下单权限。': '温馨提示:超过三笔取消订单,将被冻结当天下单权限。', + '下单后请履行契约精神,恶意抬价或者是反悔,被投诉将冻结账户 3-14 天不等。': '下单后请履行契约精神,恶意抬价或者是反悔,被投诉将冻结账户 3-14 天不等。', '您还不是承兑商,不能发布广告!': '您还不是承兑商,不能发布广告!', '您还未设置支付密码!': '您还未设置支付密码!', '请输入金额!': '请输入金额!', @@ -534,9 +555,16 @@ module.exports = { '请选择目标币种!': '请选择目标币种!', '请输入兑换数量!': '请输入兑换数量!', '兑换提交成功!': '兑换提交成功!', - + '选择转入币种': '选择转入币种', + '转入数量': '转入数量', + '请输入转入数量': '请输入转入数量', + '确认转入': '确认转入', + '请输入转入数量!': '请输入转入数量!', + '转入提交成功!': '转入提交成功!', '净资产折合': '净资产折合', '市场': '市场', + '添加自选成功!': '添加自选成功!', + '自选取消成功!': '自选取消成功!', '限价交易': '限价交易', '市价交易': '市价交易', '止盈止损': '止盈止损', diff --git a/src/assets/data/zh.js b/src/assets/data/zh.js index 7b113f6..f0c0f79 100644 --- a/src/assets/data/zh.js +++ b/src/assets/data/zh.js @@ -30,6 +30,15 @@ module.exports = { '取消': '取消', '确定': '确定', '退出登录成功!': '退出登录成功!', + '市场有风险,投资需谨慎': '市场有风险,投资需谨慎', + '本站域名': '本站域名', + '关于': '关于', + '关于我们': '关于我们', + '条款说明': '条款说明', + '用户协议': '用户协议', + '联系我们': '联系我们', + '在线交谈': '在线交谈', + '客服邮箱': '客服邮箱', '登录': '登录', '注册': '注册', '账号': '账号', @@ -113,6 +122,8 @@ module.exports = { '最高': '最高', '最低': '最低', '量': '量', + '涨幅': '涨幅', + '深度图': '深度图', '现货交易': '现货交易', '安全保障': '安全保障', '超过10年金融风控管理团队全方位可定制的安全策路体系': '超过10年金融风控管理团队全方位可定制的安全策路体系', @@ -325,7 +336,17 @@ module.exports = { '请输入单价': '请输入单价', '付款方式': '付款方式', '您还未添加收款方式': '您还未添加收款方式', + '去设置': '去设置', '立即发布': '立即发布', + '当前数字货币价格为系统自动计算,实际交易价格以发起交易时的价格为准,请点击查看关于': '当前数字货币价格为系统自动计算,实际交易价格以发起交易时的价格为准,请点击查看关于', + '浮动价格的说明': '浮动价格的说明', + '交易发起前,请您确认已阅读并同意卖家提出的条款,并再次确认交易内容无误后,再点击购买按钮。': '交易发起前,请您确认已阅读并同意卖家提出的条款,并再次确认交易内容无误后,再点击购买按钮。', + '交易发起后,请您于付款期限截止前转帐至指定账户,并标记已付款完毕,逾期系统将自动取消交易。': '交易发起后,请您于付款期限截止前转帐至指定账户,并标记已付款完毕,逾期系统将自动取消交易。', + '交易发起后,系统会自动将卖家的数字货币锁定,待卖家确认收到您的转帐后,将会释放数字货币至您的账户中。': '交易发起后,系统会自动将卖家的数字货币锁定,待卖家确认收到您的转帐后,将会释放数字货币至您的账户中。', + '建议您在交易前先查看卖家信息,检视相关交易记录及评价,以减少交易纠纷。': '建议您在交易前先查看卖家信息,检视相关交易记录及评价,以减少交易纠纷。', + '交易过程请使用平台的聊天系统进行沟通,平台外的对话记录将无法作为交易纠纷的依据。': '交易过程请使用平台的聊天系统进行沟通,平台外的对话记录将无法作为交易纠纷的依据。', + '温馨提示:超过三笔取消订单,将被冻结当天下单权限。': '温馨提示:超过三笔取消订单,将被冻结当天下单权限。', + '下单后请履行契约精神,恶意抬价或者是反悔,被投诉将冻结账户 3-14 天不等。': '下单后请履行契约精神,恶意抬价或者是反悔,被投诉将冻结账户 3-14 天不等。', '您还不是承兑商,不能发布广告!': '您还不是承兑商,不能发布广告!', '您还未设置支付密码!': '您还未设置支付密码!', '请输入金额!': '请输入金额!', @@ -534,9 +555,16 @@ module.exports = { '请选择目标币种!': '请选择目标币种!', '请输入兑换数量!': '请输入兑换数量!', '兑换提交成功!': '兑换提交成功!', - + '选择转入币种': '选择转入币种', + '转入数量': '转入数量', + '请输入转入数量': '请输入转入数量', + '确认转入': '确认转入', + '请输入转入数量!': '请输入转入数量!', + '转入提交成功!': '转入提交成功!', '净资产折合': '净资产折合', '市场': '市场', + '添加自选成功!': '添加自选成功!', + '自选取消成功!': '自选取消成功!', '限价交易': '限价交易', '市价交易': '市价交易', '止盈止损': '止盈止损', diff --git a/src/components/footer.vue b/src/components/footer.vue index 88760f2..66a6979 100644 --- a/src/components/footer.vue +++ b/src/components/footer.vue @@ -5,31 +5,42 @@

Copyright © 2019 DIGIFINEX.COM , DIGIFINEX LIMITED

All trading products offered through digifinex.com should be considered HIGH RISK.

-

市场有风险,投资需谨慎

-

本站域名  DigiFinex.com  DigiFinex.vip

+

{{$t('市场有风险,投资需谨慎')}}

+

+ {{$t('本站域名')}}   + DigiFinex.com   + DigiFinex.vip +

+ diff --git a/src/main.js b/src/main.js index 7704990..5dff619 100644 --- a/src/main.js +++ b/src/main.js @@ -22,7 +22,7 @@ Vue.use(Element, { //常用Element UI组件全局引用 import 'element-ui/lib/theme-chalk/index.css' -import { Message, MessageBox, Dialog, Button, Tooltip, Popconfirm, Input, Select, Option, DatePicker, Cascader, Pagination, Upload, Tree, Image,} from 'element-ui'; +import { Message, MessageBox, Dialog, Button, Tooltip, Popconfirm, Input, Select, Option, DatePicker, Cascader, Pagination, Upload, Tree, Image, Carousel, CarouselItem,} from 'element-ui'; Vue.prototype.$message = Message; Vue.prototype.$messageBox = MessageBox; Vue.prototype.$confirm = MessageBox.confirm; @@ -41,6 +41,8 @@ Vue.use(Pagination); Vue.use(Upload); Vue.use(Tree); Vue.use(Image); +Vue.use(Carousel); +Vue.use(CarouselItem); //api请求 diff --git a/src/router.js b/src/router.js index 93dd206..cbe96cd 100644 --- a/src/router.js +++ b/src/router.js @@ -215,6 +215,14 @@ export default new Router({ title: '提币地址管理', }, }, + { + path: 'transferIn/:id', + name: 'assetsTransferIn', + component: () => import('./views/assets/transfer_in'), + meta: { + title: '转入', + }, + }, { path: 'transfer/:type/:id', name: 'assetsTransfer', diff --git a/src/views/assets/carryout.vue b/src/views/assets/carryout.vue index 379d8f7..77e0c1c 100644 --- a/src/views/assets/carryout.vue +++ b/src/views/assets/carryout.vue @@ -3,7 +3,7 @@
- {{$t('币币账户')}} + {{$t('币币账户')}} {{$t('转账')}}
diff --git a/src/views/assets/charge.vue b/src/views/assets/charge.vue index 1ca2253..b234042 100644 --- a/src/views/assets/charge.vue +++ b/src/views/assets/charge.vue @@ -3,7 +3,7 @@
- {{$t('币币账户')}} + {{$t('币币账户')}} {{$t('充币')}}
diff --git a/src/views/assets/coincoin_assets.vue b/src/views/assets/coincoin_assets.vue index ac0a7a5..5b1a3ec 100644 --- a/src/views/assets/coincoin_assets.vue +++ b/src/views/assets/coincoin_assets.vue @@ -80,7 +80,7 @@ - +
@@ -110,79 +110,7 @@
  • - - - {{$t('转入')}} - -
  • -
  • - - - {{$t('划转')}} - -
  • -
  • - - - {{$t('转账')}} - -
  • -
  • - - - {{$t('充币')}} - -
  • -
  • - - - {{$t('提币')}} - -
  • -
  • - - - {{$t('兑换')}} - -
  • - -
    - - - - - - - - -
    - -
    {{item.coinEngName}}
    -
    - - -
    {{item.normalAmount}}
    - - -
    {{item.freezeAmount}}
    - - -
    0.0000
    - - -
    0.0000
    - - -
    -
    @@ -230,14 +160,16 @@ + + diff --git a/src/views/assets/withdraw.vue b/src/views/assets/withdraw.vue index 257c407..e66b07a 100644 --- a/src/views/assets/withdraw.vue +++ b/src/views/assets/withdraw.vue @@ -3,7 +3,7 @@
    - {{$t('币币账户')}} + {{$t('币币账户')}} {{$t('提币')}}
    diff --git a/src/views/assets/withdraw_address.vue b/src/views/assets/withdraw_address.vue index 2199753..68308fd 100644 --- a/src/views/assets/withdraw_address.vue +++ b/src/views/assets/withdraw_address.vue @@ -3,7 +3,7 @@
    - {{$t('币币账户')}} + {{$t('币币账户')}} {{$t('提币地址管理')}}
    diff --git a/src/views/coincoin/components/trade_data_update.vue b/src/views/coincoin/components/trade_data_update.vue index c0e4016..0a6cb68 100644 --- a/src/views/coincoin/components/trade_data_update.vue +++ b/src/views/coincoin/components/trade_data_update.vue @@ -20,30 +20,30 @@ {{currentPair.price}}
    - ≈1.63 CNY + ≈{{currentPair.price * 7 | Decimal(2)}} CNY
    -

    涨幅

    +

    {{$t('涨幅')}}

    +{{currentPair.changes * 100 | Decimal(2)}}% {{currentPair.changes * 100 | Decimal(2)}}%
    -

    24H高

    +

    24H {{$t('高')}}

    0
    -

    24H低

    +

    24H {{$t('低')}}

    0
    -

    24H量

    +

    24H {{$t('量')}}

    {{currentPair.baseVolume}} {{currentPair.dealCoin}}
    - 深度图 + {{$t('深度图')}}
    diff --git a/src/views/coincoin/components/trade_pair_list.vue b/src/views/coincoin/components/trade_pair_list.vue index dd9ab00..30b91dd 100644 --- a/src/views/coincoin/components/trade_pair_list.vue +++ b/src/views/coincoin/components/trade_pair_list.vue @@ -22,18 +22,22 @@ -
    交易对
    +
    {{$t('交易对')}}
    + -
    最新价 +
    + {{$t('最新价')}}
    + -
    涨幅 +
    + {{$t('涨幅')}} @@ -49,21 +53,19 @@
    - + - -
    -
    - - - {{item.dealCoin}}/{{item.convertType}} - +
    + + {{item.dealCoin}}/{{item.convertType}}
    +
    {{item.price}}
    +
    +{{item.changes * 100 | Decimal(2)}}% @@ -109,7 +111,7 @@ }); return list; }, - tradePairList() { + tradePairList() { //交易对列表 let list = []; this.allPairList.forEach(item => { if(item.caseCode == this.caseIndex) { @@ -123,6 +125,8 @@ list.forEach(item => { if(this.checkCollected(item.symbolId)) { this.$set(item, 'collected', true); + } else { + this.$set(item, 'collected', false); } }) return list; @@ -139,6 +143,44 @@ return val; }, + handleCollect(item) { + if(item.collected) { //已收藏 + this.cancleCollect(item); //去删除 + } else { + this.addCollect(item); + } + }, + addCollect(item) { //添加收藏 + let params = [item.symbolId]; + params = params.concat(this.myCollectList); //加上旧数据 + + this.putAxios('/api/user/config/update/or/save', { + key: 'U_COLLECTION', + newValue: JSON.stringify(params), + }) + .then(() => { + this.$message.success(this.$t('添加自选成功!')); + setTimeout(() => { + this.$store.dispatch('trend/getCollect'); + }, 500) + }) + }, + cancleCollect(item) { //删除自选 + let choiceArray = [item.symbolId]; + let delArray = this.myCollectList.filter(item => choiceArray.indexOf(item) == -1); + + this.putAxios('/api/user/config/update/or/save', { + key: 'U_COLLECTION', + newValue: JSON.stringify(delArray), + }) + .then(() => { + this.$message.success(this.$t('自选取消成功!')); + setTimeout(() => { + this.$store.dispatch('trend/getCollect'); + }, 500) + }) + }, + chooseCase(item) { // 选择主板 if(item.caseName == '解封区') { this.$router.push('/release/trade'); diff --git a/src/views/currency/currency_ads.vue b/src/views/currency/currency_ads.vue index e708bdb..c3aedec 100644 --- a/src/views/currency/currency_ads.vue +++ b/src/views/currency/currency_ads.vue @@ -3,7 +3,7 @@
    - {{$t('发布广告')}} + {{$t('发布广告')}} {{$t('我的广告')}}
    diff --git a/src/views/currency/currency_deal.vue b/src/views/currency/currency_deal.vue index 886cc2d..8fb37cb 100644 --- a/src/views/currency/currency_deal.vue +++ b/src/views/currency/currency_deal.vue @@ -14,7 +14,7 @@
    - +
    diff --git a/src/views/currency/currency_order_details.vue b/src/views/currency/currency_order_details.vue index f30cef2..d82f8ec 100644 --- a/src/views/currency/currency_order_details.vue +++ b/src/views/currency/currency_order_details.vue @@ -15,7 +15,7 @@
    - +
    diff --git a/src/views/currency/currency_release.vue b/src/views/currency/currency_release.vue index b2401eb..45adaaf 100644 --- a/src/views/currency/currency_release.vue +++ b/src/views/currency/currency_release.vue @@ -170,7 +170,7 @@
    {{$t('您还未添加收款方式')}} - 去设置 + {{$t('去设置')}}
    @@ -187,14 +187,14 @@
    -

    当前数字货币价格为系统自动计算,实际交易价格以发起交易时的价格为准,请点击查看关于 浮动价格的说明.

    -

    1. 交易发起前,请您确认已阅读并同意卖家提出的条款,并再次确认交易内容无误后,再点击购买按钮。

    -

    2. 交易发起后,请您于付款期限截止前转帐至指定账户,并标记已付款完毕,逾期系统将自动取消交易。

    -

    3. 交易发起后,系统会自动将卖家的数字货币锁定,待卖家确认收到您的转帐后,将会释放数字货币至您的账户中。

    -

    4. 建议您在交易前先查看卖家信息,检视相关交易记录及评价,以減少交易纠纷。

    -

    5. 交易过程请使用平台的聊天系统进行沟通,平台外的对话记录将无法作为交易纠纷的依据。

    -

    6. 温馨提示:超过三笔取消订单,将被冻结当天下单权限。

    -

    7. 下单后请履行契约精神,恶意抬价或者是反悔,被投诉将冻结账户 3-14 天不等。

    +

    {{$t('当前数字货币价格为系统自动计算,实际交易价格以发起交易时的价格为准,请点击查看关于')}} {{$t('浮动价格的说明')}}

    +

    1. {{$t('交易发起前,请您确认已阅读并同意卖家提出的条款,并再次确认交易内容无误后,再点击购买按钮。')}}

    +

    2. {{$t('交易发起后,请您于付款期限截止前转帐至指定账户,并标记已付款完毕,逾期系统将自动取消交易。')}}

    +

    3. {{$t('交易发起后,系统会自动将卖家的数字货币锁定,待卖家确认收到您的转帐后,将会释放数字货币至您的账户中。')}}

    +

    4. {{$t('建议您在交易前先查看卖家信息,检视相关交易记录及评价,以减少交易纠纷。')}}

    +

    5. {{$t('交易过程请使用平台的聊天系统进行沟通,平台外的对话记录将无法作为交易纠纷的依据。')}}

    +

    6. {{$t('温馨提示:超过三笔取消订单,将被冻结当天下单权限。')}}

    +

    7. {{$t('下单后请履行契约精神,恶意抬价或者是反悔,被投诉将冻结账户 3-14 天不等。')}}

    diff --git a/src/views/index/components/banner.vue b/src/views/index/components/banner.vue new file mode 100644 index 0000000..932f8b5 --- /dev/null +++ b/src/views/index/components/banner.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/src/views/index/components/price.vue b/src/views/index/components/price.vue new file mode 100644 index 0000000..0e8f6df --- /dev/null +++ b/src/views/index/components/price.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/views/index/components/trend.vue b/src/views/index/components/trend.vue new file mode 100644 index 0000000..356aa0f --- /dev/null +++ b/src/views/index/components/trend.vue @@ -0,0 +1,242 @@ + + + + + diff --git a/src/views/index/index.vue b/src/views/index/index.vue index f10a0b1..3a3209c 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -7,6 +7,8 @@

    最安全,最便利的多币种全球交易平台

    + +
    @@ -23,156 +25,9 @@
    - - -
    -
    -
    - - -
    -
    - -
    -
    -
      -
    • - {{$t('涨幅榜')}} -
    • -
    • - {{$t('成交额榜')}} -
    • -
    • - {{$t('新币榜')}} -
    • -
    • - {{$t('主区')}} -
    • -
    • - {{$t('创新区')}} -
    • -
    • - {{$t('解封区')}} -
    • -
    -
    -
    -
    -
    - - - - - - - - - - - - - -
    -
    -
    -
    {{$t('交易对')}}
    -
    -
    - {{$t('最新价')}}(USDT) -
    -
    -
    - 24H {{$t('涨跌')}} -
    -
    -
    24H {{$t('最高')}}(USDT)
    -
    -
    24H {{$t('最低')}}(USDT)
    -
    -
    - 24H {{$t('量')}} -
    -
    -
    {{$t('现货交易')}}
    -
    -
    + -
    - - - - - - - - - - - - - -
    -
    -
    -
    - -
    - BTC / GAVC -
    -
    -
    -
    8035.09 -
    ≈56996.91 CNY
    -
    -
    -
    -
    -1.86%
    -
    -
    -
    8290.51 -
    ≈58985.32 CNY
    -
    -
    -
    8005.06 -
    ≈56954.40 CNY
    -
    -
    -
    15796.2201 -
    ≈ 126969227.35(USDT)
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    +
      @@ -225,20 +80,20 @@

      BSEX

      BSEX数字资产交易所移动端APP即将推出

      集多种活交易模式于体,一站式字货币交易服务,币财富,一手掌握

      - +

      android版
      扫码立即下载

      - +

      ios版
      扫码立即下载

    - +
    @@ -248,20 +103,23 @@ diff --git a/src/views/login/findpw.vue b/src/views/login/findpw.vue index 110ccdd..32c5e8b 100644 --- a/src/views/login/findpw.vue +++ b/src/views/login/findpw.vue @@ -35,6 +35,14 @@
    + + - -
    diff --git a/src/views/release/components/release_pair_list.vue b/src/views/release/components/release_pair_list.vue index d55b941..065856c 100644 --- a/src/views/release/components/release_pair_list.vue +++ b/src/views/release/components/release_pair_list.vue @@ -22,10 +22,11 @@
    -
    交易对
    +
    {{$t('交易对')}}
    -
    最新价 +
    + {{$t('最新价')}} @@ -33,7 +34,8 @@
    -
    涨幅 +
    + {{$t('涨幅')}} @@ -49,13 +51,11 @@
    - +
    -
    - - - {{item.dealCoin}}/{{item.convertType}} - +
    + + {{item.dealCoin}}/{{item.convertType}}
    @@ -123,6 +123,8 @@ list.forEach(item => { if(this.checkCollected(item.symbolId)) { this.$set(item, 'collected', true); + } else { + this.$set(item, 'collected', false); } }) return list; @@ -139,6 +141,44 @@ return val; }, + handleCollect(item) { + if(item.collected) { //已收藏 + this.cancleCollect(item); //去删除 + } else { + this.addCollect(item); + } + }, + addCollect(item) { //添加收藏 + let params = [item.symbolId]; + params = params.concat(this.myCollectList); //加上旧数据 + + this.putAxios('/api/user/config/update/or/save', { + key: 'U_COLLECTION', + newValue: JSON.stringify(params), + }) + .then(() => { + this.$message.success(this.$t('添加自选成功!')); + setTimeout(() => { + this.$store.dispatch('trend/getCollect'); + }, 500) + }) + }, + cancleCollect(item) { //删除自选 + let choiceArray = [item.symbolId]; + let delArray = this.myCollectList.filter(item => choiceArray.indexOf(item) == -1); + + this.putAxios('/api/user/config/update/or/save', { + key: 'U_COLLECTION', + newValue: JSON.stringify(delArray), + }) + .then(() => { + this.$message.success(this.$t('自选取消成功!')); + setTimeout(() => { + this.$store.dispatch('trend/getCollect'); + }, 500) + }) + }, + // chooseCase(item) { // 选择主板 // this.caseIndex = item.caseCode; // },