Commit 4c51f0e3 by zujiaozhang

'修改论坛时间'

parent 33916ac8
......@@ -209,7 +209,7 @@ define(['zepto', 'medtap'], function($, medtap) {
if (res.success == true) {
var detailInfo = res.content.publish;
$('.user_name').html(detailInfo.nickname);
$('.card_time').html(detailInfo.updateTime.substring(5, 16));
$('.card_time').html(detailInfo.createTime.substring(5, 16));
$('.user_profile').attr('src', detailInfo.profile);
$('.cardDetail').html(detailInfo.content);
$('.seenNum').html(detailInfo.viewCount);
......
......@@ -247,7 +247,7 @@ define(
forumList[i].nickname +
'</p>' +
'<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) +
forumList[i].createTime.substring(5, 16) +
'</p>' +
'</div>' +
'</div>' +
......@@ -301,7 +301,7 @@ define(
forumList[i].nickname +
'</p>' +
'<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) +
forumList[i].createTime.substring(5, 16) +
'</p>' +
'</div>' +
'</div>' +
......@@ -348,7 +348,7 @@ define(
forumList[i].nickname +
'</p>' +
'<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) +
forumList[i].createTime.substring(5, 16) +
'</p>' +
'</div>' +
'</div>' +
......@@ -396,7 +396,7 @@ define(
forumList[i].nickname +
'</p>' +
'<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) +
forumList[i].createTime.substring(5, 16) +
'</p>' +
'</div>' +
'</div>' +
......@@ -450,7 +450,7 @@ define(
forumList[i].nickname +
'</p>' +
'<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) +
forumList[i].createTime.substring(5, 16) +
'</p>' +
'</div>' +
'</div>' +
......@@ -497,7 +497,7 @@ define(
forumList[i].nickname +
'</p>' +
'<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) +
forumList[i].createTime.substring(5, 16) +
'</p>' +
'</div>' +
'</div>' +
......
......@@ -7,6 +7,7 @@ define(['zepto','medtap'],function($,medtap){
adminId: medtap.getRequest('adminId')||'',
init:function(){
rukou.getToken()
rukou.getMyquestionnaire()
},
checkUser:function(){
medtap.loading(1);
......@@ -55,7 +56,26 @@ define(['zepto','medtap'],function($,medtap){
console.log(res.resultDesc);
}
})
}
},
// 获取问卷
getMyquestionnaire: function(){
var crm = rukou.adminId==''? '':'/crm'
medtap.submitAjax({
url: 'https://gateway.medtap.cn/operation/followUp'+ crm +'/followUpUser',
type: 'post',
async: false,
contentType: 'application/json',
data: {
"followUpId":rukou.followUpId,
"adminId":rukou.adminId
},
success: function(res) {
if(res.content.followUpUser.status=='1' && rukou.adminId==''){
medtap.pushWindow('pages/questionnaireDetails.html?followUpId='+rukou.followUpId)
}
}
})
},
}
rukou.init();
})
\ No newline at end of file
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