Skip to content

Commit cba0612

Browse files
authored
Merge pull request #7 from bluegene1/0.4.0
Modify the prompt and version number
2 parents 9761a2f + d3c3349 commit cba0612

7 files changed

Lines changed: 27 additions & 13 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Samurai",
3-
"version": "0.3.4",
3+
"version": "0.4.1",
44
"author": "www.platon.network<support@platon.network>",
55
"description": "Samurai钱包客户端",
66
"license": null,
@@ -22,7 +22,7 @@
2222
},
2323
"build": {
2424
"productName": "Samurai",
25-
"buildVersion": "0.3.1.4",
25+
"buildVersion": "0.4.0.1",
2626
"appId": "org.simulatedgreg.electron-vue",
2727
"directories": {
2828
"output": "dist"

src/lang/zh-cn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default {
133133
tip1:'所有普通钱包余额为0,无法创建联名钱包!',
134134
tip2:'请先创建普通钱包,并转入相应资产',
135135
incorrectAddress:'接收地址不正确',
136-
insufficientBalance:'余额不足',
136+
insufficientBalance:'钱包余额不足!',
137137
incorrectValue:'发送数量输入格式有误,请重新输入',
138138
transactionFailed:'交易发送失败',
139139
invalidSignatures:'个人签名不可用或钱包不存在',

src/less/modules/color.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
.danger{
22
color:#F32E25;
33
}
4+
5+
.warn{
6+
color:#F6BA3E;
7+
/deep/ .el-message__group{
8+
p{
9+
color:#F6BA3E;
10+
}
11+
}
12+
}

src/views/contract/list.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@
111111
newContract(){
112112
this.getOrd().then((data)=>{
113113
if(data.length == 0){
114-
this.$message.error(this.$t('contracts.walletEmpty'))
114+
this.$message.warning({
115+
message:this.$t('contracts.walletEmpty'),customClass:'warn'
116+
})
115117
}else if(this.nortotalBalance == 0){
116118
this.$message.error(this.$t('contracts.balanceEmpty'))
117119
}else{

src/views/wallet/ord/import.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
let dirPath = file.path.replace(name,'');
312312
fsObj.ReadFile(dirPath, name, (err, data) => {
313313
if(err){
314-
this.$message.error(this.$t('form.wrongPsw'))
314+
this.$message.warning({message:this.$t('form.wrongPsw'),customClass:'warn'})
315315
}
316316
if(data) {
317317
try{
@@ -328,7 +328,7 @@
328328
}else if(err == -2){
329329
this.$message.error(this.$t('wallet.invalidFile'))
330330
}else{
331-
this.$message.error(this.$t('form.wrongPsw'))
331+
this.$message.warning({message:this.$t('form.wrongPsw'),customClass:'warn'})
332332
}
333333
}
334334
)
@@ -368,7 +368,8 @@
368368
flag = false;
369369
this.$message({
370370
message: this.$t('wallet.alreadyExits'),
371-
type: 'error'
371+
type: 'warning',
372+
customClass:'warn'
372373
});
373374
return
374375
}

src/views/wallet/send-transcation.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@
258258
this.$message.error(this.$t('wallet.sendToSelf'));
259259
return;
260260
}
261-
if(this.walletType==1){
262-
if(mathService.sub(mathService.add(this.sendTranscation.value-0,this.sendTranscation.gas-0),this.balance)>0){
263-
this.$message.error(this.$t('wallet.insufficientBalance'));
264-
return;
265-
}
261+
// if(this.walletType==1){
262+
if(mathService.sub(mathService.add(this.sendTranscation.value-0,this.sendTranscation.gas-0),this.balance)>0){
263+
this.$message.warning({message:this.$t('wallet.insufficientBalance'),customClass:'warn'});
264+
return;
266265
}
266+
// }
267267
if(!/(0x)[0-9a-fA-F]{40}$/g.test(this.sendTranscation.to)){
268268
this.$message.error(this.$t('wallet.incorrectAddress'));
269269
return;

src/views/wallet/share/join.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
return item.address==this.newWallet.address
100100
});
101101
if(arr.length>0){
102-
this.$message.warning(this.$t('wallet.shareAlreadyExits'));
102+
this.$message.warning({message:this.$t('wallet.shareAlreadyExits'),
103+
customClass:'warn'
104+
});
103105
}else{
104106
//执行添加共享钱包逻辑
105107
//查询签名数

0 commit comments

Comments
 (0)