Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Community-Mining-Client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mining
Community-Mining-Client
Commits
d7687cb4
Commit
d7687cb4
authored
Jan 13, 2022
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:进入委托调整
parent
7d9516a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
index.html
public/index.html
+1
-1
chain33.ts
src/service/chain33.ts
+3
-1
InfoCard.vue
src/views/Home/InfoCard.vue
+1
-0
PoolList.vue
src/views/Home/PoolList.vue
+12
-8
No files found.
public/index.html
View file @
d7687cb4
...
...
@@ -14,7 +14,7 @@
</noscript>
<div
id=
"app"
></div>
<script>
console
.
log
(
'v1.
0.5
'
)
console
.
log
(
'v1.
1.0
'
)
</script>
<!-- built files will be auto injected -->
</body>
...
...
src/service/chain33.ts
View file @
d7687cb4
...
...
@@ -4,7 +4,9 @@ import { sign } from '@/utils/bridge'
import
{
rawTransaction
}
from
"@/type/request"
;
// import { test } from '@/utils/test'
const
service
=
request
(
`
${
process
.
env
.
VUE_APP_CHAIN
}
`
)
const
url
=
process
.
env
.
NODE_ENV
===
'development'
?
'/chain'
:
process
.
env
.
VUE_APP_CHAIN
const
service
=
request
(
`
${
url
}
`
)
async
function
chainRequire
(
method
:
string
,
data
:
any
[],
b
?:
boolean
,
_this
?:
any
,
cb
?:
any
){
const
CancelToken
=
axios
.
CancelToken
;
...
...
src/views/Home/InfoCard.vue
View file @
d7687cb4
...
...
@@ -69,6 +69,7 @@ export default Vue.extend({
if
(
this
.
timer
)
clearInterval
(
this
.
timer
)
})
getUserInfo
().
then
(
res
=>
{
console
.
log
(
'inviter'
,
res
.
data
.
data
.
inviter
)
this
.
inviter
=
res
.
data
.
data
.
inviter
})
},
...
...
src/views/Home/PoolList.vue
View file @
d7687cb4
...
...
@@ -178,16 +178,20 @@ export default Vue.extend({
startTime
:
string
})
{
service
.
getTicketAddress
(
this
.
address
).
then
(
r
=>
{
const
addr
=
r
.
data
.
result
?.
data
// 已经投过票,跳过封闭期
if
(
r
.
data
.
result
?.
data
)
{
checkBind
(
val
.
id
).
then
(
res
=>
{
if
(
res
.
data
.
data
.
isSucc
)
{
Toast
.
clear
()
this
.
$router
.
push
({
path
:
'/details'
,
query
:
{
id
:
val
.
id
||
'1'
}})
}
}).
catch
(()
=>
{
if
(
addr
)
{
if
(
addr
===
val
.
minerAddr
)
{
Toast
(
'该账号已绑定过票池'
)
})
}
// checkBind(val.id).then(res => {
// if (res.data.data.isSucc) {
// Toast.clear()
// this.$router.push({ path: '/details', query: { id: val.id || '1' }})
// }
// }).catch(() => {
// Toast('该账号已绑定过票池')
// })
}
else
{
// 未投过,检测封闭期是否到期,到期停止进入
const
_now
=
Date
.
now
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment