123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!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">
- <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="hasNew ? '发现新版本' : '已经是最新版本'" :is-link="hasNew ? true : false" @click="upload">
- <template #title>
- <van-badge :dot="hasNew ? true : false">
- <div class="f14 c333">检查更新</div>
- </van-badge>
- </template>
- </van-cell>
- <van-cell title="协议" value="" is-link @click="goagreement"></van-cell>
- <van-cell title="隐私政策" value="" is-link @click="policy"></van-cell>
- </van-cell-group>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- 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();
- },
- methods: {
- async getversion(){
- const type = browsertype.versions.ios ? 'ios' : 'android';
- const res = await getRequest('/api/v1/appversion/detail',JSON.stringify({VersionNum:this.curversion,ClientType:type}));
- 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){
- PublicLib.ShowDialog({
- Title:'',
- Message:'是否更新到新的版本',
- ConfirmText:'确定',
- CancelText:'暂不',
- ConfirmAction:'app.downloadfn()',
- CanelAction:''
- });
- }
- },
- downloadfn(){
- PublicLib.Goto({Url:this.downloadUrl, Jump: 1});
- },
- }
- });
- </script>
- </body>
- </html>
|