A scooter type vehicle with a storage compartment and a lighting device, wherein the storage compartment has a top opening, a pivot joint portion and a platform, the platform being higher than an inner side bottom surface of the storage compartment, the pivot joint portion is connected to a rider seat having a bottom plate, the rider seat is pivoted to a closing position for enabling the bottom plate to cover the top opening and to an opening position for enabling the bottom plate to move away from the top opening with the pivot joint portion as an axis, wherein: a distance sensing switch unit and at least one lighting unit are respectively disposed in the storage compartment, wherein the distance sensing switch unit is an infrared sensing switch unit, the distance sensing switch unit is disposed on the platform, the distance sensing switch unit is powered by a power unit, and comprises a distance sensor having an infrared emitting unit and an infrared receiving unit and a power supply switch for controlling switch-on or switch-off through the distance sensor, wherein, when the rider seat is at the closing position, the power supply switch is in a switch-off state, and when the rider seat is at the opening position, the power supply switch is in a switch-on state, wherein the lighting unit is electrically coupled to the power supply switch, the distance sensor detects a change of a distance between the distance sensor and the bottom plate of the rider seat, so that the power supply switch is switched on to enable the lighting unit to light, or the power supply switch is switched off to stop the lighting unit from lighting, a delay switch for prolonging a power supplying time is further electrically connected between the power supply switch and the lighting unit, wherein, when the power supply switch is switched on, the delay switch is activated for action, and when a prolonged time set by the delay switch is over, the power supply switch is returned to the switch-off state to stop power supply for the lighting unit. a distance sensing switch unit and at least one lighting unit are respectively disposed in the storage compartment, wherein the distance sensing switch unit is an infrared sensing switch unit, the distance sensing switch unit is disposed on the platform, the distance sensing switch unit is powered by a power unit, and comprises a distance sensor having an infrared emitting unit and an infrared receiving unit and a power supply switch for controlling switch-on or switch-off through the distance sensor, wherein, when the rider seat is at the closing position, the power supply switch is in a switch-off state, and when the rider seat is at the opening position, the power supply switch is in a switch-on state, wherein the lighting unit is electrically coupled to the power supply switch, the distance sensor detects a change of a distance between the distance sensor and the bottom plate of the rider seat, so that the power supply switch is switched on to enable the lighting unit to light, or the power supply switch is switched off to stop the lighting unit from lighting, a delay switch for prolonging a power supplying time is further electrically connected between the power supply switch and the lighting unit, wherein, when the power supply switch is switched on, the delay switch is activated for action, and when a prolonged time set by the delay switch is over, the power supply switch is returned to the switch-off state to stop power supply for the lighting unit.