forked from golang/hotime
验证数据
This commit is contained in:
parent
b709b58fef
commit
fe31335cf5
@ -1033,13 +1033,29 @@ func (that *HoTimeDB) Insert(table string, data map[string]interface{}) int64 {
|
|||||||
tempLen := 0
|
tempLen := 0
|
||||||
for k, v := range data {
|
for k, v := range data {
|
||||||
tempLen++
|
tempLen++
|
||||||
values = append(values, v)
|
|
||||||
if tempLen < lens {
|
vstr := "?"
|
||||||
queryString += "`" + k + "`,"
|
if Substr(k, len(k)-3, 3) == "[#]" {
|
||||||
valueString += "?,"
|
k = strings.Replace(k, "[#]", "", -1)
|
||||||
|
|
||||||
|
vstr = ObjToStr(v)
|
||||||
|
if tempLen < lens {
|
||||||
|
queryString += "`" + k + "`,"
|
||||||
|
valueString += vstr + ","
|
||||||
|
} else {
|
||||||
|
queryString += "`" + k + "`) "
|
||||||
|
valueString += vstr + ");"
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
queryString += "`" + k + "`) "
|
|
||||||
valueString += "?);"
|
values = append(values, v)
|
||||||
|
if tempLen < lens {
|
||||||
|
queryString += "`" + k + "`,"
|
||||||
|
valueString += "?,"
|
||||||
|
} else {
|
||||||
|
queryString += "`" + k + "`) "
|
||||||
|
valueString += "?);"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ var ArticleCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(data) > 1 {
|
if len(data) > 1 {
|
||||||
data = Map{"AND": data}
|
data = Map{"AND": data, "ORDER": "release_time DESC"}
|
||||||
}
|
}
|
||||||
|
|
||||||
count := that.Db.Count("article", data)
|
count := that.Db.Count("article", data)
|
||||||
@ -79,7 +79,7 @@ var ArticleCtr = Ctr{
|
|||||||
v["policy"] = that.Db.Get("policy", "tag", Map{"id": v.GetCeilInt("policy_id")})
|
v["policy"] = that.Db.Get("policy", "tag", Map{"id": v.GetCeilInt("policy_id")})
|
||||||
}
|
}
|
||||||
if v.GetCeilInt("declare_id") > 0 {
|
if v.GetCeilInt("declare_id") > 0 {
|
||||||
v["declare"] = that.Db.Get("declare", "money_scope_min,money_scope_max,tag,status", Map{"id": v.GetCeilInt("declare_id")})
|
v["declare"] = that.Db.Get("declare", "money_scope_min,money_scope_max,status", Map{"id": v.GetCeilInt("declare_id")})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,13 +8,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var CompanyCtr = Ctr{
|
var CompanyCtr = Ctr{
|
||||||
"lists": func(that *Context) {
|
|
||||||
companyName := that.Req.FormValue("company_name")
|
"search": func(that *Context) {
|
||||||
if len(companyName) < 2 {
|
keywords := that.Req.FormValue("keywords")
|
||||||
|
if len(keywords) < 2 {
|
||||||
that.Display(0, Slice{})
|
that.Display(0, Slice{})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
res, err := aliyun.Company.GetCompanyList(companyName)
|
|
||||||
|
res, err := aliyun.Company.GetCompanyList(keywords)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
that.Display(0, Slice{})
|
that.Display(0, Slice{})
|
||||||
|
@ -402,7 +402,7 @@ var DeclareCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(data) > 1 {
|
if len(data) > 1 {
|
||||||
data = Map{"AND": data}
|
data = Map{"AND": data, "ORDER": "release_time DESC"}
|
||||||
}
|
}
|
||||||
|
|
||||||
count := that.Db.Count("article", data)
|
count := that.Db.Count("article", data)
|
||||||
@ -418,7 +418,7 @@ var DeclareCtr = Ctr{
|
|||||||
// v["declare"]=that.Db.Get("declare","tag",Map{"id":v.GetCeilInt("declare_id")})
|
// v["declare"]=that.Db.Get("declare","tag",Map{"id":v.GetCeilInt("declare_id")})
|
||||||
//}
|
//}
|
||||||
if v.GetCeilInt("declare_id") > 0 {
|
if v.GetCeilInt("declare_id") > 0 {
|
||||||
v["declare"] = that.Db.Get("declare", "money_scope_min,money_scope_max,tag,status", Map{"id": v.GetCeilInt("declare_id")})
|
v["declare"] = that.Db.Get("declare", "money_scope_min,money_scope_max,status", Map{"id": v.GetCeilInt("declare_id")})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
var FavoriteCtr = Ctr{
|
var FavoriteCtr = Ctr{
|
||||||
//关注
|
//关注
|
||||||
"follow": func(that *Context) {
|
"follow": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -28,9 +28,9 @@ var FavoriteCtr = Ctr{
|
|||||||
data["type"] = 1
|
data["type"] = 1
|
||||||
|
|
||||||
} else if notifyId != 0 {
|
} else if notifyId != 0 {
|
||||||
notify := that.Db.Get("notify", "article_id", Map{"id": notifyId})
|
article := that.Db.Get("article", "id", Map{"notify_id": notifyId})
|
||||||
if notify != nil {
|
if article != nil {
|
||||||
data = Map{"notify_id": notifyId, "article_id": notify.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
|
data = Map{"notify_id": notifyId, "article_id": article.GetCeilInt("id"), "user_id": that.Session("user_id").Data}
|
||||||
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
||||||
data["modify_time[#]"] = "now()"
|
data["modify_time[#]"] = "now()"
|
||||||
data["del_flag"] = 0
|
data["del_flag"] = 0
|
||||||
@ -38,9 +38,9 @@ var FavoriteCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if policyId != 0 {
|
} else if policyId != 0 {
|
||||||
policy := that.Db.Get("policy", "article_id", Map{"id": policyId})
|
article := that.Db.Get("article", "id", Map{"policy_id": policyId})
|
||||||
if policy != nil {
|
if article != nil {
|
||||||
data = Map{"policy_id": policyId, "article_id": policy.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
|
data = Map{"policy_id": policyId, "article_id": article.GetCeilInt("id"), "user_id": that.Session("user_id").Data}
|
||||||
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
||||||
data["modify_time[#]"] = "now()"
|
data["modify_time[#]"] = "now()"
|
||||||
data["del_flag"] = 0
|
data["del_flag"] = 0
|
||||||
@ -48,9 +48,9 @@ var FavoriteCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if declareId != 0 {
|
} else if declareId != 0 {
|
||||||
declare := that.Db.Get("declare", "article_id", Map{"id": declareId})
|
article := that.Db.Get("article", "id", Map{"declare_id": declareId})
|
||||||
if declare != nil {
|
if article != nil {
|
||||||
data = Map{"declare_id": declareId, "article_id": declare.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
|
data = Map{"declare_id": declareId, "article_id": article.GetCeilInt("id"), "user_id": that.Session("user_id").Data}
|
||||||
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
||||||
data["modify_time[#]"] = "now()"
|
data["modify_time[#]"] = "now()"
|
||||||
data["del_flag"] = 0
|
data["del_flag"] = 0
|
||||||
@ -98,7 +98,7 @@ var FavoriteCtr = Ctr{
|
|||||||
|
|
||||||
//关注
|
//关注
|
||||||
"unfollow": func(that *Context) {
|
"unfollow": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -118,9 +118,9 @@ var FavoriteCtr = Ctr{
|
|||||||
data["type"] = 1
|
data["type"] = 1
|
||||||
|
|
||||||
} else if notifyId != 0 {
|
} else if notifyId != 0 {
|
||||||
notify := that.Db.Get("notify", "article_id", Map{"id": notifyId})
|
article := that.Db.Get("article", "id", Map{"notify_id": notifyId})
|
||||||
if notify != nil {
|
if article != nil {
|
||||||
data = Map{"notify_id": notifyId, "article_id": notify.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
|
data = Map{"notify_id": notifyId, "article_id": article.GetCeilInt("id"), "user_id": that.Session("user_id").Data}
|
||||||
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
||||||
data["modify_time[#]"] = "now()"
|
data["modify_time[#]"] = "now()"
|
||||||
data["del_flag"] = 1
|
data["del_flag"] = 1
|
||||||
@ -128,9 +128,9 @@ var FavoriteCtr = Ctr{
|
|||||||
}
|
}
|
||||||
} else if policyId != 0 {
|
} else if policyId != 0 {
|
||||||
|
|
||||||
policy := that.Db.Get("policy", "article_id", Map{"id": policyId})
|
article := that.Db.Get("article", "id", Map{"policy_id": policyId})
|
||||||
if policy != nil {
|
if article != nil {
|
||||||
data = Map{"policy_id": policyId, "article_id": policy.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
|
data = Map{"policy_id": policyId, "article_id": article.GetCeilInt("id"), "user_id": that.Session("user_id").Data}
|
||||||
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
||||||
data["modify_time[#]"] = "now()"
|
data["modify_time[#]"] = "now()"
|
||||||
data["del_flag"] = 1
|
data["del_flag"] = 1
|
||||||
@ -138,9 +138,9 @@ var FavoriteCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if declareId != 0 {
|
} else if declareId != 0 {
|
||||||
declare := that.Db.Get("declare", "article_id", Map{"id": declareId})
|
article := that.Db.Get("article", "id", Map{"declare_id": declareId})
|
||||||
if declare != nil {
|
if article != nil {
|
||||||
data = Map{"declare_id": declareId, "article_id": declare.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
|
data = Map{"declare_id": declareId, "article_id": article.GetCeilInt("id"), "user_id": that.Session("user_id").Data}
|
||||||
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
favorite = that.Db.Get("favorite", "*", Map{"AND": data})
|
||||||
data["modify_time[#]"] = "now()"
|
data["modify_time[#]"] = "now()"
|
||||||
data["del_flag"] = 1
|
data["del_flag"] = 1
|
||||||
@ -176,13 +176,13 @@ var FavoriteCtr = Ctr{
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
that.Display(4, "没有关注")
|
that.Display(0, "没有关注")
|
||||||
return
|
return
|
||||||
},
|
},
|
||||||
|
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,22 @@ import (
|
|||||||
|
|
||||||
// Project 管理端项目
|
// Project 管理端项目
|
||||||
var Project = Proj{
|
var Project = Proj{
|
||||||
|
"article": ArticleCtr,
|
||||||
|
"company": CompanyCtr,
|
||||||
|
"declare": DeclareCtr,
|
||||||
|
"favorite": FavoriteCtr,
|
||||||
"lxcx": Lxcx,
|
"lxcx": Lxcx,
|
||||||
|
"matters": MattersCtr,
|
||||||
|
"notify": NotifyCtr,
|
||||||
|
"order": OrderCtr,
|
||||||
|
"policy": PolicyCtr,
|
||||||
|
"provider": ProviderCtr,
|
||||||
|
"sms": Sms,
|
||||||
|
"tag": TagCtr,
|
||||||
|
"user": UserCtr,
|
||||||
"websocket": WebsocketCtr,
|
"websocket": WebsocketCtr,
|
||||||
"wechath5": Wechath5,
|
"wechath5": Wechath5,
|
||||||
"wechatmini": Wechath5,
|
"wechatmini": Wechath5,
|
||||||
"provider": ProviderCtr,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//生成随机码的6位md5
|
//生成随机码的6位md5
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
var MattersCtr = Ctr{
|
var MattersCtr = Ctr{
|
||||||
"create": func(that *Context) {
|
"create": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -45,7 +45,7 @@ var MattersCtr = Ctr{
|
|||||||
that.Display(0, re)
|
that.Display(0, re)
|
||||||
},
|
},
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ var MattersCtr = Ctr{
|
|||||||
},
|
},
|
||||||
"edit": func(that *Context) {
|
"edit": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@ var MattersCtr = Ctr{
|
|||||||
//用户微信公众号或者小程序登录
|
//用户微信公众号或者小程序登录
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ var NotifyCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(data) > 1 {
|
if len(data) > 1 {
|
||||||
data = Map{"AND": data}
|
data = Map{"AND": data, "ORDER": "release_time DESC"}
|
||||||
}
|
}
|
||||||
|
|
||||||
count := that.Db.Count("article", data)
|
count := that.Db.Count("article", data)
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
var OrderCtr = Ctr{
|
var OrderCtr = Ctr{
|
||||||
//创建订单
|
//创建订单
|
||||||
"create": func(that *Context) {
|
"create": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -110,7 +110,7 @@ var OrderCtr = Ctr{
|
|||||||
},
|
},
|
||||||
|
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ var OrderCtr = Ctr{
|
|||||||
//用户微信公众号或者小程序登录
|
//用户微信公众号或者小程序登录
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ var PolicyCtr = Ctr{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(data) > 1 {
|
if len(data) > 1 {
|
||||||
data = Map{"AND": data}
|
data = Map{"AND": data, "ORDER": "release_time DESC"}
|
||||||
}
|
}
|
||||||
|
|
||||||
count := that.Db.Count("article", data)
|
count := that.Db.Count("article", data)
|
||||||
|
@ -53,6 +53,11 @@ var ProviderCtr = Ctr{
|
|||||||
data["OR"] = Map{"name[~]": keywords, "title[~]": keywords}
|
data["OR"] = Map{"name[~]": keywords, "title[~]": keywords}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tp := that.Req.FormValue("type")
|
||||||
|
if tp != "" {
|
||||||
|
data[tp] = 1
|
||||||
|
}
|
||||||
|
|
||||||
policyDeclareFlag := that.Req.FormValue("policy_declare_flag")
|
policyDeclareFlag := that.Req.FormValue("policy_declare_flag")
|
||||||
if policyDeclareFlag != "" {
|
if policyDeclareFlag != "" {
|
||||||
data["policy_declare_flag"] = ObjToInt(policyDeclareFlag)
|
data["policy_declare_flag"] = ObjToInt(policyDeclareFlag)
|
||||||
@ -80,7 +85,7 @@ var ProviderCtr = Ctr{
|
|||||||
count := that.Db.Count("provider", data)
|
count := that.Db.Count("provider", data)
|
||||||
|
|
||||||
res := that.Db.Page(page, pageSize).PageSelect("provider", "id,name,level,discount,avatar,title,description,"+
|
res := that.Db.Page(page, pageSize).PageSelect("provider", "id,name,level,discount,avatar,title,description,"+
|
||||||
"click_num_base+click_num AS click_num,handle_num_base+handle_num AS handle_num,favorite_num_base+favorite_num AS favorite_num,modify_time", data)
|
"click_num_base+click_num AS click_num,handle_num_base+handle_num AS handle_num,favorite_num_base+favorite_num AS favorite_num,modify_time,policy_declare_flag,intellectual_property_flag,tax_onsulting_flag,law_flag", data)
|
||||||
|
|
||||||
that.Display(0, Map{"total": count, "data": res})
|
that.Display(0, Map{"total": count, "data": res})
|
||||||
},
|
},
|
||||||
|
@ -9,10 +9,6 @@ var Sms = Ctr{
|
|||||||
//只允许微信验证过的或者登录成功的发送短信
|
//只允许微信验证过的或者登录成功的发送短信
|
||||||
"send": func(that *Context) {
|
"send": func(that *Context) {
|
||||||
|
|
||||||
if len(that.Req.FormValue("token")) != 32 {
|
|
||||||
that.Display(2, "没有授权")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if that.Session("wechat_id").Data == nil && that.Session("user_id").Data == nil {
|
if that.Session("wechat_id").Data == nil && that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录不可发送短信")
|
that.Display(2, "没有登录不可发送短信")
|
||||||
return
|
return
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
var TagCtr = Ctr{
|
var TagCtr = Ctr{
|
||||||
|
|
||||||
"create": func(that *Context) {
|
"create": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ var UserCtr = Ctr{
|
|||||||
},
|
},
|
||||||
//用户微信公众号或者小程序登录
|
//用户微信公众号或者小程序登录
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ var UserCtr = Ctr{
|
|||||||
},
|
},
|
||||||
|
|
||||||
"edit": func(that *Context) {
|
"edit": func(that *Context) {
|
||||||
if that.Session("user_id").Data != nil {
|
if that.Session("user_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -91,6 +91,6 @@ var UserCtr = Ctr{
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
that.Display(4, "修改成功")
|
that.Display(0, "修改成功")
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
"crossDomain": "",
|
"crossDomain": "",
|
||||||
"db": {
|
"db": {
|
||||||
"mysql": {
|
"mysql": {
|
||||||
"host": "192.168.6.253",
|
"host": "192.168.2.50",
|
||||||
"name": "zct_v2",
|
"name": "zct_v2",
|
||||||
"password": "dasda8454456",
|
"password": "kct@2021",
|
||||||
"port": "3306",
|
"port": "3306",
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"user": "root"
|
"user": "root"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
var CompanyCtr = Ctr{
|
var CompanyCtr = Ctr{
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ var CompanyCtr = Ctr{
|
|||||||
that.Display(0, res)
|
that.Display(0, res)
|
||||||
},
|
},
|
||||||
"edit": func(that *Context) {
|
"edit": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,12 @@ import (
|
|||||||
|
|
||||||
// Project 管理端项目
|
// Project 管理端项目
|
||||||
var Project = Proj{
|
var Project = Proj{
|
||||||
|
"company": CompanyCtr,
|
||||||
|
"matters": MattersCtr,
|
||||||
|
"order": OrderCtr,
|
||||||
"salesman": Salesman,
|
"salesman": Salesman,
|
||||||
|
"sms": Sms,
|
||||||
|
"user": UserCtr,
|
||||||
"wechat": Wechat,
|
"wechat": Wechat,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
var MattersCtr = Ctr{
|
var MattersCtr = Ctr{
|
||||||
|
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ var MattersCtr = Ctr{
|
|||||||
|
|
||||||
//用户微信公众号或者小程序登录
|
//用户微信公众号或者小程序登录
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
var OrderCtr = Ctr{
|
var OrderCtr = Ctr{
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ var OrderCtr = Ctr{
|
|||||||
that.Display(0, res)
|
that.Display(0, res)
|
||||||
},
|
},
|
||||||
"create_order_record": func(that *Context) {
|
"create_order_record": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -87,7 +87,7 @@ var OrderCtr = Ctr{
|
|||||||
},
|
},
|
||||||
"edit": func(that *Context) {
|
"edit": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -160,7 +160,7 @@ var OrderCtr = Ctr{
|
|||||||
//用户微信公众号或者小程序登录
|
//用户微信公众号或者小程序登录
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ var Salesman = Ctr{
|
|||||||
that.Display(0, 1)
|
that.Display(0, 1)
|
||||||
},
|
},
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -35,7 +35,7 @@ var Salesman = Ctr{
|
|||||||
},
|
},
|
||||||
|
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ var Salesman = Ctr{
|
|||||||
code := that.Req.FormValue("code")
|
code := that.Req.FormValue("code")
|
||||||
phone := that.Req.FormValue("phone")
|
phone := that.Req.FormValue("phone")
|
||||||
|
|
||||||
if phone != that.Session("phone").ToStr() && code != that.Session("code").ToStr() {
|
if phone != that.Session("phone").ToStr() && code == that.Session("code").ToStr() {
|
||||||
that.Display(3, "手机号或者验证码错误")
|
that.Display(3, "手机号或者验证码错误")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
var UserCtr = Ctr{
|
var UserCtr = Ctr{
|
||||||
//用户微信公众号或者小程序登录
|
//用户微信公众号或者小程序登录
|
||||||
"info": func(that *Context) {
|
"info": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -32,7 +32,7 @@ var UserCtr = Ctr{
|
|||||||
|
|
||||||
"edit": func(that *Context) {
|
"edit": func(that *Context) {
|
||||||
|
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ var UserCtr = Ctr{
|
|||||||
},
|
},
|
||||||
|
|
||||||
"search": func(that *Context) {
|
"search": func(that *Context) {
|
||||||
if that.Session("salesman_id").Data != nil {
|
if that.Session("salesman_id").Data == nil {
|
||||||
that.Display(2, "没有登录")
|
that.Display(2, "没有登录")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>微信登录</title>
|
|
||||||
<script type="text/javascript" src="js/hotime.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script>
|
|
||||||
function run() {
|
|
||||||
var data={"code":H.getParam("code")}
|
|
||||||
if(data.code==null){
|
|
||||||
location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdcc8d6360661a179&redirect_uri='+location.href+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
H.post("app/wechat/codeh5", data, function (res) {
|
|
||||||
|
|
||||||
if (res.status != 0) {
|
|
||||||
// alert(res.result.type)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// H.upUrl("https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzkwNTI4NTcyNA==#wechat_redirect");
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
run()
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
File diff suppressed because one or more lines are too long
@ -1,360 +0,0 @@
|
|||||||
|
|
||||||
var x = {
|
|
||||||
form: [
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "纳税总额(2021)",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "万元"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "利润总额(2021)",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "万元"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "营业收入(2021)",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "万元"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "是否有获得过市级荣誉称号/获奖证书/扶持资金",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "市级荣誉称号/获奖证书/扶持资金证明材料",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "是否有获得过省级荣誉称号/获奖证书/扶持资金",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "省级荣誉称号/获奖证书/扶持资金证明材料",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "是否有获得过国家级荣誉称号/获奖证书/扶持资金",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "国家级荣誉称号/获奖证书/扶持资金证明材料",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "新增投资情况",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "万元",
|
|
||||||
"remarks": "请填写新增投资情况金额"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "获得融资",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "万元",
|
|
||||||
"remarks": "请填写获得融资金额"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "获得银行贷款",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "万元",
|
|
||||||
"remarks": "请填写获得银行贷款金额"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业为本地区重点企业的重要配套企业",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业为省、市重点企业(含成渝双城圈和成都都市圈内企业)的重要配套企业",
|
|
||||||
"type": "是/否",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否符合本地区重点发展产业",
|
|
||||||
"type": "是/否",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业或主要产品进入世界500强、中国500强企业生产(产品)供应商体系",
|
|
||||||
"type": "是/否",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业被确定为市级100户重点企业、区(市)县重点企业",
|
|
||||||
"type": "否/市级100户重点企业/区(市)县重点企业",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业被确定为产业链链主企业、省级重点企业、市级30户龙头企业(含5户省返企业)",
|
|
||||||
"type": "否/产业链链主/省级重点/市级30户龙头企业",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业拥有职业健康与安全管理体系",
|
|
||||||
"type": "是/否",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "企业拥有职业健康与安全管理体系证书"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业拥有环境管理体系",
|
|
||||||
"type": "是/否",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "企业拥有环境管理体系证书"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业拥有质量管理体系",
|
|
||||||
"type": "是/否",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "企业拥有质量管理体系证书"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业发生安全事故",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "次",
|
|
||||||
"remarks": "请填写企业发生安全事故次数"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业在安全检查、安全抽查中被发现风险隐患并受到处理",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "次",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否为能耗重点监测企业",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "使用环保节能环保进行生产经营活动",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "请填写改造项目名称"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "使用智能制造装备进行生产经营活动",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业在环保检查、环保抽查中被发现问题并受到处理",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "次",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业实施减排技术升级改造",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业绿色生产供应链取得成效,作为国家级、省级、市级(绿色工厂)经验推广",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "PCT国际专利",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "件",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "上传PCT国际专利图片(最多上传10张)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "实用新型专利",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "件",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "上传实用新型专利图片(最多上传10张)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "发明专利",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "件",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "上传发明专利图片(最多上传10张)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业产品进入重大技术装备首台(套)、新材料首批次、软件首版次推广应用",
|
|
||||||
"type": "否/首台(套)/首批次/首版次",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "重大技术装备首台(套)、新材料首批次、软件首版次推广应用证明材料"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业产品进入国家级、省级、市级推广目录",
|
|
||||||
"type": "否/国家级/省级/市级",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "推广目录名称"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业品牌为国家级、省级、市级知名品牌的(含地理标志保护)",
|
|
||||||
"type": "否/国家级/省级/市级",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "品牌名称",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "知名品牌证明材料"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业获得国家级高新技术企业认定",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "高新技术企业证书"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业研究与试验发展(R&D)投入在1000万元以上,或投入强度在3%以上",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业主导投资的在蓉工业项目总投资达到500万元、1亿元、5亿元、10亿元、30亿元、50亿元的",
|
|
||||||
"type": "否/500万元/1亿元/5亿元/10亿元/30亿元/50亿元",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业获得国家级、省级、市级企业技术中心、工程技术中心",
|
|
||||||
"type": "否/国家级/省级/市级",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "“企业技术中心”证明材料"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业获得国家级、省级、市级企业工程技术中心",
|
|
||||||
"type": "否/国家级/省级/市级",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "拥有多项可只选最高级",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "“工程技术中心”证明材料"
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否获得国家级、省级、市级“独角兽”企业称号",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "“独角兽”证明材料"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否获得国家级、省级、市级“瞪羚”企业称号",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "“瞪羚”证明材料"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否拥有专精特新称号",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "包括国家级、省级、市级专精特新“小巨人”企业等称号"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "营业收入增长率",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "%",
|
|
||||||
"remarks": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "营业收入1亿元以上",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "2021年"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业主导或参与过国际、“一带一路”区域、国家级、行业、省级等行业标准制定",
|
|
||||||
"type": "否/主导国际/参与国际/主导“一带一路”/参与“一带一路”/主导国家级/参与国家级/主导省级/参与省级/主导行业/参与行业",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "",
|
|
||||||
"fileNum": 1,
|
|
||||||
"fileRemarks": "标准书署名页"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "产品是否获得国家“单项冠军产品”称号",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "称号名称"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否连续3年亏损",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "即2019年、2020年、2021年三年均亏损(利润为负)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业利润率",
|
|
||||||
"type": "数字",
|
|
||||||
"unit": "%",
|
|
||||||
"remarks": "企业利润率=2021年利润总额/2021年营业收入"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "IEDCXXXS",
|
|
||||||
"label": "企业是否连续3年盈利",
|
|
||||||
"type": "是/否",
|
|
||||||
"unit": "",
|
|
||||||
"remarks": "即2019年、2020年、2021年三年均盈利(利润为正)"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<script src="js/hotime.js" type="text/javascript"></script>
|
|
||||||
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
|
|
||||||
|
|
||||||
<title>测试分享</title>
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
测试分享页
|
|
||||||
</body>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
|
|
||||||
var Weixin={
|
|
||||||
create:function () {
|
|
||||||
|
|
||||||
H.post("app/wechat/sign",{"sign_url":window.location.href},function (res) {
|
|
||||||
Weixin.config(res);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
isClose:false,
|
|
||||||
config:function (res) {
|
|
||||||
Weixin['data']={
|
|
||||||
title:'测试分享',
|
|
||||||
link:"https://"+location.host+"/wx/code.html?sn=12321",
|
|
||||||
desc: '政策通——通达所有政策',
|
|
||||||
imgUrl:"https://"+location.host+"/img/logo.jpg",
|
|
||||||
}
|
|
||||||
wx.ready(function(){
|
|
||||||
wx.onMenuShareAppMessage(Weixin.data);
|
|
||||||
wx.onMenuShareQQ(Weixin.data);
|
|
||||||
wx.onMenuShareTimeline(Weixin.data);
|
|
||||||
wx.getLocation({
|
|
||||||
type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
|
|
||||||
success: function (res) {
|
|
||||||
Index.lat= res.latitude; // 纬度,浮点数,范围为90 ~ -90
|
|
||||||
Index.lng = res.longitude; // 经度,浮点数,范围为180 ~ -180。
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
res.result.jsApiList=[
|
|
||||||
|
|
||||||
'checkJsApi',
|
|
||||||
'onMenuShareTimeline',
|
|
||||||
'onMenuShareAppMessage',
|
|
||||||
'onMenuShareQQ',
|
|
||||||
'onMenuShareWeibo',
|
|
||||||
'hideMenuItems',
|
|
||||||
'showMenuItems',
|
|
||||||
'hideAllNonBaseMenuItem',
|
|
||||||
'showAllNonBaseMenuItem',
|
|
||||||
'translateVoice',
|
|
||||||
'startRecord',
|
|
||||||
'stopRecord',
|
|
||||||
'onRecordEnd',
|
|
||||||
'playVoice',
|
|
||||||
'pauseVoice',
|
|
||||||
'stopVoice',
|
|
||||||
'uploadVoice',
|
|
||||||
'downloadVoice',
|
|
||||||
'chooseImage',
|
|
||||||
'previewImage',
|
|
||||||
'uploadImage',
|
|
||||||
'downloadImage',
|
|
||||||
'getNetworkType',
|
|
||||||
'openLocation',
|
|
||||||
'getLocation',
|
|
||||||
'hideOptionMenu',
|
|
||||||
'showOptionMenu',
|
|
||||||
'closeWindow',
|
|
||||||
'scanQRCode',
|
|
||||||
'chooseWXPay',
|
|
||||||
'openProductSpecificView',
|
|
||||||
'addCard',
|
|
||||||
'chooseCard',
|
|
||||||
'openCard'
|
|
||||||
|
|
||||||
];
|
|
||||||
wx.config(res.result);
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Weixin.create();
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>测试</title>
|
|
||||||
<script type="text/javascript" src="js/hotime.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<script>
|
|
||||||
function run() {
|
|
||||||
var data={"code":H.getParam("code")}
|
|
||||||
if(data.code==null){
|
|
||||||
location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdcc8d6360661a179&redirect_uri='+location.href+'&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
H.post("app/wechat/code", data, function (res) {
|
|
||||||
|
|
||||||
H.upUrl("/wx/");
|
|
||||||
})
|
|
||||||
}
|
|
||||||
run()
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue
Block a user