Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
poolin_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
78aa23cb
authored
Feb 06, 2018
by
zhanghui1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决组件命名address会报错
parent
f6890a49
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/components/Settings/Address.vue
+3
-4
src/router/index.js
+1
-1
No files found.
src/components/Settings/Address.vue
View file @
78aa23cb
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
<div
class=
"c"
>
{{
query_coin_type
|
uppercase
}}
收益地址
</div>
<div
class=
"c"
>
{{
query_coin_type
|
uppercase
}}
收益地址
</div>
</div>
</div>
<div
class=
"page-content bg-blue"
>
<div
class=
"page-content bg-blue"
>
<!--
{{
puid
}}
{{
query_type
}}
{{
query_coin_type
}}
-->
<div
class=
"address"
>
<div
class=
"address"
>
<label>
当前收益地址
</label>
<label>
当前收益地址
</label>
<div
class=
"mock-input"
>
{{
address
}}
</div>
<div
class=
"mock-input"
>
{{
address
}}
</div>
...
@@ -17,10 +16,9 @@
...
@@ -17,10 +16,9 @@
<
script
>
<
script
>
import
fn
from
'@/utils/function.js'
import
fn
from
'@/utils/function.js'
export
default
{
export
default
{
name
:
'
a
ddress'
,
name
:
'
modifyA
ddress'
,
data
()
{
data
()
{
return
{
return
{
ttt
:
{},
address
:
''
,
address
:
''
,
}
}
},
},
...
@@ -42,12 +40,13 @@ export default {
...
@@ -42,12 +40,13 @@ export default {
getUser
()
{
getUser
()
{
fn
.
getUser
(
this
.
puid
).
then
(
res
=>
{
fn
.
getUser
(
this
.
puid
).
then
(
res
=>
{
if
(
res
.
data
.
err_no
==
0
)
{
if
(
res
.
data
.
err_no
==
0
)
{
this
.
ttt
=
res
.
data
.
data
if
(
res
.
data
.
data
.
coins
.
hasOwnProperty
(
this
.
query_coin_type
))
{
if
(
res
.
data
.
data
.
coins
.
hasOwnProperty
(
this
.
query_coin_type
))
{
this
.
address
=
res
.
data
.
data
.
coins
[
this
.
query_coin_type
].
address
this
.
address
=
res
.
data
.
data
.
coins
[
this
.
query_coin_type
].
address
}
else
{
}
else
{
this
.
address
=
'未设置'
this
.
address
=
'未设置'
}
}
}
else
{
this
.
$toast
(
"获取用户信息错误!"
)
}
}
})
})
}
}
...
...
src/router/index.js
View file @
78aa23cb
...
@@ -114,7 +114,7 @@ const router = new Router({
...
@@ -114,7 +114,7 @@ const router = new Router({
}]
}]
},{
},{
path
:
'/address'
,
path
:
'/address'
,
name
:
'
a
ddress'
,
name
:
'
modifyA
ddress'
,
component
:
resolve
=>
require
([
'@/components/Settings/Address.vue'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/Settings/Address.vue'
],
resolve
),
meta
:
{
meta
:
{
title
:
'Address.vue'
title
:
'Address.vue'
...
...
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