导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. 阿威-1026
    阿
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    阿威-1026

    @阿威-1026

    0
    声望
    3
    帖子
    88
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    阿威-1026 关注

    阿威-1026 发布的帖子

    • 二次分享,打开有第一次分享参数

      一个详情页走了分享,分享的地址是index带参数。
      点击分享进入首页,通过参数判断 跳转到详情页。
      返回首页,切换另一个tab,分享这个tab不带参数
      点击第二次分享进入tab,在切换到 index,发现query内有第一次分享的参数,会触发跳转详情页。
      下面是代码里追到的。
      this._ultron.on('data', (data) => {
      this.bytesReceived += data.length;
      this._receiver.add(data);
      });
      data:
      "{"data":{"script":"WeixinJSBridge.subscribeHandler('onAppRoute',{"path":"pages/index/index.html","query":{"template":"template","id":"3021"},"openType":"switchTab"},15,{'nativeTime':1566814310557});","evaluate_id":213},"type":"handleEvaluateJavascript"}"

      发了几次问题贴,一个都没回复。希望这个不是摆设!!!!

      发布在 微信小程序
      阿
      阿威-1026
    • 不同页面跳转会丢失页面中的组件事件

      Taro.reLaunch(Object object)
      跳转打开的页面,页面内的所有的组件事件都是not function

      Taro.switchTab(Object object)
      跳转打开的页面,没有问题。

      _this.props.onNetWork is not a function;at pages/logs/logs onReady function;at api getNetworkType success callback function

      TypeError: _this.props.onNetWork is not a function
      Failed prop type: The prop onNetWork is marked as required in BaseComponent, but its value is undefined.

      发布在 字节跳动小程序
      阿
      阿威-1026
    • 反复进出头条字节小程序,会出现组件间多个事件不存在

      父组件
      netWork = () => { }

      render() {
      return (
      <GetWifi
      ref={(ref) => { this.GetWifi = ref }}
      onNetWork={this.netWork.bind(this)}
      />
      )
      }

      子组件
      static propTypes = {
      onNetWork: PropTypes.func.isRequired,
      }

      this.props.onNetWork()

      _this.props.onNetWork is not a function;at pages/logs/logs onReady function;at api getNetworkType success callback function

      TypeError: _this.props.onNetWork is not a function
      Failed prop type: The prop onNetWork is marked as required in BaseComponent, but its value is undefined.

      发布在 字节跳动小程序
      阿
      阿威-1026