Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
enoyee
Scriptable
提交
31d99582
S
Scriptable
项目概览
enoyee
/
Scriptable
通知
9
Star
0
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Scriptable
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
31d99582
编写于
1月 30, 2023
作者:
AndroidLeaves
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
d1ea5095
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
21 addition
and
22 deletion
+21
-22
桌面启动.js
桌面启动.js
+21
-22
未找到文件。
桌面启动.js
浏览文件 @
31d99582
...
...
@@ -46,12 +46,12 @@ class Widget extends BaseWidget {
quickFontColor
:
'
#FFFFFF
'
,
quickConfigs
:
[
{
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/other/wechat.png
'
,
icon
:
`
${
remoteRoot
}
/img/other/wechat.png`
,
name
:
'
扫一扫
'
,
scheme
:
'
weixin://scanqrcode
'
},
{
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/other/payment.png
'
,
icon
:
`
${
remoteRoot
}
/img/other/payment.png`
,
name
:
'
付款码
'
,
scheme
:
'
alipay://platformapi/startapp?appId=20000056
'
},
...
...
@@ -61,7 +61,7 @@ class Widget extends BaseWidget {
scheme
:
'
alipay://platformapi/startapp?appId=200011235
'
},
{
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/other/delivery-man.png
'
,
icon
:
`
${
remoteRoot
}
/img/other/delivery-man.png`
,
name
:
'
菜鸟包裹
'
,
scheme
:
'
alipay://platformapi/startapp?appId=2021001141626787
'
},
...
...
@@ -98,7 +98,6 @@ class Widget extends BaseWidget {
async
getAppViewOptions
()
{
return
{
needLocation
:
true
,
widgetProvider
:
{
small
:
false
,
// 是否提供小号组件
medium
:
true
,
// 是否提供中号组件
...
...
@@ -110,7 +109,7 @@ class Widget extends BaseWidget {
name
:
'
weatherIco
'
,
label
:
'
天气图标
'
,
type
:
'
cell
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_weather.gif
'
,
icon
:
`
${
remoteRoot
}
/img/ic_weather.gif`
,
alert
:
{
title
:
'
天气图标
'
,
message
:
"
1.总共十套天气图标
\\
n2.可以指定某一套图进行展示
\\
n3.不在1~12范围的则随机显示
"
,
...
...
@@ -124,11 +123,19 @@ class Widget extends BaseWidget {
needLoading
:
false
,
default
:
(
this
.
weatherIco
()
>=
1
&&
this
.
weatherIco
()
<=
12
)
?
`第
${
this
.
weatherIco
()}
套图标`
:
'
随机
'
,
},
{
name
:
'
quickStart
'
,
label
:
'
快捷启动设置
'
,
type
:
'
cell
'
,
icon
:
{
name
:
'
lasso.and.sparkles
'
,
color
:
'
#7743DB
'
,
},
needLoading
:
false
,
showDesc
:
false
,
},
{
name
:
'
otherSetting
'
,
label
:
'
其他设置
'
,
type
:
'
cell
'
,
icon
:
'
https://gitcode.net/4qiao/framework/raw/master/img/icon/setting.gif
'
,
icon
:
`
${
remoteRoot
}
/img/setting.gif`
,
needLoading
:
true
,
childItems
:
[
{
...
...
@@ -137,7 +144,7 @@ class Widget extends BaseWidget {
name
:
'
caiyun
'
,
label
:
'
彩云key
'
,
type
:
'
cell
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/icon_caiyun.png
'
,
icon
:
`
${
remoteRoot
}
/img/icon_caiyun.png`
,
alert
:
{
title
:
'
彩云key
'
,
message
:
"
已使用默认key,如果不可用了需要自己去申请填入替换
"
,
...
...
@@ -155,14 +162,6 @@ class Widget extends BaseWidget {
},
{
items
:
[
{
name
:
'
quickStart
'
,
label
:
'
快捷启动设置
'
,
type
:
'
cell
'
,
icon
:
{
name
:
'
lasso.and.sparkles
'
,
color
:
'
#7743DB
'
,
},
needLoading
:
false
,
showDesc
:
false
,
},
{
name
:
'
quickFontSize
'
,
label
:
'
启动文字大小
'
,
...
...
@@ -225,7 +224,7 @@ class Widget extends BaseWidget {
name
:
'
dateFontSize
'
,
label
:
'
日期文字大小
'
,
type
:
'
cell
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_calendar.gif
'
,
icon
:
`
${
remoteRoot
}
/img/ic_calendar.gif`
,
needLoading
:
false
,
alert
:
{
title
:
'
日期文字大小
'
,
...
...
@@ -242,7 +241,7 @@ class Widget extends BaseWidget {
name
:
'
dateFontColor
'
,
label
:
'
日期文字颜色
'
,
type
:
'
color
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_calendar.gif
'
,
icon
:
`
${
remoteRoot
}
/img/ic_calendar.gif`
,
needLoading
:
false
,
default
:
this
.
dateFontColor
(),
},
...
...
@@ -254,7 +253,7 @@ class Widget extends BaseWidget {
name
:
'
weatherFontSize
'
,
label
:
'
天气文字大小
'
,
type
:
'
cell
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_weather_loop.gif
'
,
icon
:
`
${
remoteRoot
}
/img/ic_weather_loop.gif`
,
needLoading
:
false
,
alert
:
{
title
:
'
天气文字大小
'
,
...
...
@@ -271,7 +270,7 @@ class Widget extends BaseWidget {
name
:
'
weatherFontColor
'
,
label
:
'
天气文字颜色
'
,
type
:
'
color
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_weather_loop.gif
'
,
icon
:
`
${
remoteRoot
}
/img/ic_weather_loop.gif`
,
needLoading
:
false
,
default
:
this
.
weatherFontColor
(),
},
...
...
@@ -283,7 +282,7 @@ class Widget extends BaseWidget {
name
:
'
holidayFontSize
'
,
label
:
'
节假日文字大小
'
,
type
:
'
cell
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_holiday.png
'
,
icon
:
`
${
remoteRoot
}
/img/ic_holiday.png`
,
needLoading
:
false
,
alert
:
{
title
:
'
节假日文字大小
'
,
...
...
@@ -300,7 +299,7 @@ class Widget extends BaseWidget {
name
:
'
holidayFontColor
'
,
label
:
'
节假日文字颜色
'
,
type
:
'
color
'
,
icon
:
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_holiday.png
'
,
icon
:
`
${
remoteRoot
}
/img/ic_holiday.png`
,
needLoading
:
false
,
default
:
this
.
holidayFontColor
(),
},
...
...
@@ -381,7 +380,7 @@ class Widget extends BaseWidget {
rightStack
.
addSpacer
();
if
(
this
.
defaultPreference
.
isShowNewYear
.
indexOf
(
this
.
getDateStr
(
new
Date
(),
'
yyyyMMdd
'
))
!=
-
1
)
{
let
image
=
await
this
.
getImageByUrl
(
'
https://gitcode.net/enoyee/scriptable/-/raw/master/img/ic_fireworks_a20.png
'
);
let
image
=
await
this
.
getImageByUrl
(
`
${
remoteRoot
}
/img/ic_fireworks_a20.png`
);
rightStack
.
backgroundImage
=
image
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录