提交 31d99582 编写于 作者: AndroidLeaves's avatar AndroidLeaves

update

上级 d1ea5095
......@@ -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.
先完成此消息的编辑!
想要评论请 注册