diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index df019c0..1a31bfa 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -35,7 +35,7 @@ > 还未登录 , + >登录即可体验更多功能哦! 去登录! @@ -241,6 +241,7 @@ const pageClass = computed(() => { //#region 头像 const avatarUrl = ref(null); function chooseAvatar() { + uni.setStorageSync("action", 1); uni.switchTab({ url: "/pages/uploadPhoto/uploadPhoto", }); @@ -308,8 +309,13 @@ const tabList = ref([ ]); const showListActive = ref(1); function clickTabHandle(e) { + if (!userInfoModulesPinia.token) { + return; + } + showListActive.value = e.id; console.log(e.id, "id"); + if (e.id == 1) { getPhotoList(pageSize1.value, pageNum1.value); } else if (e.id == 2) { diff --git a/src/pages/lookPhoto/index.vue b/src/pages/lookPhoto/index.vue index 9fb6786..509df78 100644 --- a/src/pages/lookPhoto/index.vue +++ b/src/pages/lookPhoto/index.vue @@ -114,9 +114,9 @@ function downloadImg() { success: () => { //提示保存成功 uni.showToast({ - mask: true, title: "保存成功", - duration: 3000, + iconL: "success", + duration: 2000, }); }, fail: (res2) => { @@ -130,7 +130,7 @@ function downloadImg() { }, complete: function () { //隐藏提示 - uni.hideLoading(); + // uni.hideLoading(); }, }); } diff --git a/src/pages/uploadPhoto/uploadPhoto.vue b/src/pages/uploadPhoto/uploadPhoto.vue index 50f4519..e310d79 100644 --- a/src/pages/uploadPhoto/uploadPhoto.vue +++ b/src/pages/uploadPhoto/uploadPhoto.vue @@ -81,8 +81,8 @@