text: Page({
    onLoad(query) {
      // 页面加载
      console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
    },
    onReady() {
      // 页面加载完成
    },
    onShow() {
      // 页面显示
    },
    onHide() {
      // 页面隐藏
    },
    onUnload() {
      // 页面被关闭
    },
    onTitleClick() {
      // 标题被点击
    },
    onPullDownRefresh() {
      // 页面被下拉
    },
    onReachBottom() {
      // 页面被拉到底部
    },
    onShareAppMessage() {
      // 返回自定义分享信息
      return {
        title: 'My App',
        desc: 'My App description',
        path: 'pages/index/index',
      };
    },
    getRecord(){
      const apiToken = 'vLLvKEPGKlZ8YuaT5i71gj35wc36xHoWhn7e6s9f';
      const domain = 'cndevhoitcw.cybozu.cn';
      const appId = 12;
      const recordId = 2;
  
      //sdk
      const kintone = require('../../kintone-dingtalk-miniprogram-sdk/dingtalk/main');
      const auth = (new kintone.Auth()).setApiToken({apiToken});
      const connection = new kintone.Connection({domain, auth});
      const kintoneRecord = new kintone.Record({connection});
  
      kintoneRecord.getRecord({app: appId, id: recordId}).then(res => {
          console.log(res);
          dd.alert({content: res['record']['name']['value']});
  
      }).catch(err => {
          console.log(err.get());
      });
    },
  });
  