Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var comid = UserHelper.CurrentCompany.ID;

            typeid = Request["typeid"].ConvertTo <int>(0);
            id     = Request["id"].ConvertTo <int>(0);

            BindHeadPortrait();
            ShowImgBind();
            B2bModelData mdate = new B2bModelData();
            //判断模板,进行跳转
            var h5model = mdate.SelectModelSearchComid(comid);

            if (h5model != null)
            {
                Modelid = h5model.Modelid;
            }

            if (Modelid != 0)
            {
                var modeldata = new B2bModelData();
                var modelinfo = modeldata.GetModelById(Modelid);
                if (modelinfo != null)
                {
                    bjimage_w = modelinfo.Bgimage_w;
                    bjimage_h = modelinfo.Bgimage_h;
                }
            }

            if (bjimage_h != 0)
            {
                bgtishi = "图片大小 高:" + bjimage_h + "px 宽:" + bjimage_w + "px .请对图片进行处理,上传过大图片会影响浏览!";
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var comid = UserHelper.CurrentCompany.ID;

            id = Request["id"].ConvertTo <int>(0);

            BindHeadPortrait();
            ShowImgBind();

            B2bModelData mdate = new B2bModelData();
            //判断模板,进行跳转
            var h5model = mdate.SelectModelSearchComid(comid);

            if (h5model != null)
            {
                Modelid = h5model.Modelid;
            }


            if (Modelid != 0)
            {
                var modeldata = new B2bModelData();
                var modelinfo = modeldata.GetModelById(Modelid);
                if (modelinfo != null)
                {
                    Daohangimg = modelinfo.Daohangimg;
                }
            }
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //string u = Request.ServerVariables["HTTP_USER_AGENT"];
            //bool bo = detectmobilebrowser.HttpUserAgent(u);
            bool bo = true;

            string RequestUrl = Request.ServerVariables["SERVER_NAME"].ToLower();

            if (Domain_def.Domain_yanzheng(RequestUrl))//如果符合shop101.etown.cn的格式,则从多微信商户基本信息表中获取comid
            {
                comid = Int32.Parse(Domain_def.Domain_Huoqu(RequestUrl).ToString());
            }
            else
            {
                B2b_company_info companyinfo = B2bCompanyData.GetComId(RequestUrl);
                if (companyinfo != null)
                {
                    comid = companyinfo.Com_id;
                }
            }
            if (comid != 0)
            {
                //根据公司id得到公司logo地址和公司名称
                comname = B2bCompanyData.GetCompany(comid).Com_name;
                B2b_company_saleset pro = B2bCompanySaleSetData.GetDirectSellByComid(comid.ToString());
                if (pro != null)
                {
                    comlogo = FileSerivce.GetImgUrl(pro.Logo.ConvertTo <int>(0));
                }

                //获取微信平台端code
                string weixincode = Request["code"].ConvertTo <string>("");

                if (weixincode != "")
                {
                    int questtype = 2;//1=微信授权验证
                    DealUserinfo1("", weixincode, comid, questtype);
                }
                else
                {
                    string openid     = Request["openid"].ConvertTo <string>("");
                    string weixinpass = Request["weixinpass"].ConvertTo <string>("");
                    int    questtype  = 1;                               //1=一次性密码验证
                    DealUserinfo1(openid, weixinpass, comid, questtype); //判断用户微信号(1,点击的转发链接进来的2,点击微信菜单进来的);使用户处于登录状态(不包括点击转发链接的)
                }

                B2bModelData mdate = new B2bModelData();
                //判断模板,进行跳转
                var h5model = mdate.SelectModelSearchComid(comid);
                if (h5model != null)
                {
                    if (h5model.Modelid != 1)
                    {
                        Response.Redirect("/h5/Default" + h5model.Modelid + ".aspx");
                    }
                }
            }
        }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            comid = Request["comid"].ConvertTo <int>(0);

            B2bModelData mdate   = new B2bModelData();
            var          h5model = mdate.SelectModelSearchComid(comid);

            if (h5model != null)
            {
                Modelid = h5model.Modelid;
            }
        }
Пример #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            comid = Request["comid"].ConvertTo <int>(0);

            if (comid != 0)
            {
                B2bModelData mdate = new B2bModelData();
                //判断模板,进行跳转
                var h5model = mdate.SelectModelSearchComid(comid);
                if (h5model != null)
                {
                    if (h5model.Modelid != 1)
                    {
                        Response.Redirect("/h5/manage/Default" + h5model.Modelid + ".aspx?comid=" + comid);
                    }
                }
            }
        }
Пример #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var          comid = UserHelper.CurrentCompany.ID;
            B2bModelData mdate = new B2bModelData();
            //判断模板,进行跳转
            var h5model = mdate.SelectModelSearchComid(comid);

            if (h5model != null)
            {
                Modelid = h5model.Modelid;
            }


            if (Modelid != 0)
            {
                var modelinfo = mdate.GetModelById(Modelid);
                if (modelinfo != null)
                {
                    Daohangimg = modelinfo.Daohangimg;
                }
            }
        }