private void bindRP() { userInfo uInfo = new userInfo(); uInfo = (userInfo)Session["userInfo"]; string uid = uInfo.addr; string url = "http://120.27.45.83:8082/api/Mall/LBSAddressPost"; string para = "address=" +uid; resp resp = new resp(); resp = QLWeiXin.Code.Util.GetResp(url, para); if (resp.code == 1000) { List<ShopArea> shopArea2 = JsonHelper.DeserializeJsonToList<ShopArea>(JsonHelper.DeserializeJsonToObject<ShopArea1>(resp.data.ToString()).list.ToString()); this.Repeater1.DataSource = shopArea2; this.Repeater1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { string url = Request.Url.OriginalString; if (Session["userInfo"] == null) { Response.Redirect("../login.aspx?url="+url); } uInfo = (userInfo)Session["userInfo"]; if (!IsPostBack) { if (Request.QueryString["shopcar"] != null) { addcar(Request.QueryString["shopcar"].ToString()); } setAddress(); setZiTiDian(); bindRP3(); } }
private void bindRP() { userInfo uInfo = new userInfo(); uInfo = (userInfo)Session["userInfo"]; string uid = uInfo.id; string url = "http://120.27.45.83:8082/api/Mall/getAddressList"; string para = "user_id=" + uid; resp resp = new resp(); resp = QLWeiXin.Code.Util.GetResp(url, para); if (resp.code == 1000) { List<userAddress> userAddresss = JsonHelper.DeserializeJsonToList<userAddress>(resp.data.ToString()); this.Repeater1.DataSource = userAddresss; this.Repeater1.DataBind(); } }
protected void regBt_Click(object sender, EventArgs e) { if (DateTime.Parse(Session["codetime1"].ToString()).AddSeconds(120) > DateTime.Now) { string mobilecode = this.code.Text.ToString().Trim(); string pwd = this.pwd.Text.ToString().Trim(); string repwd = this.repwd.Text.ToString().Trim(); if (mobilecode != Session["code1"].ToString()) { Response.Write("<script>alert('验证码错误')</script>"); return; } userInfo uInfo = new userInfo(); uInfo = (userInfo)Session["userInfo"]; string uid = uInfo.id; string name = this.code.Text; string passwrod = this.pwd.Text; string url = "http://120.27.45.83:8085/api/User/UpdatePwd"; string para = "user_id=" + uid + "&oldpassword="******"&password ="******"<script>alert('修改密码成功');local.href='lsjyWeb/personalCenter.aspx'</script>"); } else { Response.Write("<script>alert('修改密码失败')</script>"); } } else { Response.Write("<script>alert('验证码超时')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["userInfo"] == null) { Response.Redirect("../login.aspx"); } userInfo ui=new userInfo(); ui=(userInfo)Session["userInfo"]; this.mobile.Text = ui.phone; }
private void BindRepeater1() { string url = "http://120.27.45.83:8085/api/Mall/GetUserOrderList"; userInfo uInfo = new userInfo(); uInfo = (userInfo)Session["userInfo"]; string uid = uInfo.id; string para = "user_id=" + uid + "&type=0&start=0&limit=100"; resp resp = new resp(); resp = QLWeiXin.Code.Util.GetResp(url, para); this.Repeater1.DataSource = JsonHelper.DeserializeJsonToList<orderInfo>(JsonHelper.DeserializeJsonToObject < orderInfo1 > (resp.data.ToString()).list.ToString()); this.Repeater1.DataBind(); }