123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- const app = getApp<IAppOption>()
- Page({
-
- data: {
- src: app.globalData.baseUrl + '/classroom-app/#/preview-protocol?wx=3'
- },
-
- onLoad(options: any) {
-
- if(options.type) {
- if(options.type === "privacy") {
- this.setData({
- src: app.globalData.baseUrl + '/classroom-app/#/privacy-protocol?wx=3'
- })
- } else if(options.type === "register") {
- this.setData({
- src: app.globalData.baseUrl + '/classroom-app/#/preview-protocol?wx=3'
- })
- } else if(options.type == 'activation') {
- this.setData({
- src: app.globalData.baseUrl + '/classroom-app/#/activationRegister?wx=wx_lite&code=' + options.code
- })
-
-
-
- }
- }
-
- },
- onPostMessage(e: any) {
- console.log(e, 'e------------------')
-
-
-
-
-
-
-
-
-
-
-
- },
-
- onReady() {
- },
-
- onShow() {
- },
-
- onHide() {
- },
-
- onUnload() {
- },
-
- onPullDownRefresh() {
- },
-
- onReachBottom() {
- },
-
- onShareAppMessage() {
- }
- })
|