|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
import {
|
|
|
createStoreBindings
|
|
|
} from 'mobx-miniprogram-bindings'
|
|
@@ -15,7 +14,7 @@ Page({
|
|
|
readingType: '',
|
|
|
uploadHide: '',
|
|
|
// 朗读赛的id
|
|
|
- activityId: ''
|
|
|
+ activityId: '',
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -23,6 +22,15 @@ Page({
|
|
|
*/
|
|
|
async onLoad(options) {
|
|
|
console.log(options);
|
|
|
+ wx.enableAlertBeforeUnload({
|
|
|
+ message: "未完成上传,是否退出?",
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res)
|
|
|
+ },
|
|
|
+ fail: function (e) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
+ })
|
|
|
this.storeBindings = createStoreBindings(this, {
|
|
|
store,
|
|
|
fields: {
|