|
@@ -42,7 +42,10 @@
|
|
rel="stylesheet"
|
|
rel="stylesheet"
|
|
href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css"
|
|
href="https://cdn.bootcss.com/jquery-weui/1.2.1/css/jquery-weui.min.css"
|
|
/>
|
|
/>
|
|
|
|
+ <!-- <link rel="stylesheet" href="../static/lib/swiper/swiper-bundle.min.css" />
|
|
|
|
+ <script src="../static/lib/swiper/swiper-bundle.js"></script> -->
|
|
<script src="../static/lib/doT-1.1.3/doT.min.js"></script>
|
|
<script src="../static/lib/doT-1.1.3/doT.min.js"></script>
|
|
|
|
+ <script src="../static/lib/qs.js"></script>
|
|
</head>
|
|
</head>
|
|
|
|
|
|
<body class="scroll h-player" style="overscroll-behavior: contain">
|
|
<body class="scroll h-player" style="overscroll-behavior: contain">
|
|
@@ -67,7 +70,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="slide-wrapper-content">
|
|
<div class="slide-wrapper-content">
|
|
{{~ it :item:index }}
|
|
{{~ it :item:index }}
|
|
- <div class="slide-wrapper">
|
|
|
|
|
|
+ <div class="slide-wrapper" data-id="{{= item.id}}">
|
|
<div class="slide-scroll animate-slide-start">
|
|
<div class="slide-scroll animate-slide-start">
|
|
<div
|
|
<div
|
|
class="slide-content"
|
|
class="slide-content"
|
|
@@ -268,8 +271,9 @@
|
|
|
|
|
|
var parameters = GetRequest();
|
|
var parameters = GetRequest();
|
|
var token = parameters['token'];
|
|
var token = parameters['token'];
|
|
- var userCardId = parameters['userCardId'];
|
|
|
|
var mealType = parameters['mealType'];
|
|
var mealType = parameters['mealType'];
|
|
|
|
+ var userCardId = parameters['userCardId'];
|
|
|
|
+ var username = parameters['username'];
|
|
var videoTimer = null,
|
|
var videoTimer = null,
|
|
videoTime = 0,
|
|
videoTime = 0,
|
|
adType = 0,
|
|
adType = 0,
|
|
@@ -507,7 +511,9 @@
|
|
quit();
|
|
quit();
|
|
}, 3000);
|
|
}, 3000);
|
|
}
|
|
}
|
|
- } else if (res.status === 5200) {
|
|
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (res.status === 5200) {
|
|
if (timeInterval > 7) {
|
|
if (timeInterval > 7) {
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -521,13 +527,20 @@
|
|
connect(type);
|
|
connect(type);
|
|
timeInterval += 1;
|
|
timeInterval += 1;
|
|
}, 3000);
|
|
}, 3000);
|
|
- } else {
|
|
|
|
- $.toast('画面异常,请重新进入', 'text');
|
|
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (res.status === 5220) {
|
|
|
|
+ $.toast('云手机正在一键修复中', 'text');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- clearInterval(intervaler);
|
|
|
|
quit();
|
|
quit();
|
|
}, 3000);
|
|
}, 3000);
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
+ $.toast('画面异常,请重新进入', 'text');
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ clearInterval(intervaler);
|
|
|
|
+ quit();
|
|
|
|
+ }, 3000);
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -955,14 +968,24 @@
|
|
}
|
|
}
|
|
// 清空剪贴板
|
|
// 清空剪贴板
|
|
function handleClear() {
|
|
function handleClear() {
|
|
- var ids = '';
|
|
|
|
- cutList.forEach(function (item) {
|
|
|
|
- ids += 'ids=' + item.id + '&';
|
|
|
|
- });
|
|
|
|
- ids = ids.substring(0, ids.lastIndexOf('&'));
|
|
|
|
|
|
+ // var ids = '';
|
|
|
|
+ // cutList.forEach(function (item) {
|
|
|
|
+ // ids += 'ids=' + item.id + '&';
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ // ids = ids.substring(0, ids.lastIndexOf('&'));
|
|
|
|
+
|
|
$.confirm('确定清空剪贴板?', function () {
|
|
$.confirm('确定清空剪贴板?', function () {
|
|
$.ajax({
|
|
$.ajax({
|
|
- url: baseUrl + '/api/public/v5/shear/content?' + ids,
|
|
|
|
|
|
+ url:
|
|
|
|
+ baseUrl +
|
|
|
|
+ '/api/public/v5/shear/content' +
|
|
|
|
+ Qs.stringify(
|
|
|
|
+ {
|
|
|
|
+ ids: Array.from($('.slide-wrapper')).map((v) => v.dataset.id),
|
|
|
|
+ },
|
|
|
|
+ { arrayFormat: 'repeat', addQueryPrefix: true },
|
|
|
|
+ ),
|
|
headers: {
|
|
headers: {
|
|
Authorization: token,
|
|
Authorization: token,
|
|
},
|
|
},
|
|
@@ -1772,7 +1795,16 @@
|
|
// loop: false,
|
|
// loop: false,
|
|
// centeredSlides: true,
|
|
// centeredSlides: true,
|
|
// });
|
|
// });
|
|
|
|
+ let lastSetPhone = 0;
|
|
function setPhoneSize(config) {
|
|
function setPhoneSize(config) {
|
|
|
|
+ if (config.id === currentPhoneSize.id) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (Date.now() <= lastSetPhone + 1000 * 5) {
|
|
|
|
+ throw new Error('请勿频繁操作');
|
|
|
|
+ }
|
|
|
|
+ lastSetPhone = Date.now();
|
|
// config = Object.assign({}, config, {
|
|
// config = Object.assign({}, config, {
|
|
// width: config.width,
|
|
// width: config.width,
|
|
// height: config.height,
|
|
// height: config.height,
|
|
@@ -1790,19 +1822,19 @@
|
|
}),
|
|
}),
|
|
);
|
|
);
|
|
// 通知其他在线端
|
|
// 通知其他在线端
|
|
- wsss.send(
|
|
|
|
- JSON.stringify({
|
|
|
|
- type: 'forwardMsg',
|
|
|
|
- data: {
|
|
|
|
- code: 'phoneSizeChange',
|
|
|
|
- id: config.id,
|
|
|
|
- width: config.width,
|
|
|
|
- height: config.height,
|
|
|
|
- dpi: config.dpi,
|
|
|
|
- desc: '分辨率修改', // 可选
|
|
|
|
- },
|
|
|
|
- }),
|
|
|
|
- );
|
|
|
|
|
|
+ // wsss.send(
|
|
|
|
+ // JSON.stringify({
|
|
|
|
+ // type: 'forwardMsg',
|
|
|
|
+ // data: {
|
|
|
|
+ // code: 'phoneSizeChange',
|
|
|
|
+ // id: config.id,
|
|
|
|
+ // width: config.width,
|
|
|
|
+ // height: config.height,
|
|
|
|
+ // dpi: config.dpi,
|
|
|
|
+ // desc: '分辨率修改', // 可选
|
|
|
|
+ // },
|
|
|
|
+ // }),
|
|
|
|
+ // );
|
|
// 上报分辨率
|
|
// 上报分辨率
|
|
$.ajax({
|
|
$.ajax({
|
|
url:
|
|
url:
|
|
@@ -1837,8 +1869,12 @@
|
|
// setPhoneSize(data.width, data.height);
|
|
// setPhoneSize(data.width, data.height);
|
|
});
|
|
});
|
|
$('#set-phone-size-dialog .dialog-btn.confirm').on('click', function (e) {
|
|
$('#set-phone-size-dialog .dialog-btn.confirm').on('click', function (e) {
|
|
- setPhoneSize(window.activePhoneSize);
|
|
|
|
- $('#set-phone-size-dialog').removeClass('show');
|
|
|
|
|
|
+ try {
|
|
|
|
+ setPhoneSize(window.activePhoneSize);
|
|
|
|
+ $('#set-phone-size-dialog').removeClass('show');
|
|
|
|
+ } catch (error) {
|
|
|
|
+ $.toast(error.message, 'text');
|
|
|
|
+ }
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<script type="text/javascript" src="WXdraw.js"></script>
|
|
<script type="text/javascript" src="WXdraw.js"></script>
|