Exemplo n.º 1
0
        public ActionResult EditOfSecondSuccess(int id, string EnterpriseID)
        {
            ViewBag.MPurl = ConstConfigBll.GetConfigByKey("MPurl");
            WeixinMPBll bll = new WeixinMPBll();

            return(View(bll.GetByIDOfSample(id, EnterpriseID)));
        }
Exemplo n.º 2
0
        public FileContentResult ReadByte(string id)
        {
            #region 存放后返回地址
            //if (id != "")
            //{
            //    string path = Server.MapPath("~/Files/QRcodeImage");
            //    string url = LoginUser.UserBasic.EnterpriseID+"." + ConstConfigBll.GetConfigByKey("domian");
            //    string showUrl = url + "/GoodsInfo/Index/" + id;
            //    return Json("/Files/QRcodeImage" + ImageHelper.GetShowImgUrl(path, url.Replace('.', '_').Replace(':', '_') + id, showUrl), JsonRequestBehavior.AllowGet);
            //}
            //else
            //{
            //    return Json("", JsonRequestBehavior.AllowGet);
            //}
            #endregion

            if (id != "")
            {
                string url         = LoginUser.UserBasic.EnterpriseID + "." + ConstConfigBll.GetConfigByKey("domian");
                string showUrl     = url + "/GoodsInfo/Index/" + id;
                byte[] img         = ImageHelper.GetShowImgUrl(showUrl);
                string contentType = MimeMapping.GetMimeMapping("*.jpg");
                return(File(img, contentType));
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 3
0
        public ActionResult CreateOfSecondSuccess(int id)
        {
            ViewBag.MPurl = ConstConfigBll.GetConfigByKey("MPurl");
            WeixinMPBll bll = new WeixinMPBll();

            return(View(bll.GetByIDOfSample(id, LoginUser.UserBasic.EnterpriseID)));
        }
Exemplo n.º 4
0
        public string GetConfigParamPublic()
        {
            string PageCollectRecord = ConstConfigBll.GetConfigByKey("PageCollectRecord");
            //商品详情页的累计评价记录,默认加载和点击更多追加的条数(10)
            string PageComment     = ConstConfigBll.GetConfigByKey("PageComment");
            string PageOrderRecord = ConstConfigBll.GetConfigByKey("PageOrderRecord");
            //老客户回访记录,默认加载和点击更多追加的条数(10)
            string PageReturnVisit = ConstConfigBll.GetConfigByKey("PageReturnVisit");
            //销售卖点记录默认加载和点击更多追加的条数(10)
            string PageSallingPoint = ConstConfigBll.GetConfigByKey("PageSallingPoint");
            //其他未强调的数据列表,默认显示和上拉更多的条数(12)
            string PagePublic = ConstConfigBll.GetConfigByKey("PagePublic");

            //图片展示地止
            string ImageShowUrl = ConstConfigBll.GetConfigByKey("ImageShowUrl");
            //图片上传地止
            string ImgServiceURL = ConstConfigBll.GetConfigByKey("ImgServiceURL");
            //avi
            string AviShowUrl = ConstConfigBll.GetConfigByKey("AviShowUrl");

            return(new
            {
                PageCollectRecord = PageCollectRecord,
                PageComment = PageComment,
                PageOrderRecord = PageOrderRecord,
                PageReturnVisit = PageReturnVisit,
                PageSallingPoint = PageSallingPoint,
                PagePublic = PagePublic,
                ImageShowUrl = ImageShowUrl,
                ImgServiceURL = ImgServiceURL,
                AviShowUrl = AviShowUrl
            }.GetJson());
        }
Exemplo n.º 5
0
 /// <summary>
 /// 预览商品二维码
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public FileContentResult ReadByte(string id)
 {
     if (id != "")
     {
         string path        = Server.MapPath("~/Files/QRcodeImage");
         string url         = AgentLoginUser.UserBasic.EnterpriseID + "." + ConstConfigBll.GetConfigByKey("domian");
         string showUrl     = url + "/GoodsInfo/Index/" + id;
         byte[] img         = ImageHelper.GetShowImgUrl(showUrl);
         string contentType = MimeMapping.GetMimeMapping("*.jpg");
         return(File(img, contentType));
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 6
0
        public string GetGoodsClass()
        {
            string PagePublic = ConstConfigBll.GetConfigByKey("PagePublic");

            return(new BrandBll().GetBrandList(LoginUser.UserBasic.EnterpriseID));
        }