css
litian
2024-07-09 e2b9cf5cb19ba0ae4bffd787d96f0d0cb8fb63bf
pages/bibliographyList/index.js
@@ -8,6 +8,7 @@
     * 页面的初始数据
     */
    data: {
      personalDataEmail: '',
      hiddenmodalput: false,
      name: "",
      phoneNum: '',
@@ -67,6 +68,8 @@
          });
        },
      })
      this.ceShi()
    },
    /**
@@ -151,8 +154,8 @@
        },
        fields: {
          jsek_link: [],
          content: [],
          subtitle: [],
          content: [],
          fileType: [],
          jsek_resource: [],
          freeFile: [],
@@ -429,7 +432,8 @@
    // 弹窗取消
    closeDialog() {
      this.setData({
        dialogBox: false
        dialogBox: false,
        // input: ''
      })
    },
    //提交
@@ -467,5 +471,26 @@
      this.setData({
        input: e.detail.value
      })
    },
    ceShi() {
      let that = this;
      // 获取Storage中的数据
      wx.getStorage({
        key: 'website-front-userInfo',
        success(res) {
          let datas = JSON.parse(res.data)
          console.log(datas.Email);
          let personalData = JSON.parse(datas.data)
          that.setData({
            input: datas.Email
          })
          console.log(that.data.value);
        },
        fail(err) {
          console.error(err);
        }
      });
    }
  })