1 /** 2 * 更换邮箱 3 * @type {Object} 4 */ 5 define("change_email", [ 6 "component/process_ui", 7 "business/email_change", 8 "business/bind_mobile", 9 "business/verify_email"], function() { 10 $we.process.config.change_email = { 11 processes: [{ 12 name: '输入新邮箱', 13 widget: "new_email_input" 14 }, { 15 name: '安全验证', 16 widget: "bind_mobile", 17 beforeAction: function() { 18 return $we.process.getData('auth_type') == 'phone'; 19 } 20 }, { 21 widget: "verify_email", 22 params: { 23 verifyName: "email", 24 saveVerifyName: "email" 25 }, 26 beforeAction: function() { 27 return $we.process.getData('auth_type') == 'email'; 28 } 29 }, { 30 name: '验证新邮箱', 31 widget: "verify_email", 32 params: { 33 verifyName: "new_email", 34 saveVerifyName: "email", 35 cookieName: "_we_comp_ve_n" 36 } 37 }, { 38 name: '更换成功', 39 widget: "process.end", 40 params: { 41 title: "您的邮箱已成功更换!" 42 } 43 }], 44 config: { 45 flow: "changeEmail", 46 class_notice_content: 'we_email_test_box', 47 title: "更换邮箱", 48 prev: false 49 }, 50 data: ["phone", "email", "phone_passed"] 51 52 }; 53 54 return $we.process.use; 55 });