Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dapp-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhanglian
dapp-web
Commits
a1533acf
提交
a1533acf
authored
3月 08, 2022
作者:
zhanglian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移动端错误的网络
上级
bed89907
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
91 行增加
和
47 行删除
+91
-47
EDialogEmpty.vue
src/components/EDialogEmpty.vue
+3
-8
Navigation.vue
src/components/Navigation.vue
+4
-36
NetworkErrorModal.vue
src/components/NetworkErrorModal.vue
+66
-0
thinkiumBridge.vue
src/views/thinkiumBridge/thinkiumBridge.vue
+18
-3
没有找到文件。
src/components/EDialogEmpty.vue
浏览文件 @
a1533acf
...
@@ -52,14 +52,9 @@ export default {
...
@@ -52,14 +52,9 @@ export default {
z-index
:
100
;
z-index
:
100
;
.dialog
{
.dialog
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
50%
;
top
:
0
;
top
:
40%
;
right
:
0
;
transform
:
translate
(
-50%
,
-50%
);
bottom
:
0
;
margin
:
auto
;
width
:
10rem
;
height
:
6rem
;
}
}
}
}
</
style
>
</
style
>
src/components/Navigation.vue
浏览文件 @
a1533acf
...
@@ -27,13 +27,7 @@
...
@@ -27,13 +27,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<EDialogEmpty
:title=
"$t('chooseToken')"
:visible=
"showConnetChain"
>
<NetworkErrorModal
@
close=
"showConnetChain = false"
:visible=
"showConnetChain"
/>
<div
class=
"choose-chain-content"
>
<img
src=
"@/assets/images/public/closeGrayCircle.png"
alt=
""
class=
"close pointer"
@
click=
"showConnetChain = false"
>
<div
class=
"_title"
>
{{
$t
(
'errChain'
)
}}
</div>
<div
class=
"text"
>
{{
$t
(
'errChainText'
)
}}
</div>
</div>
</EDialogEmpty>
</div>
</div>
</
template
>
</
template
>
...
@@ -41,7 +35,7 @@
...
@@ -41,7 +35,7 @@
import
i18n
,
{
setLanguage
,
getCurrentLanguage
}
from
'../i18n'
;
import
i18n
,
{
setLanguage
,
getCurrentLanguage
}
from
'../i18n'
;
import
{
createNamespacedHelpers
}
from
'vuex'
;
import
{
createNamespacedHelpers
}
from
'vuex'
;
import
{
validChainIds
}
from
'@/networkConfig'
;
import
{
validChainIds
}
from
'@/networkConfig'
;
import
EDialogEmpty
from
'./EDialogEmpty
'
;
import
NetworkErrorModal
from
'./NetworkErrorModal
'
;
const
{
mapMutations
:
mapMutationsWallet
,
mapState
:
mapStateWallet
}
=
createNamespacedHelpers
(
'wallet'
);
const
{
mapMutations
:
mapMutationsWallet
,
mapState
:
mapStateWallet
}
=
createNamespacedHelpers
(
'wallet'
);
...
@@ -50,7 +44,7 @@ export default {
...
@@ -50,7 +44,7 @@ export default {
props
:
{
props
:
{
},
},
components
:
{
EDialogEmpty
},
components
:
{
NetworkErrorModal
},
data
()
{
data
()
{
return
{
return
{
isPro
:
false
,
isPro
:
false
,
...
@@ -246,32 +240,6 @@ export default {
...
@@ -246,32 +240,6 @@ export default {
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
}
}
.choose-chain-content
{
width
:
6rem
;
height
:
2rem
;
border-radius
:
.2rem
;
background
:
#FFF
;
margin
:
0
auto
;
position
:
relative
;
text-align
:
center
;
color
:
#333
;
padding-top
:
.32rem
;
.close
{
width
:
.3rem
;
height
:
.3rem
;
position
:
absolute
;
top
:
.18rem
;
right
:
.18rem
;
}
._title
{
font-size
:
.32rem
;
color
:
#333
;
}
.text
{
font-size
:
.26rem
;
color
:
#333
;
margin-top
:
.76rem
;
}
}
}
}
</
style
>
</
style
>
src/components/NetworkErrorModal.vue
0 → 100644
浏览文件 @
a1533acf
<
template
>
<EDialogEmpty
:title=
"$t('chooseToken')"
:visible=
"visible"
>
<div
class=
"choose-chain-content"
>
<img
src=
"@/assets/images/public/closeGrayCircle.png"
alt=
""
class=
"close pointer"
@
click=
"handleClose"
>
<div
class=
"_title"
>
{{
$t
(
'errChain'
)
}}
</div>
<div
class=
"text"
>
{{
$t
(
'errChainText'
)
}}
</div>
</div>
</EDialogEmpty>
</
template
>
<
script
>
import
EDialogEmpty
from
'./EDialogEmpty'
;
export
default
{
name
:
'NetworkErrorModal'
,
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
}
},
components
:
{
EDialogEmpty
},
data
()
{
return
{
}
},
methods
:
{
handleClose
()
{
this
.
$emit
(
'close'
)
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.choose-chain-content
{
width
:
6rem
;
height
:
2rem
;
border-radius
:
.2rem
;
background
:
#FFF
;
margin
:
0
auto
;
position
:
relative
;
text-align
:
center
;
color
:
#333
;
padding-top
:
.32rem
;
.close
{
width
:
.3rem
;
height
:
.3rem
;
position
:
absolute
;
top
:
.18rem
;
right
:
.18rem
;
}
._title
{
font-size
:
.32rem
;
color
:
#333
;
}
.text
{
font-size
:
.26rem
;
color
:
#333
;
margin-top
:
.76rem
;
}
}
</
style
>
src/views/thinkiumBridge/thinkiumBridge.vue
浏览文件 @
a1533acf
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"banner-top"
/>
<div
class=
"banner-top"
/>
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"cannect-wallet"
v-if=
"walletConnected"
>
{{
$hideMoreText
(
currentWalletAddress
,
7
,
0
)
}}
</div>
<div
class=
"cannect-wallet pointer"
v-if=
"!walletConnected"
@
click=
"toCannectWallet"
>
{{
$t
(
'connectWallet'
)
}}
</div>
<div
class=
"cannect-wallet pointer"
v-else
@
click=
"toCannectWallet"
>
{{
$t
(
'connectWallet'
)
}}
</div>
<div
class=
"cannect-wallet wrong-network"
v-else-if=
"!isValidChaindId"
@
click=
"showConnetChain = true"
>
{{
$t
(
'errChain'
)
}}
</div>
<div
class=
"cannect-wallet"
v-else
>
{{
$hideMoreText
(
currentWalletAddress
,
7
,
0
)
}}
</div>
<div
class=
"redemption-wrap"
>
<div
class=
"redemption-wrap"
>
<div
class=
"redemption-name"
>
{{
holdItem
.
name
}}
</div>
<div
class=
"redemption-name"
>
{{
holdItem
.
name
}}
</div>
<div
class=
"redemption-window hold"
style=
"margin-bottom: .85rem"
>
<div
class=
"redemption-window hold"
style=
"margin-bottom: .85rem"
>
...
@@ -51,6 +53,7 @@
...
@@ -51,6 +53,7 @@
</EDialog>
</EDialog>
<MConnectWallet/>
<MConnectWallet/>
<van-loading
class=
"loading-bg"
type=
"spinner"
color=
"#303030"
size=
"24px"
v-show=
"pageLoading"
/>
<van-loading
class=
"loading-bg"
type=
"spinner"
color=
"#303030"
size=
"24px"
v-show=
"pageLoading"
/>
<NetworkErrorModal
@
close=
"showConnetChain = false"
:visible=
"showConnetChain"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -71,6 +74,8 @@ import { createNamespacedHelpers } from 'vuex';
...
@@ -71,6 +74,8 @@ import { createNamespacedHelpers } from 'vuex';
import
{
getTokenList
}
from
'@/utils/data/tokenList'
import
{
getTokenList
}
from
'@/utils/data/tokenList'
import
{
connectWallet
}
from
'@/service/loginService'
import
{
connectWallet
}
from
'@/service/loginService'
import
MConnectWallet
from
'@/components/MConnectWallet.vue'
import
MConnectWallet
from
'@/components/MConnectWallet.vue'
import
NetworkErrorModal
from
'@/components/NetworkErrorModal.vue'
import
{
validChainIds
}
from
'@/networkConfig'
;
const
{
mapState
:
mapStateWallet
,
mapMutations
:
mapMutationsWallet
}
=
createNamespacedHelpers
(
'wallet'
);
const
{
mapState
:
mapStateWallet
,
mapMutations
:
mapMutationsWallet
}
=
createNamespacedHelpers
(
'wallet'
);
const
{
mapState
:
mapStateNetwork
}
=
createNamespacedHelpers
(
'network'
);
const
{
mapState
:
mapStateNetwork
}
=
createNamespacedHelpers
(
'network'
);
...
@@ -103,6 +108,7 @@ export default {
...
@@ -103,6 +108,7 @@ export default {
changeItem
:
''
,
changeItem
:
''
,
inputValue
:
''
,
inputValue
:
''
,
rbalance
:
1
,
rbalance
:
1
,
showConnetChain
:
false
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -117,6 +123,10 @@ export default {
...
@@ -117,6 +123,10 @@ export default {
currentWalletAddressAndChainId
()
{
currentWalletAddressAndChainId
()
{
return
this
.
currentWalletAddress
&&
this
.
chainId
return
this
.
currentWalletAddress
&&
this
.
chainId
},
},
isValidChaindId
()
{
let
chainId
=
this
.
$store
.
getters
.
chainId
;
return
validChainIds
.
includes
(
chainId
-
0
);
},
},
},
asyncComputed
:
{
asyncComputed
:
{
balance
:
{
balance
:
{
...
@@ -142,7 +152,8 @@ export default {
...
@@ -142,7 +152,8 @@ export default {
},
},
components
:
{
components
:
{
EDialog
,
EDialog
,
MConnectWallet
MConnectWallet
,
NetworkErrorModal
},
},
methods
:
{
methods
:
{
...
mapMutationsWallet
([
'CHANGE_CONNECT_WALLET_MODAL_STATUS'
]),
...
mapMutationsWallet
([
'CHANGE_CONNECT_WALLET_MODAL_STATUS'
]),
...
@@ -439,6 +450,10 @@ export default {
...
@@ -439,6 +450,10 @@ export default {
text-align
:
center
;
text-align
:
center
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
&
.wrong-network
{
background
:rgba
(
228
,
32
,
57
,
0
.2
)
;
color
:
#E42039
;
}
}
}
.redemption-wrap
{
.redemption-wrap
{
position
:
relative
;
// flex: 1;
position
:
relative
;
// flex: 1;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论