点击登录
  • 📢 主要更新维护已完成 点击展开 ▼
    以下功能仍需注意🔔 / 不可用🚫
    1. 付款功能可用,支付后需手动刷新方可查看购买后内容(后续修复),若出现未到账情况请及时发起工单进行处理
    2. 部分页面未完成汉化。
    如果你遇到任何其他问题/BUG🛠️ 请通过 https://wj.qq.com/s2/15351411/ad2a/ 向我们反馈
  • 米坛百万注册特别活动
    了解详情

米环7小程序 腕間暖暖包

我只有做好代碼,你們幫我測式

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
 
我只有做好代碼,你們幫我測式

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分鐘做的
 
我只有做好代碼,你們幫我測式

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分鐘做的
 
我只有做好代碼,你們幫我測式

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
 
感谢楼主的红包!

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

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

相似主题

问答
794
3

米环7小程序
11K
147

米环7小程序
23K
478

Home 首页
News 发现
Account 我的
顶部