Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

31
static/app/js/msg_con.js Executable file
View File

@ -0,0 +1,31 @@
mui.plusReady(function() {
var token = localStorage.getItem('token');
var self = plus.webview.currentWebview();
var msgId = self.data_msgId;
mui.ajax(hyhUrl('app/messages/getById'), { 
headers: { 
"HYH-Token": token
},
data: {
msgId: msgId
},
dataType: 'json', //服务器返回json格式数据  
type: 'post', //HTTP请求类型  
timeout: 10000, //超时时间设置为10秒  
success: function(data) {           //服务器返回响应,根据响应结果,分析是否登录成功;  
var data = toJson(data);
if(data.status == 1) {
data = data.data;
var html = '<div class="time">' + data.createTime + '</div><div class="con_">' + data.msgContent + '</div>';
$('.con').html(html)
} else {
console.log(data.status)
}
},
error: function(xhr, type, errorThrown) {           //异常处理;  
// alert(type);      
}  
}); 
})