接口问题的修改

This commit is contained in:
liuliang 2024-12-23 10:12:46 +08:00
parent 41645a34d9
commit 8631b458c5

View File

@ -135,24 +135,32 @@ public class Logo_in : mount
} }
else if (type == 1) //确认注册并登录并进行实名认证 else if (type == 1) //确认注册并登录并进行实名认证
{ {
RegisterResponse response = await loading_Jiekou.Registers(boxTypes[0].content, boxTypes[1].content, boxTypes[2].content, boxTypes[3].content); RegisterResponse response = await loading_Jiekou.Registers(boxTypes[0].content, boxTypes[1].content, boxTypes[2].content, boxTypes[3].content);
Debug.Log(response.message); Promptmgr.Instance.PromptBubble(response.message);
Real_name_screen(); Real_name_screen();
} }
}); });
} }
public void login_Password_screen() //쵱쯤되쩌썹충 public void login_Password_screen(string Account) //密码登录界面
{ {
List<BoxType> boxTypes = new List<BoxType>(); List<BoxType> boxTypes = new List<BoxType>();
boxTypes.Add(new BoxType { Name = "account_number", textName = " 手机号", prompt = "请输入手机号", Type = 0, is_required = true }); boxTypes.Add(new BoxType { Name = "account_number", textName = " 手机号", prompt = "请输入手机号", Type = 0, is_required = true });
if (Account == "")
{
Debug.Log("修改propomt");
boxTypes[0].prompt = "请输入手机号";
}else
{
boxTypes[0].content = Account;
}
boxTypes.Add(new BoxType { Name = "verification_code", textName = " 密码", prompt = "密码", Type = 0,is_required = true }); boxTypes.Add(new BoxType { Name = "verification_code", textName = " 密码", prompt = "密码", Type = 0,is_required = true });
boxTypes.Add(new BoxType { Name = "submit", textName = " 取消确定 ",prompt = "取消",Type = 5 }); boxTypes.Add(new BoxType { Name = "submit", textName = " 取消确定 ",prompt = "取消",Type = 5 });
GameObject gameObject = add_pop_up(true); //生成弹窗母体 GameObject gameObject = add_pop_up(true); //生成弹窗母体
List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "登录"); //测试输入框回调处理 List<GameObject> gameObjects = gameObject.GetComponent<input_box_pop_up_window>().updateUI(boxTypes, "登录"); //测试输入框回调处理
Debug.Log("显示"+boxTypes[0].content);
gameObjects[2].GetComponent<input_box_pop_up_window_item>().register_click(async (BoxType boxType, int type) =>//登录确定或取消 gameObjects[2].GetComponent<input_box_pop_up_window_item>().register_click(async (BoxType boxType, int type) =>//登录确定或取消
{ {
if (type == 0) if (type == 0)
@ -218,7 +226,9 @@ public class Logo_in : mount
{ {
if (type == 1) if (type == 1)
{ {
login_Password_screen();
login_Password_screen(boxTypes[0].content);
gameObject.GetComponent<input_box_pop_up_window>().destroy(); gameObject.GetComponent<input_box_pop_up_window>().destroy();
} }
}); });