A front assembly sliding structure (100, 200) for a terminal, the front assembly sliding structure comprising a front slider (120, 220) provided with a first magnetic body (121, 221); and a panel (110, 210) comprising a second magnetic body (130, 230) thereon; wherein the front slider (120, 220) is slidable relative to the panel (110, 210), and the first magnetic body (121, 221) is opposite to the second magnetic body (130, 230) when the front slider (120, 220) is in a first position; and the front slider (120, 220) is configured to slide from the first position to a second position when a force in a first direction is applied to the front slider, and configured to slide from the second position to the first position when a force in a second direction is applied to the front slider, the first direction being opposite to the second direction; wherein the first magnetic body (121, 221) is an electromagnet, and the second magnetic body (130, 230) comprises a first magnet and a second magnet disposed side by side in a predetermined direction; or the first magnetic body (121, 221) comprises a first magnet and a second magnet disposed side by side in a predetermined direction, and the second magnetic body (130, 230) is an electromagnet; the predetermined direction is the first direction or the second direction; a magnetism of a pole of the first magnet facing the electromagnet is opposite to that of a pole of the second magnet facing the electromagnet; when the electromagnet is magnetized by a current in a third direction, an attraction is present between the electromagnet and the first magnet, and a repulsion is present between the electromagnet and the second magnet; and when the electromagnet is magnetized by a current in a fourth direction, a repulsion is present between the electromagnet and the first magnet, and an attraction is present between the electromagnet and the second magnet; wherein the third direction is opposite to the fourth direction; characterized in that the front assembly sliding structure further comprises a Hall element comprising a Hall sensor and a third magnet, wherein the Hall sensor is disposed in the front slider, and the third magnet is disposed in the panel; or the Hall sensor is disposed in the panel, and the third magnet is disposed in the front slider; the Hall sensor is configured to sense the slide of the front slider and to determine a sliding direction of the front slider relative to the panel according to the third magnet, and trigger the current in the third direction when the sliding direction of the front slider relative to the panel is the first direction, or trigger the current in the fourth direction when the sliding direction of the front slider relative to the panel is the second direction. a front slider (120, 220) provided with a first magnetic body (121, 221); and a panel (110, 210) comprising a second magnetic body (130, 230) thereon; wherein the front slider (120, 220) is slidable relative to the panel (110, 210), and the first magnetic body (121, 221) is opposite to the second magnetic body (130, 230) when the front slider (120, 220) is in a first position; and the front slider (120, 220) is configured to slide from the first position to a second position when a force in a first direction is applied to the front slider, and configured to slide from the second position to the first position when a force in a second direction is applied to the front slider, the first direction being opposite to the second direction; wherein the first magnetic body (121, 221) is an electromagnet, and the second magnetic body (130, 230) comprises a first magnet and a second magnet disposed side by side in a predetermined direction; or the first magnetic body (121, 221) comprises a first magnet and a second magnet disposed side by side in a predetermined direction, and the second magnetic body (130, 230) is an electromagnet; the predetermined direction is the first direction or the second direction; a magnetism of a pole of the first magnet facing the electromagnet is opposite to that of a pole of the second magnet facing the electromagnet; when the electromagnet is magnetized by a current in a third direction, an attraction is present between the electromagnet and the first magnet, and a repulsion is present between the electromagnet and the second magnet; and when the electromagnet is magnetized by a current in a fourth direction, a repulsion is present between the electromagnet and the first magnet, and an attraction is present between the electromagnet and the second magnet; wherein the third direction is opposite to the fourth direction; characterized in that the front assembly sliding structure further comprises a Hall element comprising a Hall sensor and a third magnet, wherein the Hall sensor is disposed in the front slider, and the third magnet is disposed in the panel; or the Hall sensor is disposed in the panel, and the third magnet is disposed in the front slider; the Hall sensor is configured to sense the slide of the front slider and to determine a sliding direction of the front slider relative to the panel according to the third magnet, and trigger the current in the third direction when the sliding direction of the front slider relative to the panel is the first direction, or trigger the current in the fourth direction when the sliding direction of the front slider relative to the panel is the second direction.