验证数据

This commit is contained in:
hoteas 2022-05-03 15:17:27 +08:00
parent b709b58fef
commit fe31335cf5
26 changed files with 106 additions and 1828 deletions

View File

@ -1033,13 +1033,29 @@ func (that *HoTimeDB) Insert(table string, data map[string]interface{}) int64 {
tempLen := 0
for k, v := range data {
tempLen++
values = append(values, v)
if tempLen < lens {
queryString += "`" + k + "`,"
valueString += "?,"
vstr := "?"
if Substr(k, len(k)-3, 3) == "[#]" {
k = strings.Replace(k, "[#]", "", -1)
vstr = ObjToStr(v)
if tempLen < lens {
queryString += "`" + k + "`,"
valueString += vstr + ","
} else {
queryString += "`" + k + "`) "
valueString += vstr + ");"
}
} else {
queryString += "`" + k + "`) "
valueString += "?);"
values = append(values, v)
if tempLen < lens {
queryString += "`" + k + "`,"
valueString += "?,"
} else {
queryString += "`" + k + "`) "
valueString += "?);"
}
}
}

View File

@ -63,7 +63,7 @@ var ArticleCtr = Ctr{
}
if len(data) > 1 {
data = Map{"AND": data}
data = Map{"AND": data, "ORDER": "release_time DESC"}
}
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")})
}
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")})
}
}

View File

