|
|
|
@ -75,22 +75,20 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 分页 -->
|
|
|
|
|
<div class="seckill-pagination flex flex-right">
|
|
|
|
|
<el-pagination
|
|
|
|
|
background
|
|
|
|
|
<UiPagination
|
|
|
|
|
:current-page="currentPage"
|
|
|
|
|
:page-size="query.length"
|
|
|
|
|
layout="prev, pager, next, jumper"
|
|
|
|
|
:total="total"
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
<el-button class="btn-confirm">确定</el-button>
|
|
|
|
|
<el-button class="btn-confirm">确定</el-button>
|
|
|
|
|
</UiPagination>
|
|
|
|
|
</div>
|
|
|
|
|
<DialogEnd :visible="seckillEndVisible" @close="handleClose" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import UiPagination from "@/components/UiPagination.vue";
|
|
|
|
|
import {
|
|
|
|
|
ApiGetSeckillTimes,
|
|
|
|
|
ApiGetSeckillGoods,
|
|
|
|
@ -103,7 +101,7 @@ const PAGE_SIZE = 16;
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Sckill",
|
|
|
|
|
components: { TabBar, DialogEnd },
|
|
|
|
|
components: { TabBar, DialogEnd, UiPagination },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
bkgSckill: require("~/assets/img/sckill/bkg-large.png"),
|
|
|
|
@ -263,10 +261,6 @@ export default {
|
|
|
|
|
onJumpGoodsDetail(id) {
|
|
|
|
|
this.$router.push(`/goods/detail/${id}`);
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange(size) {
|
|
|
|
|
this.query.length = size;
|
|
|
|
|
this.getGoodsList();
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(page) {
|
|
|
|
|
this.query.pageIndex = page;
|
|
|
|
|
this.getGoodsList();
|
|
|
|
@ -396,35 +390,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
.seckill-pagination {
|
|
|
|
|
margin-top: 60px;
|
|
|
|
|
/deep/.el-pagination {
|
|
|
|
|
.btn-prev,
|
|
|
|
|
.btn-next {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
|
|
|
}
|
|
|
|
|
.el-pagination__jump {
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
.el-pager {
|
|
|
|
|
.number {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
.active {
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
background: #ff512b;
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.btn-confirm {
|
|
|
|
|
width: 81px;
|
|
|
|
|
height: 32px;
|
|
|
|
|