Projects on WeChat require product image preview function
We currently use the image preview function that comes with AmazeUI, which is being replaced by semanticUI Mainly using styles
The component is rarely used, and I don’t know how the sister UI is implemented.
WeChat provides JSSDK, which can call its image preview function, but it needs to be verified with the official interface before calling, which is too efficient. It’s too low, and it’s obviously very troublesome to implement it just for this simple function
In addition, I don’t know if it will conflict with angular, so I’m looking for a method that can be implemented using native JS or jQuery? It would be better if there is a directive similar to Angular
You can search a lot~~
window.URL.createObjectURL
FileReader’s readAsDataURL