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
9ca0104b
Commit
9ca0104b
authored
Mar 03, 2025
by
liwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
8a50f9af
a7ab804f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
81 deletions
+71
-81
Item.vue
pages/components/article/Item.vue
+10
-19
List.vue
pages/components/article/List.vue
+21
-21
article.vue
pages/tab/article.vue
+11
-19
activityDetail.vue
pagesActivity/activityDetail.vue
+9
-2
articleDetail.vue
pagesArticle/articleDetail.vue
+20
-20
No files found.
pages/components/article/Item.vue
View file @
9ca0104b
...
...
@@ -96,8 +96,6 @@
<!-- 右上角三个点的选项-->
<u-action-sheet
:actions=
"list"
:closeOnClickOverlay=
"true"
:safeAreaInsetBottom=
"true"
cancelText=
"取消"
@
select=
"selectClick"
@
close=
"show = false"
:show=
"show"
></u-action-sheet>
<!-- 登录弹窗-->
<login
@
change=
"getToLogin"
:isLoginPop=
"isLoginPop"
class=
"my-select"
></login>
</view>
</template>
...
...
@@ -132,8 +130,6 @@
},
data
()
{
return
{
//登录弹窗
isLoginPop
:
false
,
//图片路径
baseUrl
:
this
.
$IMG_URL
,
imgs
:
[],
...
...
@@ -189,23 +185,18 @@
}
})
}
else
{
//未登录
this
.
isLoginPop
=
true
}
},
//登录弹窗
getToLogin
(
e
)
{
if
(
e
==
0
)
{
//取消登录
this
.
isLoginPop
=
false
;
}
else
{
this
.
isLoginPop
=
false
;
//立即登录
uni
.
navigateTo
({
url
:
'/pageslogin/index'
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
},
},
// 删除
selectClick
(
item
)
{
...
...
pages/components/article/List.vue
View file @
9ca0104b
...
...
@@ -19,8 +19,6 @@
</view>
<empty
v-if=
"firstLoaded && !dataList.length"
/>
</z-paging>
<!-- 登录弹窗-->
<login
@
change=
"getToLogin"
:isLoginPop=
"isLoginPop"
class=
"my-select"
></login>
</view>
</
template
>
...
...
@@ -40,8 +38,6 @@
},
data
()
{
return
{
//登录弹窗
isLoginPop
:
''
,
//话题id
topicId
:
0
,
//当前的tab
...
...
@@ -89,15 +85,32 @@
if
(
res
.
data
.
data
==
'0'
)
{
uni
.
removeStorageSync
(
'userInfo'
)
uni
.
removeStorageSync
(
'token'
)
this
.
isLoginPop
=
true
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
else
{
//关注
this
.
articleType
=
'0'
}
})
}
else
{
//未登录
this
.
isLoginPop
=
true
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
}
if
(
newVal
===
1
){
...
...
@@ -305,20 +318,7 @@
let
idx
=
this
.
dataList
.
findIndex
(
obj
=>
obj
.
businessId
==
item
.
businessId
)
this
.
dataList
.
splice
(
idx
,
1
,
item
)
})
},
//登录弹窗
getToLogin
(
e
)
{
if
(
e
==
0
)
{
//取消登录
this
.
isLoginPop
=
false
;
}
else
{
this
.
isLoginPop
=
false
;
//立即登录
uni
.
navigateTo
({
url
:
'/pageslogin/index'
})
}
},
}
}
}
</
script
>
...
...
pages/tab/article.vue
View file @
9ca0104b
...
...
@@ -38,7 +38,6 @@
<ListVue
ref=
"listItem"
:tabIndex=
"index"
:currentIndex=
"current"
@
topicId=
"handleTopicId"
/>
</swiper-item>
</swiper>
<login
@
change=
"getToLogin"
:isLoginPop=
"isLoginPop"
class=
"my-select"
></login>
<!-- 完善个人信息弹窗-->
<u-popup
u-popup
:show=
"tipsShow"
mode=
"center"
round=
"12"
:safeAreaInsetBottom=
"false"
>
<view
class=
"popup-container"
>
...
...
@@ -94,8 +93,6 @@
//当前tab
current
:
1
,
num
:
0
,
//登录弹窗
isLoginPop
:
false
,
//话题id
topicId
:
null
,
tipMsg
:
''
,
...
...
@@ -174,8 +171,16 @@
}
})
}
else
{
//未登录
this
.
isLoginPop
=
true
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
},
//完善个人信息 确认按钮
...
...
@@ -197,20 +202,7 @@
uni
.
navigateTo
({
url
:
"/pagesme/me/doubleauth"
})
},
//登录弹窗
getToLogin
(
e
)
{
if
(
e
==
0
)
{
//取消登录
this
.
isLoginPop
=
false
;
}
else
{
this
.
isLoginPop
=
false
;
//立即登录
uni
.
navigateTo
({
url
:
'/pageslogin/index'
})
}
},
}
}
}
</
script
>
...
...
pagesActivity/activityDetail.vue
View file @
9ca0104b
...
...
@@ -125,9 +125,16 @@ export default {
this
.
show
=
true
this
.
countprice
()
}
else
{
uni
.
navigateTo
({
url
:
'/pageslogin/index'
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
},
// 可使用优惠券弹窗取消按钮
...
...
pagesArticle/articleDetail.vue
View file @
9ca0104b
...
...
@@ -107,8 +107,6 @@
<!--
</view>
-->
<!--
</view>
-->
</view>
<!-- 登录弹窗-->
<login
@
change=
"getToLogin"
:isLoginPop=
"isLoginPop"
class=
"my-select"
></login>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
@
confirm=
"confirm"
></ELM>
</view>
</
template
>
...
...
@@ -137,7 +135,6 @@ export default{
articleId
:
''
,
//动态详情
articleInfo
:{},
isLoginPop
:
false
,
//被评论人
commentedUserId
:
null
,
//上级评论ID
...
...
@@ -198,8 +195,16 @@ export default{
}
})
}
else
{
//未登录
this
.
isLoginPop
=
true
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
}
},
//评论回车事件
...
...
@@ -207,8 +212,16 @@ export default{
const
token
=
uni
.
getStorageSync
(
"token"
)
const
userInfo
=
uni
.
getStorageSync
(
'userInfo'
)
if
(
token
==
null
||
token
==
''
){
//未登录
this
.
isLoginPop
=
true
//没登录 提示请先登录
uni
.
showToast
({
title
:
'请先登录'
,
icon
:
'none'
,
})
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tab/my'
});
},
500
)
return
;
}
if
(
this
.
commentValue
===
''
){
...
...
@@ -341,19 +354,6 @@ export default{
url
:
"/pagesme/me/doubleauth"
})
},
//登录弹窗
getToLogin
(
e
)
{
if
(
e
==
0
)
{
//取消登录
this
.
isLoginPop
=
false
;
}
else
{
this
.
isLoginPop
=
false
;
//立即登录
uni
.
navigateTo
({
url
:
'/pageslogin/index'
})
}
},
}
}
</
script
>
...
...
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