12345678910111213141516171819202122232425262728 |
- import { getIntroduce } from "../../../../core/utils/ywtService";
- import { envContext } from "../../../../core/utils/constants";
- Component({
- props: {},
- data: {
- content: "",
- },
- didMount() {
- // hospitalId 白云 41,太和12
- const { subHospitalId } = this.$page.data.query || {};
- this.getIntroduce(subHospitalId);
- },
- methods: {
- async getIntroduce(subHospitalId) {
- const [err, result] = await getIntroduce({
- subHospitalId: Number(subHospitalId),
- type: 3,
- });
- if (!err && result.content !== "<p></p>") {
- this.setData({
- content: result.content,
- });
- }
- },
- },
- });
|