app.ux 831 B

12345678910111213141516171819202122232425262728293031323334
  1. <!--
  2. * @Author: ZhengXiaowei
  3. * @Date: 2019-10-15 12:02:18
  4. * @LastEditors: ZhengXiaowei
  5. * @LastEditTime: 2019-10-15 14:02:07
  6. * @Description: 主入口
  7. -->
  8. <script>
  9. /**
  10. * 应用级别的配置,供所有页面公用
  11. */
  12. import "./helper/regenerator.js";
  13. import it from "./helper/interface.js";
  14. export default {
  15. onCreate() {
  16. // 一进入程序就判断是否添加过主屏幕
  17. it.shortcut.systemPromptEnabled = false;
  18. it.shortcut.hasInstalled({
  19. success: (ret) => {
  20. if (!ret) this.$def.data.backClickCount = 0;
  21. else this.$def.data.backClickCount = 1;
  22. }
  23. })
  24. },
  25. showMenu: it.showMenu,
  26. getDeviceInfo: it.getDeviceInfo,
  27. createShortcut: it.hasCreateShortCut,
  28. data: {
  29. backClickCount: 0,
  30. cutomerQrcode: "https://cdn-novel.iycdm.com/static/img/kefu.jpg"
  31. }
  32. };
  33. </script>