Commit 051e329e by zhanghui1

11

parent 90786ed4
......@@ -5,7 +5,7 @@
"author": "xin3w <xin3w@126.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 172.16.10.57",
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 172.16.4.38",
"start": "npm run dev",
"build": "node build/build.js"
},
......
......@@ -5,7 +5,7 @@ Vue.use(Vuex);
import dictionaries from '@/assets/js/dictionaries.js'; //字典
const state = {
refresh_time: 100000, //定时刷新
refresh_time: 10000, //定时刷新
// is_login: $auth.isAuthenticated(), //是否登录
init_url: {}, //全站入口信息
cur_coins: [], //获取支持的币种
......
......@@ -2,8 +2,8 @@
<div class="page dashboard">
<div class="page-header" :class="hasZIndex==true?'zIndexAuto':''" flex="main:justify cross:center">
<div class="side" @click="getSide"><i class="iconfont icon-mulu"></i></div>
<div class="title" @click="getRegion">YZCF - 南方电信<i class="iconfont icon-down"></i></div>
<div class="btn-choose-coin" @click="getCoin"><span class="dash"></span><i class="iconfont icon-down"></i></div>
<div class="title" @click="getRegion">{{cur_account.data.name}} - {{region_name}}<i class="iconfont icon-down"></i></div>
<div class="btn-choose-coin" @click="getCoin"><span :class="this.$route.params.coin_type"></span><i class="iconfont icon-down"></i></div>
</div>
<div class="page-content">
<!-- 切换币种 -->
......@@ -39,10 +39,14 @@
<p>
<span class="v" v-if="$store.state.coin_type=='xmr'"><animated-num :value="(payment_stats.yesterday_amount)/Math.pow(10,12)" :fixed=12></animated-num></span>
<span class="v" v-else><animated-num :value="(payment_stats.yesterday_amount)/Math.pow(10,8)" :fixed=8></animated-num></span>
<span class="k">BTC</span>
<span class="k">{{$route.params.coin_type|uppercase}}</span>
</p>
<h3 class="title f24gray">昨日收益</h3>
<p class="small-k-v mt20"><span class="k">今日预估:</span><span class="v">0.00173601 BTC</span></p>
<p class="small-k-v mt20">
<span class="v" v-if="$store.state.coin_type=='xmr'"><animated-num :value="(payment_stats.today_estimate)/Math.pow(10,12)" :fixed=12></animated-num></span>
<span class="v" v-else><animated-num :value="(payment_stats.today_estimate)/Math.pow(10,8)" :fixed=8></animated-num></span>
<span class="k">{{$route.params.coin_type|uppercase}}</span>
</p>
</div>
</div>
</div>
......@@ -50,8 +54,16 @@
<div class="bg-blue pb40">
<div class="list">
<h3>账户收益</h3>
<mt-cell title="余额"><span class="v">120.95086277</span> <span class="k">BTC</span></mt-cell>
<mt-cell title="已支付"><span class="v">0.00000000</span> <span class="k">BTC</span></mt-cell>
<mt-cell title="余额">
<span class="v" v-if="$store.state.coin_type=='xmr'"><animated-num :value="payment_stats.balance/Math.pow(10,12)" :fixed=12></animated-num></span>
<span class="v" v-else><animated-num :value="payment_stats.balance/Math.pow(10,8)" :fixed=8></animated-num></span>
<span class="k">{{$store.state.coin_type|uppercase}}</span>
</mt-cell>
<mt-cell title="已支付">
<span class="v" v-if="$store.state.coin_type=='xmr'"><animated-num :value="payment_stats.total_paid_amount/Math.pow(10,12)" :fixed=12></animated-num></span>
<span class="v" v-else><animated-num :value="payment_stats.total_paid_amount/Math.pow(10,8)" :fixed=8></animated-num></span>
<span class="k">{{$store.state.coin_type|uppercase}}</span>
</mt-cell>
<mt-cell title="上一次支付时间"><span class="v">2017-11-02 8:00</span></mt-cell>
<mt-cell title="待确认支付"><span class="v">119.71423071</span> <span class="k">BTC</span></mt-cell>
</div>
......@@ -93,11 +105,26 @@
showCoin: false,
showRegion: false,
showSide: false,
regions: [],
cur_region: {
"region_id": "",
"text_en": "",
"text_zh-cn": "",
},
cur_account: {
data: {
name: ''
}
},
suanli: {},
payment_stats: {
yesterday_amount: 0,
today_estimate: 0
},
region_name: '',
language: localStorage.getItem('language'),
loading: true,
stratum_url: []
};
},
mounted() {
......
......@@ -37,7 +37,7 @@ axios.interceptors.request.use(config => {
function checkToken() {
return new Promise((resolve, reject) => {
resolve("eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlEwTTBNRUl4UVRVME5qazJNa0ZFT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oxNTE2MTgxNjY1LCJleHAiOjE1MTYxODg4NjUsImF6cCI6IkZhczI5dWJNNW52NElFMlZUQ3ZEWU5iaWtIeTF0bDBkIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSByZWFkIHdyaXRlIn0.DlW-auwCxacH1WNkQsrbKaYn3OmTGDHZdjiiiIxlFfXtmMLWXgls-G3oXF61hKF4N_80zDeIi_oFNCezK9hMOmaItfcuFE_nAIaeAtBD3OIEa66S8ppTZYSqfkySSEINqBPZMCPaWr4JWFAQF9rGfF-OQdhARd4nb_w5VDoCgskBnIkbZ6gLMP3i8X_Uk20Zoahn5JWCK0V843wc38EQeXzHvR3SRABtF97baro1wEvlr0cMG2pKNWcBel_XGmDoVZagD8E4BBghk4-3NexTnhy-1JODIv49BDIcLoe1ev4BqabEiZIq67htgwlbBjT5p-awlSOhgNy6cZex3mcYeQ");
})
}
window.$axios = Vue.prototype.$axios = axios;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment