public UserPayQRCodeDialog(int payType) : this() { if (payType == 1) { PayTypeName.Text = "使用支付宝支付"; ImgPayIcon.Source = ConvertHelper.ChangeBitmapToImageSource(Properties.Resources.alipay); } if (payType == 2) { PayTypeName.Text = "使用微信支付"; ImgPayIcon.Source = ConvertHelper.ChangeBitmapToImageSource(Properties.Resources.wechatpay); } PayMoneyShow.Text = GlobalUser.STUDYCARD.card_price + "元"; var result0 = WebApiProxy.GetHtmlRespInfo(ApiType.GetCardOrder, GlobalUser.USER.Token); UserOrderModel model = new UserOrderModel() { token = GlobalUser.USER.Token, order_id = result0.retData.order_id.ToString() }; var result1 = WebApiProxy.GetImage(model, ApiType.GetQrCode, null, "get"); ImgQrCode.Source = ConvertHelper.ChangeBitmapToImageSource(result1 as Bitmap); }