background:
A login function that distinguishes the online environment from the test environment. The online environment logs in with the mobile verification code, and the test environment logs in with the account password.
my first reaction to seeing this requirement is to judge whether it is an online environment or a test environment based on environment variables, and then display different buttons on the interface, but I have never found a way to get environment variables in js.
Front-end Framework: angular1
Building tools: gulp, webpack