Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
c42bdc62
Commit
c42bdc62
authored
Mar 03, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
fd48e0ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
10 deletions
+27
-10
Item.vue
pagesUser/component/Item.vue
+18
-3
userArticleList.vue
pagesUser/userArticleList.vue
+9
-7
No files found.
pagesUser/component/Item.vue
View file @
c42bdc62
...
...
@@ -88,7 +88,7 @@
<view
class=
"right"
v-if=
"userInfoId == userId"
>
<u-tag
v-if=
"info.examStatus === '0'"
plain
plainFill
text=
"未审核"
type=
"info"
/>
<u-tag
v-if=
"info.examStatus === '1'"
plain
plainFill
text=
"审核通过"
type=
"success"
/>
<u-tag
v-if=
"info.examStatus === '2' || info.examStatus === '3'"
plain
plainFill
text=
"未通过"
type=
"error"
/>
<u-tag
@
click=
"showRemarks(info)"
v-if=
"info.examStatus === '2' || info.examStatus === '3'"
plain
plainFill
text=
"未通过"
type=
"error"
/>
</view>
<!-- <view class="right">-->
<!-- 右上角的三个点-->
...
...
@@ -103,12 +103,15 @@
<!-- @select="selectClick" @close="show = false" :show="show"></u-action-sheet>-->
<!-- 登录弹窗-->
<!-- <login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>-->
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isCancel=
"false"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
</view>
</template>
<
script
>
import
imageAdaptation
from
'@/components/images-adaptation/imageAdaptation.vue'
import
xzjReadMore
from
"@/components/xzj-readMore/xzj-readMore.vue"
import
ELM
from
'@/components/elm-toast/index.vue'
;
export
default
{
name
:
'ArticleItem'
,
options
:
{
...
...
@@ -116,7 +119,8 @@
},
components
:
{
imageAdaptation
,
xzjReadMore
xzjReadMore
,
ELM
},
props
:
{
info
:
{
...
...
@@ -160,6 +164,8 @@
imgLayout2
:
[
220
,
220
],
imgLayout3
:
[
160
,
160
],
show
:
false
,
tipMsg
:
''
,
isConfirm
:
false
,
userInfoId
:
uni
.
getStorageSync
(
'userInfo'
).
businessId
,
//右上角三个点的操作项
list
:
[{
...
...
@@ -280,7 +286,16 @@
}
this
.
show
=
true
;
}
},
showRemarks
(
info
){
const
remarks
=
JSON
.
parse
(
info
.
remarks
)
this
.
tipMsg
=
remarks
[
0
].
msg
;
this
.
isConfirm
=
true
;
this
.
$refs
.
elm
.
showDialog
();
},
confirm
(){
this
.
isConfirm
=
false
;
}
}
}
</
script
>
...
...
pagesUser/userArticleList.vue
View file @
c42bdc62
...
...
@@ -16,7 +16,7 @@
import
ItemVue
from
'./component/Item.vue'
;
import
empty
from
'@/components/empty.vue'
;
import
{
topicList
}
from
"../api/topic"
;
import
{
articleList
,
like
,
userArticleList
}
from
"../api/article"
;
import
{
articleList
,
getOssUrl
,
like
,
userArticleList
}
from
"../api/article"
;
import
{
getCity
,
getValue
}
from
"../common/options"
;
import
{
calculateAge
,
parseDate
}
from
"../common"
;
export
default
{
...
...
@@ -111,12 +111,14 @@ export default {
const
list
=
res
.
data
.
data
list
.
forEach
(
item
=>
{
//处理头像
if
(
item
.
memAvatar
!==
null
&&
item
.
memAvatar
!==
''
){
item
.
memAvatar
=
item
.
memAvatar
.
replace
(
/
\\
/g
,
'/'
)
}
//处理动态照片
if
(
item
.
url
!==
null
&&
item
.
url
!==
''
){
item
.
url
=
item
.
url
.
replace
(
/
\\
/g
,
'/'
).
split
(
','
)
if
(
item
.
avatarId
!==
null
){
getOssUrl
(
item
.
avatarId
).
then
(
imgRes
=>
{
//必须要用单独的变量接 不然会有bug
if
(
imgRes
.
data
.
data
!=
null
)
{
imgRes
.
data
.
data
=
imgRes
.
data
.
data
.
replace
(
/
\\
/g
,
"/"
);
item
.
memAvatar
=
imgRes
.
data
.
data
}
})
}
//处理性别
if
(
item
.
memSex
!==
null
&&
item
.
memSex
!==
''
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment