第三方平台 模板库跳转页面错误
发布于 7 年前 作者 qiaojing 4780 次浏览 来自 问答

第三方平台 模板库跳转页面错误,上传代码后,体验版出了底部的tab页面,其他页面跳转都出错,开发版正常,这是什么问题?

2 回复

我进入的是shop/show, 日志打印写在order/show,跳转地址有误。

第三方提交的extJson配置如下

$extJson = array(
      'extAppid' => $AppId,
      'ext' => array(
        'PlatformId'=> $PlatformId,
        'AgentId'=> $AgentId,
        'BusinessId'=> $BusinessId,
        'ShopId'=> $ShopId,
        'AppWid'=> $AppWid,
        'AppId'=> $AppId,
        'AppTitle'=> $AppTitle,
        'AppHomeTitle'=> $AppHomeTitle,
        'RequestUrl'=> $RequestUrl
      ),
      'extPages' => array(
          'pages/index/index' => array(
              'navigationBarTitleText'=> $AppTitle,
              'backgroundColor'=>  "#F8F8F8",
              'enablePullDownRefresh'=> false
          )
      ),
      
      'pages' => array(
        "pages/index/index",
        "pages/user/index",
        "pages/user/account",
        "pages/user/phone",
        "pages/shop/index",
        "pages/shop/show",
        "pages/shop/license",
        "pages/shop/report",
        "pages/order/index",
        "pages/order/list",
        "pages/order/show",
        "pages/order/pay",
        "pages/order/status",
        "pages/order/comment",
        "pages/coupon/list",
        "pages/address/list",
        "pages/address/edit",
        "pages/other/contact",
        "pages/other/feedback",
        "pages/other/fail"
      ),
      
      'window' => array(
            'navigationBarTitleText'=>$AppTitle
      ),
      'tabBar' => array(
        'list' => array(
          array(
            'pagePath'=>"pages/index/index",
            'text'=>"首页",
            'iconPath'=> "images/footer/home.png",
            'selectedIconPath'=> "images/footer/home-active.png"
          ),
          array(
            'pagePath'=>"pages/order/index",
            'text'=>"订单",
            'iconPath'=>"images/footer/order.png",
            'selectedIconPath'=>"images/footer/order-active.png"
          ),
          array(
            'pagePath'=>"pages/user/index",
            'text'=>"我的",
            'iconPath'=>"images/footer/user.png",
            'selectedIconPath'=>"images/footer/user-active.png"
          ),
        )
      ),
      
      'networkTimeout' => array(
          'request'    => 10000,
          'uploadFile'  => 10000,
          'downloadFile' => 10000,
          'connectSocket' => 10000
      )

    );


不单是页面跳转错误,应该是页面跳转错误+渲染错误,页面所请求的JS是其他页面的,渲染的wxml加载正确。导致所有非首页的页面都是错误的。

回到顶部