I’m working on a mall project, but the mobile phone version is hard for me. I used UEditor to edit the details of the goods and sent many pictures. These pictures are not suitable f or browsing on the mobile phone. How can the mobile phone version be solved?
If it is a commercial picture, it only needs to send one, then when it is requested by Mobile client, it can output compressed pictures of different degrees according to the network status, thus solving the problem of slow access to Mobile client. I think so. I haven’t done so yet, but I think it is feasible and easy to implement. src is no longer an absolute picture address, but a script url that can output pictures.
However, the current situation is that the commodity details are a UEditor rich text content. I did not use a table to record the picture address uploaded to the content, so I don’t know which pictures there are. I don’t know whether it is necessary to record the pictures in the details, just like an attachment to a post.
This rich text is very convenient to use on the computer, and the edited details page is also suitable for display on the computer, but it is not suitable for Mobile client. The pictures are too large and the size is not good, so I want to use the above method to compress the pictures, but now these pictures are just the details of the text content, so I can’t do anything about them. So how do you need to display the details of Mobile client?
It seems that the details page of Tmall’s mobile phone version needs to be set up separately, but I think it is too troublesome. A product needs to set up two details, the same picture, and upload twice. Is that ok?
I would like to know how everyone does it under such circumstances, and then help me to analyze whether there is any problem with the method above. If I don’t do that, will I have to send the same picture twice for the commodity picture?
Thank you all!
Add a style=”width:100 percent “