diff --git a/src/assets/img/sectionsmall.png b/src/assets/img/sectionsmall.png new file mode 100644 index 0000000..90a2e7a --- /dev/null +++ b/src/assets/img/sectionsmall.png diff --git a/src/assets/img/titlebg.png b/src/assets/img/titlebg.png new file mode 100644 index 0000000..2d69514 --- /dev/null +++ b/src/assets/img/titlebg.png diff --git a/src/assets/img/titletexticon.png b/src/assets/img/titletexticon.png new file mode 100644 index 0000000..76c1cce --- /dev/null +++ b/src/assets/img/titletexticon.png diff --git a/src/components/titlesection.vue b/src/components/titlesection.vue index 14dc989..81e2c50 100644 --- a/src/components/titlesection.vue +++ b/src/components/titlesection.vue @@ -1,19 +1,50 @@ diff --git a/src/components/total.vue b/src/components/total.vue index e2b7deb..53253ad 100644 --- a/src/components/total.vue +++ b/src/components/total.vue @@ -1,18 +1,29 @@ diff --git a/src/utils/formatNum.js b/src/utils/formatNum.js new file mode 100644 index 0000000..6ab277d --- /dev/null +++ b/src/utils/formatNum.js @@ -0,0 +1,16 @@ +export function formatNum(str) { + var newStr = ""; + var count = 0; + for (var i = str.length - 1; i >= 0; i--) { + if (count % 3 == 0 && count != 0) { + + newStr = str.charAt(i) + "," + newStr; + } else { + newStr = str.charAt(i) + newStr; + } + count++; + } + str = newStr; + return str; + +} diff --git a/src/views/mainContainer.vue b/src/views/mainContainer.vue index f4e52d6..0f53b5d 100644 --- a/src/views/mainContainer.vue +++ b/src/views/mainContainer.vue @@ -2,18 +2,19 @@
@@ -58,11 +59,12 @@ export default { flex: 1; } - .heightsmall { + .sectionsmall { flex: 1; - background: #f00; display: flex; flex-direction: column; + background: url("../assets/img/sectionsmall.png") no-repeat; + background-size: 100% 100%; } .containerwrap > li:nth-of-type(2) { diff --git a/src/views/pdasection.vue b/src/views/pdasection.vue index a361f9c..ae74500 100644 --- a/src/views/pdasection.vue +++ b/src/views/pdasection.vue @@ -1,7 +1,7 @@ @@ -17,6 +17,11 @@ export default { titlesection, totalsection }, + data() { + return { + totalVal: '1000', + } + }, created() { this.getList() },