|
- var demo = api.require("imageOptim");
- **.**press(
- {
- quality: 0.5,
- width: 600,
- height: 300,
- imgPath,
- destinationPath: imgPath,
- },
- function (ret, err) {
- alert("6666666666"+JSON.stringify(ret));
- if (ret.imgPath) {
- var trans = api.require("trans");
- trans.decodeImgToBase64(
- {
- imgPath: ret.imgPath,
- },
- (ret, err) => {
- if (ret.status) {
- alert("4444444444444"+isType);
- if (isType) {
- that.Apiclound(
- {
- type: "FNPhotograph",
- isApi: "close",
- parramsStatus: false,
- },
- (ret) => {}
- );
- }
复制代码 |
|