|
|
|
@ -25,6 +25,7 @@ |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
copyWriting: '', |
|
|
|
|
url: '', |
|
|
|
|
email: '', |
|
|
|
|
otherEmail: '', |
|
|
|
@ -40,6 +41,7 @@ |
|
|
|
|
const pages = getCurrentPages() |
|
|
|
|
const { options } = pages[pages.length - 1] |
|
|
|
|
this.url = options.url |
|
|
|
|
this.copyWriting = options.copyWriting |
|
|
|
|
this.getInfo() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -65,7 +67,8 @@ |
|
|
|
|
if (this.myVal && !this.email) return this.$util.errMsg('请选择其他邮箱!') |
|
|
|
|
if (this.otherVal && !otherEmail) return this.$util.errMsg('请输入邮箱!') |
|
|
|
|
mailFileSend({ |
|
|
|
|
copyWriting: this.url, |
|
|
|
|
url: this.url, |
|
|
|
|
copyWriting: this.copyWriting, |
|
|
|
|
mail: this.myVal ? this.email : otherEmail |
|
|
|
|
}).then(res => { |
|
|
|
|
this.$util.sucMsg('发送成功!') |
|
|
|
|