|
@@ -65,7 +65,7 @@ const hasCreateShortCut = (isPayPage = false, fn) => {
|
|
success: ret => {
|
|
success: ret => {
|
|
if (!ret) {
|
|
if (!ret) {
|
|
shortcut.install({
|
|
shortcut.install({
|
|
- message: '添加【阅乐】到桌面,方便下次阅读',
|
|
|
|
|
|
+ message: '添加【"+getAppName()+"】到桌面,方便下次阅读',
|
|
success: () => {
|
|
success: () => {
|
|
prompt.showToast('添加成功!')
|
|
prompt.showToast('添加成功!')
|
|
fn && fn(true)
|
|
fn && fn(true)
|
|
@@ -88,7 +88,7 @@ const loseLevelShortCut = fn => {
|
|
success: ret => {
|
|
success: ret => {
|
|
if (!ret) {
|
|
if (!ret) {
|
|
shortcut.install({
|
|
shortcut.install({
|
|
- message: '添加【阅乐】到桌面,方便下次阅读',
|
|
|
|
|
|
+ message: '添加【"+getAppName()+"】到桌面,方便下次阅读',
|
|
complete: () => {
|
|
complete: () => {
|
|
fn && fn(true)
|
|
fn && fn(true)
|
|
}
|
|
}
|
|
@@ -106,7 +106,7 @@ const mustCreateShort = fn => {
|
|
success: ret => {
|
|
success: ret => {
|
|
if (!ret) {
|
|
if (!ret) {
|
|
shortcut.install({
|
|
shortcut.install({
|
|
- message: '添加【阅乐】到桌面,方便下次阅读',
|
|
|
|
|
|
+ message: '添加【"+getAppName()+"】到桌面,方便下次阅读',
|
|
success: () => {
|
|
success: () => {
|
|
prompt.showToast('添加成功!')
|
|
prompt.showToast('添加成功!')
|
|
fn && fn(true)
|
|
fn && fn(true)
|
|
@@ -129,7 +129,7 @@ const backCreateShortCut = fn => {
|
|
success: ret => {
|
|
success: ret => {
|
|
if (!ret) {
|
|
if (!ret) {
|
|
shortcut.install({
|
|
shortcut.install({
|
|
- message: '添加【阅乐】到桌面,方便下次阅读',
|
|
|
|
|
|
+ message: '添加【"+getAppName()+"】到桌面,方便下次阅读',
|
|
success: () => {
|
|
success: () => {
|
|
prompt.showToast('添加成功!')
|
|
prompt.showToast('添加成功!')
|
|
fn && fn('back')
|
|
fn && fn('back')
|
|
@@ -178,6 +178,10 @@ const showMenu = () => {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+const getAppName = () => {
|
|
|
|
+ let appInfo = getAppInfo();
|
|
|
|
+ return appInfo.name;
|
|
|
|
+}
|
|
|
|
|
|
export default {
|
|
export default {
|
|
shortcut,
|
|
shortcut,
|
|
@@ -192,5 +196,6 @@ export default {
|
|
getPushRedId,
|
|
getPushRedId,
|
|
getProvider,
|
|
getProvider,
|
|
mustCreateShort,
|
|
mustCreateShort,
|
|
- loseLevelShortCut
|
|
|
|
|
|
+ loseLevelShortCut,
|
|
|
|
+ getAppName
|
|
}
|
|
}
|