<script>
import { getToken } from "./Lib/Request";
export default {
  onLaunch: function () {
    console.log("App Launch");
    //获取token
    getToken();

    function uidCallback(data) {
      console.log(data);
      uni.showToast({
        title: `登录成功!`,
      });
    }
    uni.$on("user_getUid", uidCallback);
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style>
/*每个页面公共css */
 @import './common/common.css';
</style>
