MxWeiXinPF.Web/weixin/lbs/index.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MxWeiXinPF.Web.weixin.lbs
{
public partial class index : System.Web.UI.Page
{
public string xPoint;
public string yPoint;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
float xPoint = MyCommFun.RequestFloat("x",0);
float yPoint = MyCommFun.RequestFloat("y", 0);
if (xPoint == 0 || yPoint == 0)
{
return;
}
int wid = MyCommFun.RequestWid();
if (wid==0)
{
return;
}
BindData(xPoint, yPoint, wid);
}
}
/// <summary>
/// 绑定数据
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
protected void BindData(float x, float y,int wid)
{
BLL.wx_lbs_setting setBll = new BLL.wx_lbs_setting();
Model.wx_lbs_setting setting = setBll.GetSettingByWid(wid);
bannerPic.ImageUrl = setting.bannerPicUrl;
BLL.wx_lbs_shopInfo sBll = new BLL.wx_lbs_shopInfo();
//SELECT * FROM wx_lbs_shopInfo WHERE dbo.[ufn_GetMapDistance](121.4624,31.220933,yPoint, xPoint) < 5
IList<Model.wx_lbs_shopInfo> shopList = sBll.GetDetailList(wid,"dbo.[ufn_GetMapDistance](" + y + "," + x + ",yPoint, xPoint) < " + setting.searchRadius);
StringBuilder rpLocationStr =new StringBuilder("");
if (shopList != null && shopList.Count > 0)
{
string juli = "0";
for (int i = 0; i < shopList.Count; i++)
{
juli = (sBll.getMapDistance((double)y, (double)x, (double)(shopList[i].yPoint.Value), (double)(shopList[i].xPoint.Value))).ToString("F1");
rpLocationStr.Append("<li>");
string dUrl = DetailUrl(wid, shopList[i].id, x, y, shopList[i].wUrl);
后面还有 36 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
