Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
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
hooloo
mp
user
Commits
040ba831
Commit
040ba831
authored
Sep 20, 2022
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5deb34a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
pages/mine/mine.vue
+13
-2
No files found.
pages/mine/mine.vue
View file @
040ba831
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<view
class=
"user-name"
v-if=
"userms"
>
HI!
{{
userInfo
.
customerName
||
'我是谁'
}}
</view>
<view
class=
"user-name"
v-if=
"userms"
>
HI!
{{
userInfo
.
customerName
||
'我是谁'
}}
</view>
<view
class=
"user-name"
v-else
>
未登录
</view>
<view
class=
"user-name"
v-else
>
未登录
</view>
<view
class=
"dialog"
>
<view
class=
"dialog"
>
<view
class=
"content"
v-if=
"userms"
>
希望你今天,明天,天天都开心~
</view>
<view
class=
"content"
v-if=
"userms"
>
{{
dayTitle
}}
</view>
<view
class=
"content"
v-if=
"!userms"
>
请您尽快登录~
</view>
<view
class=
"content"
v-if=
"!userms"
>
请您尽快登录~
</view>
</view>
</view>
</view>
</view>
...
@@ -109,6 +109,16 @@ export default {
...
@@ -109,6 +109,16 @@ export default {
}
}
},
},
async
onShow
()
{
async
onShow
()
{
const
dayTitleList
=
[
'呼噜咖啡,用对待人生的态度,做一杯专业好咖啡~'
,
'随手一杯好咖啡,希望你今天,明天,天天都开心~'
,
'咖啡哪有打工苦,喝完这杯再上班~'
,
'今天不听大道理,只喝专业好咖啡~'
,
'来杯美式,少点破事~'
,
'用咖啡拯救疲惫的灵魂~'
,
'呼噜咖啡由37%的咖啡加63%的生活构成~'
]
this
.
dayTitle
=
dayTitleList
[
new
Date
().
getDay
()]
if
(
this
.
userInfo
){
if
(
this
.
userInfo
){
const
{
data
}
=
await
User
.
getCouponNum
()
const
{
data
}
=
await
User
.
getCouponNum
()
this
.
tickNum
=
data
?.
data
||
0
this
.
tickNum
=
data
?.
data
||
0
...
@@ -122,7 +132,8 @@ export default {
...
@@ -122,7 +132,8 @@ export default {
return
{
return
{
loginInfo
:
""
,
loginInfo
:
""
,
img
:
''
,
img
:
''
,
tickNum
:
0
tickNum
:
0
,
dayTitle
:
''
}
}
},
},
computed
:
{
computed
:
{
...
...
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