Compare commits

..

No commits in common. "373f1a4f2b81079718e1900c706cccc61e5f24da" and "802034bffc91d70511aea6ab13e4509814ce5833" have entirely different histories.

3 changed files with 7 additions and 5 deletions

View File

@ -1,12 +1,11 @@
<script>
export default {
onLaunch: function () {},
onLaunch: function () {
console.log("App Launch");
},
onShow: function () {
console.log("App Show");
const token = window?.plus?.storage.getItem("token");
if (token) {
document.querySelector(".uni-page-head-hd").style.display = "none";
}
console.log(window.location.href);
},
onHide: function () {
console.log("App Hide");

View File

@ -14,6 +14,7 @@
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{
@ -21,6 +22,7 @@
"style": {
"navigationBarTitleText": "添加画作",
"enablePullDownRefresh": false
}
},
{

View File

@ -122,6 +122,7 @@ onLoad((options) => {
state.pid = options.pid;
const token =
window?.plus?.storage.getItem("token") || uni.getStorageSync("token");
const userInfo = uni.getStorageSync("userInfo");
console.log("token", token);
//
if (token) {