| | |
| | | // pages/resourceDetails/index.js |
| | | const app = getApp() |
| | | const myAudio = wx.createInnerAudioContext(); |
| | | import { |
| | | loginInfo |
| | | } from '../../../../assets/js/login'; |
| | | // innerAudioContext.onPlay(function callback), |
| | | // InnerAudioContext.onTimeUpdate(function callback) |
| | | Page({ |
| | |
| | | parentName: options.parentName, |
| | | }) |
| | | } |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) { |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | } else { |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | } |
| | | }) |
| | | } else { |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | } |
| | | }, |
| | | |
| | | /** |