3***@qq.com
3***@qq.com
  • 发布:2020-08-15 00:08
  • 更新:2020-08-15 00:08
  • 阅读:1056

微信小程序,pages.json文件页面声明mp-weixin属性内容无法编译到小程序开发工具【报Bug】

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 最新版本

HBuilderX类型: 正式

HBuilderX版本号: 2.8.6

第三方开发者工具版本号: 1.03.2006090

基础库版本号: 2.12.1

项目创建方式: HBuilderX

示例代码:

【uniapp pages.json】
{
"path" : "pages/shop/shop",
"style" : {
"navigationBarTitleText" : "身边云",
"onReachBottomDistance" : 100,
"enablePullDownRefresh" :false,//下拉刷新
"navigationStyle":"custom",
"mp-weixin":{
"disableScroll":true,
"permission":{
"scope.userLocation": {

                     "desc": "你的位置信息将用于小程序位置接口的效果展示"  

                     }  
                 }  

            },   

            "app-plus" : {  
                "bounce":"none",  
                "titleNView" : false  
            }  
        }  
    }  

【微信小程序编译后的代码】
{
"pages": [
"pages/shop/shop",
"pages/myteam/myteam",
"pages/sou/sou",
"pages/shopcart/shopcart",
"pages/user/user",
"pages/my/my",
"pages/yuyue/yuyue"
],
"subPackages": [
{
"root": "pagesA",
"pages": [
"shop_cotegory_list/shop_cotegory_list",
"riji/riji",
"product/product",
"fx/fx",
"details/details",
"chanpin/chanpin",
"order/order",
"ms_product/ms_product",
"ms_list/ms_list"
]
},
{
"root": "pagesB",
"pages": [
"bind/bind",
"xiu_pwd/xiu_pwd",
"address/address",
"purse/purse",
"hongbao/hongbao",
"dingdan/dingdan",
"pingtuan/pingtuan",
"map/map"
]
}
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "身边云",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#f9f9f9",
"animationType": "zoom-fade-out"
},
"tabBar": {
"color": "#747474",
"backgroundColor": "#ffffff",
"selectedColor": "#e61e70",
"list": [
{
"pagePath": "pages/shop/shop",
"text": "主页",
"iconPath": "static/home.png",
"selectedIconPath": "static/home2.png"
},
{
"pagePath": "pages/sou/sou",
"text": "分类",
"iconPath": "static/myteam.png",
"selectedIconPath": "static/myteam2.png"
},
{
"pagePath": "pages/yuyue/yuyue",
"text": "预约",
"iconPath": "static/xx.png",
"selectedIconPath": "static/xx2.png"
},
{
"pagePath": "pages/my/my",
"text": "我的",
"iconPath": "static/my.png",
"selectedIconPath": "static/my2.png"
}
],
"midButton": {
"width": "50px",
"height": "70px",
"text": "搜索",
"iconPath": "static/sous.png",
"iconWidth": "50px"
}
},
"networkTimeout": {
"downloadFile": 120000
},
"permission": {},
"usingComponents": {
"uni-popup": "/components/uni-popup/uni-popup",
"w-picker": "/components/w-picker/w-picker",
"uni-swiper-dot": "/components/uni-swiper-dot/uni-swiper-dot",
"uni-transition": "/components/uni-transition-go/uni-transition",
"uni-swipe-action": "/components/uni-swipe-action/uni-swipe-action/uni-swipe-action",
"uni-swipe-action-item": "/components/uni-swipe-action/uni-swipe-action-item/uni-swipe-action-item",
"mpvue-citypicker": "/components/mpvue-citypicker/mpvueCityPicker"
}
}

操作步骤:

源码:
"mp-weixin":{
"disableScroll":true,
"permission":{
"scope.userLocation": {

                     "desc": "你的位置信息将用于小程序位置接口的效果展示"  

                     }  
                 }  

            }

预期结果:

编译后:
"permission":{}

实际结果:

无法编译到微信开发工具

bug描述:

pages.json文件页面声明
mp-weixin属性内容无法
编译到小程序开发工具【报Bug】

2020-08-15 00:08 负责人:无 分享
已邀请:

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