diff --git a/apis/interfaces/chain.js b/apis/interfaces/chain.js index cd75ebe..3956fad 100644 --- a/apis/interfaces/chain.js +++ b/apis/interfaces/chain.js @@ -36,9 +36,27 @@ const occ = () => { }) } +// 水晶原石 +const crystals = () => { + return request({ + url: 'user/account/crystals' + }) +} + +// 领取水晶 +const thawlog = (data) => { + return request({ + url: 'user/account/thawlog', + method: 'POST', + data + }) +} + export { chain, situation, hash, - occ + occ, + crystals, + thawlog } diff --git a/apis/interfaces/crystal.js b/apis/interfaces/crystal.js index 96f97f6..399452a 100644 --- a/apis/interfaces/crystal.js +++ b/apis/interfaces/crystal.js @@ -8,21 +8,6 @@ import { request } from '../index' -// 水晶原石 -const crystals = () => { - return request({ - url: 'user/account/crystals' - }) -} - -// 领取水晶 -const thawlog = (data) => { - return request({ - url: 'user/account/thawlog', - method: 'POST', - data - }) -} // 水晶分类 const category = () => { @@ -54,8 +39,6 @@ const operateSign = () => { } export{ - crystals, - thawlog, category, task, sign, diff --git a/pages/found/index.vue b/pages/found/index.vue index 706aafc..fa7144c 100644 --- a/pages/found/index.vue +++ b/pages/found/index.vue @@ -282,7 +282,6 @@ min-height: 100vh; padding-top: var(--status-bar-height); box-sizing: border-box; - background-image: url(@/static/background/crystal-background.png); background-size: 100%; background-position: top center; background-repeat: no-repeat; diff --git a/pages/index/index.vue b/pages/index/index.vue index 0d35411..9a55ac9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2,8 +2,8 @@ - 能量球 99 - 能量碎片 11 + {{isAuth ? '能量球' + account.coin : '查看能量球'}} + {{isAuth ? '能量碎片' + account.crystal : '查看能量碎片'}} @@ -11,123 +11,129 @@ - - - - - 能量碎片{{ item.amount || '-'}} - + + + + + + + + {{ item.amount || '-'}} + + + + + + + 发权证 + - - - 购物 - - + + + + + + - + - - {{ item.remark }} + + + slogan - + - {{ item.title }} + 任务标题 + 能量碎片+10 - 平台原石余量 - {{ occBalance }} + 平台能量球余量 + 0 - 昨日瓜分水晶 - {{ yesterdayCrystal }} + 上期能量球价值 + 0 - 区块链高度 - {{ blockHeight }} + 昨日瓜分能量碎片 + 0 - 平台累计盈利额 - {{ gain }} + 区块链高度 + 0 - 已开通节点数 - {{ nodeNumber }} + 已开通节点数 + 0 - - - - 轻节点 - {{occs.light || '-'}} - - - 合作节点 - {{occs.cooperation || '-'}} - - - 主节点 - {{occs.main || '-'}} - - - 超级节点 - {{occs.super || '-'}} - - - 运营节点 - {{occs.operating || '-'}} - - - 技术节点 - {{occs.technology || '-'}} - - - + - 平台累计营业额和原石价值走势图 + 累计盈利和能量球价值走势图 + +