index.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta
  6. name="viewport"
  7. content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
  8. />
  9. <title>中科兴皖 · OA 表单</title>
  10. <!-- 市场菜单:在模块脚本/history API 之前写好 title,避免 web-view 顶栏被首屏默认标题盖住 -->
  11. <script>
  12. (function () {
  13. try {
  14. var path = String((location && location.pathname) || '')
  15. var matched = path.match(
  16. /(?:^|\/)market\/(specialist|manager)\/(presign|protocol|payment-chase|payment|freight)(?:\/|$)/
  17. )
  18. if (!matched) return
  19. var modules = {
  20. presign: '预签约订单',
  21. protocol: '协议单',
  22. 'payment-chase': '催缴信息',
  23. payment: '缴费信息',
  24. freight: '运费信息'
  25. }
  26. var roles = { specialist: '专员', manager: '经理' }
  27. var moduleTitle = modules[matched[2]]
  28. if (!moduleTitle) return
  29. document.title = moduleTitle + '(' + roles[matched[1]] + ')'
  30. } catch (e) {
  31. /* ignore */
  32. }
  33. })()
  34. </script>
  35. <!-- 微信小程序 web-view 内返回宿主页:须 JSSDK ≥ 1.3.2(wx.miniProgram.navigateBack) -->
  36. <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
  37. </head>
  38. <body>
  39. <div id="app"></div>
  40. <script type="module" src="/src/main.js"></script>
  41. </body>
  42. </html>