Przeglądaj źródła

微信推送跳转功能开发

master
liangkun 3 lat temu
rodzic
commit
81014e6db7
5 zmienionych plików z 25 dodań i 6 usunięć
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_SendMessage/SYS_SendMessageService.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_SendFile/Sys_SendFileService.cs
  3. +11
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/.hbuilderx/launch.json
  4. +3
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json
  5. +9
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/SYS_SendMessage/SYS_SendMessageService.cs Wyświetl plik

@@ -296,7 +296,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
string access_token = weixintokenobj.access_token; string access_token = weixintokenobj.access_token;
string jsondata = "{\"touser\":\"" + userinfo.OpenIdForWeixin + "\"," + string jsondata = "{\"touser\":\"" + userinfo.OpenIdForWeixin + "\"," +
"\"template_id\":\"" + weixintasktempid + "\"," + "\"template_id\":\"" + weixintasktempid + "\"," +
"\"url\":\"" + weixintaskurl + "\"," +
"\"url\":\"" + weixintaskurl + "/#/?page=mail\"," +
"\"data\":{" + "\"data\":{" +
"\"first\": {\"value\":\"您有新的未读邮件\",\"color\":\"#173177\"}," + "\"first\": {\"value\":\"您有新的未读邮件\",\"color\":\"#173177\"}," +
"\"keyword1\":{\"value\":\"未读邮件\",\"color\":\"#173177\"}," + "\"keyword1\":{\"value\":\"未读邮件\",\"color\":\"#173177\"}," +


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Sys_SendFile/Sys_SendFileService.cs Wyświetl plik

@@ -419,7 +419,7 @@ on a.F_UserId=b.F_UserId where b.F_ObjectId in(" + string.Join(",", ppostid) +
string access_token = weixintokenobj.access_token; string access_token = weixintokenobj.access_token;
string jsondata = "{\"touser\":\"" + userinfo.OpenIdForWeixin + "\"," + string jsondata = "{\"touser\":\"" + userinfo.OpenIdForWeixin + "\"," +
"\"template_id\":\"" + weixintasktempid + "\"," + "\"template_id\":\"" + weixintasktempid + "\"," +
"\"url\":\"" + weixintaskurl + "\"," +
"\"url\":\"" + weixintaskurl + "/#/?page=file\"," +
"\"data\":{" + "\"data\":{" +
"\"first\": {\"value\":\"您有新的公文需要查阅\",\"color\":\"#173177\"}," + "\"first\": {\"value\":\"您有新的公文需要查阅\",\"color\":\"#173177\"}," +
"\"keyword1\":{\"value\":\"公文下发\",\"color\":\"#173177\"}," + "\"keyword1\":{\"value\":\"公文下发\",\"color\":\"#173177\"}," +


+ 11
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/.hbuilderx/launch.json Wyświetl plik

@@ -0,0 +1,11 @@
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"type": "uniCloud",
"default": {
"launchtype": "remote"
}
}
]
}

+ 3
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json Wyświetl plik

@@ -172,13 +172,14 @@
"mode" : "hash", "mode" : "hash",
"base" : "" "base" : ""
}, },
"title" : "力软敏捷开发框架",
"title" : "数字化智慧校园",
"template" : "index.html", "template" : "index.html",
"optimization" : { "optimization" : {
"treeShaking" : { "treeShaking" : {
"enable" : false "enable" : false
} }
}
},
"domain" : "testapp.bjquanjiang.com"
}, },
"mp-qq" : { "mp-qq" : {
"uniStatistics" : { "uniStatistics" : {


+ 9
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue Wyświetl plik

@@ -176,11 +176,18 @@
} }
//邮件 //邮件
if (param.page == "mail") { if (param.page == "mail") {
// this.TAB_TO("/pages/home");
this.NAV_TO("/pages/EducationalAdministration/SYS_ReceiveMessage/list");
return;
} }
//OA待办 //OA待办
if (param.page == "oa") { if (param.page == "oa") {
// this.TAB_TO("/pages/home");
this.NAV_TO("/pages/nworkflow/myflow/list");
return;
}
//公文接收
if (param.page == "file") {
this.NAV_TO("/pages/EducationalAdministration/Sys_ReceiveFile/list");
return;
} }
return; return;
} }


Ładowanie…
Anuluj
Zapisz