@ -8,13 +8,15 @@ import (
)
var CompanyCtr = Ctr{
"lists": func(that *Context) {
companyName := that.Req.FormValue("company_name")
if len(companyName) < 2 {
"search": func(that *Context) {
keywords := that.Req.FormValue("keywords")
if len(keywords) < 2 {
that.Display(0, Slice{})
return
}
res, err := aliyun.Company.GetCompanyList(companyName)
res, err := aliyun.Company.GetCompanyList(keywords)
if err != nil {
fmt.Println(err)
that.Display(0, Slice{})

View File

@ -402,7 +402,7 @@ var DeclareCtr = Ctr{
}
if len(data) > 1 {
data = Map{"AND": data}
data = Map{"AND": data, "ORDER": "release_time DESC"}
}
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")})
//}
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")})
}
}

View File

@ -8,7 +8,7 @@ import (
var FavoriteCtr = Ctr{
//关注
"follow": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -28,9 +28,9 @@ var FavoriteCtr = Ctr{
data["type"] = 1
} else if notifyId != 0 {
notify := that.Db.Get("notify", "article_id", Map{"id": notifyId})
if notify != nil {
data = Map{"notify_id": notifyId, "article_id": notify.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
article := that.Db.Get("article", "id", Map{"notify_id": notifyId})
if article != nil {
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})
data["modify_time[#]"] = "now()"
data["del_flag"] = 0
@ -38,9 +38,9 @@ var FavoriteCtr = Ctr{
}
} else if policyId != 0 {
policy := that.Db.Get("policy", "article_id", Map{"id": policyId})
if policy != nil {
data = Map{"policy_id": policyId, "article_id": policy.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
article := that.Db.Get("article", "id", Map{"policy_id": policyId})
if article != nil {
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})
data["modify_time[#]"] = "now()"
data["del_flag"] = 0
@ -48,9 +48,9 @@ var FavoriteCtr = Ctr{
}
} else if declareId != 0 {
declare := that.Db.Get("declare", "article_id", Map{"id": declareId})
if declare != nil {
data = Map{"declare_id": declareId, "article_id": declare.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
article := that.Db.Get("article", "id", Map{"declare_id": declareId})
if article != nil {
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})
data["modify_time[#]"] = "now()"
data["del_flag"] = 0
@ -98,7 +98,7 @@ var FavoriteCtr = Ctr{
//关注
"unfollow": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -118,9 +118,9 @@ var FavoriteCtr = Ctr{
data["type"] = 1
} else if notifyId != 0 {
notify := that.Db.Get("notify", "article_id", Map{"id": notifyId})
if notify != nil {
data = Map{"notify_id": notifyId, "article_id": notify.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
article := that.Db.Get("article", "id", Map{"notify_id": notifyId})
if article != nil {
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})
data["modify_time[#]"] = "now()"
data["del_flag"] = 1
@ -128,9 +128,9 @@ var FavoriteCtr = Ctr{
}
} else if policyId != 0 {
policy := that.Db.Get("policy", "article_id", Map{"id": policyId})
if policy != nil {
data = Map{"policy_id": policyId, "article_id": policy.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
article := that.Db.Get("article", "id", Map{"policy_id": policyId})
if article != nil {
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})
data["modify_time[#]"] = "now()"
data["del_flag"] = 1
@ -138,9 +138,9 @@ var FavoriteCtr = Ctr{
}
} else if declareId != 0 {
declare := that.Db.Get("declare", "article_id", Map{"id": declareId})
if declare != nil {
data = Map{"declare_id": declareId, "article_id": declare.GetCeilInt("article_id"), "user_id": that.Session("user_id").Data}
article := that.Db.Get("article", "id", Map{"declare_id": declareId})
if article != nil {
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})
data["modify_time[#]"] = "now()"
data["del_flag"] = 1
@ -176,13 +176,13 @@ var FavoriteCtr = Ctr{
return
}
that.Display(4, "没有关注")
that.Display(0, "没有关注")
return
},
"search": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -9,11 +9,22 @@ import (
// Project 管理端项目
var Project = Proj{
"article": ArticleCtr,
"company": CompanyCtr,
"declare": DeclareCtr,
"favorite": FavoriteCtr,
"lxcx": Lxcx,
"matters": MattersCtr,
"notify": NotifyCtr,
"order": OrderCtr,
"policy": PolicyCtr,
"provider": ProviderCtr,
"sms": Sms,
"tag": TagCtr,
"user": UserCtr,
"websocket": WebsocketCtr,
"wechath5": Wechath5,
"wechatmini": Wechath5,
"provider": ProviderCtr,
}
//生成随机码的6位md5

View File

@ -8,7 +8,7 @@ import (
var MattersCtr = Ctr{
"create": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -45,7 +45,7 @@ var MattersCtr = Ctr{
that.Display(0, re)
},
"info": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -70,7 +70,7 @@ var MattersCtr = Ctr{
},
"edit": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -108,7 +108,7 @@ var MattersCtr = Ctr{
//用户微信公众号或者小程序登录
"search": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -86,7 +86,7 @@ var NotifyCtr = Ctr{
}
if len(data) > 1 {
data = Map{"AND": data}
data = Map{"AND": data, "ORDER": "release_time DESC"}
}
count := that.Db.Count("article", data)

View File

@ -9,7 +9,7 @@ import (
var OrderCtr = Ctr{
//创建订单
"create": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -110,7 +110,7 @@ var OrderCtr = Ctr{
},
"info": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -138,7 +138,7 @@ var OrderCtr = Ctr{
//用户微信公众号或者小程序登录
"search": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -87,7 +87,7 @@ var PolicyCtr = Ctr{
}
if len(data) > 1 {
data = Map{"AND": data}
data = Map{"AND": data, "ORDER": "release_time DESC"}
}
count := that.Db.Count("article", data)

View File

@ -53,6 +53,11 @@ var ProviderCtr = Ctr{
data["OR"] = Map{"name[~]": keywords, "title[~]": keywords}
}
tp := that.Req.FormValue("type")
if tp != "" {
data[tp] = 1
}
policyDeclareFlag := that.Req.FormValue("policy_declare_flag")
if policyDeclareFlag != "" {
data["policy_declare_flag"] = ObjToInt(policyDeclareFlag)
@ -80,7 +85,7 @@ var ProviderCtr = Ctr{
count := that.Db.Count("provider", data)
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})
},

View File

@ -9,10 +9,6 @@ var Sms = Ctr{
//只允许微信验证过的或者登录成功的发送短信
"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 {
that.Display(2, "没有登录不可发送短信")
return

View File

@ -8,7 +8,7 @@ import (
var TagCtr = Ctr{
"create": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -13,7 +13,7 @@ var UserCtr = Ctr{
},
//用户微信公众号或者小程序登录
"info": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -40,7 +40,7 @@ var UserCtr = Ctr{
},
"edit": func(that *Context) {
if that.Session("user_id").Data != nil {
if that.Session("user_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -91,6 +91,6 @@ var UserCtr = Ctr{
return
}
that.Display(4, "修改成功")
that.Display(0, "修改成功")
},
}

View File

@ -24,9 +24,9 @@
"crossDomain": "",
"db": {
"mysql": {
"host": "192.168.6.253",
"host": "192.168.2.50",
"name": "zct_v2",
"password": "dasda8454456",
"password": "kct@2021",
"port": "3306",
"prefix": "",
"user": "root"

View File

@ -7,7 +7,7 @@ import (
var CompanyCtr = Ctr{
"info": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -39,7 +39,7 @@ var CompanyCtr = Ctr{
that.Display(0, res)
},
"edit": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -8,7 +8,12 @@ import (
// Project 管理端项目
var Project = Proj{
"company": CompanyCtr,
"matters": MattersCtr,
"order": OrderCtr,
"salesman": Salesman,
"sms": Sms,
"user": UserCtr,
"wechat": Wechat,
}

View File

@ -8,7 +8,7 @@ import (
var MattersCtr = Ctr{
"info": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -39,7 +39,7 @@ var MattersCtr = Ctr{
//用户微信公众号或者小程序登录
"search": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -7,7 +7,7 @@ import (
var OrderCtr = Ctr{
"info": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -39,7 +39,7 @@ var OrderCtr = Ctr{
that.Display(0, res)
},
"create_order_record": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -87,7 +87,7 @@ var OrderCtr = Ctr{
},
"edit": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -160,7 +160,7 @@ var OrderCtr = Ctr{
//用户微信公众号或者小程序登录
"search": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -12,7 +12,7 @@ var Salesman = Ctr{
that.Display(0, 1)
},
"info": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -35,7 +35,7 @@ var Salesman = Ctr{
},
"search": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -92,7 +92,7 @@ var Salesman = Ctr{
code := that.Req.FormValue("code")
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, "手机号或者验证码错误")
return
}

View File

@ -8,7 +8,7 @@ import (
var UserCtr = Ctr{
//用户微信公众号或者小程序登录
"info": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -32,7 +32,7 @@ var UserCtr = Ctr{
"edit": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}
@ -85,7 +85,7 @@ var UserCtr = Ctr{
},
"search": func(that *Context) {
if that.Session("salesman_id").Data != nil {
if that.Session("salesman_id").Data == nil {
that.Display(2, "没有登录")
return
}

View File

@ -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

View File

@ -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年三年均盈利利润为正"
}
]
}

View File

@ -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>

View File

@ -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>