• 游客,欢迎来到米坛社区。
    米坛社区是大型中文智能穿戴设备交流社区,在这里交流你的极客思想,共同建造我们的智能世界
    为了更加方便的获取支持与帮助,请加入米坛社区官方QQ频道

米环7小程序 腕間暖暖包

dhjwgwe

LV0
普通成员
UID
307222
2023-06-02
62
1
感谢楼主的红包!

dhjwgwe领取了您的红包获得了0.00生米粒
 

Leeia

LV0
普通成员
UID
206585
2023-02-17
49
2
我只有做好代碼,你們幫我測式

JavaScript:
try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp;
      var t = e.current,
        { px: o } =
          (new DeviceRuntimeCore.WidgetFactory(
            new DeviceRuntimeCore.HmDomApi(e, t)
          ),
          e.app.__globals__);
  try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp,
      t = e.current;
    new DeviceRuntimeCore.WidgetFactory(
      new DeviceRuntimeCore.HmDomApi(e, t),
      "drink"
    );
  DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
  t.module = DeviceRuntimeCore.Page({
      init_view() {
        /* 小米手环7并未适配小程序,
        因此所有小程序均以480*480大小渲染,
        而小米手环7分辨率192*490,
        下方10px像素无法利用,
        有超出h480的组件就能上下滑动 */
        hmUI.setLayerScrolling(false);
        //禁用页面上下滑动
        var cc=0
        var aa=0
        const Text = hmUI.createWidget(hmUI.widget.TEXT, {
          //HelloWorld文本
          x: 0,
          y: 0,
          w: 192,
          h: 200,
          color: 0xffffff,
          text_size: 30,
          align_h: hmUI.align.CENTER_H,
          align_v: hmUI.align.CENTER_V,
          text_style: hmUI.text_style.WRAP,
          text: "暖暖包🔥"
        })
        const aText = hmUI.createWidget(hmUI.widget.TEXT, {
            //HelloWorld文本
            x: 0,
            y: 200,
            w: 192,
            h: 280,
            color: 0xffffff,
            text_size: 30,
            align_h: hmUI.align.CENTER_H,
            align_v: hmUI.align.CENTER_V,
            text_style: hmUI.text_style.WRAP,
            text: cc+"次執行\n已經過"+aa+"s"
          })
        const a=setInterval(() => {
            cc++
          }, 10)
         const d=setInterval(() => {
            aa++
            aText.setProperty(prop.MORE, {
                text: cc+"次執行\n已經過"+aa+"s"
              })
          }, 1000)
      },
      onInit() {
        console.log("index page.js on init invoke"), this.init_view();
      },
      onReady() {
        console.log("index page.js on ready invoke");
      },
      onShow() {
        console.log("index page.js on show invoke");
      },
      onHide() {
        console.log("index page.js on hide invoke");
      },
      onDestory() {
        console.log("index page.js on destory invoke");
      }
    });
  })();
  } catch (e) {
  console.log(e);
  }
  })();
  } catch (e) {
  console.log(e);
  }
花了18分鐘做的
O
 

劉子翊

LV0
普通成员
UID
244102
2023-04-02
221
14
感谢楼主的红包!

劉子翊领取了您的红包获得了0.00生米粒
 

2943350873

LV0
普通成员
UID
272103
2023-05-02
30
0
我只有做好代碼,你們幫我測式

