登陆页面的具体细节还没有完善。
二维码移动:
bool isMoveLight; public const int MOVE_STEP = 10; private void P1_MouseEnter(object sender, EventArgs e) { timer1.Enabled = true; isMoveLight = true; } private void Timer1_Tick(object sender, EventArgs e) { if ((isMoveLight && p1.Location.X >= 20) //zuo || (!isMoveLight && p1.Location.X <= 50)) //you { //100ms if (isMoveLight) { p1.Location = new Point( p1.Location.X - MOVE_STEP, p1.Location.Y //左移动 ); p2.Visible = true; } else { p1.Location = new Point( p1.Location.X + MOVE_STEP, p1.Location.Y //右移动 ); p2.Visible = false; } } } private void P1_MouseLeave(object sender, EventArgs e) { isMoveLight = false; }
二维码刷新按钮的三种变化(默认,靠近,点击)
修改: