<script>
import { fetchToken } from "./utils/request";
import * as userTools from "./utils/user";
import * as myapi from "./utils/myapi";
const updateManager = uni.getUpdateManager();
updateManager.onUpdateReady(function (ret) {
  uni.showModal({
    title: "更新提示",
    content: "新版本已经准备好，是否重启应用？",
    confirmText: "确认",
    cancelText: "取消",
    success: function (res) {
      if (res.confirm) {
        updateManager.applyUpdate();
      }
    },
  });
});
export default {
  data() {
    return {};
  },
  // 授权弹窗回调
  onShow(options) {
  },
  globalData: {
    userInfo: null,
    userDingid: "",

    navigate: {
      mobile: "",
      nickname: "",
      faceImg: "",
    },

    windowHeight: "",
    screenHeight: "",
    flag: 0,
    searchData: "",
    authCode: "",

    getSystemInfoPage() {
      uni.getSystemInfo({
        success: (res) => {
          // console.log(res);
          this.systemInfo = res;
        },
      });
    },

    systemInfo: "",
  },
};
</script>
<style>
page {
  background-color: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0);
  box-sizing: border-box;
}

.page {
  flex: 1;
  width: 100%;
  overflow: auto;
  overflow-x: hidden;
}
</style>
