| | |
| | | noteList: [], |
| | | navBarHeight: '', |
| | | barHeight: '', |
| | | flag: false, // 输入框是否显示 |
| | | flag: true, // 输入框是否显示 |
| | | tabPanelstyle: 'display:flex;justify-content:center;align-items:center;', |
| | | activeValues: [0], |
| | | dialogKey: false, |
| | |
| | | showDialog(e) { |
| | | |
| | | this.setData({ |
| | | submitTitle: this.data.bookName, |
| | | dialogKey: true, |
| | | textvalue: '' |
| | | |
| | | dialogKey: true, |
| | | textvalue: '', |
| | | submitTitle: this.data.titleName |
| | | |
| | | }); |
| | | }, |
| | |
| | | // 标题输入框值 |
| | | inputChange(e) { |
| | | this.setData({ |
| | | titleName: e.detail.value |
| | | submitTitle: e.detail.value |
| | | }) |
| | | }, |
| | | |
| | |
| | | icon: 'error', |
| | | title: '请填写笔记内容', |
| | | }) |
| | | } else if (!this.data.titleName) { |
| | | } else if (!this.data.submitTitle) { |
| | | return wx.showToast({ |
| | | icon: 'error', |
| | | title: '请填写笔记标题', |
| | |
| | | submitType: "edit", |
| | | textvalue: note.content, |
| | | submitTitle: note.name, |
| | | |
| | | noteId: note.id, |
| | | dialogKey: true, |
| | | }) |
| | | console.log(this.data.submitTitle); |
| | | // this.showDialog() |
| | | }, |
| | | |
| | |
| | | return wx.getUserProfile({ |
| | | desc: '用户登录', |
| | | success: (res) => { |
| | | // console.log(res); |
| | | console.log(res); |
| | | } |
| | | }) |
| | | } |