| | |
| | | // pages/digitalCourses/digitalCoursesDetails/index.js |
| | | const app = getApp() |
| | | import moment from 'moment' |
| | | import SparkMD5 from 'spark-md5' |
| | | import FormData from '../../../utils/formdata/index.js'; |
| | | import Wxml2Canvas from 'wxml2canvas'; |
| | |
| | | fullName: '', //名称 |
| | | userPicture: '' //申请证书用户图片 |
| | | }, |
| | | userName: '', |
| | | pictureMd5: '', |
| | | publishingUnit: '', |
| | | pubCertificateHide: true, |
| | |
| | | */ |
| | | onLoad(options) { |
| | | this.setData({ |
| | | bookId: options.id |
| | | bookId: options.id, |
| | | userName: wx.getStorageSync(app.config.tokenKey) |
| | | }) |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) {} else {} |
| | | if (data) { |
| | | this.digitalCoursesDetailsGet(options.id) |
| | | this.getPlayerList() |
| | | this.getType() |
| | | } else {} |
| | | }) |
| | | } |
| | | this.digitalCoursesDetailsGet(options.id) |
| | | this.getPlayerList() |
| | | this.getType() |
| | | |
| | | this.setData({ |
| | | userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).name |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | i.children = [] |
| | | this.getTreeList(rootList, pathLength + addNum, i.children, i.productLinkPath, addNum) |
| | | if (i.children.length == 0) { |
| | | newArr[0].istry = true |
| | | delete i.children |
| | | } |
| | | } |