aboutUs_frm.html 6.37 KB
<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
      <title>关于罗电_frm</title>
      <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
      <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
      <link rel="stylesheet" type="text/css" href="../../css/mine/mine.css"/>
      <link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
      <style>
          html,
          body{
            background: #F4F6F9;
          }
      </style>
  </head>
  <body>
    <div class="aui-row aui-row-flex" style="margin-top:40px;">
        <div class="aui-col aui-col-span-24 aui-row-flex-center aui-row-flex-middle" style="height:80px;">
          <img src="../../image/mine/luodian-appicon-r.png" style="width:80px;height:80px;" />
        </div>
    </div>
    <div class="aui-row aui-row-flex">
      <div class="aui-col aui-col-span-24 aui-row-flex-center aui-row-flex-middle" style="height:50px;">
        <span style="font-size:12px;font-family:PingFang SC;font-weight:500;color:rgba(174,184,206,1);" id="cur_version">当前版本:</span>
      </div>
    </div>
    <div class="person-center-list-panel">
      <div class="inside-person-center-list-panel">
        <div class="aui-row aui-row-flex padding-top-21 aui-hide" id="comment_list" tapmode onclick="openStoreComment();">
          <div class="aui-col aui-col-span-13 aui-row-flex-start">
            <span class="measure-obj">去评分</span>
          </div>
          <div class="aui-col aui-col-span-11 aui-row-flex-end">
            <img src="../../image/to-go.png" style="width:18px;height:18px;margin-top:0.26rem;" />
          </div>
        </div>
        <div class="panel-line margin-top-21"></div>
        <div class="aui-row aui-row-flex padding-top-21" tapmode onclick="openStoreUpdate();">
          <div class="aui-col aui-col-span-13 aui-row-flex-start">
            <span class="measure-obj">版本更新</span>
          </div>
          <div class="aui-col aui-col-span-11 aui-row-flex-end">
            <img src="../../image/to-go.png" style="width:18px;height:18px;margin-top:0.26rem;" />
          </div>
        </div>
        <div class="panel-line margin-top-21"></div>
        <div class="aui-row aui-row-flex padding-top-21" tapmode onclick="modifySuggest();">
          <div class="aui-col aui-col-span-13 aui-row-flex-start">
            <span class="measure-obj">修改意见</span>
          </div>
          <div class="aui-col aui-col-span-11 aui-row-flex-end">
            <img src="../../image/to-go.png" style="width:18px;height:18px;margin-top:0.26rem;" />
          </div>
        </div>
        <div style="height:21px;"></div>
      </div>
    </div>
  </body>
  <script type="text/javascript" src="../../script/api.js"></script>
  <script type="text/javascript" src="../../script/common.js"></script>
  <script type="text/javascript">
      apiready = function(){
        api.parseTapmode();
        $api.html($api.byId("cur_version"), '当前版本:' + api.appVersion);
        if (api.systemType == 'ios') {
          $api.removeCls($api.byId('comment_list'), 'aui-hide');
        }
      };

      function openStoreComment() {
        if (api.systemType == "ios") {
           api.openApp({
             iosUrl: 'https://apps.apple.com/cn/app/%E7%BD%97%E7%94%B5/id1460661635',
           });
        }
        if (api.systemType == "android") {
           api.toast({msg: '该功能尚未开放'});
        }
      }

      function openStoreUpdate() {
        var mam = api.require('mam');
         mam.checkUpdate(function(ret, err) {
             if (ret) {
                 var result = ret.result;
                 if (result.update == true && result.closed == false) {
                    //  var str = '新版本型号:' + result.version + ';更新提示语:' + result.updateTip + ';下载地址:' + result.source + ';发布时间:' + result.time;
                     api.confirm({
                         title : '检测到有新版本',
                         msg : '是否立即安装?',
                         buttons : ['确定', '取消']
                     }, function(ret, err) {
                         if (ret.buttonIndex == 1) {
                             if (api.systemType == "android") {
                                 api.download({
                                     url : result.source,
                                     report : true
                                 }, function(ret, err) {
                                     if (ret && 0 == ret.state) {/* 下载进度 */
                                         api.toast({
                                             msg : "最新版罗电下载中,当前进度" + ret.percent + "%,请勿退出",
                                             duration : 2000
                                         });
                                     }
                                     if (ret && 1 == ret.state) {/* 下载完成 */
                                         var savePath = ret.savePath;
                                         api.installApp({
                                             appUri : savePath
                                         });
                                     }
                                 });
                             }
                             if (api.systemType == "ios") {
                                api.openApp({
                                  iosUrl: 'https://apps.apple.com/cn/app/%E7%BD%97%E7%94%B5/id1460661635',
                                  // appParam: {
                                  //     appParam: 'app参数'
                                  // }
                                });
                             }
                         }
                     });
                 } else {
                     api.alert({
                         msg : "当前为最新版本"
                     });
                 }
             } else {
                 api.alert({
                     msg : err.msg
                 });
             }
         });
      }

      function modifySuggest() {
        api.openWin({
          name: 'modifySuggest_win',
          url: './modifySuggest_win.html',
        });
      }
  </script>
  </html>