h***@163.com
h***@163.com
  • 发布:2019-05-22 11:44
  • 更新:2019-05-23 13:55
  • 阅读:2222

新手求助,我在pages.json中设置了页面,打包APP后进不去启动页

分类:uni-app

pages.json中按照官方文档设置了页面参数,网页上调试各个页面均没有问题。打包APP后无法进入首页。我是新手,请问是哪里设置不对吗?

以下是真机调试debug

15:07:55.911 07:52.975  4865  4890 E console : (global function):2262:95  
15:07:55.932 07:52.975  4865  4890 E console : ../../../../miniApp/bookstore/common/js/jquery-3.4.1.min.js@(global function):2262:231  
15:07:55.952 07:52.975  4865  4890 E console : __webpack_require__@(global function):2113:35  
15:07:55.973 07:52.975  4865  4890 E console : (global function):10078:63  
15:07:55.993 07:52.975  4865  4890 E console : ./node_modules/babel-loader/lib/index.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/vue-loader/lib/index.js?!../../../../miniApp/bookstore/pages/account/login.vue?vue&type=script&lang=js&@(global function):10149:34  
15:07:56.013 07:52.975  4865  4890 E console : __webpack_require__@(global function):2113:35  
15:07:56.034 07:52.975  4865  4890 E console : ../../../../miniApp/bookstore/pages/account/login.vue?vue&type=script&lang=js&@(global function):9995:531  
15:07:56.056 07:52.975  4865  4890 E console : __webpack_require__@(global function):2113:35  
15:07:56.076 07:52.975  4865  4890 E console : ../../../../miniApp/bookstore/pages/account/login.vue@(global function):9956:112  
15:07:56.096 07:52.975  4865  4890 E console : __webpack_require__@(global function):2113:35  
15:07:56.116 07:52.975  4865  4890 E console : (global function):2322:56  
15:07:56.136 07:52.975  4865  4890 E console : ../../../../miniApp/bookstore/main.js?{"page":"pages%2Faccount%2Flogin"}@(global function):2324:34  
15:07:56.157 07:52.975  4865  4890 E console : __webpack_require__@(global function):2113:35  
15:07:56.178 07:52.975  4865  4890 E console : checkDeferredModules@(global function):2075:45  
15:07:56.198 07:52.975  4865  4890 E console : (global function):9944:61  
15:07:56.219 07:52.975  4865  4890 E console : require@(global function):8:663391  
15:07:56.241 07:52.975  4865  4890 E console : (global function):10189:8  
15:07:56.260 07:52.975  4865  4890 E console : anonymous@(global function):11323:7  
15:07:56.281 07:52.975  4865  4890 E console : (weex framework):1:41537  
15:07:56.301 07:52.975  4865  4890 E console : createInstance@(weex framework):1:41548  
15:07:56.323 07:52.975  4865  4890 E console : (weex framework):1:178111  
15:07:56.342 07:52.975  4865  4890 E console :  
15:07:56.362 07:52.975  4865  4890 E console :  getTemplateInfo== template md5 null ,httpHeader:{}
2019-05-22 11:44 负责人:无 分享
已邀请:
独揽月下萤火

独揽月下萤火 - 90后|前端

把整个pages.json 贴出来

  • h***@163.com (作者)

    {

    "pages": [

    //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages

    {

    "path": "pages/index/index",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/account/login",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/account/lostpass",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/account/register",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/home/home",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/square/square",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/reading/reading",

    "style": {

    "navigationBarTitleText": ""

    }

    },

    {

    "path": "pages/ucenter/ucenter",

    "style": {

    "navigationBarTitleText": ""

    }

    }

    ],

    "globalStyle": {

    "navigationStyle": "custom",

    "navigationBarTextStyle": "white"

    },


    "usingComponts": true  

    }

    2019-05-23 15:53

  • 独揽月下萤火

    回复 h***@163.com: "usingComponts": true 这句话不放这 mainfest.json中 具体请参考 http://ask.dcloud.net.cn/article/35818

    2019-05-24 08:49

该问题目前已经被锁定, 无法添加新回复