|
@@ -123,7 +123,7 @@
|
|
<img src="{__WAP_PATH}zsff/images/question01.png">{{ item.content. title }}
|
|
<img src="{__WAP_PATH}zsff/images/question01.png">{{ item.content. title }}
|
|
</div>
|
|
</div>
|
|
<div class="desc">
|
|
<div class="desc">
|
|
- <div v-if="item.obtain === 1">您已学完关联的所有课程/专栏</div>
|
|
|
|
|
|
+ <div v-if="item.obtain === 1">发放时间<br />{{item.add_time}}</div>
|
|
<div v-else class="attr">
|
|
<div v-else class="attr">
|
|
<div class="cell">
|
|
<div class="cell">
|
|
题目数
|
|
题目数
|
|
@@ -151,8 +151,9 @@
|
|
'vue',
|
|
'vue',
|
|
'helper',
|
|
'helper',
|
|
'store',
|
|
'store',
|
|
|
|
+ 'moment',
|
|
'quick'
|
|
'quick'
|
|
- ], function (Vue, $h, $http) {
|
|
|
|
|
|
+ ], function (Vue, $h, $http, moment) {
|
|
var vm = new Vue({
|
|
var vm = new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
filters: {
|
|
filters: {
|
|
@@ -210,6 +211,10 @@
|
|
limit: this.limit
|
|
limit: this.limit
|
|
}, function (res) {
|
|
}, function (res) {
|
|
var certificateList = res.data.data;
|
|
var certificateList = res.data.data;
|
|
|
|
+ for (let i in certificateList) {
|
|
|
|
+ //console.log((certificateList[i].add_time * 1000).format('YYYY.MM.DD'))
|
|
|
|
+ certificateList[i].add_time = moment(certificateList[i].add_time * 1000).format('YYYY.MM.DD')
|
|
|
|
+ }
|
|
vm.certificateList = vm.certificateList.concat(certificateList);
|
|
vm.certificateList = vm.certificateList.concat(certificateList);
|
|
vm.loading = false;
|
|
vm.loading = false;
|
|
vm.finished = vm.limit > certificateList.length;
|
|
vm.finished = vm.limit > certificateList.length;
|