Commit eb2cb014 by 冷斌

fix bug

parent cec9418d
......@@ -125,7 +125,7 @@
</div>
</div>
<div class="class_right layout_center">
<div class="button_green layout_center">查看详情</div>
<div class="button_green layout_center" @click="onShow(item)">查看详情</div>
</div>
</div>
<span style="margin-top: 35vh;" v-if="myYiZuo.length == 0" class="text_14_400 color_999999 self_center">没有找到!</span>
......@@ -203,24 +203,6 @@
<script type="text/javascript">
Date.prototype.Format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"H+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
new Vue({
el: '#app',
data: function() {
......@@ -409,7 +391,6 @@
if(res.status == 1) {
let array = res.data.data.length > 0 ? res.data.data : []
that.myYiZuo = [].concat(array.map( r => {
console.log(r.update_time , new Date(r.update_time * 1000).Format('yyyy-mm-dd HH:MM:ss'))
return {
id: r.exams_paper_id,
title: r.paper_info.exams_paper_title,
......@@ -422,6 +403,10 @@
}
})
},
onShow: function () {
let url = "{:U('exams/index/examsroom')}" + "&paper_id=" + item.id + "&joinType=1&review=true"
window.location.href = url
},
//加载我收藏的题
loadMyTi: function() {
let that = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment