|
@@ -20,6 +20,8 @@
|
|
rel="stylesheet">
|
|
rel="stylesheet">
|
|
<script src="{{Msg "seo" "cdn"}}/dataExport/jquery-confirm/jquery-confirm.min.js?v={{Msg "seo" "version"}}"></script>
|
|
<script src="{{Msg "seo" "cdn"}}/dataExport/jquery-confirm/jquery-confirm.min.js?v={{Msg "seo" "version"}}"></script>
|
|
<!--2.8.8-->
|
|
<!--2.8.8-->
|
|
|
|
+ <link href="//cdn-common.jianyu360.com/cdn/lib/element-ui/2.15.12-rc/lib/theme-chalk/index.css" rel="stylesheet" />
|
|
|
|
+ <link href='{{Msg "seo" "cdn"}}/css/ele-reset.css?v={{Msg "seo" "version"}}' rel="stylesheet">
|
|
<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/course/css/order_list.css?v={{Msg "seo" "version"}}">
|
|
<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/course/css/order_list.css?v={{Msg "seo" "version"}}">
|
|
<title>我的订单</title>
|
|
<title>我的订单</title>
|
|
<meta content="增值服务" theme="light" name="enable-header"/>
|
|
<meta content="增值服务" theme="light" name="enable-header"/>
|
|
@@ -241,7 +243,7 @@
|
|
<body data-page-name="toMyOrder" style="background-color: #fff !important;">
|
|
<body data-page-name="toMyOrder" style="background-color: #fff !important;">
|
|
{{include "/common/pchead.html"}}
|
|
{{include "/common/pchead.html"}}
|
|
<div class="sub-page-title-container" style="display: none">我的订单</div>
|
|
<div class="sub-page-title-container" style="display: none">我的订单</div>
|
|
-<section id="drder" class="w">
|
|
|
|
|
|
+<section id="drder" class="w" v-cloak>
|
|
<!-- main START -->
|
|
<!-- main START -->
|
|
<div class="order" id="order">
|
|
<div class="order" id="order">
|
|
<div class="w order_tab">
|
|
<div class="w order_tab">
|
|
@@ -257,7 +259,7 @@
|
|
<span class="th_status">订单状态</span>
|
|
<span class="th_status">订单状态</span>
|
|
<span class="th_handle">订单操作</span>
|
|
<span class="th_handle">订单操作</span>
|
|
</div>
|
|
</div>
|
|
- <div class="c_tbody_vue" id="page_tbody" v-cloak>
|
|
|
|
|
|
+ <div class="c_tbody_vue" id="page_tbody">
|
|
<div v-show="getList.length" v-for="item in getList">
|
|
<div v-show="getList.length" v-for="item in getList">
|
|
<!-- <span style="margin-left: 118px;" v-if="!item.publishTime">@#item.publishTime#@</span>-->
|
|
<!-- <span style="margin-left: 118px;" v-if="!item.publishTime">@#item.publishTime#@</span>-->
|
|
<!-- <span v-else>@#item.publishTime#@</span>-->
|
|
<!-- <span v-else>@#item.publishTime#@</span>-->
|
|
@@ -499,17 +501,32 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- main END -->
|
|
<!-- main END -->
|
|
- <div class="pagination clearfix w">
|
|
|
|
|
|
+ <div class="pagination clearfix w" style="display: none;">
|
|
<div class="pagination-box" style="display: none">
|
|
<div class="pagination-box" style="display: none">
|
|
<button name="back" id="prev"><i><</i>上一页</button><button name="min">1</button><button name="prev">...</button><button name="next">...</button><button name="max">100</button><button name="cont" id="next">下一页<i>></i></button>
|
|
<button name="back" id="prev"><i><</i>上一页</button><button name="min">1</button><button name="prev">...</button><button name="next">...</button><button name="max">100</button><button name="cont" id="next">下一页<i>></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="el-pagination-container" v-if="pageTotal > 0">
|
|
|
|
+ <el-pagination
|
|
|
|
+ background
|
|
|
|
+ layout="prev, pager, next, sizes, jumper"
|
|
|
|
+ popper-class="pagination-custom-select"
|
|
|
|
+ :page-size="pageSize"
|
|
|
|
+ :current-page.sync="pageNum"
|
|
|
|
+ :total="pageTotal"
|
|
|
|
+ :page-sizes="[5, 10, 50, 100]"
|
|
|
|
+ :show-confirm-btn="true"
|
|
|
|
+ @current-change="onPageChange"
|
|
|
|
+ @size-change="onSizeChange"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
</section>
|
|
</section>
|
|
-<script type="text/javascript"
|
|
|
|
- src="{{Msg "seo" "cdn"}}/dataExport/js/pageination.ie.js?v={{Msg "seo" "version"}}"></script>
|
|
|
|
|
|
+<script type="text/javascript" src="{{Msg "seo" "cdn"}}/dataExport/js/pageination.ie.js?v={{Msg "seo" "version"}}"></script>
|
|
{{include "/common/pcbottom.html"}}
|
|
{{include "/common/pcbottom.html"}}
|
|
{{include "/common/baiducc.html"}}
|
|
{{include "/common/baiducc.html"}}
|
|
<script src="https://cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js"></script>
|
|
<script src="https://cdn-common.jianyu360.com/cdn/lib/vue/2.6.11/vue.min.js"></script>
|
|
|
|
+<script src="//cdn-common.jianyu360.com/cdn/lib/element-ui/2.15.12-rc/lib/index.js"></script>
|
|
<script>
|
|
<script>
|
|
var myPageNavIsNormal = true
|
|
var myPageNavIsNormal = true
|
|
|
|
|
|
@@ -628,7 +645,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
var orderListForVue = new Vue({
|
|
var orderListForVue = new Vue({
|
|
- el: '#page_tbody',
|
|
|
|
|
|
+ el: '#drder',
|
|
delimiters: ['@#', '#@'],
|
|
delimiters: ['@#', '#@'],
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
@@ -740,7 +757,9 @@
|
|
ind: 0,
|
|
ind: 0,
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
serverInitTime: null,
|
|
serverInitTime: null,
|
|
- timerId: null
|
|
|
|
|
|
+ timerId: null,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ pageTotal: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -1339,16 +1358,18 @@
|
|
"type": _this.ind,
|
|
"type": _this.ind,
|
|
"pageNum": _this.pageNum,
|
|
"pageNum": _this.pageNum,
|
|
"fromPage": "pc",
|
|
"fromPage": "pc",
|
|
|
|
+ "page_size": _this.pageSize
|
|
},
|
|
},
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
success: function (data) {
|
|
_this.setIntervalFn()
|
|
_this.setIntervalFn()
|
|
|
|
+ _this.pageTotal = data.count
|
|
if (data.res && data.res.length > 0) {
|
|
if (data.res && data.res.length > 0) {
|
|
data.res.forEach(function(order) {
|
|
data.res.forEach(function(order) {
|
|
_this.formatExpirationTime(order)
|
|
_this.formatExpirationTime(order)
|
|
})
|
|
})
|
|
_this.$set(_this.$data, 'list', data.res)
|
|
_this.$set(_this.$data, 'list', data.res)
|
|
- $(".pagination-box").show()
|
|
|
|
|
|
+ // $(".pagination-box").show()
|
|
showPageCount(data, _this.pageNum)
|
|
showPageCount(data, _this.pageNum)
|
|
if (data.count <= data.pageSize) {
|
|
if (data.count <= data.pageSize) {
|
|
$(".pagination-box").hide()
|
|
$(".pagination-box").hide()
|
|
@@ -1456,7 +1477,25 @@
|
|
clearInterval(this.timerId)
|
|
clearInterval(this.timerId)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ onPageChange: function(p) {
|
|
|
|
+ this.pageNum = p
|
|
|
|
+ var $Index = $(".order_tab span.tab_item.active").index();
|
|
|
|
+ this.changeAjaxParams({
|
|
|
|
+ tabIndex: $Index,
|
|
|
|
+ pageNum: this.pageNum,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ onSizeChange: function(size) {
|
|
|
|
+ this.pageNum = 1
|
|
|
|
+ this.pageSize = size
|
|
|
|
+ var $Index = $(".order_tab span.tab_item.active").index();
|
|
|
|
+ this.changeAjaxParams({
|
|
|
|
+ tabIndex: $Index,
|
|
|
|
+ pageNum: this.pageNum,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ onNoAuthChange: function () {}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|