code: function doNavigate() {
    var _data$url = this.data.url,
        url = _data$url === undefined ? '' : _data$url;
  
    var type = typeof this.data.isLink;
  
    if (!this.data.isLink || !url || url === 'true' || url === 'false') return;
  
    if (type !== 'boolean' && type !== 'string') {
      warn('isLink 属性值必须是一个字符串或布尔值', this.data.isLink);
      return;
    }
  
    if (['navigateTo', 'redirectTo', 'switchTab', 'reLaunch'].indexOf(this.data.linkType) === -1) {
      warn('linkType 属性可选值为 navigateTo，redirectTo，switchTab，reLaunch', this.data.linkType);
      return;
    }
    wx[this.data.linkType].call(wx, { url: url });
  }
docs: 处理跳转