Merge branch 'zct-wechat' into zct-manage
# Conflicts: # example/config/config.json # example/main.go # example/zct_manage.exe
0
.tgitconfig
Normal file
@ -3,8 +3,13 @@ package app
|
||||
import (
|
||||
. "code.hoteas.com/golang/hotime"
|
||||
. "code.hoteas.com/golang/hotime/common"
|
||||
"code.hoteas.com/golang/hotime/dri/ddsms"
|
||||
"github.com/silenceper/wechat/v2"
|
||||
"github.com/silenceper/wechat/v2/cache"
|
||||
"github.com/silenceper/wechat/v2/miniprogram"
|
||||
"github.com/silenceper/wechat/v2/miniprogram/config"
|
||||
"github.com/silenceper/wechat/v2/officialaccount"
|
||||
h5config "github.com/silenceper/wechat/v2/officialaccount/config"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -15,9 +20,31 @@ var Project = Proj{
|
||||
}
|
||||
var weixin *wechat.Wechat //微信登录实例
|
||||
var miniProgram *miniprogram.MiniProgram
|
||||
var h5Program *officialaccount.OfficialAccount
|
||||
|
||||
func init() {
|
||||
func InitApp(app Application) {
|
||||
weixin = wechat.NewWechat()
|
||||
memory := cache.NewMemory()
|
||||
memoryMini := cache.NewMemory()
|
||||
cfg := &config.Config{
|
||||
AppID: app.Config.GetString("wechatMiniAppID"),
|
||||
AppSecret: app.Config.GetString("wechatMiniAppSecret"),
|
||||
//Token: "xxx",
|
||||
//EncodingAESKey: "xxxx",
|
||||
Cache: memoryMini,
|
||||
}
|
||||
h5cfg := &h5config.Config{
|
||||
AppID: app.Config.GetString("wechatAppID"),
|
||||
AppSecret: app.Config.GetString("wechatAppSecret"),
|
||||
//Token: "xxx",
|
||||
//EncodingAESKey: "xxxx",
|
||||
Cache: memory,
|
||||
}
|
||||
|
||||
miniProgram = weixin.GetMiniProgram(cfg)
|
||||
h5Program = weixin.GetOfficialAccount(h5cfg)
|
||||
|
||||
ddsms.DDY.Init(app.Config.GetString("smsKey"))
|
||||
}
|
||||
|
||||
//生成随机码的6位md5
|
||||
@ -25,3 +52,12 @@ func getSn() string {
|
||||
x := Rand(8)
|
||||
return Substr(Md5(ObjToStr(int64(x)+time.Now().UnixNano()+int64(Rand(6)))), 0, 6)
|
||||
}
|
||||
|
||||
//生成随机码的4位随机数
|
||||
func getCode() string {
|
||||
//res := ""
|
||||
//for i := 0; i < 4; i++ {
|
||||
res := ObjToStr(RandX(1000, 9999))
|
||||
//}
|
||||
return res
|
||||
}
|
||||
|
29
example/app/sms.go
Normal file
@ -0,0 +1,29 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
. "code.hoteas.com/golang/hotime"
|
||||
)
|
||||
|
||||
var Sms = Ctr{
|
||||
//只允许微信验证过的或者登录成功的发送短信
|
||||
//"send": func(this *Context) {
|
||||
//
|
||||
// if len(this.Req.FormValue("token")) != 32 {
|
||||
// this.Display(2, "没有授权")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// phone := this.Req.FormValue("phone")
|
||||
// if len(phone) < 11 {
|
||||
// this.Display(3, "手机号格式错误")
|
||||
// return
|
||||
// }
|
||||
// code := getCode()
|
||||
// this.Session("phone", phone)
|
||||
// this.Session("code", code)
|
||||
//
|
||||
// ddsms.DDY.SendYZM(phone, this.Config.GetString("smsLogin"), map[string]string{"code": code})
|
||||
//
|
||||
// this.Display(0, "发送成功")
|
||||
//},
|
||||
}
|
@ -3,110 +3,38 @@ package app
|
||||
import (
|
||||
. "code.hoteas.com/golang/hotime"
|
||||
. "code.hoteas.com/golang/hotime/common"
|
||||
"code.hoteas.com/golang/hotime/dri/download"
|
||||
"fmt"
|
||||
"github.com/silenceper/wechat/v2/cache"
|
||||
"github.com/silenceper/wechat/v2/miniprogram/config"
|
||||
"time"
|
||||
|
||||
//"fmt"
|
||||
"github.com/silenceper/wechat/v2"
|
||||
//"github.com/silenceper/wechat/v2/cache"
|
||||
)
|
||||
|
||||
var Wechat = Ctr{
|
||||
"login": func(that *Context) {
|
||||
nickname := that.Req.FormValue("nickname")
|
||||
avatar := that.Req.FormValue("avatarUrl")
|
||||
|
||||
sessionKey := that.Req.FormValue("sessionkey")
|
||||
encryptedData := that.Req.FormValue("encryptedData")
|
||||
iv := that.Req.FormValue("iv")
|
||||
|
||||
if that.Session("wechat_id").Data == nil {
|
||||
that.Display(2, "还没有获取token")
|
||||
return
|
||||
}
|
||||
|
||||
if nickname == "" || avatar == "" || encryptedData == "" || iv == "" {
|
||||
if sessionKey == "" || encryptedData == "" || iv == "" {
|
||||
that.Display(3, "参数不足")
|
||||
return
|
||||
}
|
||||
|
||||
if weixin == nil {
|
||||
weixin = wechat.NewWechat()
|
||||
memory := cache.NewMemory()
|
||||
cfg := &config.Config{
|
||||
AppID: that.Config.GetString("wechatAppID"),
|
||||
AppSecret: that.Config.GetString("wechatAppSecret"),
|
||||
//Token: "xxx",
|
||||
//EncodingAESKey: "xxxx",
|
||||
Cache: memory,
|
||||
}
|
||||
|
||||
miniProgram = weixin.GetMiniProgram(cfg)
|
||||
}
|
||||
|
||||
wechatId := that.Session("wechat_id").ToCeilInt()
|
||||
|
||||
wchat := that.Db.Get("wechat", "*", Map{"id": wechatId})
|
||||
|
||||
if wchat == nil {
|
||||
that.Display(4, "找不到该用户")
|
||||
return
|
||||
}
|
||||
|
||||
eny := miniProgram.GetEncryptor()
|
||||
re, e := eny.Decrypt(wchat.GetString("retoken"), encryptedData, iv)
|
||||
re, e := eny.Decrypt(sessionKey, encryptedData, iv)
|
||||
|
||||
if e != nil {
|
||||
that.Display(4, e)
|
||||
return
|
||||
}
|
||||
that.Display(0, re.PhoneNumber)
|
||||
|
||||
admin := that.Db.Get("admin", "*", Map{"phone": re.PhoneNumber})
|
||||
if admin == nil {
|
||||
that.Display(5, "你不是本系统用户,无法使用本系统")
|
||||
return
|
||||
}
|
||||
|
||||
t := time.Now().Unix()
|
||||
path := time.Now().Format(that.Config.GetString("imgPath"))
|
||||
filename := Md5(ObjToStr(t)) + ".jpg"
|
||||
down := download.Down(avatar, that.Config.GetString("tpt")+"/"+path, filename)
|
||||
if down {
|
||||
avatar = path + filename
|
||||
}
|
||||
|
||||
that.Db.Update("wechat", Map{"admin_id": admin.GetCeilInt("id"), "modify_time": t, "avatar": avatar, "nickname": nickname}, Map{"id": wchat.GetCeilInt64("id")})
|
||||
that.Db.Update("admin", Map{"avatar_img": avatar, "modify_time": t}, Map{"id": admin.GetCeilInt64("id")})
|
||||
|
||||
that.Session("admin_id", admin.GetCeilInt64("id"))
|
||||
that.Display(0, "成功!")
|
||||
},
|
||||
"code": func(that *Context) {
|
||||
|
||||
that.Session("admin_id", 1)
|
||||
that.Display(0, Map{"status": 1, "token": that.SessionId})
|
||||
return
|
||||
|
||||
code := that.Req.FormValue("code")
|
||||
if code == "" {
|
||||
that.Display(3, "缺少code")
|
||||
return
|
||||
}
|
||||
if weixin == nil {
|
||||
weixin = wechat.NewWechat()
|
||||
memory := cache.NewMemory()
|
||||
cfg := &config.Config{
|
||||
AppID: that.Config.GetString("wechatAppID"),
|
||||
AppSecret: that.Config.GetString("wechatAppSecret"),
|
||||
//Token: "xxx",
|
||||
//EncodingAESKey: "xxxx",
|
||||
Cache: memory,
|
||||
}
|
||||
|
||||
miniProgram = weixin.GetMiniProgram(cfg)
|
||||
}
|
||||
//mini := weixin.GetMiniProgram(cfg)
|
||||
a := miniProgram.GetAuth()
|
||||
re, e := a.Code2Session(code)
|
||||
fmt.Println(re)
|
||||
@ -114,164 +42,73 @@ var Wechat = Ctr{
|
||||
that.Display(4, e)
|
||||
return
|
||||
}
|
||||
wchat := that.Db.Get("wechat", "*", Map{"openid": re.OpenID})
|
||||
|
||||
if wchat == nil {
|
||||
wchat = Map{"openid": re.OpenID,
|
||||
wchat := Map{"openid": re.OpenID,
|
||||
"appid": a.AppID,
|
||||
"state": 0,
|
||||
"retoken": re.SessionKey,
|
||||
"modify_time": time.Now().Unix(),
|
||||
"create_time": time.Now().Unix(),
|
||||
"sessionkey": re.SessionKey,
|
||||
"unionid": re.UnionID,
|
||||
}
|
||||
wchat["id"] = that.Db.Insert("wechat", wchat)
|
||||
//wchat["id"] = that.Db.Insert("wechat", wchat)
|
||||
|
||||
} else {
|
||||
wchat["modify_time"] = time.Now().Unix()
|
||||
wchat["retoken"] = re.SessionKey
|
||||
wchat["unionid"] = re.UnionID
|
||||
that.Db.Update("wechat", wchat, Map{"id": wchat.GetCeilInt("id")})
|
||||
}
|
||||
|
||||
that.Session("wechat_id", wchat.GetCeilInt("id"))
|
||||
|
||||
if wchat.GetCeilInt("admin_id") == 0 {
|
||||
that.Display(0, Map{"status": 0, "token": that.SessionId})
|
||||
return
|
||||
}
|
||||
|
||||
that.Session("admin_id", wchat.GetCeilInt("admin_id"))
|
||||
that.Display(0, Map{"status": 1, "token": that.SessionId})
|
||||
that.Display(0, wchat)
|
||||
return
|
||||
|
||||
},
|
||||
|
||||
////微信注册,0已经完整的注册了,1还没有注册
|
||||
//"codebase": func(that *Context) {
|
||||
// wx := Weixin(that)
|
||||
// auth := wx.GetOauth()
|
||||
// resToken, err := auth.GetUserAccessToken(that.Req.FormValue("code"))
|
||||
// if err != nil {
|
||||
// that.Display(6, "code错误")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// //判断用户是否已经注册
|
||||
// user := that.Db.Get("wechat", Map{"[><]user": "wechat.user_id=user.id"}, "user.id,user.state", Map{"openid": resToken.OpenID})
|
||||
// if user != nil {
|
||||
// that.Session("user_id", user.Get("id"))
|
||||
// that.Display(0, 0)
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// user_id := that.Db.Insert("user", Map{"time": time.Now().Unix(), "state": 2})
|
||||
// if user_id == 0 {
|
||||
// that.Display(4, "创建用户失败")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// wid := that.Db.Insert("wechat", Map{"openid": resToken.OpenID, "appid": that.Config.GetString("wechatAppID"), "state": 1, "user_id": user_id})
|
||||
// if wid == 0 {
|
||||
// that.Display(4, "关联微信失败!")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// that.Session("user_id", user.Get("id"))
|
||||
//
|
||||
// that.Display(0, 1)
|
||||
//},
|
||||
////微信注册,0已经完整的注册了,1还没有注册
|
||||
//"code": func(that *Context) {
|
||||
//
|
||||
// orgId := ObjToInt(that.Req.FormValue("org_id"))
|
||||
// //if orgId==0{
|
||||
// // that.Display(3, "缺少组织id")
|
||||
// // return
|
||||
// //}
|
||||
//
|
||||
// wx := Weixin(that)
|
||||
// auth := wx.GetOauth()
|
||||
// resToken, err := auth.GetUserAccessToken(that.Req.FormValue("code"))
|
||||
// if err != nil {
|
||||
// that.Display(5, "code错误")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// //判断用户是否已经注册
|
||||
// user := that.Db.Get("wechat", Map{"[><]user": "wechat.user_id=user.id"}, "user.id,user.state", Map{"openid": resToken.OpenID})
|
||||
// if user != nil && user.GetCeilInt("id") != 0 && user.GetCeilInt("state") == 0 {
|
||||
// that.Session("user_id", user.Get("id"))
|
||||
// that.Display(0, Map{"type": 0, "token": that.SessionId})
|
||||
// return
|
||||
// }
|
||||
// //getUserInfo
|
||||
// userInfo, err := auth.GetUserInfo(resToken.AccessToken, resToken.OpenID)
|
||||
// if err != nil {
|
||||
// that.Display(6, "微信个人信息无法获取")
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// //wechatInfo := ObjToMap(userInfo)
|
||||
// t := time.Now().Unix()
|
||||
// wechatInfo := Map{
|
||||
// "openid": userInfo.OpenID,
|
||||
// "acttoken": resToken.AccessToken,
|
||||
// "retoken": resToken.RefreshToken,
|
||||
// "appid": that.Config.GetString("wechatAppID"),
|
||||
// "unionid": userInfo.Unionid,
|
||||
// "nickname": userInfo.Nickname,
|
||||
// "avatar": userInfo.HeadImgURL,
|
||||
// }
|
||||
// if orgId != 0 {
|
||||
// wechatInfo["org_id"] = orgId
|
||||
// wechatInfo["status"] = 0
|
||||
// }
|
||||
//
|
||||
// wechatDb := that.Db.Get("wechat", "*", Map{"openid": wechatInfo.GetString("openid")})
|
||||
//
|
||||
// if wechatDb != nil {
|
||||
//
|
||||
// that.Db.Update("wechat", wechatInfo, Map{"id": wechatDb.GetCeilInt("id")})
|
||||
// //userInfo["wid"]=wechatDb.GetCeilInt("wid")
|
||||
// } else {
|
||||
// wechatInfo["create_time"] = t
|
||||
// wechatInfo["id"] = that.Db.Insert("wechat", wechatInfo)
|
||||
// }
|
||||
// wechatDb = that.Db.Get("wechat", "*", Map{"openid": wechatInfo.GetString("openid")})
|
||||
//
|
||||
// that.Session("wechatInfo", wechatDb)
|
||||
// fmt.Println(wechatDb)
|
||||
// fmt.Println(that.Session("wechatInfo"))
|
||||
// //that.Display(0, 1)
|
||||
// that.Display(0, Map{"type": 1, "token": that.SessionId})
|
||||
//},
|
||||
"codeh5": func(that *Context) {
|
||||
|
||||
auth := h5Program.GetOauth()
|
||||
//weixin.GetOpenPlatform()
|
||||
resToken, err := auth.GetUserAccessToken(that.Req.FormValue("code"))
|
||||
if err != nil {
|
||||
that.Display(5, "code错误")
|
||||
return
|
||||
}
|
||||
|
||||
//getUserInfo
|
||||
userInfo, err := auth.GetUserInfo(resToken.AccessToken, resToken.OpenID, "")
|
||||
if err != nil {
|
||||
that.Display(6, "微信个人信息无法获取")
|
||||
return
|
||||
}
|
||||
|
||||
//wechatInfo := ObjToMap(userInfo)
|
||||
wechatInfo := Map{
|
||||
"openid": userInfo.OpenID,
|
||||
"acttoken": resToken.AccessToken,
|
||||
"retoken": resToken.RefreshToken,
|
||||
"appid": that.Config.GetString("wechatAppID"),
|
||||
"unionid": userInfo.Unionid,
|
||||
"nickname": userInfo.Nickname,
|
||||
"avatar": userInfo.HeadImgURL,
|
||||
}
|
||||
|
||||
that.Display(0, wechatInfo)
|
||||
},
|
||||
//网页签名
|
||||
//"sign": func(that *Context) {
|
||||
//
|
||||
// if that.Req.FormValue("sign_url") == "" {
|
||||
// that.Display(2, "参数不足")
|
||||
// return
|
||||
// }
|
||||
// signUrl := that.Req.FormValue("sign_url")
|
||||
// signUrl = "https://hycb.hoteas.com/wxapp"
|
||||
//
|
||||
// js := officialAccount.GetJs()
|
||||
// //js.GetConfig()
|
||||
// //js := weixin.GetJs()
|
||||
// cfg1, e := js.GetConfig(signUrl)
|
||||
// if e != nil {
|
||||
// that.Display(7, e)
|
||||
// return
|
||||
// }
|
||||
//
|
||||
// sign := Map{
|
||||
// "appId": cfg1.AppID,
|
||||
// "timestamp": cfg1.Timestamp,
|
||||
// "nonceStr": cfg1.NonceStr,
|
||||
// "signature": cfg1.Signature,
|
||||
// }
|
||||
//
|
||||
// that.Display(0, sign)
|
||||
//
|
||||
//},
|
||||
"sign": func(that *Context) {
|
||||
|
||||
if that.Req.FormValue("sign_url") == "" {
|
||||
that.Display(2, "参数不足")
|
||||
return
|
||||
}
|
||||
signUrl := that.Req.FormValue("sign_url")
|
||||
js := h5Program.GetJs()
|
||||
cfg1, e := js.GetConfig(signUrl)
|
||||
if e != nil {
|
||||
that.Display(7, e)
|
||||
return
|
||||
}
|
||||
|
||||
sign := Map{
|
||||
"appId": cfg1.AppID,
|
||||
"timestamp": cfg1.Timestamp,
|
||||
"nonceStr": cfg1.NonceStr,
|
||||
"signature": cfg1.Signature,
|
||||
}
|
||||
|
||||
that.Display(0, sign)
|
||||
|
||||
},
|
||||
}
|
||||
|
@ -15,16 +15,24 @@
|
||||
{
|
||||
"config": "config/admin.json",
|
||||
"mode": 0,
|
||||
"name": "",
|
||||
"rule": "config/adminRule.json",
|
||||
"table": "admin"
|
||||
},
|
||||
{
|
||||
"config": "config/app.json",
|
||||
"mode": 0,
|
||||
"name": "app",
|
||||
"rule": "config/appRule.json",
|
||||
"table": "admin"
|
||||
}
|
||||
],
|
||||
"crossDomain": "",
|
||||
"db": {
|
||||
"mysql": {
|
||||
"host": "192.168.2.50",
|
||||
"name": "zct_v2",
|
||||
"password": "kct@2021",
|
||||
"host": "192.168.6.253",
|
||||
"name": "rfcb",
|
||||
"password": "dasda8454456",
|
||||
"port": "3306",
|
||||
"prefix": "",
|
||||
"user": "root"
|
||||
@ -43,12 +51,14 @@
|
||||
},
|
||||
"imgPath": "img/2006/01/02/",
|
||||
"mode": 2,
|
||||
"port": "8081",
|
||||
"port": "8082",
|
||||
"sessionName": "HOTIME",
|
||||
"smsKey": "b0eb4bf0198b9983cffcb85b69fdf4fa",
|
||||
"smsLogin": "【政企超链接】您的验证码为:{code},请在5分钟内使用,切勿将验证码泄露于他人,如非本人操作请忽略。",
|
||||
"smsLogin": "【政策通】您的验证码为:{code},请在5分钟内使用,切勿将验证码泄露于他人,如非本人操作请忽略。",
|
||||
"tpt": "tpt",
|
||||
"wechatAppID": "wx6126460a528a20e5",
|
||||
"wechatAppSecret": "1dfdd8079414c795950d71bc92d0f1bd",
|
||||
"wechatAppID": "wxdcc8d6360661a179",
|
||||
"wechatAppSecret": "4d793683ca915264663a9c9a33530c3c",
|
||||
"wechatMiniAppID": "wx1c795e883b5b54c4",
|
||||
"wechatMiniAppSecret": "d2bec12d1fa4d8b5714ccbed1c0671e4",
|
||||
"wxFilePath": "wxfile/2006/01/02/"
|
||||
}
|
@ -2,6 +2,8 @@ package main
|
||||
|
||||
import (
|
||||
. "code.hoteas.com/golang/hotime"
|
||||
"code.hoteas.com/golang/hotime/example/app"
|
||||
//. "code.hoteas.com/golang/hotime/common"
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
@ -11,8 +13,15 @@ func main() {
|
||||
fmt.Println(date, date.Unix())
|
||||
//fmt.Println("0123456"[1:7])
|
||||
appIns := Init("config/config.json")
|
||||
app.InitApp(appIns)
|
||||
//a:=Map{}
|
||||
//a.GetBool()
|
||||
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
|
||||
//that.Session("admin_id", 1)
|
||||
|
||||
return isFinished
|
||||
})
|
||||
|
||||
//appIns.SetConnectListener(func(that *Context) (isFinished bool) {
|
||||
//
|
||||
// return isFinished
|
||||
@ -21,6 +30,6 @@ func main() {
|
||||
// return isSuccess
|
||||
//})
|
||||
appIns.Run(Router{
|
||||
//"app": app.Project,
|
||||
"app": app.Project,
|
||||
})
|
||||
}
|
||||
|
32
example/tpt/code.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!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>
|
@ -1 +0,0 @@
|
||||
.form-file-item .upload-file .el-upload{width:100px;height:auto;line-height:0;background-color:transparent}.form-file-item .el-button--small{height:32px}.el-input-number--mini{width:100px;margin-right:5px}.basic-form-info .el-input-number--mini .el-input{width:100px!important}.basic-form{width:400px}.basic-form .el-input,.basic-form .el-select{width:84px;margin-right:5px}.form-file-item{margin-bottom:5px}.form-file-item .el-upload{width:60px;height:60px;line-height:60px}.form-file-item .file-item .name{width:100px}.form-file-item .name{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-list .form-common-item{display:flex;margin-bottom:5px}.form-common-item .name,.form-common-item .value{width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list .select-list-item{display:flex;margin-bottom:5px}.select-list-item .name{width:76px}.select-list-item .name,.select-list-item .value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list-item .value{width:77px}.select-wrap{text-align:left;margin-bottom:5px}.select-wrap .select-add-name{display:inline-block;width:87px;text-align:right}.select-wrap .el-input{width:84px}.el-input__inner{padding-left:10px;padding-right:5px}.el-upload{height:60px;width:60px;background:#eee;overflow:hidden}.not-show-tab-label .el-tabs__header{display:none}.el-descriptions__body{background:#f0f0f0}.not-show-tab-search{display:none}.el-table__body-wrapper{margin-bottom:4px;padding-bottom:2px}.el-table__body-wrapper::-webkit-scrollbar{width:8px;height:8px}.el-table__body-wrapper::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 6px hsla(0,0%,93.3%,.3);background-color:#eee}.el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(145,143,143,.3);background-color:#918f8f}
|
@ -1 +0,0 @@
|
||||
.not-show-tab-label .el-tabs__header{display:none}.el-descriptions__body{background:#f0f0f0}.not-show-tab-search{display:none}.el-table__body-wrapper{margin-bottom:4px;padding-bottom:2px}.el-table__body-wrapper::-webkit-scrollbar{width:8px;height:8px}.el-table__body-wrapper::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 6px hsla(0,0%,93.3%,.3);background-color:#eee}.el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(145,143,143,.3);background-color:#918f8f}
|
@ -1 +0,0 @@
|
||||
.el-upload{height:100px;width:100px;background:#eee;overflow:hidden}.el-upload img[data-v-3a110a5c]{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;display:block}.el-upload i[data-v-3a110a5c]{font-size:40px;margin:30% 31%;display:block}
|
@ -1 +0,0 @@
|
||||
.form-file-item .upload-file .el-upload{width:100px;height:auto;line-height:0;background-color:transparent}.form-file-item .el-button--small{height:32px}.el-input-number--mini{width:100px;margin-right:5px}.basic-form .el-input-number--mini .el-input{width:100px!important}.basic-form{width:400px}.basic-form .el-input,.basic-form .el-select{width:84px;margin-right:5px}.form-file-item{margin-bottom:5px}.form-file-item .el-upload{width:60px;height:60px;line-height:60px}.form-file-item .file-item .name{width:100px}.form-file-item .name{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-list .form-common-item{display:flex;margin-bottom:5px}.form-common-item .name,.form-common-item .value{width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list .select-list-item{display:flex;margin-bottom:5px}.select-list-item .name{width:76px}.select-list-item .name,.select-list-item .value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list-item .value{width:77px}.select-wrap{text-align:left;margin-bottom:5px}.select-wrap .select-add-name{display:inline-block;width:87px;text-align:right}.select-wrap .el-input{width:84px}.el-input__inner{padding-left:10px;padding-right:5px}.el-upload,.el-upload-list--picture-card .el-upload-list__item{height:60px;width:60px}.el-upload-list__item.is-success.focusing .el-icon-close-tip{display:none!important}.el-upload{height:100px;width:100px;background:#eee;overflow:hidden}.file-upload .el-upload{background:transparent;width:100%;height:auto;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-upload .el-upload .el-button{margin-right:10px}.el-upload img[data-v-d9262c54]{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;display:block}.el-upload i[data-v-d9262c54]{font-size:40px;margin:30% 31%;display:block}
|
@ -1 +0,0 @@
|
||||
.not-show-tab-label .el-tabs__header{display:none}.el-descriptions__body{background:#f0f0f0}.not-show-tab-search{display:none}.el-table__body-wrapper{margin-bottom:4px;padding-bottom:2px}.el-table__body-wrapper::-webkit-scrollbar{width:8px;height:8px}.el-table__body-wrapper::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 6px hsla(0,0%,93.3%,.3);background-color:#eee}.el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(145,143,143,.3);background-color:#918f8f}
|
@ -1 +0,0 @@
|
||||
body[data-v-581864d3],dd[data-v-581864d3],dl[data-v-581864d3],form[data-v-581864d3],h1[data-v-581864d3],h2[data-v-581864d3],h3[data-v-581864d3],h4[data-v-581864d3],h5[data-v-581864d3],h6[data-v-581864d3],html[data-v-581864d3],ol[data-v-581864d3],p[data-v-581864d3],pre[data-v-581864d3],tbody[data-v-581864d3],textarea[data-v-581864d3],tfoot[data-v-581864d3],thead[data-v-581864d3],ul[data-v-581864d3]{margin:0;font-size:14px;font-family:Microsoft YaHei}dl[data-v-581864d3],ol[data-v-581864d3],ul[data-v-581864d3]{padding:0}li[data-v-581864d3]{list-style:none}input[data-v-581864d3]{border:none;outline:none;font-family:Microsoft YaHei;background-color:#fff}a[data-v-581864d3]{font-family:Microsoft YaHei;text-decoration:none}[data-v-581864d3]{margin:0;padding:0}.login[data-v-581864d3]{position:relative;width:100%;height:100%;background-color:#353d56}.login-item[data-v-581864d3]{position:absolute;top:calc(50% - 244px);left:calc(50% - 244px);width:488px;height:488px;padding:80px 0 152px 0;box-sizing:border-box;background-size:468px 468px}.login-item .left-title[data-v-581864d3]{display:inline-block;width:236px;height:100%;border-right:2px solid #88919e;text-align:center;padding-top:68px;box-sizing:border-box}.login-item .left-title p[data-v-581864d3]{font-size:30px;line-height:50px;color:#fff}.login-item .right-content[data-v-581864d3]{display:inline-block;vertical-align:top;padding-left:42px;box-sizing:border-box}.login-item .right-content .login-title[data-v-581864d3]{font-size:16px;color:#fff}.errorMsg[data-v-581864d3]{width:100%;height:34px;line-height:34px;color:red;font-size:14px;overflow:hidden}.login-item .right-content .inputWrap[data-v-581864d3]{width:204px;height:36px;line-height:36px;color:#99a3b2;font-size:14px;border-bottom:3px solid #98a2b1;margin-bottom:10px}.login-item .right-content .inputWrap input[data-v-581864d3]{background-color:transparent;color:#99a3b2}.login-btn[data-v-581864d3]{width:88px;height:36px;text-align:center;line-height:36px;font-size:14px;color:#fff;background-color:#4f619b;border-radius:18px;margin-top:60px;cursor:pointer}
|
@ -1 +0,0 @@
|
||||
.left-nav-home-bar{background:#2c3759!important}.left-nav-home-bar,.left-nav-home-bar i{color:#fff!important}.el-submenu .el-menu-item{height:40px;line-height:40px}.el-menu .el-submenu__title{height:46px;line-height:46px}.left-nav-home-bar i{margin-bottom:6px!important}.el-menu-item-group__title{padding:0 0 0 20px}.head-left[data-v-cf253d38],.head-right[data-v-cf253d38]{display:flex;justify-content:center;flex-direction:column}.head-right[data-v-cf253d38]{align-items:flex-end}.el-upload{height:100px;width:100px;background:#eee;overflow:hidden}.el-upload img[data-v-3a110a5c]{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;display:block}.el-upload i[data-v-3a110a5c]{font-size:40px;margin:30% 31%;display:block}
|
@ -1 +0,0 @@
|
||||
.el-upload{height:100px;width:100px;background:#eee;overflow:hidden}.el-upload img[data-v-3a110a5c]{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;display:block}.el-upload i[data-v-3a110a5c]{font-size:40px;margin:30% 31%;display:block}
|
@ -1 +0,0 @@
|
||||
.form-file-item .upload-file .el-upload{width:100px;height:auto;line-height:0;background-color:transparent}.form-file-item .el-button--small{height:32px}.el-input-number--mini{width:100px;margin-right:5px}.basic-form .el-input-number--mini .el-input{width:100px!important}.basic-form{width:400px}.basic-form .el-input,.basic-form .el-select{width:84px;margin-right:5px}.form-file-item{margin-bottom:5px}.form-file-item .el-upload{width:60px;height:60px;line-height:60px}.form-file-item .file-item .name{width:100px}.form-file-item .name{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-list .form-common-item{display:flex;margin-bottom:5px}.form-common-item .name,.form-common-item .value{width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list .select-list-item{display:flex;margin-bottom:5px}.select-list-item .name{width:76px}.select-list-item .name,.select-list-item .value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list-item .value{width:77px}.select-wrap{text-align:left;margin-bottom:5px}.select-wrap .select-add-name{display:inline-block;width:87px;text-align:right}.select-wrap .el-input{width:84px}.el-input__inner{padding-left:10px;padding-right:5px}.el-upload,.el-upload-list--picture-card .el-upload-list__item{height:60px;width:60px}.el-upload-list__item.is-success.focusing .el-icon-close-tip{display:none!important}.el-upload{height:100px;width:100px;background:#eee;overflow:hidden}.file-upload .el-upload{background:transparent;width:100%;height:auto;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-upload .el-upload .el-button{margin-right:10px}.el-upload img[data-v-d9262c54]{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;display:block}.el-upload i[data-v-d9262c54]{font-size:40px;margin:30% 31%;display:block}
|
@ -1 +0,0 @@
|
||||
body[data-v-581864d3],dd[data-v-581864d3],dl[data-v-581864d3],form[data-v-581864d3],h1[data-v-581864d3],h2[data-v-581864d3],h3[data-v-581864d3],h4[data-v-581864d3],h5[data-v-581864d3],h6[data-v-581864d3],html[data-v-581864d3],ol[data-v-581864d3],p[data-v-581864d3],pre[data-v-581864d3],tbody[data-v-581864d3],textarea[data-v-581864d3],tfoot[data-v-581864d3],thead[data-v-581864d3],ul[data-v-581864d3]{margin:0;font-size:14px;font-family:Microsoft YaHei}dl[data-v-581864d3],ol[data-v-581864d3],ul[data-v-581864d3]{padding:0}li[data-v-581864d3]{list-style:none}input[data-v-581864d3]{border:none;outline:none;font-family:Microsoft YaHei;background-color:#fff}a[data-v-581864d3]{font-family:Microsoft YaHei;text-decoration:none}[data-v-581864d3]{margin:0;padding:0}.login[data-v-581864d3]{position:relative;width:100%;height:100%;background-color:#353d56}.login-item[data-v-581864d3]{position:absolute;top:calc(50% - 244px);left:calc(50% - 244px);width:488px;height:488px;padding:80px 0 152px 0;box-sizing:border-box;background-size:468px 468px}.login-item .left-title[data-v-581864d3]{display:inline-block;width:236px;height:100%;border-right:2px solid #88919e;text-align:center;padding-top:68px;box-sizing:border-box}.login-item .left-title p[data-v-581864d3]{font-size:30px;line-height:50px;color:#fff}.login-item .right-content[data-v-581864d3]{display:inline-block;vertical-align:top;padding-left:42px;box-sizing:border-box}.login-item .right-content .login-title[data-v-581864d3]{font-size:16px;color:#fff}.errorMsg[data-v-581864d3]{width:100%;height:34px;line-height:34px;color:red;font-size:14px;overflow:hidden}.login-item .right-content .inputWrap[data-v-581864d3]{width:204px;height:36px;line-height:36px;color:#99a3b2;font-size:14px;border-bottom:3px solid #98a2b1;margin-bottom:10px}.login-item .right-content .inputWrap input[data-v-581864d3]{background-color:transparent;color:#99a3b2}.login-btn[data-v-581864d3]{width:88px;height:36px;text-align:center;line-height:36px;font-size:14px;color:#fff;background-color:#4f619b;border-radius:18px;margin-top:60px;cursor:pointer}
|
@ -1 +0,0 @@
|
||||
.left-nav-home-bar{background:#2c3759!important}.left-nav-home-bar,.left-nav-home-bar i{color:#fff!important}.el-submenu .el-menu-item{height:40px;line-height:40px}.el-menu .el-submenu__title{height:46px;line-height:46px}.left-nav-home-bar i{margin-bottom:6px!important}.el-menu-item-group__title{padding:0 0 0 20px}.head-left[data-v-cf253d38],.head-right[data-v-cf253d38]{display:flex;justify-content:center;flex-direction:column}.head-right[data-v-cf253d38]{align-items:flex-end}.el-upload{height:100px;width:100px;background:#eee;overflow:hidden}.el-upload img[data-v-3a110a5c]{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;display:block}.el-upload i[data-v-3a110a5c]{font-size:40px;margin:30% 31%;display:block}
|
@ -1 +0,0 @@
|
||||
.form-file-item .upload-file .el-upload{width:100px;height:auto;line-height:0;background-color:transparent}.form-file-item .el-button--small{height:32px}.el-input-number--mini{width:100px;margin-right:5px}.basic-form-info .el-input-number--mini .el-input{width:100px!important}.basic-form{width:400px}.basic-form .el-input,.basic-form .el-select{width:84px;margin-right:5px}.form-file-item{margin-bottom:5px}.form-file-item .el-upload{width:60px;height:60px;line-height:60px}.form-file-item .file-item .name{width:100px}.form-file-item .name{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.form-list .form-common-item{display:flex;margin-bottom:5px}.form-common-item .name,.form-common-item .value{width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list .select-list-item{display:flex;margin-bottom:5px}.select-list-item .name{width:76px}.select-list-item .name,.select-list-item .value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.select-list-item .value{width:77px}.select-wrap{text-align:left;margin-bottom:5px}.select-wrap .select-add-name{display:inline-block;width:87px;text-align:right}.select-wrap .el-input{width:84px}.el-input__inner{padding-left:10px;padding-right:5px}.el-upload{height:60px;width:60px;background:#eee;overflow:hidden}.not-show-tab-label .el-tabs__header{display:none}.el-descriptions__body{background:#f0f0f0}.not-show-tab-search{display:none}.el-table__body-wrapper{margin-bottom:4px;padding-bottom:2px}.el-table__body-wrapper::-webkit-scrollbar{width:8px;height:8px}.el-table__body-wrapper::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 6px hsla(0,0%,93.3%,.3);background-color:#eee}.el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(145,143,143,.3);background-color:#918f8f}
|
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 33 KiB |
@ -1,75 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>地面图片叠加层</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<style>
|
||||
body,
|
||||
html,
|
||||
#container {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
font-family: "微软雅黑";
|
||||
}
|
||||
</style>
|
||||
<script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=您的密钥"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
var map = new BMapGL.Map('container');
|
||||
map.centerAndZoom(new BMapGL.Point(117.200, 36.2437), 18);
|
||||
map.enableScrollWheelZoom(true);
|
||||
map.setTilt(45);
|
||||
map.setDisplayOptions({
|
||||
poiText: false, // 隐藏poi标注
|
||||
poiIcon: false, // 隐藏poi图标
|
||||
building: false // 隐藏楼块
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
map.clearOverlays();//清除地图覆盖物
|
||||
//思路:利用行政区划点的集合与外围自定义东南西北形成一个环形遮罩层
|
||||
//1.获取选中行政区划边框点的集合rs.boundaries[0]
|
||||
var strs = new Array();
|
||||
|
||||
var ENWS = "";
|
||||
for (var i=0;i<strs.length;i++) {
|
||||
ENWS += strs[i] + ";"
|
||||
}
|
||||
//2.自定义外围边框点的集合
|
||||
var E_JW = "170.672126, 39.623555;"; //东
|
||||
var EN_JW = "170.672126, 81.291804;"; //东北角
|
||||
var N_JW = "105.913641, 81.291804;"; //北
|
||||
var NW_JW = "-169.604276, 81.291804;"; //西北角
|
||||
var W_JW = "-169.604276, 38.244136;"; //西
|
||||
var WS_JW = "-169.604276, -68.045308;"; //西南角
|
||||
var S_JW = "114.15563, -68.045308;"; //南
|
||||
var SE_JW = "170.672126, -68.045308 ;"; //东南角
|
||||
//3.添加环形遮罩层
|
||||
var ply1 = new BMapGL.Polygon(ENWS + E_JW + SE_JW + S_JW + WS_JW + W_JW + NW_JW + N_JW + EN_JW + E_JW, {strokeColor:"#000",strokeOpacity:0.1,fillColor:"#000",fillOpacity:"0.9"}); //建立多边形覆盖物
|
||||
map.addOverlay(ply1);//遮罩物是半透明的,如果需要纯色可以多添加几层
|
||||
map.addOverlay(ply1);//遮罩物是半透
|
||||
map.addOverlay(ply1);//遮罩物是半透
|
||||
|
||||
var pStart = new BMapGL.Point(117.19635, 36.24093);
|
||||
var pEnd = new BMapGL.Point(117.20350, 36.24764);
|
||||
var bounds = new BMapGL.Bounds(new BMapGL.Point(pStart.lng, pEnd.lat), new BMapGL.Point(pEnd.lng, pStart.lat));
|
||||
var imgOverlay = new BMapGL.GroundOverlay(bounds, {
|
||||
type: 'image',
|
||||
url: '/jsdemo/img/shouhuimap.png',
|
||||
opacity: 1
|
||||
});
|
||||
map.addOverlay(imgOverlay);
|
||||
|
||||
|
||||
</script>
|
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 33 KiB |
@ -1,7 +0,0 @@
|
||||
{
|
||||
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
|
||||
"rules": [{
|
||||
"action": "allow",
|
||||
"page": "*"
|
||||
}]
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title></title><style>body{
|
||||
margin: 0px;
|
||||
}</style><link href="css/chunk-25a9c3c8.172952f0.css" rel="prefetch"><link href="css/chunk-368da0af.c460e209.css" rel="prefetch"><link href="css/chunk-550dc75a.993d1e17.css" rel="prefetch"><link href="css/chunk-69c477a2.26f55e87.css" rel="prefetch"><link href="css/chunk-99497f66.26cbd584.css" rel="prefetch"><link href="css/chunk-c3e0f2d6.f9cf649c.css" rel="prefetch"><link href="js/chunk-25a9c3c8.b8753e3d.js" rel="prefetch"><link href="js/chunk-368da0af.ce39d904.js" rel="prefetch"><link href="js/chunk-550dc75a.d9288626.js" rel="prefetch"><link href="js/chunk-5b2ead63.af868ff8.js" rel="prefetch"><link href="js/chunk-69c477a2.dc1bdb5d.js" rel="prefetch"><link href="js/chunk-99497f66.664e5562.js" rel="prefetch"><link href="js/chunk-a2efa204.8a8a537a.js" rel="prefetch"><link href="js/chunk-c3e0f2d6.b9a0f420.js" rel="prefetch"><link href="js/chunk-d83135a2.4680b3b0.js" rel="prefetch"><link href="css/app.6e46e897.css" rel="preload" as="style"><link href="js/app.1a0b9cd0.js" rel="preload" as="script"><link href="css/app.6e46e897.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but hotime doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/app.1a0b9cd0.js"></script></body></html>
|
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-368da0af"],{1:function(t,e){},2934:function(t,e,n){"use strict";n.d(e,"e",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return c}),n.d(e,"a",function(){return u}),n.d(e,"f",function(){return d}),n.d(e,"g",function(){return l});var e=n("b0c0"),a=n("b775"),e=n("4328"),o=n.n(e);function r(t,e){return Object(a.b)({url:t,method:"GET",params:e})}function i(t,e){return Object(a.b)({url:t,method:"GET",params:e})}function s(t,e){return Object(a.b)({url:t,method:"DELETE",data:o.a.stringify(e)})}function c(t,e){return Object(a.b)({url:t,method:"PUT",data:o.a.stringify(e)})}function u(t,e){return Object(a.b)({url:t,method:"POST",data:o.a.stringify(e)})}function d(t){var e=new FormData;return e.append("file",t,t.name),Object(a.b)({url:"file",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:e})}function l(n,o){var r=document.createElement("input");r.type="file";r.addEventListener("change",function(){var t,e=r.files[0];0!==e.size?((t=new FormData).append("file",e,e.name),t.append("org_id",n.org_id),Object(a.b)({url:"admin/company_inout/upload",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:t}).then(o)):o(null,"文件错误",r)}),r.click()}},"578a":function(t,e,n){"use strict";n.r(e);n("b0c0");var i=n("f2bf");Object(i.N)("data-v-581864d3");var s={class:"login",style:{width:"100%",height:"100vh"}},c={class:"login-item"},u={class:"left-title"},d={class:"right-content"},l=Object(i.o)("p",{class:"login-title"},"登录",-1),f={style:{height:"40px"}},p={class:"inputWrap"},b=Object(i.q)(" 账号:"),m={class:"inputWrap"},h=Object(i.q)(" 密码:");Object(i.L)();var o=n("2934"),r={name:"Login",data:function(){return{showLog:!1,showLogInfo:"",label:"HoTime DashBoard",form:{name:"",password:""}}},methods:{login:function(){var e=this;if(""==this.name||""==this.password)return this.showLogInfo="参数不足!",void(this.showLog=!0);Object(o.a)(window.Hotime.data.name+"/hotime/login",e.form).then(function(t){return 0!=t.status?(e.showLogInfo=t.error.msg,void(e.showLog=!0)):void e.$router.push({path:"/"})})}},mounted:function(){this.label=window.Hotime.data.label}};n("8d39");r.render=function(t,e,n,o,r,a){return Object(i.K)(),Object(i.n)("div",s,[Object(i.o)("div",c,[Object(i.o)("div",u,[Object(i.o)("p",null,Object(i.X)(r.label),1)]),Object(i.o)("div",d,[l,Object(i.o)("div",f,[Object(i.jb)(Object(i.o)("p",{class:"errorMsg"},Object(i.X)(r.showLogInfo),513),[[i.fb,r.showLog]])]),Object(i.o)("p",p,[b,Object(i.jb)(Object(i.o)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=function(t){return r.form.name=t}),class:"accountVal"},null,512),[[i.eb,r.form.name]])]),Object(i.o)("p",m,[h,Object(i.jb)(Object(i.o)("input",{type:"password","onUpdate:modelValue":e[1]||(e[1]=function(t){return r.form.password=t}),class:"passwordVal"},null,512),[[i.eb,r.form.password]])]),Object(i.o)("p",{class:"login-btn",onClick:e[2]||(e[2]=function(){return a.login&&a.login.apply(a,arguments)})},"登录")])])])},r.__scopeId="data-v-581864d3";e.default=r},"85dc":function(t,e,n){},"8d39":function(t,e,n){"use strict";n("85dc")},b775:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var o=n("d3b7"),r=n("bc3a"),o=n.n(r),r=n("4328"),a=n.n(r),i=n("7864"),s=n("56d7"),c="/";o.a.defaults.withCredentials=!0,o.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";o=o.a.create({baseURL:c,timeout:2e5});o.interceptors.request.use(function(t){return"get"===t.method&&(t.paramsSerializer=function(t){return a.a.stringify(t,{arrayFormat:"repeat"})}),t.withCredentials=!0,t},function(t){Promise.reject(t)}),o.interceptors.response.use(function(t){return 2!==t.data.statu?t.data:(i.b.Message({showClose:!0,message:"登录信息丢失,请重新登陆!",type:"error",duration:2e3,offset:100}),void s.app.$router.push({path:"/login"}))},function(t){var e="err:"+t,n={};return t.response?n=t.response.data:(-1!=e.indexOf("timeout")?(n.code=500,n.message="请求超时,请稍后再试"):-1!=e.indexOf("Network Error")?(n.code=500,n.message="网络错误,请稍后再试"):(n.code=500,n.message=""+t),n)}),e.b=o}}]);
|
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6feafdad"],{1:function(t,e){},2934:function(t,e,n){"use strict";n.d(e,"e",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return c}),n.d(e,"a",function(){return u}),n.d(e,"f",function(){return d}),n.d(e,"g",function(){return l});var e=n("b0c0"),a=n("b775"),e=n("4328"),o=n.n(e);function r(t,e){return Object(a.b)({url:t,method:"GET",params:e})}function i(t,e){return Object(a.b)({url:t,method:"GET",params:e})}function s(t,e){return Object(a.b)({url:t,method:"DELETE",data:o.a.stringify(e)})}function c(t,e){return Object(a.b)({url:t,method:"PUT",data:o.a.stringify(e)})}function u(t,e){return Object(a.b)({url:t,method:"POST",data:o.a.stringify(e)})}function d(t){var e=new FormData;return e.append("file",t,t.name),Object(a.b)({url:"file",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:e})}function l(n,o){var r=document.createElement("input");r.type="file";r.addEventListener("change",function(){var t,e=r.files[0];0!==e.size?((t=new FormData).append("file",e,e.name),t.append("org_id",n.org_id),Object(a.b)({url:"admin/company_inout/upload",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:t}).then(o)):o(null,"文件错误",r)}),r.click()}},"40a7":function(t,e,n){},"578a":function(t,e,n){"use strict";n.r(e);n("b0c0");var i=n("9f9f");Object(i.N)("data-v-581864d3");var s={class:"login",style:{width:"100%",height:"100vh"}},c={class:"login-item"},u={class:"left-title"},d={class:"right-content"},l=Object(i.o)("p",{class:"login-title"},"登录",-1),f={style:{height:"40px"}},p={class:"inputWrap"},b=Object(i.q)(" 账号:"),m={class:"inputWrap"},h=Object(i.q)(" 密码:");Object(i.L)();var o=n("2934"),r={name:"Login",data:function(){return{showLog:!1,showLogInfo:"",label:"HoTime DashBoard",form:{name:"",password:""}}},methods:{login:function(){var e=this;if(""==this.name||""==this.password)return this.showLogInfo="参数不足!",void(this.showLog=!0);Object(o.a)(window.Hotime.data.name+"/hotime/login",e.form).then(function(t){return 0!=t.status?(e.showLogInfo=t.error.msg,void(e.showLog=!0)):void e.$router.push({path:"/"})})}},mounted:function(){this.label=window.Hotime.data.label}};n("8d39");r.render=function(t,e,n,o,r,a){return Object(i.K)(),Object(i.n)("div",s,[Object(i.o)("div",c,[Object(i.o)("div",u,[Object(i.o)("p",null,Object(i.X)(r.label),1)]),Object(i.o)("div",d,[l,Object(i.o)("div",f,[Object(i.jb)(Object(i.o)("p",{class:"errorMsg"},Object(i.X)(r.showLogInfo),513),[[i.fb,r.showLog]])]),Object(i.o)("p",p,[b,Object(i.jb)(Object(i.o)("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=function(t){return r.form.name=t}),class:"accountVal"},null,512),[[i.eb,r.form.name]])]),Object(i.o)("p",m,[h,Object(i.jb)(Object(i.o)("input",{type:"password","onUpdate:modelValue":e[1]||(e[1]=function(t){return r.form.password=t}),class:"passwordVal"},null,512),[[i.eb,r.form.password]])]),Object(i.o)("p",{class:"login-btn",onClick:e[2]||(e[2]=function(){return a.login&&a.login.apply(a,arguments)})},"登录")])])])},r.__scopeId="data-v-581864d3";e.default=r},"8d39":function(t,e,n){"use strict";n("40a7")},b775:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var o=n("d3b7"),r=n("bc3a"),o=n.n(r),r=n("4328"),a=n.n(r),i=n("2bea"),s=n("56d7"),c="/";o.a.defaults.withCredentials=!0,o.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";o=o.a.create({baseURL:c,timeout:2e5});o.interceptors.request.use(function(t){return"get"===t.method&&(t.paramsSerializer=function(t){return a.a.stringify(t,{arrayFormat:"repeat"})}),t.withCredentials=!0,t},function(t){Promise.reject(t)}),o.interceptors.response.use(function(t){return 2!==t.data.statu?t.data:(i.b.Message({showClose:!0,message:"登录信息丢失,请重新登陆!",type:"error",duration:2e3,offset:100}),void s.app.$router.push({path:"/login"}))},function(t){var e="err:"+t,n={};return t.response?n=t.response.data:(-1!=e.indexOf("timeout")?(n.code=500,n.message="请求超时,请稍后再试"):-1!=e.indexOf("Network Error")?(n.code=500,n.message="网络错误,请稍后再试"):(n.code=500,n.message=""+t),n)}),e.b=o}}]);
|
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a2efa204"],{1:function(t,e){},"159b":function(t,e,n){var r,a=n("da84"),i=n("fdbc"),o=n("17c2"),u=n("9112");for(r in i){var c=a[r],c=c&&c.prototype;if(c&&c.forEach!==o)try{u(c,"forEach",o)}catch(t){c.forEach=o}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,n=n("a640")("forEach");t.exports=n?[].forEach:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}},2934:function(t,e,n){"use strict";n.d(e,"e",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c}),n.d(e,"a",function(){return s}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return d});var e=n("b0c0"),i=n("b775"),e=n("4328"),r=n.n(e);function a(t,e){return Object(i.b)({url:t,method:"GET",params:e})}function o(t,e){return Object(i.b)({url:t,method:"GET",params:e})}function u(t,e){return Object(i.b)({url:t,method:"DELETE",data:r.a.stringify(e)})}function c(t,e){return Object(i.b)({url:t,method:"PUT",data:r.a.stringify(e)})}function s(t,e){return Object(i.b)({url:t,method:"POST",data:r.a.stringify(e)})}function f(t){var e=new FormData;return e.append("file",t,t.name),Object(i.b)({url:"file",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:e})}function d(n,r){var a=document.createElement("input");a.type="file";a.addEventListener("change",function(){var t,e=a.files[0];0!==e.size?((t=new FormData).append("file",e,e.name),t.append("org_id",n.org_id),Object(i.b)({url:"admin/company_inout/upload",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:t}).then(r)):r(null,"文件错误",a)}),a.click()}},"83c5":function(t,e,n){"use strict";n("159b");e.a={list:{},constructor:function(){this.list={}},$on:function(t,e){this.list[t]=this.list[t]||[],this.list[t].push(e)},$emit:function(t,e){this.list[t]&&this.list[t].forEach(function(t){t(e)})},$off:function(t){this.list[t]&&delete this.list[t]}}},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},b775:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("d3b7"),a=n("bc3a"),r=n.n(a),a=n("4328"),i=n.n(a),o=n("2bea"),u=n("56d7"),c="/";r.a.defaults.withCredentials=!0,r.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";r=r.a.create({baseURL:c,timeout:2e5});r.interceptors.request.use(function(t){return"get"===t.method&&(t.paramsSerializer=function(t){return i.a.stringify(t,{arrayFormat:"repeat"})}),t.withCredentials=!0,t},function(t){Promise.reject(t)}),r.interceptors.response.use(function(t){return 2!==t.data.statu?t.data:(o.b.Message({showClose:!0,message:"登录信息丢失,请重新登陆!",type:"error",duration:2e3,offset:100}),void u.app.$router.push({path:"/login"}))},function(t){var e="err:"+t,n={};return t.response?n=t.response.data:(-1!=e.indexOf("timeout")?(n.code=500,n.message="请求超时,请稍后再试"):-1!=e.indexOf("Network Error")?(n.code=500,n.message="网络错误,请稍后再试"):(n.code=500,n.message=""+t),n)}),e.b=r}}]);
|
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a2efa204"],{1:function(t,e){},"159b":function(t,e,n){var r,a=n("da84"),i=n("fdbc"),o=n("17c2"),u=n("9112");for(r in i){var c=a[r],c=c&&c.prototype;if(c&&c.forEach!==o)try{u(c,"forEach",o)}catch(t){c.forEach=o}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,n=n("a640")("forEach");t.exports=n?[].forEach:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}},2934:function(t,e,n){"use strict";n.d(e,"e",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c}),n.d(e,"a",function(){return s}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return d});var e=n("b0c0"),i=n("b775"),e=n("4328"),r=n.n(e);function a(t,e){return Object(i.b)({url:t,method:"GET",params:e})}function o(t,e){return Object(i.b)({url:t,method:"GET",params:e})}function u(t,e){return Object(i.b)({url:t,method:"DELETE",data:r.a.stringify(e)})}function c(t,e){return Object(i.b)({url:t,method:"PUT",data:r.a.stringify(e)})}function s(t,e){return Object(i.b)({url:t,method:"POST",data:r.a.stringify(e)})}function f(t){var e=new FormData;return e.append("file",t,t.name),Object(i.b)({url:"file",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:e})}function d(n,r){var a=document.createElement("input");a.type="file";a.addEventListener("change",function(){var t,e=a.files[0];0!==e.size?((t=new FormData).append("file",e,e.name),t.append("org_id",n.org_id),Object(i.b)({url:"admin/company_inout/upload",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:t}).then(r)):r(null,"文件错误",a)}),a.click()}},"83c5":function(t,e,n){"use strict";n("159b");e.a={list:{},constructor:function(){this.list={}},$on:function(t,e){this.list[t]=this.list[t]||[],this.list[t].push(e)},$emit:function(t,e){this.list[t]&&this.list[t].forEach(function(t){t(e)})},$off:function(t){this.list[t]&&delete this.list[t]}}},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},b775:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("d3b7"),a=n("bc3a"),r=n.n(a),a=n("4328"),i=n.n(a),o=n("7864"),u=n("56d7"),c="/";r.a.defaults.withCredentials=!0,r.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";r=r.a.create({baseURL:c,timeout:2e5});r.interceptors.request.use(function(t){return"get"===t.method&&(t.paramsSerializer=function(t){return i.a.stringify(t,{arrayFormat:"repeat"})}),t.withCredentials=!0,t},function(t){Promise.reject(t)}),r.interceptors.response.use(function(t){return 2!==t.data.statu?t.data:(o.b.Message({showClose:!0,message:"登录信息丢失,请重新登陆!",type:"error",duration:2e3,offset:100}),void u.app.$router.push({path:"/login"}))},function(t){var e="err:"+t,n={};return t.response?n=t.response.data:(-1!=e.indexOf("timeout")?(n.code=500,n.message="请求超时,请稍后再试"):-1!=e.indexOf("Network Error")?(n.code=500,n.message="网络错误,请稍后再试"):(n.code=500,n.message=""+t),n)}),e.b=r}}]);
|
1240
example/tpt/js/hotime.js
Normal file
360
example/tpt/js/test.js
Normal file
@ -0,0 +1,360 @@
|
||||
|
||||
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年三年均盈利(利润为正)"
|
||||
}
|
||||
]
|
||||
}
|
100
example/tpt/share.html
Normal file
@ -0,0 +1,100 @@
|
||||
<!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>
|
25
example/tpt/wx.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!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>
|
4
go.mod
@ -3,16 +3,12 @@ module code.hoteas.com/golang/hotime
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/chanxuehong/rand v0.0.0-20211009035549-2f07823e8e99 // indirect
|
||||
github.com/chanxuehong/util v0.0.0-20200304121633-ca8141845b13 // indirect
|
||||
github.com/garyburd/redigo v1.6.3
|
||||
github.com/go-sql-driver/mysql v1.6.0
|
||||
github.com/mattn/go-sqlite3 v1.14.12
|
||||
github.com/silenceper/wechat v1.2.6
|
||||
github.com/silenceper/wechat/v2 v2.1.2
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.364
|
||||
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ocr v1.0.364
|
||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f
|
||||
gopkg.in/chanxuehong/wechat.v2 v2.0.0-20190402080805-fa408c6cc20d
|
||||
)
|
||||
|
21
go.sum
@ -1,11 +1,5 @@
|
||||
github.com/astaxie/beego v1.7.1/go.mod h1:0R4++1tUqERR0WYFWdfkcrsyoVBCG4DgpDGokT3yb+U=
|
||||
github.com/bradfitz/gomemcache v0.0.0-20160117192205-fb1f79c6b65a/go.mod h1:PmM6Mmwb0LSuEubjR8N7PtNe1KxZLtOUHtbeikc5h60=
|
||||
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b h1:L/QXpzIa3pOvUGt1D1lA5KjYhPBAN/3iWdP7xeFS9F0=
|
||||
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA=
|
||||
github.com/chanxuehong/rand v0.0.0-20211009035549-2f07823e8e99 h1:K62Lb6bsgLOB++z/VAvRvtiEBdNCuMfmQGTGGWMdPpM=
|
||||
github.com/chanxuehong/rand v0.0.0-20211009035549-2f07823e8e99/go.mod h1:9+sJ9zvvkXC5sPjPEZM3Jpb9n2Q2VtcrGZly0UHYF5I=
|
||||
github.com/chanxuehong/util v0.0.0-20200304121633-ca8141845b13 h1:c1vUDbnwvu5d2ucfzXvMzBWzeu5IxPvtESOFPl3CieA=
|
||||
github.com/chanxuehong/util v0.0.0-20200304121633-ca8141845b13/go.mod h1:XEYt99iTxMqkv+gW85JX/DdUINHUe43Sbe5AtqSaDAQ=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
@ -14,29 +8,21 @@ github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
|
||||
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
|
||||
github.com/garyburd/redigo v1.6.3 h1:HCeeRluvAgMusMomi1+6Y5dmFOdYV/JzoRrrbFlkGIc=
|
||||
github.com/garyburd/redigo v1.6.3/go.mod h1:rTb6epsqigu3kYKBnaF028A7Tf/Aw5s0cqA47doKKqw=
|
||||
github.com/gin-gonic/gin v1.1.4/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y=
|
||||
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
|
||||
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
||||
github.com/golang/protobuf v0.0.0-20161117033126-8ee79997227b/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/gomodule/redigo v1.8.1/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0=
|
||||
github.com/gomodule/redigo v1.8.5 h1:nRAxCa+SVsyjSBrtZmG/cqb6VbTmuRzpg/PoTFlpumc=
|
||||
github.com/gomodule/redigo v1.8.5/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0=
|
||||
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 h1:2VTzZjLZBgl62/EtslCrtky5vbi9dd7HrQPQIx6wqiw=
|
||||
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739/go.mod h1:zUx1mhth20V3VKgL5jbd1BSQcW4Fy6Qs4PZvQwRFwzM=
|
||||
github.com/mattn/go-isatty v0.0.0-20161123143637-30a891c33c7c/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||
github.com/mattn/go-sqlite3 v1.14.12 h1:TJ1bhYJPV44phC+IMu1u2K/i5RriLTPe+yc68XDJ1Z0=
|
||||
github.com/mattn/go-sqlite3 v1.14.12/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms=
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/silenceper/wechat v1.2.6 h1:FED3ko2yD96YD153xIV0I0bDjII4GxWaggjsYKdjQQc=
|
||||
github.com/silenceper/wechat v1.2.6/go.mod h1:7Wf0sCqQgJG65zCnl4TcDFk2XYxRCfqwQjg0Cf/lKeM=
|
||||
github.com/silenceper/wechat/v2 v2.1.2 h1:+QfIMiYfwST2ZloTwmYp0O0p5Y1LYRZxfLWfMuSE30k=
|
||||
github.com/silenceper/wechat/v2 v2.1.2/go.mod h1:0OprxYCCp2CZAKw06BBlnaczInTk2KxOLsKeiopshGg=
|
||||
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
|
||||
@ -56,10 +42,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
|
||||
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 h1:/ZScEX8SfEmUGRHs0gxpqteO5nfNW6axyZbBdw9A12g=
|
||||
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20191125084936-ffdde1057850/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc=
|
||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
@ -71,13 +55,8 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
gopkg.in/chanxuehong/wechat.v2 v2.0.0-20190402080805-fa408c6cc20d h1:+Z31q68nGNYelwR3t5pTQ0qjB8zCo5fG4eYc9r972h8=
|
||||
gopkg.in/chanxuehong/wechat.v2 v2.0.0-20190402080805-fa408c6cc20d/go.mod h1:HuIcE5yEmuAHBXNX5U4KUQRCki6sXCbLjPauW+ppvI0=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
|
||||
gopkg.in/go-playground/validator.v8 v8.18.1/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=
|
||||
gopkg.in/h2non/gock.v1 v1.0.15 h1:SzLqcIlb/fDfg7UvukMpNcWsu7sI5tWwL+KCATZqks0=
|
||||
gopkg.in/h2non/gock.v1 v1.0.15/go.mod h1:sX4zAkdYX1TRGJ2JY156cFspQn4yRWn6p9EMdODlynE=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
|