index.js 643 B

1234567891011121314151617181920212223242526272829
  1. import { getIntroduce } from "../../../../core/utils/ywtService";
  2. import { envContext } from "../../../../core/utils/constants";
  3. Component({
  4. props: {},
  5. data: {
  6. content: "",
  7. },
  8. didMount() {
  9. // hospitalId 白云 41,太和12
  10. const hospitalId = envContext == "th" ? 12 : 41;
  11. this.getIntroduce(hospitalId);
  12. },
  13. methods: {
  14. async getIntroduce(hospitalId = 41) {
  15. console.log("xxxx000");
  16. const [err, result] = await getIntroduce({
  17. subHospitalId: hospitalId,
  18. type: 3,
  19. });
  20. if (!err) {
  21. this.setData({
  22. content: result.content,
  23. });
  24. }
  25. },
  26. },
  27. });