Method 1: The easiest way is to add in the .wxss file
text-decoration-line: underline;
Effects often can not meet the demand.
Method 2: Set the border and add it to the .wxss file
border-top:
1px
#111
dashed
; height, color, dashed line
border-bottom:
1px
#000
solid
;
height, color, solid line
The effect is