---- implement image cropping number of micro-channel public and upload ----

1. Installation vue-cropper plug;

2. The package is a cut plug subassembly (package code later) and referenced in the page;

3. The micro-channel reference and jsdk config register;

4. Select Local calling chooseImage realize the picture or the camera, the picture id returned by getLocalImgData into base64 bit, after the success of his son pass through the assembly to pass the value of crop components (Note: ios and android turn results obtained after base64 not the same, Andrews get the picture missing from the address of the head, resulting in cutting component identification can not, and will not ios);

The following is the code subassembly

 

Guess you like

Origin www.cnblogs.com/zjy850984598/p/11315949.html