|
@@ -83,7 +83,10 @@ function doConnectDirectives() {
|
|
|
}
|
|
|
if (result.type === 'forwardMsg') {
|
|
|
if (isAuth !== 'none') {
|
|
|
- if (result.data.code === 4000 || result.data.code === 3000) {
|
|
|
+ if (
|
|
|
+ String(result.data.code) === '4000' ||
|
|
|
+ String(result.data.code) === '3000'
|
|
|
+ ) {
|
|
|
if (isAuth === 'huo') {
|
|
|
$.confirm(
|
|
|
'授权方已收回控制权,您进入观看屏幕模式',
|
|
@@ -123,7 +126,7 @@ function doConnectDirectives() {
|
|
|
if (result.data.code === 'phoneSizeChange') {
|
|
|
console.log(result.data);
|
|
|
window.currentPhoneSize = {
|
|
|
- id: result.data.id,
|
|
|
+ id: result.data.id,
|
|
|
width: result.data.width,
|
|
|
height: result.data.height,
|
|
|
pid: result.data.pid,
|
|
@@ -313,6 +316,7 @@ var draw_graph = function (graphType, obj) {
|
|
|
|
|
|
// 鼠标移动
|
|
|
var touchmove = function (e) {
|
|
|
+ e.preventDefault();
|
|
|
if (!isControl) {
|
|
|
return;
|
|
|
}
|
|
@@ -354,11 +358,11 @@ var draw_graph = function (graphType, obj) {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- $(canvas_bak).unbind();
|
|
|
- $(canvas_bak).bind('touchstart', touchstart);
|
|
|
- $(canvas_bak).bind('touchmove', touchmove);
|
|
|
- $(canvas_bak).bind('touchend', touchend);
|
|
|
- $(canvas_bak).bind('mouseout', mouseout);
|
|
|
+ $(canvas_bak).off();
|
|
|
+ $(canvas_bak).on('touchstart', touchstart);
|
|
|
+ $(canvas_bak).on('touchmove', touchmove);
|
|
|
+ $(canvas_bak).on('touchend', touchend);
|
|
|
+ $(canvas_bak).on('mouseout', mouseout);
|
|
|
};
|
|
|
|
|
|
// 获取url中"?"符后的字串
|