user-about1.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 pt0" style="padding-top:0;">
  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" src="./static/images/logo-text.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. <van-dialog style="border-radius:4px;" v-model="closegestureisshow" confirm-button-color="#ff502a" width="70%" message="是否更新到新的版本" show-cancel-button @confirm="closegesture" @cancel="unclosegesture"> </van-dialog>
  28. </div>
  29. <script src="./static/js/klm-vv.min.js"></script>
  30. <script src="./static/js/appfunc.min.js"></script>
  31. <script src="./static/js/klm-axios-config.js"></script>
  32. <script src="./static/js/publicfn.js"></script>
  33. <script>
  34. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  35. // 可以通过下面的方式手动注册
  36. Vue.use(vant.Lazyload);
  37. // 在 #app 标签下渲染一个按钮组件
  38. let app = new Vue({
  39. el: '#app',
  40. data() {
  41. return {
  42. closegestureisshow:false,
  43. toptitleisshow:false,
  44. active: 0,
  45. curversion: '1.1.2',
  46. version: '1.1.2',
  47. hasNew: false,
  48. downloadUrl:'',
  49. };
  50. },
  51. async created() {
  52. this.toptitleisshow = toptitleisshow;
  53. this.curversion = PublicLib.GetAppVersion();
  54. this.getversion();
  55. },
  56. methods: {
  57. async getversion(){
  58. const type = browsertype.versions.ios ? 'ios' : 'android';
  59. const res = await getRequest('api/v1/appversion/detail',JSON.stringify({VersionNum:this.curversion,ClientType:type,Role:2}));
  60. this.version = res.data.VersionNum;
  61. this.downloadUrl = res.data.DownloadUrl;
  62. const that = this;
  63. if(this.version !== this.curversion){
  64. that.hasNew = true;
  65. }else {
  66. that.hasNew = false;
  67. };
  68. },
  69. goback(){
  70. PublicLib.GoBack({Level:1});
  71. },
  72. goagreement(){
  73. PublicLib.Goto({Url:'user-maker-agreement'});
  74. },
  75. policy(){
  76. PublicLib.Goto({Url:'user-maker-policy'});
  77. },
  78. upload(){
  79. if(this.hasNew){
  80. this.closegestureisshow = true;
  81. //- PublicLib.ShowDialog({
  82. //- Title:'',
  83. //- Message:'是否更新到新的版本',
  84. //- ConfirmText:'确定',
  85. //- CancelText:'暂不',
  86. //- confirmButtonColor:'#FFD500',
  87. //- ConfirmAction:'app.downloadfn()',
  88. //- CanelAction:''
  89. //- });
  90. }
  91. },
  92. unclosegesture(){
  93. this.closegestureisshow = false;
  94. },
  95. closegesture(){
  96. PublicLib.Goto({Url:this.downloadUrl, Jump: 1});
  97. },
  98. }
  99. });
  100. </script>
  101. </body>
  102. </html>