/// <summary> /// 支付宝绑定 /// </summary> /// <param name="OrderId"></param> /// <param name="obj"></param> /// <returns></returns> protected string BindZhiFuBao(string orderId, object status, object zhifu, object xiafei) { System.Text.StringBuilder zhifubao = new System.Text.StringBuilder(); Eyousoft_yhq.Model.OrderState OrderStatus = (Eyousoft_yhq.Model.OrderState)status; Eyousoft_yhq.Model.PaymentState PayStatus = (Eyousoft_yhq.Model.PaymentState)zhifu; Eyousoft_yhq.Model.ConSumState ConSumState = (Eyousoft_yhq.Model.ConSumState)xiafei; if (Eyousoft_yhq.Model.OrderState.待付款 == OrderStatus || Eyousoft_yhq.Model.OrderState.已成交 == OrderStatus) { if (PayStatus == Eyousoft_yhq.Model.PaymentState.已支付) { zhifubao.Append("<span class=\"yifu\">" + ConSumState.ToString() + "</span>"); } else { zhifubao.AppendFormat("<a href=\"/AliPay/default.aspx?OrderId={0}\"><img src=\"/Images/zhifb.jpg\"></a>", orderId); } } else { zhifubao.Append("<span class=\"daifu\">等待付款</span>"); } return(zhifubao.ToString()); }
/// <summary> /// 支付宝绑定 /// </summary> /// <param name="OrderId"></param> /// <param name="obj"></param> /// <returns></returns> protected string BindZhiFuBao(string orderId, object status, object zhifu, object xiafei) { System.Text.StringBuilder zhifubao = new System.Text.StringBuilder(); Eyousoft_yhq.Model.OrderState OrderStatus = (Eyousoft_yhq.Model.OrderState)status; Eyousoft_yhq.Model.PaymentState PayStatus = (Eyousoft_yhq.Model.PaymentState)zhifu; Eyousoft_yhq.Model.ConSumState ConSumState = (Eyousoft_yhq.Model.ConSumState)xiafei; if (Eyousoft_yhq.Model.OrderState.待付款 == OrderStatus || Eyousoft_yhq.Model.OrderState.已成交 == OrderStatus) { if (PayStatus == Eyousoft_yhq.Model.PaymentState.已支付) { zhifubao.Append("<span class=\"yifu\">" + ConSumState.ToString() + "</span>"); } else { zhifubao.AppendFormat("<a data-id=\"{0}\" class=\"yueZF\" href=\"javascript:;\"><span class=\"daifu\">账户支付</span></a>", orderId); zhifubao.AppendFormat("<a href=\"http://{1}/AppPage/weixin/GoPay.aspx?OrderId={0}\"><span class=\"daifu\">支付宝支付</span></a>", orderId, HttpContext.Current.Request.Url.Host); } } else { zhifubao.AppendFormat("<span class=\"daifu\">{0}</span>", OrderStatus.ToString()); } return(zhifubao.ToString()); }