Explorar el Código

fix: handle index pages onshow function

wangyuan hace 2 años
padre
commit
f124e79ea6
Se han modificado 2 ficheros con 2 adiciones y 7 borrados
  1. 0 2
      pages/handleFile/handleFile.js
  2. 2 5
      pages/index/index.js

+ 0 - 2
pages/handleFile/handleFile.js

@@ -124,8 +124,6 @@ Page({
 
   /* 确定 */
   handleConfirm () {
-    console.log(this.data.fileList);
-    console.log(this.data.delFileList);
     var delPara = {}
     for (let index = 0; index < this.data.delFileList.length; index++) {
       const element = this.data.delFileList[index];

+ 2 - 5
pages/index/index.js

@@ -22,11 +22,8 @@ Page({
     QRCodeBase64: '',
     qrcodeDialog: false
   },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onLoad() {
+  
+  onShow () {
     this.initIndexData()
   },
   onPullDownRefresh () {