修改一些界面布局
This commit is contained in:
parent
1a506e3ae5
commit
5e200ecae9
@ -1,7 +1,7 @@
|
|||||||
VUE_APP_WALLET_INFURAID='e7743d46923911fa8850619b7a7f6d9d'
|
VUE_APP_WALLET_INFURAID='e7743d46923911fa8850619b7a7f6d9d'
|
||||||
VUE_APP_CHAIN_ID=97
|
VUE_APP_BASE_API='http://192.168.100.21:81'
|
||||||
VUE_APP_CHAIN_RPC='https://data-seed-prebsc-1-s1.binance.org:8545'
|
VUE_APP_CHAIN_ID=1338
|
||||||
VUE_APP_BASE_API='https://game2006api.kingsome.cn'
|
VUE_APP_CHAIN_RPC='http://192.168.100.22:8545'
|
||||||
VUE_APP_CHAIN_NAME='Smart Chain - Testnet'
|
VUE_APP_CHAIN_NAME='Smart Chain - Testnet'
|
||||||
VUE_APP_CHAIN_EXPLORERURL = 'https://testnet.bscscan.com'
|
VUE_APP_CHAIN_EXPLORERURL = 'https://testnet.bscscan.com'
|
||||||
VUE_APP_CHAIN_CURRENCY_NAME='name'
|
VUE_APP_CHAIN_CURRENCY_NAME='name'
|
||||||
|
@ -194,7 +194,7 @@ export default class extends Vue {
|
|||||||
|
|
||||||
.action-bar {
|
.action-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -205,14 +205,18 @@ export default class extends Vue {
|
|||||||
.page-ctrl {
|
.page-ctrl {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-grow: 1;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-icon {
|
.page-icon {
|
||||||
height: 45px/$scale;
|
height: 45px/$scale;
|
||||||
width: 221px/$scale;
|
width: 121px/$scale;
|
||||||
background-image: url('../../assets/main/p3/icon_deselect.png');
|
background-image: url('../../assets/main/p3/icon_deselect.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
margin: 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-icon.selected {
|
.page-icon.selected {
|
||||||
|
@ -128,12 +128,12 @@ export default class extends Vue {
|
|||||||
async getOrderStatus(orderId: string) {
|
async getOrderStatus(orderId: string) {
|
||||||
try {
|
try {
|
||||||
const res: any = await queryOrder({ account: this.accountId, order_id: orderId })
|
const res: any = await queryOrder({ account: this.accountId, order_id: orderId })
|
||||||
if (res.status === 1) {
|
if (res.state === 1) {
|
||||||
EventBus.$emit(PRESALE_SUCCESS, {})
|
EventBus.$emit(PRESALE_SUCCESS, {})
|
||||||
} else if (res.status === 3) {
|
} else if (res.state === 3) {
|
||||||
EventBus.$emit(PRESALE_ERROR, {})
|
EventBus.$emit(PRESALE_ERROR, {})
|
||||||
this.resetTmpOrderId()
|
this.resetTmpOrderId()
|
||||||
} else if (res.status === 0) {
|
} else if (res.state === 0) {
|
||||||
EventBus.$emit(PRESALE_ERROR, {})
|
EventBus.$emit(PRESALE_ERROR, {})
|
||||||
this.resetTmpOrderId()
|
this.resetTmpOrderId()
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ export default class extends Vue {
|
|||||||
id: data.box_id,
|
id: data.box_id,
|
||||||
skelName: `n_${data.name.toLowerCase()}`,
|
skelName: `n_${data.name.toLowerCase()}`,
|
||||||
directBuy: true,
|
directBuy: true,
|
||||||
stopBuy: this.buyed,
|
stopBuy: false,
|
||||||
showBuy: true
|
showBuy: true
|
||||||
}
|
}
|
||||||
if (data.currency_list && data.currency_list.length > 0) {
|
if (data.currency_list && data.currency_list.length > 0) {
|
||||||
|
@ -46,7 +46,14 @@ export default class extends Vue {
|
|||||||
return AppModule.walletConnected
|
return AppModule.walletConnected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get accountId() {
|
||||||
|
return AppModule.accountId
|
||||||
|
}
|
||||||
|
|
||||||
async buyItem() {
|
async buyItem() {
|
||||||
|
if (!this.accountId) {
|
||||||
|
return await this.bc.connect()
|
||||||
|
}
|
||||||
if (!AppModule.canBuy) {
|
if (!AppModule.canBuy) {
|
||||||
Message({
|
Message({
|
||||||
message: 'Can`t buy current time',
|
message: 'Can`t buy current time',
|
||||||
@ -62,9 +69,6 @@ export default class extends Vue {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
EventBus.$emit(PRESALE_BEGIN)
|
EventBus.$emit(PRESALE_BEGIN)
|
||||||
if (!this.walletCollected) {
|
|
||||||
await this.bc.connect()
|
|
||||||
}
|
|
||||||
const account = AppModule.accountId
|
const account = AppModule.accountId
|
||||||
try {
|
try {
|
||||||
const { nonce, signature } = await this.bc.signPresale({
|
const { nonce, signature } = await this.bc.signPresale({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user