|
@@ -22,9 +22,9 @@ import (
|
|
|
"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
|
|
|
"app.yhyue.com/moapp/jypkg/public"
|
|
|
|
|
|
+ "app.yhyue.com/moapp/jybase/dchest/captcha"
|
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
"github.com/SKatiyar/qr"
|
|
|
- "app.yhyue.com/moapp/jybase/dchest/captcha"
|
|
|
"go.mongodb.org/mongo-driver/bson"
|
|
|
)
|
|
|
|
|
@@ -84,6 +84,7 @@ type Front struct {
|
|
|
|
|
|
appConfig xweb.Mapper `xweb:"/jyapp/free/config"` //app配置项
|
|
|
shareDomain xweb.Mapper `xweb:"/jyapp/free/shareDomain"` //app分享 域名配置项
|
|
|
+ mainIndex xweb.Mapper `xweb:"/"` //首页
|
|
|
}
|
|
|
|
|
|
var sewx encrypt.SimpleEncrypt //微信的加密方法
|
|
@@ -102,6 +103,14 @@ func init() {
|
|
|
industrylist, sortArray = jy.Getindustrys(util.ObjToString(config.Sysconfig["industry"]), mongodb)
|
|
|
}
|
|
|
|
|
|
+// 移动首页
|
|
|
+func (f *Front) MainIndex() error {
|
|
|
+ if userId, _ := f.GetSession("userId").(string); userId == "" {
|
|
|
+ return f.Redirect("/jyapp/s/tags/home/home.html")
|
|
|
+ }
|
|
|
+ return f.Redirect("/jy_mobile/tabbar/home")
|
|
|
+}
|
|
|
+
|
|
|
func (f *Front) PushMsgCallback() {
|
|
|
f.ServeJson(map[string]interface{}{})
|
|
|
}
|