OSDN Git Service

update underscore to camelcase
[bytom/Byone.git] / src / views / vote / veto.vue
index 333cd87..48238e8 100644 (file)
@@ -97,9 +97,9 @@ import { mapGetters, mapState } from 'vuex'
 import { Number as Num } from "@/utils/Number"
 
 const currencyInPrice = {
-  in_cny: 'cny_price',
-  in_usd: 'usd_price',
-  in_btc:'btc_price'
+  inCny: 'cny_price',
+  inUsd: 'usd_price',
+  inBtc:'btc_price'
 }
 
 export default {
@@ -177,12 +177,12 @@ export default {
                 onCancel: this.onCancel
             });
 
-            const vote = this.selectVote.pub_key
+            const vote = this.selectVote.pubKey
             this.transaction.to = vote
             transaction.buildVeto(this.currentAccount.guid, vote,  Num.convertToNue(this.transaction.amount,8), this.transaction.confirmations).then(result => {
                 loader.hide();
                 if(!this.transaction.fee){
-                  this.transaction.fee = Number( _.sumBy(result, 'fee') / 100000000);
+                  this.transaction.fee = Number( _.sumBy(result, 'fee'));
                 }
                 this.$router.push({ name: 'vote-confirm', params: { account: this.currentAccount, transaction: this.transaction, assetAlias: 'BTM',rawData: result} })
             }).catch(error => {