|
[云开发]
oppo使用openframe打开这个页面卡死,js直接不运行
[复制链接]
oppo具体型号为(oppo远程真机上有这个型号)- OPPO A57
- 型号:OPPO A57
- 分辨率:720x1280
- 安卓版本:6.0.1
- Color OS 版本:V3.0
我排除了样式、透明度都不是卡死的原因,还有什么可能引起的......
- <!DOCTYPE HTML>
- <html>
- <!-- 公告弹窗页面 -->
- <head>
- <meta charset="utf-8">
- <meta name="viewport"
- content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
- <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
- <title>notice</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/common.css" />
- <style>
- body{
- background-color: transparent;
- }
- .privacy_policy_pop {
- position: absolute;
- z-index: 10;
- }
- .privacy_policy_cover {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, .4);
- }
- .privacy_policy_container {
- position: fixed;
- top: 45%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 80%;
- background-color: #fff;
- border: 1px;
- border-radius: 0.2rem;
- z-index: 11;
- }
- .privacy_policy_container .title {
- text-align: center;
- font-weight: bold;
- font-size: 0.8rem;
- padding: 1rem 0.5rem 0.5rem;
- }
- .privacy_policy_container>.content {
- font-size: 0.7rem;
- padding: 0rem 1rem 0.5rem;
- text-indent: 2em;
- }
- .privacy_policy_container>.btn {
- display: flex;
- text-align: center;
- border-top: 1px solid #dddddd;
- }
- .privacy_policy_container>.btn>div {
- flex: 1;
- font-size: 0.8rem;
- padding: 0.5rem 0;
- }
- .privacy_policy_container>.btn>.success {
- color: #007acc;
- border-left: 1px solid #ddd;
- }
- </style>
- </head>
- <body>
- <div class="privacy_policy_pop">
- <div class="privacy_policy_cover"></div>
- <div class="privacy_policy_container">
- <div id="notice_title" class="title">
- </div>
- <div id="notice_content" class="content">
- </div>
- <div class="btn">
- <div class="exit" tapmode onclick="exit()">知道了</div>
- <div class="success" tapmode onclick="onNoticeDetail()">详情</div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript" src="../../script/api.js"></script>
- <script type="text/javascript" src="../../script/model.js"></script>
- <script type="text/javascript" src="../../script/service.js"></script>
- <script type="text/javascript">
- var pageParam, user, data;
- apiready = function () {
- alert('+++')
- pageParam = api.pageParam;
- user = pageParam.user;
- data = pageParam.data;
-
- initKey(getKeyObj(user));
- alert(1)
- $api.html($api.byId('notice_title'),data.title)
- $api.html($api.byId('notice_content'),data.abstract)
- alert(2)
- };
- /** 关闭公告并记录弹窗不再弹出 */
- var exit = function(){
- alert(3)
- var url = me.notice.recordCloseNotice(user.childId || '',user.sellerId || '',user.accountType);
- var callback = new CommonCallback(
- function (ret) {
- api.closeFrame();
- },
- function (ret) {
- api.closeFrame();
- api.toast({msg:ret.msg})
- },
- function (err) {
- api.closeFrame();
- api.toast({msg:err.msg})
- },
- );
- commonGet(url, callback);
- api.refreshHeaderLoadDone();
- }
- /** 详细按钮 */
- var onNoticeDetail = function(){
- var url = me.notice.recordCloseNotice(user.childId || '',user.sellerId || '',user.accountType);
- var callback = new CommonCallback(
- function (ret) {
- api.openWin({
- name: 'mine_notice_detail',
- url: '../mine/mine_notice_detail.html',
- pageParam: {
- user: user,
- id:data.id,
- url:data.url
- }
- });
- api.closeFrame();
- },
- function (ret) {
- api.closeFrame();
- api.toast({msg:ret.msg})
- },
- function (err) {
- api.closeFrame();
- api.toast({msg:err.msg})
- },
- );
- commonGet(url, callback);
- api.refreshHeaderLoadDone();
- }
- </script>
- </html>
复制代码
|
|