记事本添加,待编写绑定跳转

This commit is contained in:
2019-09-09 15:41:03 +08:00
parent 2f9b97e112
commit 165bcbece0
3 changed files with 24 additions and 5 deletions

View File

@ -1,13 +1,11 @@
mui.plusReady(function(){
// some ajax
})
app = new Vue({
const app = new Vue({
el: '#app',
data() {
return {
noteData: [
{id: 1, name: '这是一个名字', created_at: "2019-07-06 18:00:01", updated_at: "2019-07-06 18:00:09"},
{id: 2, name: '这是二个名字', created_at: "2019-07-06 19:00:01", updated_at: "2019-07-06 20:00:09"},
]
}
},
@ -23,14 +21,23 @@ app = new Vue({
},
confirmDelete(index){
console.log("删除", this.noteData[index])
// some ajax
window.location.reload()
},
edit(index){
console.log("编辑", this.noteData[index])
// some ajax
window.location.reload()
},
create(){
// some jump
}
},
mounted() {
setTimeout(()=>{document.getElementById("app").visibility = "visible";}, 1000)
// some ajax
this.noteData = [
{id: 1, name: '这是一个名字', created_at: "2019-07-06 18:00:01", updated_at: "2019-07-06 18:00:09"},
{id: 2, name: '这是二个名字', created_at: "2019-07-06 19:00:01", updated_at: "2019-07-06 20:00:09"},
]
}
})