mui.ready(function() { mui.plusReady(function() { var self = plus.webview.currentWebview(); var proId = self.professorId; function userInformation() { mui.ajax(baseUrl + "/ajax/consult/pqAssessHis", { dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 data: { "professorId": proId }, timeout: 10000, //超时设置 success: function(data) { var str = JSON.stringify(data); console.log(str) var $info = data.data.data || {} if(data.success) { plus.nativeUI.closeWaiting(); plus.webview.currentWebview().show("slide-in-right", 150); var html = []; for(var i = 0; i < data.data.data.length; i++) { var assessTime = $info[i]["assessTime"].substr(0, 4) + "年" + $info[i].assessTime.substr(4, 2) + "月" + $info[i].assessTime.substr(6, 2) + "日" + $info[i].assessTime.substr(8, 2) + ":" + $info[i].assessTime.substr(10, 2); var string = '
  • ' string += '' string += '
    ' if($info[i].professor.hasHeadImage) { string += '' } else { string += '' } string += '

    ' + $info[i].professor.name + '

    ' string += '
    ' string += '
    ' string += '
    ' string += '' + assessTime + '' string += '
    ' string += '
    ' string += '' string += '' string += '' string += '' string += '' string += '
    ' string += '
    ' string += '
    ' string += '

    ' if($info[i].assessContant) string += $info[i].assessContant; string += '

    ' string += '
  • ' html.push(string); var startLeval=parseInt($info[i].assessStar); document.getElementsByClassName(" protable")[0].innerHTML=html.join(''); var start=document.getElementsByClassName("star"); for(var j=0;j