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