You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
372 B
19 lines
372 B
import { getMail } from '../../api/mail' |
|
import { BASE_URL } from '../../api/request' |
|
Page({ |
|
data: { |
|
mail: {}, |
|
attachments: [], |
|
BASE_URL: BASE_URL |
|
}, |
|
onLoad(options) { |
|
console.log(options.id) |
|
getMail(options.id).then(data => { |
|
this.setData({ |
|
mail: data, |
|
attachments: JSON.parse(data.attachments) |
|
}) |
|
}) |
|
}, |
|
|
|
});
|