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",
 10 	[
 11 		"component/process_ui",
 12 		"business/safety_verification",
 13 		"business/modify_password"
 14 	], 
 15 	function() {
 16 		$we.process.config.modify_password = {
 17 			/**
 18 			 * 流程配置
 19 			 * @type {Array}
 20 			 */
 21 			processes: [{
 22 				widget: "process.start",
 23 				params: {
 24 					content: "您的账号为手机账号,已关联绑定账号,如成功修改密码,所有与之关联的绑定账号密码也将一并修改。如您需要继续修改请按“下一步”键,如不需要修改,请关闭页面。"
 25 				},
 26 				beforeAction: function() {
 27 					return $we.process.getData("is_mobile_acc");
 28 				}
 29 			}, {
 30 				widget: "safety_verification",
 31 				beforeAction: function() {
 32 					return $we.process.getData("safety_verify");
 33 				}
 34 			}, {
 35 				widget: "modify_password"
 36 			}, {
 37 				widget: "process.end",
 38 				params: {
 39 					title: "密码更新成功,请您使用新密码登录游戏或网站。",
 40 					content: "温馨提示:<br />系统可能会有延迟,如您暂时无法使用新密码登录,请稍后再试。"
 41 				}
 42 			}],
 43 			/**
 44 			 * 业务配置
 45 			 * @type {Object}
 46 			 */
 47 			config: {
 48 				flow: "changePwd",
 49 				title: "修改密码",
 50 				prev: false,
 51 				independent: true
 52 			},
 53 			data: ["phone", "safety_verify", "is_mobile_acc"]
 54 		};
 55 
 56 		return $we.process.use;
 57 	}
 58 );