1 /** 2 * 根据手机验证码修改密码 3 * 4 * @fileOverView 根据手机验证码修改密码 5 * @author <a href="mailto:zhang.gd@foxmail.com">Zhang Guangda</a> 6 * @date 2012-12-20 7 */ 8 define( 9 "modify_password_by_phone", 10 [ 11 "component/process_ui", 12 "business/safety_verification", 13 "business/modify_password_by_phone" 14 ], 15 function() { 16 17 $we.process.config.modify_password_by_phone = { 18 processes: [{ 19 widget: "process.start", 20 params: { 21 content: "您的账号为手机账号,已关联绑定账号,如成功修改密码,所有与之关联的绑定账号密码也将一并修改。如您需要继续修改请按“下一步”键,如不需要修改,请关闭页面。" 22 }, 23 beforeAction: function() { 24 return $we.process.getData("is_mobile_acc"); 25 } 26 }, { 27 widget: "safety_verification", 28 beforeAction: function() { 29 return $we.process.getData("safety_verify"); 30 } 31 }, { 32 widget: "modify_password_by_phone" 33 }, { 34 widget: "process.end", 35 params: { 36 title: "密码更新成功,请您使用新密码登录游戏或网站。", 37 content: "温馨提示:<br />系统可能会有延迟,如您暂时无法使用新密码登录,请稍后再试。" 38 } 39 }], 40 config: { 41 flow: "changePwdBySms", 42 title: "通过手机修改密码", 43 prev: false, 44 independent: true 45 }, 46 data: ["phone", "safety_verify", "is_mobile_acc"] 47 }; 48 49 return $we.process.use; 50 } 51 );