JavaScript:
try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp;
      var t = e.current,
        { px: o } =
          (new DeviceRuntimeCore.WidgetFactory(
            new DeviceRuntimeCore.HmDomApi(e, t)
          ),
          e.app.__globals__);
  try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp,
      t = e.current;
    new DeviceRuntimeCore.WidgetFactory(
      new DeviceRuntimeCore.HmDomApi(e, t),
      "drink"
    );
  DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
  t.module = DeviceRuntimeCore.Page({
      init_view() {
        /* 小米手环7并未适配小程序,
        因此所有小程序均以480*480大小渲染,
        而小米手环7分辨率192*490,
        下方10px像素无法利用,
        有超出h480的组件就能上下滑动 */
        hmUI.setLayerScrolling(false);
        //禁用页面上下滑动
        var cc=0
        var aa=0
        const Text = hmUI.createWidget(hmUI.widget.TEXT, {
          //HelloWorld文本
          x: 0,
          y: 0,
          w: 192,
          h: 200,
          color: 0xffffff,
          text_size: 30,
          align_h: hmUI.align.CENTER_H,
          align_v: hmUI.align.CENTER_V,
          text_style: hmUI.text_style.WRAP,
          text: "暖暖包🔥"
        })
        const aText = hmUI.createWidget(hmUI.widget.TEXT, {
            //HelloWorld文本
            x: 0,
            y: 200,
            w: 192,
            h: 280,
            color: 0xffffff,
            text_size: 30,
            align_h: hmUI.align.CENTER_H,
            align_v: hmUI.align.CENTER_V,
            text_style: hmUI.text_style.WRAP,
            text: cc+"次執行\n已經過"+aa+"s"
          })
        const a=setInterval(() => {
            cc++
          }, 10)
         const d=setInterval(() => {
            aa++
            aText.setProperty(prop.MORE, {
                text: cc+"次執行\n已經過"+aa+"s"
              })
          }, 1000)
      },
      onInit() {
        console.log("index page.js on init invoke"), this.init_view();
      },
      onReady() {
        console.log("index page.js on ready invoke");
      },
      onShow() {
        console.log("index page.js on show invoke");
      },
      onHide() {
        console.log("index page.js on hide invoke");
      },
      onDestory() {
        console.log("index page.js on destory invoke");
      }
    });
  })();
  } catch (e) {
  console.log(e);
  }
  })();
  } catch (e) {
  console.log(e);
  }
花了18分鐘做的
 

quan0914

LV0
普通成员
UID
316607
2023-06-10
21
1
感谢楼主的红包!

quan0914领取了您的红包获得了0.00生米粒
 

WangShuai

LV0
普通成员
UID
320258
2023-06-13
5
0
感谢楼主的红包!

WangShuai领取了您的红包获得了0.00生米粒
 

李鴻山

LV0
普通成员
UID
171587
2022-12-09
139
2
16
我只有做好代碼,你們幫我測式

JavaScript:
try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp;
      var t = e.current,
        { px: o } =
          (new DeviceRuntimeCore.WidgetFactory(
            new DeviceRuntimeCore.HmDomApi(e, t)
          ),
          e.app.__globals__);
  try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp,
      t = e.current;
    new DeviceRuntimeCore.WidgetFactory(
      new DeviceRuntimeCore.HmDomApi(e, t),
      "drink"
    );
  DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
  t.module = DeviceRuntimeCore.Page({
      init_view() {
        /* 小米手环7并未适配小程序,
        因此所有小程序均以480*480大小渲染,
        而小米手环7分辨率192*490,
        下方10px像素无法利用,
        有超出h480的组件就能上下滑动 */
        hmUI.setLayerScrolling(false);
        //禁用页面上下滑动
        var cc=0
        var aa=0
        const Text = hmUI.createWidget(hmUI.widget.TEXT, {
          //HelloWorld文本
          x: 0,
          y: 0,
          w: 192,
          h: 200,
          color: 0xffffff,
          text_size: 30,
          align_h: hmUI.align.CENTER_H,
          align_v: hmUI.align.CENTER_V,
          text_style: hmUI.text_style.WRAP,
          text: "暖暖包🔥"
        })
        const aText = hmUI.createWidget(hmUI.widget.TEXT, {
            //HelloWorld文本
            x: 0,
            y: 200,
            w: 192,
            h: 280,
            color: 0xffffff,
            text_size: 30,
            align_h: hmUI.align.CENTER_H,
            align_v: hmUI.align.CENTER_V,
            text_style: hmUI.text_style.WRAP,
            text: cc+"次執行\n已經過"+aa+"s"
          })
        const a=setInterval(() => {
            cc++
          }, 10)
         const d=setInterval(() => {
            aa++
            aText.setProperty(prop.MORE, {
                text: cc+"次執行\n已經過"+aa+"s"
              })
          }, 1000)
      },
      onInit() {
        console.log("index page.js on init invoke"), this.init_view();
      },
      onReady() {
        console.log("index page.js on ready invoke");
      },
      onShow() {
        console.log("index page.js on show invoke");
      },
      onHide() {
        console.log("index page.js on hide invoke");
      },
      onDestory() {
        console.log("index page.js on destory invoke");
      }
    });
  })();
  } catch (e) {
  console.log(e);
  }
  })();
  } catch (e) {
  console.log(e);
  }
