禅道bug修复
This commit is contained in:
parent
450beaf8c2
commit
d4cb7678f4
|
|
@ -21,7 +21,7 @@
|
||||||
@tap="onHandleImage(icon)"
|
@tap="onHandleImage(icon)"
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #error>
|
||||||
<view style="font-size: 24rpx; height: 120px">加载失败</view>
|
<!-- <view style="font-size: 24rpx; height: 120px">加载失败</view> -->
|
||||||
</template>
|
</template>
|
||||||
</up-image>
|
</up-image>
|
||||||
<view class="collect">
|
<view class="collect">
|
||||||
|
|
|
||||||
|
|
@ -527,8 +527,8 @@ const getImgListData = async (isTap = false) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
imgList.value.forEach((e) => {
|
imgList.value?.forEach((e) => {
|
||||||
e.imgUrl = `${baseURL}/imgTool/files${e.compressFilePath}?token=${token}`
|
e.imgUrl = `${baseURL}/imgTool/files${e?.compressFilePath}?token=${token}`
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.$u.toast(res.msg)
|
uni.$u.toast(res.msg)
|
||||||
|
|
@ -549,11 +549,13 @@ const finish = computed(() => {
|
||||||
// 点击我的收藏
|
// 点击我的收藏
|
||||||
const handleMyCollect = () => {
|
const handleMyCollect = () => {
|
||||||
queryParams.value.queryType = 1
|
queryParams.value.queryType = 1
|
||||||
|
queryParams.value.pageNum = 1
|
||||||
getImgListData(true)
|
getImgListData(true)
|
||||||
}
|
}
|
||||||
// 点击最近上传
|
// 点击最近上传
|
||||||
const handleLastUpload = () => {
|
const handleLastUpload = () => {
|
||||||
queryParams.value.queryType = 2
|
queryParams.value.queryType = 2
|
||||||
|
queryParams.value.pageNum = 1
|
||||||
getImgListData(true)
|
getImgListData(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -566,6 +568,7 @@ const handleGetImgList = () => {
|
||||||
const handleGetImgListByImgType = (type) => {
|
const handleGetImgListByImgType = (type) => {
|
||||||
queryParams.value.uploadType = type
|
queryParams.value.uploadType = type
|
||||||
queryParams.value.searchType = 2
|
queryParams.value.searchType = 2
|
||||||
|
queryParams.value.pageNum = 1
|
||||||
getImgListData(true)
|
getImgListData(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -573,6 +576,7 @@ const handleGetImgListByImgType = (type) => {
|
||||||
const HandleViewImgTotal = () => {
|
const HandleViewImgTotal = () => {
|
||||||
queryParams.value.uploadType = ''
|
queryParams.value.uploadType = ''
|
||||||
queryParams.value.searchType = 2
|
queryParams.value.searchType = 2
|
||||||
|
queryParams.value.pageNum = 1
|
||||||
getImgListData(true)
|
getImgListData(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -134,11 +134,7 @@ const onSubmitLogin = debounce(() => {
|
||||||
sendLoading.value = false
|
sendLoading.value = false
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
memberStore.setToken(res.token)
|
memberStore.setToken(res.token)
|
||||||
uni.$u.toast('登录成功')
|
|
||||||
getUserInfo()
|
getUserInfo()
|
||||||
setTimeout(() => {
|
|
||||||
uni.switchTab({ url: '/pages/workbenches/index' })
|
|
||||||
}, 500)
|
|
||||||
} else {
|
} else {
|
||||||
uni.$u.toast('登录失败' + res.message)
|
uni.$u.toast('登录失败' + res.message)
|
||||||
}
|
}
|
||||||
|
|
@ -166,6 +162,15 @@ const getUserInfo = () => {
|
||||||
|
|
||||||
// 存储用户信息
|
// 存储用户信息
|
||||||
memberStore.setUserInfo(res.data)
|
memberStore.setUserInfo(res.data)
|
||||||
|
|
||||||
|
if (res.data.loginType.includes(1)) {
|
||||||
|
uni.$u.toast('登录成功')
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.switchTab({ url: '/pages/workbenches/index' })
|
||||||
|
}, 500)
|
||||||
|
} else {
|
||||||
|
uni.$u.toast('当前用户暂无登录APP权限,请联系管理员')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue