Browse Source

Merge branch 'tiaosheng-zx' of dd.tall.wiki:wally/plugin-templete into tiaosheng-zx

ts-red-header-file-review
jarvis 4 years ago
parent
commit
d4f50b6937
  1. 57
      index.html

57
index.html

@ -93,7 +93,7 @@
</div>
</div>
<div class="border-2 w-full mt-2.5 flex justify-between p-2 text-sm reason-box">
<p style="color: #999999;">驳回原因</p></p>
<p class="w-20 flex-shrink-0" style="color: #999999;">驳回原因</p></p>
<div>
这里是驳回原因这里是驳回原因这里是驳回原因这里是驳回原因
</div>
@ -164,7 +164,7 @@
}),
method: 'POST',
body: JSON.stringify({
projectId: that.projectId
param: {projectId: that.projectId}
})
})
.then(function(response) {
@ -221,30 +221,35 @@
// 提交
submit(){
var that = this
fetch(`https://test.tall.wiki/gateway/sports/training/audit`, {
headers: new Headers({
'Authorization': 'Bearer ' + that.token,
'Content-Type': 'application/json; charset=utf-8'
}),
method: 'POST',
body: JSON.stringify({
id: id,
type: 2,
remark: that.dom.querySelector(".reason").value
})
})
.then(function(response) {
return response.json();
})
.then(function(res) {
const { success, code, data, msg } = res;
if (success && code === 200) {
that.hide();
} else {
console.log('msg: ', msg);
}
});
var that = this;
that.hide();
var reasonBox = that.dom.querySelector('.reason-box');
reasonBox.style.display = 'flex';
// fetch(`https://test.tall.wiki/gateway/sports/training/audit`, {
// headers: new Headers({
// 'Authorization': 'Bearer ' + that.token,
// 'Content-Type': 'application/json; charset=utf-8'
// }),
// method: 'POST',
// body: JSON.stringify({
// param: {
// id: id,
// type: 2,
// remark: that.dom.querySelector(".reason").value
// }
// })
// })
// .then(function(response) {
// return response.json();
// })
// .then(function(res) {
// const { success, code, data, msg } = res;
// if (success && code === 200) {
// that.hide();
// } else {
// console.log('msg: ', msg);
// }
// });
},
// 取消

Loading…
Cancel
Save