You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
2.1 KiB
94 lines
2.1 KiB
1 year ago
|
<script>
|
||
|
import { fetchToken } from "./utils/request";
|
||
|
import { onAuthAppBack } from "dingtalk-design-libs/biz/openAuthMiniApp";
|
||
|
import * as userTools from "./utils/user";
|
||
|
import * as myapi from "./utils/myapi";
|
||
|
const updateManager = uni.getUpdateManager();
|
||
|
updateManager.onUpdateReady(function (ret) {
|
||
|
console.log(ret.version); // 更新版本号
|
||
|
uni.showModal({
|
||
|
title: "更新提示",
|
||
|
content: "新版本已经准备好,是否重启应用?",
|
||
|
confirmText: "确认",
|
||
|
cancelText: "取消",
|
||
|
success: function (res) {
|
||
|
if (res.confirm) {
|
||
|
updateManager.applyUpdate();
|
||
|
}
|
||
|
},
|
||
|
});
|
||
|
});
|
||
|
export default {
|
||
|
data() {
|
||
|
return {};
|
||
|
},
|
||
|
// onLoad(options) {
|
||
|
// console.log('options::', options);
|
||
|
// this.globalData.getSystemInfoPage();
|
||
|
// const token =
|
||
|
// process.env.NODE_ENV == "development"
|
||
|
// ? "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhcHAiOiJyZXNpIiwiY2xpZW50IjoibGFuX3R1IiwiZXhwIjoxODA3NDMxNjc2LCJ1c2VySWQiOiIxNjkxNjMyODQ3NTgxNDEzMzc3IiwiaWF0IjoxNzEyODIzNjc2fQ._EmcGDzDS5mc3j6xAv6YJXiG728B6x_PH11sSpOID6oBNf0hFRfZngtKdEOO4LhdwnX2W4h81zgJImbEoSE3XQ"
|
||
|
// : options.query.token;
|
||
|
// userTools.setStoreUserInfo(
|
||
|
// JSON.stringify({
|
||
|
// authorization: token,
|
||
|
// })
|
||
|
// );
|
||
|
// uni.reLaunch({
|
||
|
// url: "/pages/index/index",
|
||
|
// });
|
||
|
// },
|
||
|
// 授权弹窗回调
|
||
|
onShow(options) {
|
||
|
// onAuthAppBack(options, (data) => {
|
||
|
// return data;
|
||
|
// });
|
||
|
},
|
||
|
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;
|
||
|
}
|
||
|
.page::-webkit-scrollbar {
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
}
|
||
|
</style>
|