123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>关于-创业帮</title>
- <meta name="keywords" content="关于-创业帮">
- <meta name="description" content="关于-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="关于-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="bgc-back pt0" style="padding-top:0;">
- <div id="app" v-cloak>
- <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="关于创业帮" v-if="toptitleisshow" @click-left="goback">
- <template #left> <img src="./static/images/left.png" alt=""></template>
- </van-nav-bar>
- <div class="bt8f7f7f7 tc pt32 pb32" v-cloak><img class="logo-about pb8" src="./static/images/logo-text.png" alt="">
- <div class="f12 c999">版本:V{{curversion}}</div>
- </div>
- <van-cell-group :border="false" v-cloak>
- <van-cell title="用户协议" value="" is-link @click="goagreement"></van-cell>
- <van-cell title="隐私政策" value="" is-link @click="policy"></van-cell>
- </van-cell-group>
- <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>
- <van-dialog style="border-radius:4px;" v-model="dialogisshow" title="版本过低" confirm-button-color="#00000" message="请重新下载或更新最新版本" @confirm="isgroup"> </van-dialog>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- dialogisshow:false,
- closegestureisshow:false,
- toptitleisshow:false,
- active: 0,
- curversion: '1.1.2',
- version: '1.1.2',
- hasNew: false,
- downloadUrl:'',
- };
- },
- async created() {
- this.toptitleisshow = toptitleisshow;
- this.curversion = PublicLib.GetAppVersion();
- this.getversion();
- this.versionsfn();
- },
- methods: {
- async versionsfn(){
- const val = PublicLib.GetAppVersion();
- const versionsnum = this.splitjoin(val);
- console.log(versionsnum)
- const type = browsertype.versions.ios ? 'ios' : 'android';
- const res = await getRequest('api/v1/appversion/detail?t='+Math.random(6),JSON.stringify({VersionNum:val,ClientType:type,Role:2}));
- res.data.VersionNum = !res.data.VersionNum? '1.0.1' : res.data.VersionNum;
- const onlineversionsnum = this.splitjoin(res.data.VersionNum);
- if(Number(versionsnum) < Number(onlineversionsnum)){
- this.dialogisshow = true;
- if('ios'){
- //做升级版本处理
- this.groupUrl = 'https://apps.apple.com/cn/app/%E5%AE%A2%E5%B0%8F%E7%88%BD%E5%88%9B%E5%AE%A2%E7%89%88/id1606114555'
- }else{
- this.groupUrl = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.kexiaoshuang.creator#fromopen&opened'
- };
- };
- },
- splitjoin(str){
- return str.split('.').join('');
- },
- isgroup(){
- PublicLib.GotoUrlByBrowse(this.groupUrl);
- },
- async getversion(){
- const type = browsertype.versions.ios ? 'ios' : 'android';
- const res = await getRequest('api/v1/appversion/detail?t='+Math.random(6),JSON.stringify({VersionNum:this.curversion,ClientType:type,Role:2}));
- this.version = res.data.VersionNum;
- this.downloadUrl = res.data.DownloadUrl;
- const that = this;
- if(this.version !== this.curversion){
- that.hasNew = true;
- }else {
- that.hasNew = false;
- };
- },
- goback(){
- PublicLib.GoBack({Level:1});
- },
- goagreement(){
- PublicLib.Goto({Url:'user-maker-agreement'});
- },
- policy(){
- PublicLib.Goto({Url:'user-maker-policy'});
- },
- upload(){
- if(this.hasNew){
- this.closegestureisshow = true;
- //- PublicLib.ShowDialog({
- //- Title:'',
- //- Message:'是否更新到新的版本',
- //- ConfirmText:'确定',
- //- CancelText:'暂不',
- //- confirmButtonColor:'#FFD500',
- //- ConfirmAction:'app.downloadfn()',
- //- CanelAction:''
- //- });
- }
- },
- unclosegesture(){
- this.closegestureisshow = false;
- },
- closegesture(){
- PublicLib.Goto({Url:this.downloadUrl, Jump: 1});
- },
- }
- });
- </script>
- </body>
- </html>
|