直接在 class中使用 wx 打包的时候报错 找不到微信对象
于是迂回了一下解决了这个问题
在需要使用的 class中申明一下
public Wi: any = window; public Wx: any = this.Wi.wx;