| | |
| | | * 页面的初始数据 |
| | | */ |
| | | data: { |
| | | personalDataEmail: '', |
| | | hiddenmodalput: false, |
| | | name: "", |
| | | phoneNum: '', |
| | |
| | | }); |
| | | }, |
| | | }) |
| | | |
| | | this.ceShi() |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | fields: { |
| | | jsek_link: [], |
| | | content: [], |
| | | subtitle: [], |
| | | content: [], |
| | | fileType: [], |
| | | jsek_resource: [], |
| | | freeFile: [], |
| | |
| | | }) |
| | | this.setData({ |
| | | higherList: res.datas, |
| | | higherTotal: res.total |
| | | higherTotal: res.total.le |
| | | }) |
| | | this.setData({ |
| | | loading: false, //开启骨架屏加载 |
| | |
| | | Md5: item.datas.freeFile.FileList[0].Md5, |
| | | dialogBox: true |
| | | }) |
| | | // wx.showModal({ |
| | | // title: '请输入邮箱', |
| | | // content: '', |
| | | // confirmColor: '#ff6c00', |
| | | // cancelColor: '#949494', |
| | | // placeholderText: '请输入邮箱号', |
| | | // editable: true, |
| | | // complete: (res) => { |
| | | // if (res.cancel) { |
| | | // console.log('取消'); |
| | | // } |
| | | // if (res.confirm) { |
| | | // this.setData({ |
| | | // input: res.content |
| | | // }) |
| | | // this.confirmM() |
| | | // } |
| | | // wx.scanCode({ |
| | | // success: res => { |
| | | // console.log(res); |
| | | // } |
| | | // }) |
| | | }, |
| | | // 弹窗取消 |
| | | closeDialog() { |
| | | this.setData({ |
| | | dialogBox: false |
| | | dialogBox: false, |
| | | // input: '' |
| | | }) |
| | | }, |
| | | //提交 |
| | | confirmM(e) { |
| | | wx.showLoading({ |
| | | title: '发送中...', |
| | | }) |
| | | const isEmailValid = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/.test(this.data.input); |
| | | if (isEmailValid && this.data.input) { |
| | | this.setData({ |
| | |
| | | md5s: [this.data.Md5] |
| | | } |
| | | app.MG.file.sendFileWithEmail(query).then(res => { |
| | | wx.hideLoading() |
| | | if (res) { |
| | | wx.showToast({ |
| | | icon: 'success', |
| | |
| | | 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); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | }) |