user-about copy.html 4.3 KB

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