diff --git a/src/assets/styles/myTable.scss b/src/assets/styles/myTable.scss
index 37fdfe2..0115dc5 100644
--- a/src/assets/styles/myTable.scss
+++ b/src/assets/styles/myTable.scss
@@ -71,7 +71,7 @@
width: 100%;
li {
width: 19%;
- height: 49%;
+ height: 48.5%;
margin-right: calc(1% + (2% / 8));
margin-bottom: 1%;
list-style: none;
@@ -84,7 +84,7 @@
position: absolute;
top: 6%;
right: 10%;
- font-size: 20px;
+ font-size: 18px;
font-weight: bold;
color: #2aa984;
z-index: 10;
@@ -122,9 +122,10 @@
li:nth-of-type(5n) {
margin-right: 0;
}
- li:nth-of-type(n + 2) {
- margin-bottom: 0;
- }
+
+ // li:nth-of-type(n + 2) {
+ // margin-bottom: 0;
+ // }
}
::v-deep .pagination-container {
height: 0 !important;
diff --git a/src/views/volunteer/gxhzs/gxhzsgl/index.vue b/src/views/volunteer/gxhzs/gxhzsgl/index.vue
index d3e4c51..3b03520 100644
--- a/src/views/volunteer/gxhzs/gxhzsgl/index.vue
+++ b/src/views/volunteer/gxhzs/gxhzsgl/index.vue
@@ -11,9 +11,13 @@
>
-
- -
-
50
+
{
- this.tableHeigth =
- this.$refs.main.offsetHeight - 40 - this.$refs.search.offsetHeight - 42;
+ this.listStyle.height =
+ this.$refs.main.offsetHeight -
+ 40 -
+ this.$refs.search.offsetHeight -
+ 42 +
+ "px";
this.getList();
});
},
methods: {
+ isLastRow(index) {
+ const rowCount = Math.ceil(this.certificatesList.length / 5);
+ const row = Math.floor(index / 5);
+ return row === rowCount - 1;
+ },
/**搜索 */
handleSearch(keyWord) {
this.queryParams = {
diff --git a/src/views/volunteer/integralConversion/index.vue b/src/views/volunteer/integralConversion/index.vue
index a072aca..5e0930e 100644
--- a/src/views/volunteer/integralConversion/index.vue
+++ b/src/views/volunteer/integralConversion/index.vue
@@ -4,9 +4,13 @@
-
- -
-
50
+
{
- this.tableHeigth =
- this.$refs.main.offsetHeight - 40 - this.$refs.search.offsetHeight - 42;
+ this.listStyle.height =
+ this.$refs.main.offsetHeight -
+ 40 -
+ this.$refs.search.offsetHeight -
+ 42 +
+ "px";
this.getList();
});
},
methods: {
+ isLastRow(index) {
+ const rowCount = Math.ceil(this.certificatesList.length / 5);
+ const row = Math.floor(index / 5);
+ return row === rowCount - 1;
+ },
/**兑换 */
conversion(item) {
console.log(item);
diff --git a/vue.config.js b/vue.config.js
index 7db7928..b369899 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -57,9 +57,9 @@ module.exports = {
sassOptions: { outputStyle: "expanded" },
},
// px to rem
- // postcss: {
- // plugins: [postcss],
- // },
+ postcss: {
+ plugins: [postcss],
+ },
},
},
configureWebpack: {