Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-Mob-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-Mob-R7-Res
提交
6847c354
提交
6847c354
编写于
8月 26, 2020
作者:
KK
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设置第三方服务导航标题
上级
d113d52e
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
58 行增加
和
1 行删除
+58
-1
DingTalkService.ts
src/ibiz-core/third-party-service/DingTalkService.ts
+13
-0
ThirdPartyService.ts
src/ibiz-core/third-party-service/ThirdPartyService.ts
+15
-0
WeChatService.ts
src/ibiz-core/third-party-service/WeChatService.ts
+11
-0
view-tool.ts
src/utils/view-tool/view-tool.ts
+19
-1
未找到文件。
src/ibiz-core/third-party-service/DingTalkService.ts
浏览文件 @
6847c354
...
@@ -163,4 +163,17 @@ export class DingTalkService {
...
@@ -163,4 +163,17 @@ export class DingTalkService {
public
close
(){
public
close
(){
this
.
dd
.
biz
.
navigation
.
close
({});
this
.
dd
.
biz
.
navigation
.
close
({});
}
}
/**
* 设置钉钉标题
*
* @static
* @returns {DingTalkService}
* @memberof DingTalkService
*/
public
setTitle
(
title
:
string
){
this
.
dd
.
biz
.
navigation
.
setTitle
({
title
:
title
,
});
}
}
}
src/ibiz-core/third-party-service/ThirdPartyService.ts
浏览文件 @
6847c354
...
@@ -152,4 +152,19 @@ export class ThirdPartyService {
...
@@ -152,4 +152,19 @@ export class ThirdPartyService {
}
}
}
}
/**
* 设置钉钉标题
*
* @static
* @returns {DingTalkService}
* @memberof DingTalkService
*/
public
setTitle
(
title
:
string
){
if
(
this
.
isDingTalk
())
{
this
.
dd
.
setTitle
(
title
);
}
else
if
(
this
.
isWeChat
())
{
this
.
weChat
.
setTitle
(
title
);
}
}
}
}
\ No newline at end of file
src/ibiz-core/third-party-service/WeChatService.ts
浏览文件 @
6847c354
...
@@ -200,4 +200,15 @@ export class WeChatService {
...
@@ -200,4 +200,15 @@ export class WeChatService {
public
close
(){
public
close
(){
// 关闭
// 关闭
}
}
/**
* 设置微信标题
*
* @static
* @returns {DingTalkService}
* @memberof DingTalkService
*/
public
setTitle
(
title
:
string
){
// 设置标题
}
}
}
\ No newline at end of file
src/utils/view-tool/view-tool.ts
浏览文件 @
6847c354
import
{
Route
}
from
'vue-router'
;
import
{
Route
}
from
'vue-router'
;
import
qs
from
'qs'
;
import
qs
from
'qs'
;
import
{
Util
}
from
'@/ibiz-core/utils'
;
import
{
Util
}
from
'@/ibiz-core/utils'
;
import
{
ThirdPartyService
}
from
'@ibiz-core'
export
class
ViewTool
{
export
class
ViewTool
{
/**
/**
...
@@ -14,6 +14,16 @@ export class ViewTool {
...
@@ -14,6 +14,16 @@ export class ViewTool {
*/
*/
private
static
readonly
instance
:
ViewTool
=
new
ViewTool
();
private
static
readonly
instance
:
ViewTool
=
new
ViewTool
();
/**
* 第三方服务
*
* @private
* @type {ViewTool}
* @memberof ViewTool
*/
private
thirdPartyService
:
ThirdPartyService
=
ThirdPartyService
.
getInstance
();
/**
/**
* Creates an instance of ViewTool.
* Creates an instance of ViewTool.
* 私有构造,拒绝通过 new 创建对象
* 私有构造,拒绝通过 new 创建对象
...
@@ -369,4 +379,12 @@ export class ViewTool {
...
@@ -369,4 +379,12 @@ export class ViewTool {
}
}
}
}
}
}
/**
* 设置第三方服务视图标题
*/
public
setViewTitleOfThirdParty
(
title
:
string
)
{
this
.
thirdPartyService
.
setTitle
(
title
);
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录