yiming
2024-04-28 04acf6421dded7b6f6eef9d2cf41d0b4a0e8dd0d
pages/bibliographyList/index.js
@@ -8,6 +8,9 @@
     * 页面的初始数据
     */
    data: {
      hiddenmodalput: false,
      name: "",
      phoneNum: '',
      input: '',
      dialogKey: '',
      showWithInput: false,
@@ -36,6 +39,10 @@
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
      this.higherGet()
      this.vocationalGet()
      this.teacherGet()
@@ -437,10 +444,12 @@
      this.setData({
        [key]: true,
        dialogKey: key,
        // [key]: true,
        // dialogKey: key,
        hiddenmodalput: true,
        input: '',
        Md5: item.datas.freeFile.FileList[0].Md5
      });
@@ -495,7 +504,53 @@
      });
      console.log(111);
    },
    //取消弹框
    cancelM: function (e) {
      this.setData({
        hiddenmodalput: false,
      })
    },
    //提交
    confirmM: function (e) {
      console.log("姓名:" + this.data.name + "  电话:" + this.data.phoneNum);
      if (!this.data.emailError && this.data.name) {
        if (this.data.name) {
          let query = {
            eMail: this.data.name,
            md5s: [this.data.Md5]
          }
          app.MG.file.sendFileWithEmail(query).then(res => {
            console.log(res);
            this.setData({
              hiddenmodalput: false,
            })
          })
        }
      } else {
        // 校验不通过,给出错误提示
        wx.showToast({
          title: '邮箱格式不正确',
          icon: 'none',
        });
      }
    },
    iName: function (e) {
      this.setData({
        name: e.detail.value
      })
      // console.log(this.data.name);
    },
    iPhoneNum: function (e) {
      this.setData({
        phoneNum: e.detail.value
      })
    },
  })