|
@@ -172,7 +172,7 @@ router.post("/selectUserInfo", (req, res) => {
|
|
|
|
|
|
//yym 更新用户信息
|
|
|
router.post("/updateUserInfo", (req, res) => {
|
|
|
- console.log("获取用户信息", req.body);
|
|
|
+ // console.log("获取用户信息", req.body);
|
|
|
postmysql3(req, res, "update_userInfo");
|
|
|
});
|
|
|
|
|
@@ -256,62 +256,82 @@ router.post("/selectGroupMessage", (req, res) => {
|
|
|
|
|
|
//yym 更新未读信息
|
|
|
router.post("/updateIsRead", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "update_isRead");
|
|
|
});
|
|
|
|
|
|
//yym 我的页面,我的收藏活动列表
|
|
|
router.post("/selectCollAcList", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "select_collAcList");
|
|
|
});
|
|
|
|
|
|
//yym 我的页面,我的收藏课程列表
|
|
|
router.post("/selectCollClassList", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "select_collClassList");
|
|
|
});
|
|
|
|
|
|
//yym 获取资源库
|
|
|
router.post("/selectResource", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "select_resource");
|
|
|
});
|
|
|
|
|
|
//yym 获取精品慕课
|
|
|
router.post("/selectJTeach", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "select_jTeach");
|
|
|
});
|
|
|
//yym 获取课程
|
|
|
router.post("/selectOperatorTech", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "select_operatorTech");
|
|
|
});
|
|
|
|
|
|
//yym 获取我的消息,未读红点所填数据
|
|
|
router.post("/selectUnreadMsg", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "select_unreadMsg");
|
|
|
});
|
|
|
|
|
|
//yym 单个点击信息变已读
|
|
|
router.post("/updateOneIsRead", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "update_oneIsRead");
|
|
|
});
|
|
|
|
|
|
//yym 我的活动-获取已报名数据
|
|
|
router.post("/selectRegistered", (req, res) => {
|
|
|
- console.log("获取", req.body);
|
|
|
+ // console.log("获取", req.body);
|
|
|
postmysql3(req, res, "selectRegistered");
|
|
|
});
|
|
|
|
|
|
-//lqh获取活动acid
|
|
|
-router.post("/selectActivityID", (req, res) => {
|
|
|
- postmysql3(req, res, "select_activityID");
|
|
|
+// yym 活动搜索框
|
|
|
+router.get("/selectActSearch", (req, res) => {
|
|
|
+ // console.log("获取", req.body);
|
|
|
+ var json = req.query
|
|
|
+
|
|
|
+ getmysql(req, res, "selectActSearch",json['openid'],json['txt'],json['ty']);
|
|
|
+});
|
|
|
+
|
|
|
+// yym 课程搜索框
|
|
|
+router.get("/selectSearchdata", (req, res) => {
|
|
|
+ // console.log("获取", req.query);
|
|
|
+ // let json = querystring(req.url)
|
|
|
+ var json = req.query
|
|
|
+
|
|
|
+ // console.log(json['openid']);
|
|
|
+ // getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty'],json['page'],json['lim'],);
|
|
|
+ getmysql(req, res, "selectSearchdata",json['openid'],json['txt'],json['ty']);
|
|
|
+
|
|
|
});
|
|
|
|
|
|
+//lqh获取活动acid
|
|
|
+// router.post("/selectActivityID", (req, res) => {
|
|
|
+// postmysql3(req, res, "select_activityID");
|
|
|
+// });
|
|
|
+
|
|
|
//查询当前用户发布的活动 xlh
|
|
|
router.post("/selectMyPublish", (req, res) => {
|
|
|
postmysql3(req, res, "select_mypublish");
|