Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

关于实现page跳转过渡动画 #16

@ACERY1

Description

@ACERY1

小程序page跳转在完成数据渲染前的过渡动画实现

注意以下几点:

  1. showLoading是系统级的 无法改变样式
  2. wepy采用继承无法继承template
  3. 无法进行dom操作
  4. 采用组件调用的方式太过于繁琐
  5. page无法做到js改变其样式
  6. 小程序提供的app.config太少,无法自定义

最后方案:

在相应的业务page内导入loader组件,在完成部分请求后,全局广播this.$broadcast('loader-close')关闭即可。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions