You've already forked qlg.frontend
记事本调优
This commit is contained in:
4
js/my.js
4
js/my.js
@ -277,7 +277,9 @@ var localAuthType = localStorage.getItem("authType");
|
||||
$('.mydata-content').on('tap', '.shoppingcart', function() {
|
||||
JZL.openWindow('shoppingcart.html', 'shoppingcart.html')
|
||||
})
|
||||
|
||||
$('.mydata-content').on('tap', '.essaylist', function() {
|
||||
JZL.openWindow('notepad.html', 'notepad.html')
|
||||
})
|
||||
$('.mydata-content').on('tap', '.shangdu', function() {
|
||||
if (authType == 2) {
|
||||
JZL.openWindow('shangdu.html', 'shangdu.html')
|
||||
|
@ -1,5 +1,8 @@
|
||||
mui.plusReady(function(){
|
||||
// some ajax
|
||||
$(".footer").on("tap", ()=>{
|
||||
app.create()
|
||||
})
|
||||
})
|
||||
const app = new Vue({
|
||||
el: '#app',
|
||||
@ -22,22 +25,25 @@ const app = new Vue({
|
||||
confirmDelete(index){
|
||||
console.log("删除", this.noteData[index])
|
||||
// some ajax
|
||||
mui.toast("删除")
|
||||
window.location.reload()
|
||||
},
|
||||
edit(index){
|
||||
console.log("编辑", this.noteData[index])
|
||||
// some ajax
|
||||
mui.toast("编辑")
|
||||
window.location.reload()
|
||||
},
|
||||
create(){
|
||||
// some jump
|
||||
mui.toast("跳转")
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 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"},
|
||||
{id: 1, name: '功能正在开发中', created_at: "2019-09-09 18:00:01", updated_at: "2019-09-09 18:09:09"},
|
||||
{id: 2, name: '只是一个DEMO页', created_at: "2019-09-09 19:00:01", updated_at: "2019-09-09 20:09:09"},
|
||||
]
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user