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
8936841a
Commit
8936841a
authored
Nov 22, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文案调整
parent
4c601ce8
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
23 deletions
+25
-23
.gitignore
.gitignore
+2
-0
MiningCard.vue
src/components/MiningCard.vue
+1
-1
MiningInfo.vue
src/components/MiningInfo.vue
+1
-1
pool.ts
src/service/pool.ts
+2
-2
style.css
src/style.css
+2
-2
DetailsCard.vue
src/views/Details/DetailsCard.vue
+2
-2
DetailsFooter.vue
src/views/Details/DetailsFooter.vue
+1
-1
DetailsList.vue
src/views/Details/DetailsList.vue
+5
-5
index.vue
src/views/Details/index.vue
+4
-4
InfoCard.vue
src/views/Home/InfoCard.vue
+3
-3
tailwind.config.js
tailwind.config.js
+2
-2
No files found.
.gitignore
View file @
8936841a
...
@@ -22,3 +22,5 @@ pnpm-debug.log*
...
@@ -22,3 +22,5 @@ pnpm-debug.log*
*.njsproj
*.njsproj
*.sln
*.sln
*.sw?
*.sw?
*.zip
*.rar
src/components/MiningCard.vue
View file @
8936841a
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div
class=
"pb-3 flex items-center justify-between"
>
<div
class=
"pb-3 flex items-center justify-between"
>
<div
class=
"px-2 flex flex-col items-start"
>
<div
class=
"px-2 flex flex-col items-start"
>
<div
class=
"income-count"
>
{{
info
.
dayRate
||
0
}}
</div>
<div
class=
"income-count"
>
{{
info
.
dayRate
||
0
}}
</div>
<div
class=
"text-xs text-white2"
>
票池每票日
收益
</div>
<div
class=
"text-xs text-white2"
>
票池每票日
奖励
</div>
</div>
</div>
<button
class=
"w-24 h-9 rounded-full text-sm text-brown1 text-medium bg-gradient-4"
@
click=
"goMining"
>
立即委托
</button>
<button
class=
"w-24 h-9 rounded-full text-sm text-brown1 text-medium bg-gradient-4"
@
click=
"goMining"
>
立即委托
</button>
</div>
</div>
...
...
src/components/MiningInfo.vue
View file @
8936841a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<div
class=
"pb-5 flex items-center justify-start"
>
<div
class=
"pb-5 flex items-center justify-start"
>
<div
class=
"px-2 flex flex-col items-start mr-12"
>
<div
class=
"px-2 flex flex-col items-start mr-12"
>
<div
class=
"income-count"
:class=
"[type === 1 ? 'orange' : 'brown']"
>
{{
info
.
totalAmount
}}
</div>
<div
class=
"income-count"
:class=
"[type === 1 ? 'orange' : 'brown']"
>
{{
info
.
totalAmount
}}
</div>
<div
class=
"text-xs text-white2"
>
累计
收益
(BTY)
</div>
<div
class=
"text-xs text-white2"
>
累计
奖励
(BTY)
</div>
</div>
</div>
<div
class=
"px-2 flex flex-col items-start"
>
<div
class=
"px-2 flex flex-col items-start"
>
<div
class=
"income-count"
:class=
"[type === 1 ? 'orange' : 'brown']"
>
{{
info
.
entrustTicket
}}
</div>
<div
class=
"income-count"
:class=
"[type === 1 ? 'orange' : 'brown']"
>
{{
info
.
entrustTicket
}}
</div>
...
...
src/service/pool.ts
View file @
8936841a
...
@@ -32,7 +32,7 @@ export const invitePool = function(invitation: string) {
...
@@ -32,7 +32,7 @@ export const invitePool = function(invitation: string) {
}
}
/**
/**
* 绑定
购买
* 绑定
委托
* @param id
* @param id
* @param amount
* @param amount
* @param isBind
* @param isBind
...
@@ -43,7 +43,7 @@ export const bindPool = function(id: string, amount: string|number, isBind?: boo
...
@@ -43,7 +43,7 @@ export const bindPool = function(id: string, amount: string|number, isBind?: boo
}
}
/**
/**
* 是否初次绑定
购买
* 是否初次绑定
委托
* @param id
* @param id
* @returns
* @returns
*/
*/
...
...
src/style.css
View file @
8936841a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
.bg-gradient-1
{
.bg-gradient-1
{
background
:
linear-gradient
(
to
right
bottom
,
#eabc72
,
#fcedd0
);
background
:
linear-gradient
(
to
right
bottom
,
#eabc72
,
#fcedd0
);
}
}
/* 领取
收益
按钮 */
/* 领取
奖励
按钮 */
.bg-gradient-2
{
.bg-gradient-2
{
background
:
linear-gradient
(
to
right
,
#8F5C29
,
#4C200F
);
background
:
linear-gradient
(
to
right
,
#8F5C29
,
#4C200F
);
}
}
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
.bg-gradient-3
{
.bg-gradient-3
{
background
:
linear-gradient
(
to
right
,
#EFB771
,
#AB5A00
);
background
:
linear-gradient
(
to
right
,
#EFB771
,
#AB5A00
);
}
}
/*
购买
按钮 */
/*
委托
按钮 */
.bg-gradient-4
{
.bg-gradient-4
{
background
:
linear-gradient
(
to
right
,
#FCE4C1
,
#EFB771
);
background
:
linear-gradient
(
to
right
,
#FCE4C1
,
#EFB771
);
}
}
...
...
src/views/Details/DetailsCard.vue
View file @
8936841a
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
<p
class=
"text-base text-red1 font-semibold"
>
3000 BTY=1票
</p>
<p
class=
"text-base text-red1 font-semibold"
>
3000 BTY=1票
</p>
</div>
</div>
<div
class=
"text-left flex-grow"
>
<div
class=
"text-left flex-grow"
>
<p
class=
"mb-2 text-xs text-brown"
>
收益
发放
</p>
<p
class=
"mb-2 text-xs text-brown"
>
奖励
发放
</p>
<p
class=
"text-base text-red1 font-semibold"
>
已实际出票
收益
为准
</p>
<p
class=
"text-base text-red1 font-semibold"
>
已实际出票
奖励
为准
</p>
</div>
</div>
</div>
</div>
<info-bar>
<info-bar>
...
...
src/views/Details/DetailsFooter.vue
View file @
8936841a
...
@@ -22,7 +22,7 @@ export default Vue.extend({
...
@@ -22,7 +22,7 @@ export default Vue.extend({
},
},
btnText
:
{
btnText
:
{
type
:
String
,
type
:
String
,
default
:
'
购买
'
default
:
'
委托
'
},
},
max
:
{
max
:
{
type
:
Number
,
type
:
Number
,
...
...
src/views/Details/DetailsList.vue
View file @
8936841a
<
template
>
<
template
>
<div
class=
"bg-theme-color pt-3"
>
<div
class=
"bg-theme-color pt-3"
>
<div
class=
"bg-card2-color px-4"
>
<div
class=
"bg-card2-color px-4"
>
<p
class=
"details-title"
>
购买
说明
</p>
<p
class=
"details-title"
>
委托
说明
</p>
<div
class=
"py-2"
>
<div
class=
"py-2"
>
<list-line>
<list-line>
投票门槛
投票门槛
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</list-line>
</list-line>
</div>
</div>
</div>
</div>
<div
class=
"bg-card2-color px-4 mt-3"
>
<div
class=
"bg-card2-color px-4 mt-3
pb-16
"
>
<p
class=
"details-title"
>
投票信息
</p>
<p
class=
"details-title"
>
投票信息
</p>
<div
class=
"py-2"
>
<div
class=
"py-2"
>
<list-line>
<list-line>
...
@@ -46,16 +46,16 @@
...
@@ -46,16 +46,16 @@
</list-line>
</list-line>
</div>
</div>
</div>
</div>
<div
class=
"bg-card2-color px-4 pb-16 mt-3"
>
<
!-- <
div class="bg-card2-color px-4 pb-16 mt-3">
<p class="details-title">风险提示</p>
<p class="details-title">风险提示</p>
<div class="py-2 text-sm text-white3 text-left">
<div class="py-2 text-sm text-white3 text-left">
<p class="pb-2 leading-5">1.bty会发生价格波动的情况,且投票难度是逐渐递增的。币价的波动或者投票难度的提高
<p class="pb-2 leading-5">1.bty会发生价格波动的情况,且投票难度是逐渐递增的。币价的波动或者投票难度的提高
都可能导致投票
收益变动。本票池不作保证收益
承诺。用户须仔细评估自己的风险承受能力,
都可能导致投票
奖励变动。本票池不作保证奖励
承诺。用户须仔细评估自己的风险承受能力,
在可接受的风控范围内投资数字货币投票。票池发起方对本票池条款保留所有解释权。</p><br />
在可接受的风控范围内投资数字货币投票。票池发起方对本票池条款保留所有解释权。</p><br />
<p>2.由于法律政策、战争、地震、火灾和电力故障等不可抗原因导致票池暂停运营,票池发起
<p>2.由于法律政策、战争、地震、火灾和电力故障等不可抗原因导致票池暂停运营,票池发起
人不承担赔偿责任。</p>
人不承担赔偿责任。</p>
</div>
</div>
</div>
</div>
-->
</div>
</div>
</template>
</template>
...
...
src/views/Details/index.vue
View file @
8936841a
...
@@ -92,13 +92,13 @@ export default Vue.extend({
...
@@ -92,13 +92,13 @@ export default Vue.extend({
const
sign
=
await
this
.
signGroup
([
bindRes
.
data
.
result
.
txHex
,
transRes
.
data
.
result
]);
const
sign
=
await
this
.
signGroup
([
bindRes
.
data
.
result
.
txHex
,
transRes
.
data
.
result
]);
Toast
.
loading
({
Toast
.
loading
({
duration
:
0
,
duration
:
0
,
message
:
'
购买
中'
,
message
:
'
委托
中'
,
forbidClick
:
true
forbidClick
:
true
})
})
console
.
log
(
'sign'
,
sign
)
console
.
log
(
'sign'
,
sign
)
const
send
=
await
service
.
sendTransaction
(
sign
)
const
send
=
await
service
.
sendTransaction
(
sign
)
if
(
send
.
data
.
result
.
error
)
{
if
(
send
.
data
.
result
.
error
)
{
Toast
(
'
购买
失败'
)
Toast
(
'
委托
失败'
)
return
return
}
}
let
res
=
{}
as
any
let
res
=
{}
as
any
...
@@ -113,13 +113,13 @@ export default Vue.extend({
...
@@ -113,13 +113,13 @@ export default Vue.extend({
}
else
{
}
else
{
const
isBind
=
this
.
isBind
?
true
:
false
const
isBind
=
this
.
isBind
?
true
:
false
if
(
isBind
)
{
if
(
isBind
)
{
Toast
.
success
(
'
购买
成功'
)
Toast
.
success
(
'
委托
成功'
)
return
return
}
}
bindPool
(
this
.
info
.
id
,
value
,
isBind
).
then
(
async
(
r
:
any
)
=>
{
bindPool
(
this
.
info
.
id
,
value
,
isBind
).
then
(
async
(
r
:
any
)
=>
{
if
(
r
.
data
.
data
.
isSucc
)
{
if
(
r
.
data
.
data
.
isSucc
)
{
this
.
$store
.
commit
(
'global/SET_BALANCE'
,
this
.
ticket
)
this
.
$store
.
commit
(
'global/SET_BALANCE'
,
this
.
ticket
)
Toast
.
success
(
'
购买
成功'
)
Toast
.
success
(
'
委托
成功'
)
}
}
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
Toast
(
e
.
response
.
data
.
reason
)
Toast
(
e
.
response
.
data
.
reason
)
...
...
src/views/Home/InfoCard.vue
View file @
8936841a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"text-sm text-left pb-3 tracking-normal hide"
>
当前地址:
{{
addr
}}
</div>
<div
class=
"text-sm text-left pb-3 tracking-normal hide"
>
当前地址:
{{
addr
}}
</div>
<div
class=
"flex items-center justify-between"
>
<div
class=
"flex items-center justify-between"
>
<div>
<div>
<p
class=
"text-xs text-brown"
>
可领
收益
</p>
<p
class=
"text-xs text-brown"
>
可领
奖励
</p>
<p
class=
"text-3xl text-red1"
>
{{
profit
}}
</p>
<p
class=
"text-3xl text-red1"
>
{{
profit
}}
</p>
</div>
</div>
<div>
<div>
...
@@ -32,7 +32,7 @@ export default Vue.extend({
...
@@ -32,7 +32,7 @@ export default Vue.extend({
profit
:
0
,
profit
:
0
,
ticketNum
:
0
,
ticketNum
:
0
,
fee
:
0
,
fee
:
0
,
btnText
:
'领取
收益
'
,
btnText
:
'领取
奖励
'
,
timer
:
0
,
timer
:
0
,
waiter
:
1000
waiter
:
1000
}
}
...
@@ -63,7 +63,7 @@ export default Vue.extend({
...
@@ -63,7 +63,7 @@ export default Vue.extend({
},
},
async
getIncome
()
{
async
getIncome
()
{
if
(
!
this
.
profit
)
{
if
(
!
this
.
profit
)
{
Toast
(
'当前无
收益
可领'
)
Toast
(
'当前无
奖励
可领'
)
return
return
}
}
Toast
.
loading
({
Toast
.
loading
({
...
...
tailwind.config.js
View file @
8936841a
...
@@ -21,8 +21,8 @@ module.exports = {
...
@@ -21,8 +21,8 @@ module.exports = {
'white3'
:
'rgba(255, 255, 255, 0.75)'
,
'white3'
:
'rgba(255, 255, 255, 0.75)'
,
'card-text'
:
'#474747'
,
// 特点边框
'card-text'
:
'#474747'
,
// 特点边框
'red1'
:
'#A71313'
,
// 首页红色
'red1'
:
'#A71313'
,
// 首页红色
'brown'
:
'#A98C76'
,
//
收益
文字
'brown'
:
'#A98C76'
,
//
奖励
文字
'brown1'
:
'#4F320D'
,
//
收益
按钮
'brown1'
:
'#4F320D'
,
//
奖励
按钮
'brown2'
:
'#68615D'
,
'brown2'
:
'#68615D'
,
'brown3'
:
'#8A5727'
,
'brown3'
:
'#8A5727'
,
'orange1'
:
'#EFB771'
,
'orange1'
:
'#EFB771'
,
...
...
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