/// <summary> /// 微汽车 /// </summary> /// <param name="id"></param> /// <param name="apiid"></param> /// <param name="openid"></param> /// <returns></returns> private IList <Model.ResponseContentEntity> WQCReponse(int id, int apiid, string openid) { IList <Model.ResponseContentEntity> responselist = new List <Model.ResponseContentEntity>(); Model.ResponseContentEntity responseEntity = new Model.ResponseContentEntity(); responseEntity.id = id; responseEntity.wid = apiid; BLL.wx_wq_fuhuiSys wqcBll = new BLL.wx_wq_fuhuiSys(); Model.wx_wq_fuhuiSys actModel = wqcBll.GetModel(id); if (actModel == null) { responseEntity.rcType = Model.ReponseContentType.text; responseEntity.rContent = "该汽车信息不存在"; } else { responseEntity.rcType = Model.ReponseContentType.txtpic; responseEntity.rContent = actModel.newstitle; // responseEntity.rContent2 = actModel.pSummary; responseEntity.rContent2 = ""; responseEntity.detailUrl = MyCommFun.getWebSite() + "/weixin/wqiche/index.aspx?wid=" + apiid; responseEntity.picUrl = actModel.titlepic; } responselist.Add(responseEntity); return(responselist); }
void showInfo() { BLL.wx_wq_fuhuiSys fhBll = new BLL.wx_wq_fuhuiSys(); BLL.article aBll = new BLL.article(); BLL.wx_userweixin uw = new BLL.wx_userweixin(); this.Title = uw.GetModel(wid).wxName; //首页幻灯片 this.imgList.DataSource = aBll.GetList(10, " wid=" + wid, "id asc,add_time asc"); this.imgList.DataBind(); this.rptDian.DataSource = aBll.GetList(10, " wid=" + wid, "id asc,add_time asc"); this.rptDian.DataBind(); fhModel = fhBll.GetModelList("wid=" + wid)[0]; StringBuilder sb = new StringBuilder(); string canshu = "?wid=" + wid + "&openid=" + openid; //经销车型 string jxcxUrl = fhModel.jscxurl == "" ? "ppList.aspx" + canshu : fhModel.jscxurl + canshu; sb.Append("<li><a href=\"" + jxcxUrl + "\" style=\"background-image: url(" + fhModel.jscxpic + ");" + "background-size: 100% 100%;\"><label>" + fhModel.jscx + "</label></a></li>"); //销售顾问 string xsgwUrl = fhModel.xsgwurl == "" ? "xiaoshouMgr.aspx" + canshu : fhModel.xsgw + canshu; sb.Append("<li><a href=\"" + xsgwUrl + "\" style=\"background-image: url(" + fhModel.xsgwpic + ");" + "background-size: 100% 100%;\"><label>" + fhModel.xsgw + "</label></a></li>"); //在线预约 string zxyyUrl = fhModel.zxyyurl == "" ? "yyBaoyang.aspx" + canshu + "&type=2" : fhModel.zxyy + canshu + "&type=2"; sb.Append("<li><a href=\"" + zxyyUrl + "\" style=\"background-image: url(" + fhModel.zxyypic + ");" + "background-size: 100% 100%;\"><label>" + fhModel.zxyy + "</label></a></li>"); //车主关怀 string czghUrl = fhModel.czghurl == "" ? "czGuanhuai.aspx" + canshu : fhModel.czgh + canshu; sb.Append("<li><a href=\"" + czghUrl + "\" style=\"background-image: url(" + fhModel.czghpic + ");" + "background-size: 100% 100%;\"><label>" + fhModel.czgh + "</label></a></li>"); //实用工具 string sygjUrl = fhModel.sygjurl == "" ? "syGongju.aspx" + canshu : fhModel.sygj + canshu; sb.Append("<li><a href=\"" + sygjUrl + "\" style=\"background-image: url(" + fhModel.sygjpic + ");" + "background-size: 100% 100%;\"><label>" + fhModel.sygj + "</label></a></li>"); this.litMenu.Text = sb.ToString(); }