|
@@ -24,6 +24,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 分页组件 -->
|
|
|
+ <div style="width: 100%;display: flex;justify-content: center;align-items: center;margin-top: 40px;">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :total="total"
|
|
|
+ @current-change="handlePageChange">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -34,6 +45,7 @@ import pinyin from "../data/pinyin.js";
|
|
|
export default {
|
|
|
name: "CarCost",
|
|
|
props: {
|
|
|
+ total: Number,
|
|
|
dataList: Array,
|
|
|
week: {
|
|
|
type: String,
|
|
@@ -46,11 +58,17 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10
|
|
|
};
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
+ handlePageChange(page) {
|
|
|
+ this.currentPage = page; // 更新当前页码
|
|
|
+ this.$emit("handlePageChange", page-1, this.pageSize);
|
|
|
+ },
|
|
|
+
|
|
|
choose(){
|
|
|
this.$emit("choose");
|
|
|
},
|
|
@@ -100,6 +118,7 @@ export default {
|
|
|
flex-direction: column;
|
|
|
padding: 15px 20px 0 15px;
|
|
|
padding-top: 0 !important;
|
|
|
+ height: 480px;
|
|
|
}
|
|
|
}
|
|
|
.flex-container {
|
|
@@ -158,163 +177,25 @@ export default {
|
|
|
.el-select .el-input .el-select__caret {
|
|
|
display: none;
|
|
|
}
|
|
|
-.data-weeks-foods {
|
|
|
- position: relative;
|
|
|
- width: 1336px;
|
|
|
- height: 864px;
|
|
|
- background: url("../../../assets/images/main/dialog-bg.png") no-repeat;
|
|
|
- background-size: cover;
|
|
|
- .close-btn {
|
|
|
- position: absolute;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- width: 50px;
|
|
|
- height: 50px;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- .choose-area {
|
|
|
- position: absolute;
|
|
|
- right: 100px;
|
|
|
- top: 7px;
|
|
|
- width: 80.05px;
|
|
|
- height: 30px;
|
|
|
- line-height: 30px;
|
|
|
- padding-left: 15px;
|
|
|
- font-size: 14px;
|
|
|
- color: #00ffff;
|
|
|
- background: url("../../../assets/images/main/choose_short.png") no-repeat;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- .choose-area.choose-week{
|
|
|
- right: 200px;
|
|
|
- }
|
|
|
- .content-area {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- padding: 15px 20px 0 15px;
|
|
|
- padding-top: 0 !important;
|
|
|
- }
|
|
|
-
|
|
|
- .content-title {
|
|
|
- width: 515px;
|
|
|
- height: 26px;
|
|
|
- background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- font-family: "PingFangSC";
|
|
|
- font-size: 16px;
|
|
|
- font-weight: bold;
|
|
|
- color: #00ffff;
|
|
|
- padding-left: 17px;
|
|
|
- .title {
|
|
|
- display: block;
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- .content {
|
|
|
- background: radial-gradient(
|
|
|
- 190% 71% at 50% 49%,
|
|
|
- rgba(21, 105, 107, 0.54) 0%,
|
|
|
- rgba(27, 95, 97, 0) 100%
|
|
|
- );
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-items: center;
|
|
|
- .data-list {
|
|
|
- background: radial-gradient(
|
|
|
- 190% 71% at 50% 49%,
|
|
|
- rgba(21, 105, 107, 0.54) 0%,
|
|
|
- rgba(27, 95, 97, 0) 100%
|
|
|
- );
|
|
|
- width: 100%;
|
|
|
- height: 492px;
|
|
|
- padding: 20px;
|
|
|
- overflow: auto;
|
|
|
- white-space: pre-wrap;
|
|
|
- .data-item {
|
|
|
- display: inline-block;
|
|
|
- color: #00ffff;
|
|
|
- font-weight: bold;
|
|
|
- margin: 0 20px 20px 0;
|
|
|
- font-size: 14px;
|
|
|
- img {
|
|
|
- width: 80px;
|
|
|
- height: 80px;
|
|
|
- object-fit: cover;
|
|
|
- }
|
|
|
- .name {
|
|
|
- width: 80px;
|
|
|
- display: block;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- .title-format {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-items: center;
|
|
|
- img {
|
|
|
- width: 6px;
|
|
|
- height: 24px;
|
|
|
- margin-right: 6px;
|
|
|
- }
|
|
|
- .title-info {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- font-size: 12px;
|
|
|
- color: #ffffff;
|
|
|
- .title-en {
|
|
|
- font-size: 8px;
|
|
|
- color: #ffffff;
|
|
|
- opacity: 0.4;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .choose-area {
|
|
|
- .el-select {
|
|
|
- width: 90%;
|
|
|
- }
|
|
|
- .el-input {
|
|
|
- input {
|
|
|
- background: rgba(255, 255, 255, 0);
|
|
|
- color: #00ffff;
|
|
|
- border: none;
|
|
|
- padding: 0;
|
|
|
- width: 30px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .no-data{
|
|
|
- text-align: center;
|
|
|
- color: #62ffe5;
|
|
|
- font-size: 25px;
|
|
|
- margin-top: 150px;
|
|
|
- }
|
|
|
-
|
|
|
- ::-webkit-scrollbar {
|
|
|
- width: 3px;
|
|
|
- height: 3px;
|
|
|
- }
|
|
|
-
|
|
|
- ::-webkit-scrollbar-thumb {
|
|
|
- //滑块部分
|
|
|
- // border-radius: 5px;
|
|
|
- background-color: #58cbbb;
|
|
|
- }
|
|
|
-
|
|
|
- ::-webkit-scrollbar-track {
|
|
|
- //轨道部分
|
|
|
- // box-shadow: inset 0 0 5px #ddd;
|
|
|
- background: #ddd;
|
|
|
- // border-radius: 5px;
|
|
|
- }
|
|
|
+::v-deep .btn-prev{
|
|
|
+ color: #00F6EC !important;
|
|
|
+ background-color: rgba(21, 105, 107, 0.35) !important;
|
|
|
+ border: 1px #15696b solid;
|
|
|
+}
|
|
|
+::v-deep .btn-next{
|
|
|
+ color: #00F6EC !important;
|
|
|
+ background-color: rgba(21, 105, 107, 0.35) !important;
|
|
|
+ border: 1px #15696b solid;
|
|
|
+}
|
|
|
+::v-deep .el-pager li.active{
|
|
|
+ background-color: #00ffff !important;
|
|
|
+ color: rgba(9, 8, 8, 0.68) !important;
|
|
|
+}
|
|
|
+::v-deep .el-pager li{
|
|
|
+ background-color: rgba(21, 105, 107, 0.35) !important;
|
|
|
+ color: #00ffff !important;
|
|
|
}
|
|
|
</style>
|
|
|
|