Skip to content

Commit

Permalink
Add more network options for users to choose from
Browse files Browse the repository at this point in the history
  • Loading branch information
niostack committed Aug 29, 2024
1 parent ab56f19 commit 1831025
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
24 changes: 14 additions & 10 deletions src/components/settings/BuyLicense.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
readonly disabled />
<MyButton @click="copyuid" label="copy" />
</div>
<div class="flex items-center flex-row gap-2 max-w-lg w-full">
<div class="flex items-center flex-row gap-2 w-full">
<span class="font-bold">{{ $t('license') }}: </span>
<input type="text" placeholder="license key" class="input input-sm grow input-bordered" v-model="license.key" />
<MyButton @click="add_license" label="save" :showLoading="loading" />
Expand All @@ -19,9 +19,9 @@
<label class="text-green-500 font-bold">{{ license.left_days }}</label> days.
</label>
</div>
<div class="flex items-center flex-row gap-2 max-w-lg w-full">
<span class="font-bold">{{ $t('network') }}: </span>
<select class="select select-sm select-bordered" v-model="current_network">
<div class="flex items-center flex-row gap-2 w-full">
<span class="font-bold">{{ $t('depositNetwork') }}: </span>
<select class="select select-sm select-bordered " v-model="current_network">
<option>TRC20</option>
<option>ERC20</option>
<option>Arbitrum One</option>
Expand Down Expand Up @@ -55,11 +55,16 @@
</div>

<div class="flex items-center flex-row gap-2 w-full">
<label class="font-bold text-right col-span-1">{{ $t('address') }}:</label>
<label class="font-bold text-right col-span-1">{{ $t('depositAddress') }}:</label>
<input type="text" class="input input-sm grow input-bordered" v-model="payinfo.address" readonly disabled />
<MyButton @click="copy_address" label="copy" />

</div>
<div class="flex items-center flex-row gap-2 w-full" v-if="payinfo.comment">
<label class="font-bold text-right col-span-1">{{ $t('depositComment') }}:</label>
<input type="text" class="input input-sm grow input-bordered" v-model="payinfo.comment" readonly disabled />
<MyButton @click="copy_comment" label="copy" />
</div>
<label class="label-text-alt text-red-500 font-bold">{{ $t('usdtTip') }}</label>
</div>
</div>
Expand Down Expand Up @@ -145,11 +150,10 @@ export default {
}
},
methods: {
// change_network() {
// alert(this.payinfo.network + ' ' + this.payinfo.address)
// this.payinfo = this.payList.find(item => item.network === this.payinfo.network)
// alert(this.payinfo.network + ' ' + this.payinfo.address)
// },
async copy_comment() {
await writeText(this.payinfo.comment)
this.$emitter.emit('showToast', this.$t('copySuccess'))
},
async copy_address() {
await writeText(this.payinfo.address)
this.$emitter.emit('showToast', this.$t('copySuccess'))
Expand Down
10 changes: 6 additions & 4 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ export const i18n = createI18n({
batchAdd: 'Batch Add',
batchAddTips: 'Platform##Email##Password##Username##Device\nExample: tiktok##email1##123##test##1\nOne account per line',
batchAddConfirm: 'Are you sure you want to add these {count} accounts?',
address: 'Address',
export: 'Export',
exportConfirm: 'Are you sure you want to export accounts?',
logined: 'Logined',
Expand Down Expand Up @@ -414,12 +413,16 @@ export const i18n = createI18n({
instagram: 'Instagram',
logout: 'Logout',
logoutConfirm: 'Are you sure you want to logout all accounts on this device?',
network: 'Network',
depositNetwork: 'Deposit Network',
depositAddress: 'Deposit Address',
depositComment: 'Deposit Comment',
networkTips: 'Please select the appropriate network for your coin recharge, different networks have different fees!',
},
'zh-CN': {
networkTips: '请自己选择适合你的充币网络, 不同网络的手续费不同!',
network: '网络',
depositNetwork: '充币网络',
depositAddress: '充币地址',
depositComment: '充币备注',
logoutConfirm: '确定要退出这个设备上面的所有账号吗?',
logout: '登出',
platform: '平台',
Expand Down Expand Up @@ -463,7 +466,6 @@ export const i18n = createI18n({
unlogined: '未登录',
exportConfirm: '是否确定导出帐号',
export: '导出',
address: '地址',
batchAddConfirm: '是否确定要添加这些 {count} 个帐号?',
batchAddTips: '平台##邮箱##密码##用户名##设备号\n例如: tiktok##email1##123##test##1\n每行一个帐号',
batchAdd: '批量添加',
Expand Down

0 comments on commit 1831025

Please sign in to comment.