index.js 409 B

123456789101112131415161718192021222324252627
  1. Component({
  2. data: {
  3. loading: false,
  4. refreshIcon: 'http://static.yutao2012.com/%E5%88%B7%E6%96%B0.png'
  5. },
  6. props: {
  7. cardInfo: {}
  8. },
  9. didUpdate() {},
  10. didUnmount() {},
  11. methods: {
  12. async onRefresh() {
  13. const {
  14. healthCardId
  15. } = this.props.cardInfo;
  16. await this.props.onRefresh(healthCardId);
  17. },
  18. onBack() {
  19. this.props.onBackCard();
  20. }
  21. }
  22. });