Digga Brand Store Owner Records

Record some project requirements that you have not experienced before in the new project

1: Use the map component of uniapp

(1.1)

Use this parameter to hide the blue positioning icon that comes with the component by default, so as to replace it with the icon you want

(1.2) Marker 's point aggregation function, I often see this term before, but I don't understand the specific meaning. Now I know that it is used to manage too many markers . When the map shrinks, the markers will be concentrated into a cursor circle

insert image description here

2: Time format conversion

(2.1) My current project uses the uview framework. Sometimes in the project, I need to receive the time value from the backend, but the time format is not what I want, so after the guidance of my colleagues, I use the time format conversion in uview

First convert the time to a timestamp

 

Then use the time conversion of uview and pass in the appropriate time parameters

3: The style problem of the elastic box

 Just a very simple left and right elastic box model, the left picture part is set to a fixed width, and the right text uses flex: 1 at the beginning

The title text also adds a line of output to hide the text, but later I learned that this only works on text. When the title is a number, the elastic box model will be invalid. Solution: Set the text content to a fixed width

Guess you like

Origin blog.csdn.net/YZ_ZZZ24/article/details/124541948