|
@@ -158,15 +158,15 @@ function doConnectDirectives() {
|
|
);
|
|
);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- case 'phoneSizeChange': {
|
|
|
|
- window.currentPhoneSize = {
|
|
|
|
- id: result.data.id,
|
|
|
|
- width: result.data.width,
|
|
|
|
- height: result.data.height,
|
|
|
|
- dpi: result.data.dpi,
|
|
|
|
- };
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ // case 'phoneSizeChange': {
|
|
|
|
+ // window.currentPhoneSize = {
|
|
|
|
+ // id: result.data.id,
|
|
|
|
+ // width: result.data.width,
|
|
|
|
+ // height: result.data.height,
|
|
|
|
+ // dpi: result.data.dpi,
|
|
|
|
+ // };
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
default: {
|
|
default: {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -202,7 +202,7 @@ function doConnectDirectives() {
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (result.type === 'getPhoneSize') {
|
|
|
|
|
|
+ if (result.type === 'getPhoneSize' || result.type === 'setPhoneSize') {
|
|
// console.log(result);
|
|
// console.log(result);
|
|
const data = window.phoneSizeList.find(function (v) {
|
|
const data = window.phoneSizeList.find(function (v) {
|
|
return (
|
|
return (
|