x***@163.com
x***@163.com
  • 发布:2020-02-19 19:50
  • 更新:2020-03-05 21:02
  • 阅读:1982

h5打包后 有一些请求了其他文件

分类:uni-app

https://cdn.dcloud.net.cn/img/shadow-grey.png

https://tongji.dcloud.io/uni/stat.gif?requests=%5B%22ak%3DUNI0B4E6B4%26uuid%3D1582112420600429727%26lt%3D3%26ut%3Dh5%26urlref%3Dpages%2Fpublic%2Flogin%26urlref_ts%3D3%26ch%3D%26usv%3D2.0.0-alpha-25120200103005%26t%3D1582112973%26p%3Da%26ttn%3D%26ttpj%3D%E7%99%BB%E5%BD%95%26ttc%3D%22%5D&t=1582112973&usv=2.0.0-alpha-25120200103005

是为什么呢?

2020-02-19 19:50 负责人:无 分享
已邀请:
1***@163.com

1***@163.com

遇到同样 问题

2***@qq.com

2***@qq.com

同样 解决了吗

DCloud_heavensoft

DCloud_heavensoft

  1. HBuilderX 2.2.3起,新增了uni统计,一份报表看全端数据,详见 https://tongji.dcloud.io 。
    在小程序端,使用uni统计需在安全域名名单中新增 tongji.dcloud.io 。如不需要uni统计,可在manifest中关闭。开通和关闭详见:https://ask.dcloud.net.cn/article/36303

  2. 是导航栏下面的阴影线,见pages.json的文档,如果没用到,可以删除

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

    shadow-grey.png 确实没有找到,

    我整个 pages.json

    {

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

    {

    "path": "pages/public/login",

    "style": {

    "navigationBarTitleText": "登录"

    }

    },

    {

    "path": "pages/public/pwd",

    "style": {

    "navigationBarTitleText": "找回密码"

    }

    },

    {

    "path": "pages/public/pay/pay",

    "style": {

    "navigationBarTitleText": "支付订单"

    }

    },

    {

    "path": "pages/public/pay/paystate",

    "style": {

    "navigationBarTitleText": "支付状态"

    }

    },

    {

    "path": "pages/public/pay/notify",

    "style": {

    "navigationBarTitleText": "回调"

    }

    },

    {

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

    "style": {

    "navigationBarTitleText": "用户中心"

    }

    },

    {

    "path": "pages/user/info/index",

    "style": {

    "navigationBarTitleText": "用户信息"

    }

    },

    {

    "path": "pages/user/info/changepassword",

    "style": {

    "navigationBarTitleText": "修改密码"

    }

    },

    {

    "path": "pages/user/message/list",

    "style": {

    "navigationBarTitleText": "消息列表"

    }

    },

    {

    "path": "pages/user/report/index",

    "style": {

    "navigationBarTitleText": "报表"

    }

    },

    {

    "path": "pages/user/staff/list",

    "style": {

    "navigationBarTitleText": "维修工程师",

    "app-plus": {

    "titleNView": {

    "buttons": [{

    "text": "创建",

    "fontSize": "16px",

    "color": "#FFFFFF"

    }]

    }

    }

    }

    },

    {

    "path": "pages/user/staff/create",

    "style": {

    "navigationBarTitleText": "创建维修工程师"

    }

    },

    {

    "path": "pages/user/workorder/list",

    "style": {

    "navigationBarTitleText": "工单列表",

    "enablePullDownRefresh": true

    }

    },

    {

    "path": "pages/user/workorder/crate",

    "style": {

    "navigationBarTitleText": "创建工单"

    }

    },

    {

    "path": "pages/user/workorder/select",

    "style": {

    "navigationBarTitleText": "维修服务"

    }

    },

    {

    "path": "pages/user/workorder/order",

    "style": {

    "navigationBarTitleText": "工单详细"

    }

    },

    {

    "path": "pages/user/workorder/appraise",

    "style": {

    "navigationBarTitleText": "工单评价"

    }

    },

    {

    "path": "pages/user/other/op",

    "style": {

    "navigationBarTitleText": "操作说明"

    }

    },

    {

    "path": "pages/user/other/contact",

    "style": {

    "navigationBarTitleText": "联系我们"

    }

    },

    {

    "path": "pages/user/news/list",

    "style": {

    "navigationBarTitleText": "最新新闻",

    "enablePullDownRefresh": true

    }

    },

    {

    "path": "pages/user/news/detail",

    "style": {

    "navigationBarTitleText": "新闻详细"

    }

    },

    {

    "path": "pages/user/shop/cart",

    "style": {

    "navigationBarTitleText": "购物车"

    }

    },

    {

    "path": "pages/user/shop/order",

    "style": {

    "navigationBarTitleText": "订单列表"

    }

    },

    {

    "path": "pages/user/shop/orderdetail",

    "style": {

    "navigationBarTitleText": "订单详细"

    }

    },

    {

    "path": "pages/user/shop/index",

    "style": {

    "navigationBarTitleText": "配件商城"

    }

    },

    {

    "path": "pages/user/shop/list",

    "style": {

    "navigationBarTitleText": "产品列表"

    }

    },

    {

    "path": "pages/user/shop/product",

    "style": {

    "navigationBarTitleText": "产品详细"

    }

    },

    {

    "path": "pages/user/shop/address",

    "style": {

    "navigationBarTitleText": "地址列表"

    }

    },

    {

    "path": "pages/user/shop/addressmanage",

    "style": {

    "navigationBarTitleText": "创建地址"

    }

    },

    {

    "path": "pages/user/shop/createorder",

    "style": {

    "navigationBarTitleText": "创建订单"

    }

    }


    ],  
    "globalStyle": {
    "navigationBarTitleText": "工单系统",
    "navigationBarBackgroundColor": "#007AFF",
    "backgroundColor": "#F8F8F8",
    "backgroundColorTop": "#F4F5F6",
    "backgroundColorBottom": "#F4F5F6"
    },
    "tabBar": {
    "color": "#7A7E83",
    "selectedColor": "#007AFF",
    "backgroundColor": "#F8F8F8",
    "list": [{
    "pagePath": "pages/user/index",
    "iconPath": "static/ico_home.png",
    "selectedIconPath": "static/ico_homeHL.png",
    "text": "首页"
    }, {
    "pagePath": "pages/user/workorder/list",
    "iconPath": "static/ico_work.png",
    "selectedIconPath": "static/ico_workHL.png",
    "text": "工单"
    },
    {
    "pagePath": "pages/user/info/index",
    "iconPath": "static/ico_info.png",
    "selectedIconPath": "static/ico_infoHL.png",
    "text": "资料"
    }, {
    "pagePath": "pages/user/report/index",
    "iconPath": "static/ico_report.png",
    "selectedIconPath": "static/ico_reportHL.png",
    "text": "报表"
    }
    ]
    }

    }

    2020-03-05 20:45

DCloud_heavensoft

DCloud_heavensoft

这个图片是阴影效果预加载加速显示用的,去掉的方法:

H5 平台:在起始页 html 文件中添加下面代码,参考 manifest H5 index.html 模板配置

<head>  

<style>  
    body::after {  
        content: none;  
    }  
</style>  

</head>

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