花了18分鐘做的
 

CfHvnhgggyhghhhhuyyjuuuuyy

LV0
普通成员
UID
333869
2023-06-24
18
1
我只有做好代碼,你們幫我測式

JavaScript:
try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp;
      var t = e.current,
        { px: o } =
          (new DeviceRuntimeCore.WidgetFactory(
            new DeviceRuntimeCore.HmDomApi(e, t)
          ),
          e.app.__globals__);
  try {
    (() => {
      var e = __$$hmAppManager$$__.currentApp,
      t = e.current;
    new DeviceRuntimeCore.WidgetFactory(
      new DeviceRuntimeCore.HmDomApi(e, t),
      "drink"
    );
  DeviceRuntimeCore.HmLogger.getLogger("sanjiao");
  t.module = DeviceRuntimeCore.Page({
      init_view() {
        /* 小米手环7并未适配小程序,
        因此所有小程序均以480*480大小渲染,
        而小米手环7分辨率192*490,
        下方10px像素无法利用,
        有超出h480的组件就能上下滑动 */
        hmUI.setLayerScrolling(false);
        //禁用页面上下滑动
        var cc=0
        var aa=0
        const Text = hmUI.createWidget(hmUI.widget.TEXT, {
          //HelloWorld文本
          x: 0,
          y: 0,
          w: 192,
          h: 200,
          color: 0xffffff,
          text_size: 30,
          align_h: hmUI.align.CENTER_H,
          align_v: hmUI.align.CENTER_V,
          text_style: hmUI.text_style.WRAP,
          text: "暖暖包🔥"
        })
        const aText = hmUI.createWidget(hmUI.widget.TEXT, {
            //HelloWorld文本
            x: 0,
            y: 200,
            w: 192,
            h: 280,
            color: 0xffffff,
            text_size: 30,
            align_h: hmUI.align.CENTER_H,
            align_v: hmUI.align.CENTER_V,
            text_style: hmUI.text_style.WRAP,
            text: cc+"次執行\n已經過"+aa+"s"
          })
        const a=setInterval(() => {
            cc++
          }, 10)
         const d=setInterval(() => {
            aa++
            aText.setProperty(prop.MORE, {
                text: cc+"次執行\n已經過"+aa+"s"
              })
          }, 1000)
      },
      onInit() {
        console.log("index page.js on init invoke"), this.init_view();
      },
      onReady() {
        console.log("index page.js on ready invoke");
      },
      onShow() {
        console.log("index page.js on show invoke");
      },
      onHide() {
        console.log("index page.js on hide invoke");
      },
      onDestory() {
        console.log("index page.js on destory invoke");
      }
    });
  })();
  } catch (e) {
  console.log(e);
  }
  })();
  } catch (e) {
  console.log(e);
  }
花了18分鐘做的
Yy7y
 

2333why

LV0
普通成员
UID
292246
2023-05-21
31
4
感谢楼主的红包!

2333why领取了您的红包获得了0.00生米粒
 

CYFS

LV0
普通成员
UID
103888
2022-08-03
86
2
感谢楼主的红包!

CYFS领取了您的红包获得了0.00生米粒
 

弦12345q

LV0
普通成员
UID
367084
2023-08-07
4
0
感谢楼主的红包!

弦12345q领取了您的红包获得了0.00生米粒
 

heyheyhehey

LV0
普通成员
UID
320169
2023-06-13
68
3
感谢楼主的红包!

heyheyhehey领取了您的红包获得了0.00生米粒
 

硕硕子

LV0
普通成员
UID
367010
2023-08-07
29
0
感谢楼主的红包!

硕硕子领取了您的红包获得了0.00生米粒
 

xiaohei123

LV0
普通成员
UID
286980
2023-05-16
16
0
感谢楼主的红包!

xiaohei123领取了您的红包获得了0.00生米粒
 

romancev

LV0
普通成员
UID
375297
2023-08-17
5
0
感谢楼主的红包!

romancev领取了您的红包获得了0.00生米粒
 

*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责