回答編集履歴

1

文字作成もうちょっと頑張る

2018/11/15 03:42

投稿

rururu3
rururu3

スコア5545

test CHANGED
@@ -32,7 +32,11 @@
32
32
 
33
33
  </ul>
34
34
 
35
- <input type="button" value="PUSH" @click="checkPageUnit">
35
+ <input v-model.number="Billion_count_f" placeholder="edit me">
36
+
37
+ <input v-model.number="million_count_f" placeholder="edit me">
38
+
39
+ <input v-model.number="yen_count_f" placeholder="edit me">
36
40
 
37
41
  </div>
38
42
 
@@ -58,13 +62,27 @@
58
62
 
59
63
  titleMessage: function() {
60
64
 
61
- if(!this.Billion_count_f) {
65
+ var str = '';
62
66
 
67
+ if(this.Billion_count_f) {
68
+
63
- return(this.million_count_f + '' + this.yen_count_f + '円');
69
+ str += this.Billion_count_f + '';
64
70
 
65
71
  }
66
72
 
73
+ if(this.million_count_f) {
74
+
67
- return(this.Billion_count_f + '億' + this.million_count_f + '万' + this.yen_count_f + '円');
75
+ str += this.million_count_f + '万';
76
+
77
+ }
78
+
79
+ if(this.yen_count_f) {
80
+
81
+ str += this.yen_count_f;
82
+
83
+ }
84
+
85
+ return(str + '円');
68
86
 
69
87
  }
70
88