Commit 4c51f0e3 by zujiaozhang

'修改论坛时间'

parent 33916ac8
...@@ -209,7 +209,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -209,7 +209,7 @@ define(['zepto', 'medtap'], function($, medtap) {
if (res.success == true) { if (res.success == true) {
var detailInfo = res.content.publish; var detailInfo = res.content.publish;
$('.user_name').html(detailInfo.nickname); $('.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); $('.user_profile').attr('src', detailInfo.profile);
$('.cardDetail').html(detailInfo.content); $('.cardDetail').html(detailInfo.content);
$('.seenNum').html(detailInfo.viewCount); $('.seenNum').html(detailInfo.viewCount);
......
...@@ -247,7 +247,7 @@ define( ...@@ -247,7 +247,7 @@ define(
forumList[i].nickname + forumList[i].nickname +
'</p>' + '</p>' +
'<p class="txt_gray post_card_time">' + '<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) + forumList[i].createTime.substring(5, 16) +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
...@@ -301,7 +301,7 @@ define( ...@@ -301,7 +301,7 @@ define(
forumList[i].nickname + forumList[i].nickname +
'</p>' + '</p>' +
'<p class="txt_gray post_card_time">' + '<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) + forumList[i].createTime.substring(5, 16) +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
...@@ -348,7 +348,7 @@ define( ...@@ -348,7 +348,7 @@ define(
forumList[i].nickname + forumList[i].nickname +
'</p>' + '</p>' +
'<p class="txt_gray post_card_time">' + '<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) + forumList[i].createTime.substring(5, 16) +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
...@@ -396,7 +396,7 @@ define( ...@@ -396,7 +396,7 @@ define(
forumList[i].nickname + forumList[i].nickname +
'</p>' + '</p>' +
'<p class="txt_gray post_card_time">' + '<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) + forumList[i].createTime.substring(5, 16) +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
...@@ -450,7 +450,7 @@ define( ...@@ -450,7 +450,7 @@ define(
forumList[i].nickname + forumList[i].nickname +
'</p>' + '</p>' +
'<p class="txt_gray post_card_time">' + '<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) + forumList[i].createTime.substring(5, 16) +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
...@@ -497,7 +497,7 @@ define( ...@@ -497,7 +497,7 @@ define(
forumList[i].nickname + forumList[i].nickname +
'</p>' + '</p>' +
'<p class="txt_gray post_card_time">' + '<p class="txt_gray post_card_time">' +
forumList[i].updateTime.substring(5, 16) + forumList[i].createTime.substring(5, 16) +
'</p>' + '</p>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
......
...@@ -7,6 +7,7 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -7,6 +7,7 @@ define(['zepto','medtap'],function($,medtap){
adminId: medtap.getRequest('adminId')||'', adminId: medtap.getRequest('adminId')||'',
init:function(){ init:function(){
rukou.getToken() rukou.getToken()
rukou.getMyquestionnaire()
}, },
checkUser:function(){ checkUser:function(){
medtap.loading(1); medtap.loading(1);
...@@ -55,7 +56,26 @@ define(['zepto','medtap'],function($,medtap){ ...@@ -55,7 +56,26 @@ define(['zepto','medtap'],function($,medtap){
console.log(res.resultDesc); 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(); 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