Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dapp-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhanglian
dapp-web
Commits
2aabe3e5
提交
2aabe3e5
authored
1月 25, 2022
作者:
zhanglian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整 pc 的背景
上级
1d8edd5e
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
72 行增加
和
41 行删除
+72
-41
bgPc.png
src/assets/images/bgPc.png
+0
-0
rem.js
src/assets/styles/rem.js
+1
-1
pcIndex.vue
src/views/thinkiumBridge/pcIndex.vue
+2
-2
thinkiumBridge.vue
src/views/thinkiumBridge/thinkiumBridge.vue
+69
-38
没有找到文件。
src/assets/images/bgPc.png
0 → 100644
浏览文件 @
2aabe3e5
76.0 KB
src/assets/styles/rem.js
浏览文件 @
2aabe3e5
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
console
.
log
(
"11111"
,
clientWidth
)
console
.
log
(
"11111"
,
clientWidth
)
if
(
!
clientWidth
)
return
;
if
(
!
clientWidth
)
return
;
if
(
clientWidth
>=
640
)
{
if
(
clientWidth
>=
640
)
{
docEl
.
style
.
fontSize
=
16
*
4
+
'px'
;
docEl
.
style
.
fontSize
=
75
+
'px'
;
}
else
{
}
else
{
docEl
.
style
.
fontSize
=
100
*
(
clientWidth
/
750
)
+
'px'
;
docEl
.
style
.
fontSize
=
100
*
(
clientWidth
/
750
)
+
'px'
;
// console.log("00001111")
// console.log("00001111")
...
...
src/views/thinkiumBridge/pcIndex.vue
浏览文件 @
2aabe3e5
...
@@ -28,9 +28,9 @@ import thinkiumBridge from './thinkiumBridge.vue'
...
@@ -28,9 +28,9 @@ import thinkiumBridge from './thinkiumBridge.vue'
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
background
:
rgba
(
0
,
0
,
0
,
0
.4
);
//
background: rgba(0,0,0,0.4);
.container
{
.container
{
width
:
7
.5rem
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
...
...
src/views/thinkiumBridge/thinkiumBridge.vue
浏览文件 @
2aabe3e5
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"banner-top"
>
<div
class=
"banner-top"
/>
<img
src=
"@/assets/images/bg.png"
alt=
""
>
<div
class=
"main"
>
</div>
<div
class=
"cannect-wallet"
v-if=
"walletConnected"
>
{{
$hideMoreText
(
currentWalletAddress
,
7
,
0
)
}}
</div>
<div
class=
"cannect-wallet"
v-if=
"walletConnected"
>
{{
$hideMoreText
(
currentWalletAddress
,
7
,
0
)
}}
</div>
<div
class=
"cannect-wallet pointer"
v-else
@
click=
"toCannectWallet"
>
{{
$t
(
'connectWallet'
)
}}
</div>
<div
class=
"cannect-wallet pointer"
v-else
@
click=
"toCannectWallet"
>
{{
$t
(
'connectWallet'
)
}}
</div>
<div
class=
"redemption-wrap"
>
<div
class=
"redemption-wrap"
>
...
@@ -39,6 +38,7 @@
...
@@ -39,6 +38,7 @@
<div
class=
"handling-fee"
>
{{
$t
(
'handlingFee'
)
}}
<span>
0.3%
</span></div>
<div
class=
"handling-fee"
>
{{
$t
(
'handlingFee'
)
}}
<span>
0.3%
</span></div>
</div>
</div>
<div
class=
"convert-btn pointer"
@
click=
"transfer"
>
{{
$t
(
'transfer'
)
}}
</div>
<div
class=
"convert-btn pointer"
@
click=
"transfer"
>
{{
$t
(
'transfer'
)
}}
</div>
</div>
<EDialog
:title=
"$t('chooseToken')"
:visible=
"dialogVisible"
@
close=
"dialogVisible = false"
v-if=
"dialogVisible"
>
<EDialog
:title=
"$t('chooseToken')"
:visible=
"dialogVisible"
@
close=
"dialogVisible = false"
v-if=
"dialogVisible"
>
<ul
class=
"select-list"
>
<ul
class=
"select-list"
>
<li
class=
"select-item"
v-for=
"(item, index) in tokenList"
:key=
"index"
@
click=
"changeSelect(index,item)"
:class=
"selectIndex === index ? 'active' : ''"
>
<li
class=
"select-item"
v-for=
"(item, index) in tokenList"
:key=
"index"
@
click=
"changeSelect(index,item)"
:class=
"selectIndex === index ? 'active' : ''"
>
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
</ul>
</ul>
</EDialog>
</EDialog>
<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"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -189,7 +190,7 @@ export default {
...
@@ -189,7 +190,7 @@ export default {
}
}
},
},
networkAlert
()
{
networkAlert
()
{
if
(
!
this
.
holdItem
.
coinData
.
chainId
||
!
this
.
exchangeItem
.
coinData
.
chainId
)
{
if
(
!
this
.
holdItem
.
coinData
.
chainId
||
!
this
.
exchangeItem
.
coinData
.
chainId
)
{
return
;
return
;
}
}
let
fromChainName
=
this
.
formateChainName
(
this
.
holdItem
.
coinData
.
chainId
);
let
fromChainName
=
this
.
formateChainName
(
this
.
holdItem
.
coinData
.
chainId
);
...
@@ -280,27 +281,27 @@ export default {
...
@@ -280,27 +281,27 @@ export default {
let
holdName
=
this
.
holdItem
.
coinData
.
name
let
holdName
=
this
.
holdItem
.
coinData
.
name
let
isTKM
=
holdName
==
'TKM'
||
holdName
==
'BTKM'
||
holdName
==
'TKM3'
||
holdName
==
'BTKM3'
let
isTKM
=
holdName
==
'TKM'
||
holdName
==
'BTKM'
||
holdName
==
'TKM3'
||
holdName
==
'BTKM3'
let
minNum
=
0
let
minNum
=
0
if
(
isTKM
&&
value
<
1000
)
{
//
if (isTKM && value
<
1000
)
{
minNum
=
1000
//
minNum = 1000
this
.
$dialog
.
alert
({
//
this.$dialog.alert({
title
:
this
.
$t
(
'title'
),
//
title: this.$t('title'),
message
:
this
.
$t
(
'placeholder3'
,
{
minNum
}),
//
message: this.$t('placeholder3', { minNum }),
confirmButtonText
:
this
.
$t
(
'confirm'
)
//
confirmButtonText: this.$t('confirm')
}).
then
(()
=>
{
//
}).then(() => {
// on close
//
// on close
});
//
});
return
;
//
return;
}
else
if
(
!
isTKM
&&
value
<
200
)
{
//
} else if (!isTKM && value
<
200
)
{
minNum
=
200
//
minNum = 200
this
.
$dialog
.
alert
({
//
this.$dialog.alert({
title
:
this
.
$t
(
'title'
),
//
title: this.$t('title'),
message
:
this
.
$t
(
'placeholder3'
,
{
minNum
}),
//
message: this.$t('placeholder3', { minNum }),
confirmButtonText
:
this
.
$t
(
'confirm'
)
//
confirmButtonText: this.$t('confirm')
}).
then
(()
=>
{
//
}).then(() => {
// on close
//
// on close
});
//
});
return
;
//
return;
}
//
}
this
.
pageLoading
=
true
;
this
.
pageLoading
=
true
;
try
{
try
{
if
(
holdItem
.
coinData
.
type
==
'main'
)
{
if
(
holdItem
.
coinData
.
type
==
'main'
)
{
...
@@ -397,19 +398,7 @@ export default {
...
@@ -397,19 +398,7 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.container
{
.container
{
width
:
100%
;
height
:
100%
;
overflow-y
:
auto
;
display
:
flex
;
flex-direction
:
column
;
background
:
#FFF
;
background
:
#FFF
;
.banner-top
{
height
:
3
.0rem
;
img
{
width
:
7
.5rem
;
height
:
3
.0rem
;
}
}
.cannect-wallet
{
.cannect-wallet
{
margin
:
0
.47rem
0
0
.18rem
auto
;
margin
:
0
.47rem
0
0
.18rem
auto
;
width
:
2
.00rem
;
width
:
2
.00rem
;
...
@@ -520,8 +509,10 @@ export default {
...
@@ -520,8 +509,10 @@ export default {
}
}
}
}
.convert-btn
{
.convert-btn
{
margin-left
:
0
.75rem
;
transform
:
translate
(
-50%
);
margin-left
:
50%
;
margin-top
:
2
.3rem
;
margin-top
:
2
.3rem
;
margin-bottom
:
2rem
;
width
:
6rem
;
width
:
6rem
;
height
:
0
.8rem
;
height
:
0
.8rem
;
background-color
:
#FCBF19
;
background-color
:
#FCBF19
;
...
@@ -577,5 +568,45 @@ export default {
...
@@ -577,5 +568,45 @@ export default {
color
:
red
;
color
:
red
;
font-size
:
.36rem
;
font-size
:
.36rem
;
}
}
/
deep
/
{
.loading-bg.van-loading
{
top
:
0
;
left
:
0
;
}
}
}
@media
screen
and
(
max-width
:
640px
)
{
.container
{
width
:
100%
;
height
:
100%
;
overflow-y
:
auto
;
display
:
flex
;
flex-direction
:
column
;
.banner-top
{
height
:
3
.0rem
;
background
:
url('../../assets/images/bg.png')
center
no-repeat
;
background-size
:
cover
;
}
}
}
@media
screen
and
(
min-width
:
640px
)
{
.container
{
width
:
100%
;
height
:
100%
;
display
:
block
;
.banner-top
{
height
:
24
.3vw
;
background
:
url('../../assets/images/bgPc.png')
center
no-repeat
;
background-size
:
cover
;
}
.main
{
width
:
10rem
;
margin
:
0
auto
;
padding-bottom
:
1rem
;
}
}
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论