hsy-h5-hub
实时调度 H5 项目
H5 项目集合
所有子应用独立开发独立部署,但是在部署阶段,会将 dist 上传到 cdn 规定路径下
flyweight-prefix
'/goodsList',
'/custVendorListWillContact',
'/custVendorListWithProblem', // 问题客户
'/custVendorListAll',
'/checkGoods',
'/commoditySharing', // 推荐商品
'/couponSharing', // 促销活动分享页面
'/makePoster', // 海报分享页面
'/Editor', // 添加备注跟进
'/CustDetail', // 客户详情页面
'/extension', // 线上推广分析
'/p-rank',
'/cust-rank', // 客户活跃排行
'/emp-rank',
'/emp-sd',
'/customer',
'/promotion', // 商品推广
'/mshop', // 访客数 | 浏览量 |
'/wechatInvitationFromOldCust',
'/customerManager', // 客户管理
'/customerSupport',
'/promotionFilter',
'/promotionDetails',
'/treescreen',
'/screen',
'/checkboxSelect',
'/SelectPaymentDate',
'/SelectPriceList',
'/SelectReceiptType',
'/SelectCustomerType',
'/custVendorLabel',
'/inviteCustomers',
'/selectSalesmen',
'/activePda',
'/multiGraphShareTo',
'/multiGraphShare',
'/addCustomer',
'/callPlanning',
'/business',
'/createPlan',
'/customerList',
'/routeManager',
'/addRoute',
'/visitSettings',
'/visitTask',
'/imageCollection',
'/visitSummary',
'/promocouponshare', // 分享促销
'/couponlistshare', // 分享优惠券
hsy-h5-prefix
'/sale',
'/inventory',
'/settings',
'/product',
'/capital'
H5 页面调用方法
主应用域名
通过网址直接访问
https://[env-]chanjet-h5-hub.chanjet.com/prefix
通过 api 访问
window.$navigateToUrl((url: string));
history.pushState(state, title, url);
环境准备
- nodejs >= 10.0.0 # nodejs尽量使用最新的 lts 版本,
- vscode # IDE统一使用`vscode`, 内置的辅助插件有助于快速开发
- yarn # 包管理统一使用yarn
- npm.rd.chanjet.com # 必须指定npm私服, 核心依赖只能从私服拉取
如何调试本地子应用
以小档案为例演示如何连接本地应用

- 首先从基座中打开小档案的页面例如:
https://inte-chanjet-h5-hub.chanjet.com/archives#/archives-enter
- 添加调试参数
- 参数规则:
应用名称=本地开发端口
, - 参数:
archives=8089
, - 完整地址:
https://inte-chanjet-h5-hub.chanjet.com/archives#/archives-enter?archives=8089
刷新页面
或直接粘贴完整地址进入
在 console 中查看变更情况
修改前

修改后
