user-about.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>关于-创业帮</title>
  6. <meta name="keywords" content="关于-创业帮">
  7. <meta name="description" content="关于-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="关于-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="bgc-back">
  18. <div id="app" v-cloak>
  19. <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="关于创业帮" v-if="toptitleisshow" @click-left="goback">
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <div class="bt8f7f7f7 tc pt32 pb32" v-cloak><img class="logo-about pb8 user_aboutimg" src="./static/images/app-logo.png" alt=""></div>
  23. <van-cell-group :border="false" v-cloak>
  24. <van-cell title="协议" value="" is-link @click="goagreement"></van-cell>
  25. <van-cell title="隐私政策" value="" is-link @click="policy"></van-cell>
  26. </van-cell-group>
  27. </div>
  28. <script src="./static/js/klm-vv.min.js"></script>
  29. <script src="./static/js/klm-axios-config.js"></script>
  30. <script>
  31. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  32. // 可以通过下面的方式手动注册
  33. Vue.use(vant.Lazyload);
  34. // 在 #app 标签下渲染一个按钮组件
  35. let app = new Vue({
  36. el: '#app',
  37. data() {
  38. return {
  39. toptitleisshow:false,
  40. active: 0,
  41. curversion: '1.1.2',
  42. version: '1.1.2',
  43. hasNew: false,
  44. downloadUrl:'',
  45. };
  46. },
  47. async created() {
  48. this.toptitleisshow = toptitleisshow;
  49. this.curversion = PublicLib.GetAppVersion();
  50. //- this.getversion();
  51. },
  52. methods: {
  53. async getversion(){
  54. const type = browsertype.versions.ios ? 'ios' : 'android';
  55. const res = await getRequest('/api/v1/appversion/detail?t='+Math.random(6),JSON.stringify({VersionNum:this.curversion,ClientType:type}));
  56. this.version = res.data.VersionNum;
  57. this.downloadUrl = res.data.DownloadUrl;
  58. const that = this;
  59. if(this.version !== this.curversion){
  60. that.hasNew = true;
  61. }else {
  62. that.hasNew = false;
  63. }
  64. },
  65. goback(){
  66. PublicLib.GoBack({Level:1});
  67. },
  68. goagreement(){
  69. PublicLib.Goto({Url:'user-maker-agreement'});
  70. },
  71. policy(){
  72. PublicLib.Goto({Url:'user-maker-policy'});
  73. },
  74. upload(){
  75. if(this.hasNew){
  76. PublicLib.ShowDialog({
  77. Title:'',
  78. Message:'是否更新到新的版本',
  79. ConfirmText:'确定',
  80. CancelText:'暂不',
  81. ConfirmAction:'app.downloadfn()',
  82. CanelAction:''
  83. });
  84. }
  85. },
  86. downloadfn(){
  87. PublicLib.Goto({Url:this.downloadUrl, Jump: 1});
  88. },
  89. }
  90. });
  91. </script>
  92. </body>
  93. </html>