Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eMall_miniapp
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
高宇
eMall_miniapp
Commits
1a985b6e
Commit
1a985b6e
authored
Jul 25, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的消息已完成
parent
a4c95e7f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
12 deletions
+66
-12
index.vue
moreFunction/improveInformation/index.vue
+2
-2
index.vue
my/myMessage/index.vue
+64
-10
No files found.
moreFunction/improveInformation/index.vue
View file @
1a985b6e
...
@@ -105,13 +105,13 @@
...
@@ -105,13 +105,13 @@
],
],
matrimonyList
:
[
matrimonyList
:
[
{
{
value
:
'0'
,
value
:
0
,
label
:
'未婚'
label
:
'未婚'
}
}
,
,
{
{
value
:
'1'
,
value
:
1
,
label
:
'已婚'
label
:
'已婚'
}
}
],
],
...
...
my/myMessage/index.vue
View file @
1a985b6e
...
@@ -2,18 +2,18 @@
...
@@ -2,18 +2,18 @@
<view
class=
"myMessage"
>
<view
class=
"myMessage"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
>
<!-- 时间 -->
<!-- 时间 -->
<view
class=
"date"
>
{{
item
.
t
ime
}}
</view>
<view
class=
"date"
>
{{
item
.
pushT
ime
}}
</view>
<view
class=
"uplowCard"
>
<view
class=
"uplowCard"
>
<view
class=
"one"
>
<view
class=
"one"
>
<view
class=
"address"
>
{{
item
.
address
}}
</view>
<view
class=
"address"
>
{{
tenantName
}}
</view>
<view
class=
"time"
>
{{
item
.
t
ime
}}
</view>
<view
class=
"time"
>
{{
item
.
pushT
ime
}}
</view>
</view>
</view>
<view
class=
"two"
>
<view
class=
"two"
>
<view
class=
"title"
>
{{
item
.
title
}}
</view>
<view
class=
"title"
>
{{
item
.
title
}}
</view>
<view
class=
"content"
>
{{
item
.
content
}}
</view>
<view
class=
"content"
>
{{
item
.
content
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"lowerCard"
>
<view
class=
"lowerCard"
@
click=
"toUser(item)"
>
<view
class=
"button"
>
立即使用
</view>
<view
class=
"button"
>
立即使用
</view>
<view
class=
"icon"
>
<view
class=
"icon"
>
<u-icon
name=
"arrow-right"
></u-icon>
<u-icon
name=
"arrow-right"
></u-icon>
...
@@ -27,13 +27,67 @@
...
@@ -27,13 +27,67 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
total
:
0
,
time
:
'2023-07-05'
,
time
:
'2023-07-05'
,
list
:
[{
tenantName
:
'天津复悦里'
,
time
:
'2023-07-05'
,
list
:
[]
address
:
'天津复悦里'
,
}
title
:
'【新会员】 1小时停车券'
,
},
content
:
'亲爱的会员,您已成功领取【新会员】1小时停车券!有效期:领取后当天生效,生效后持续7天使用规则:请到适用商场使用'
onShow
()
{
}]
this
.
getList
()
},
methods
:
{
// 去使用
toUser
(
item
){
console
.
log
(
'item'
,
item
)
this
.
$u
.
route
({
url
:
item
.
url
,
})
},
// 获取消息list
getList
(){
let
recipientId
=
''
let
tenantId
=
''
const
that
=
this
// 没有登录跳转登录页
uni
.
getStorage
({
key
:
'lifeData'
,
success
:
function
(
res
)
{
console
.
log
(
'data'
,
res
.
data
);
recipientId
=
res
.
data
.
vuex_user
.
id
if
(
res
.
data
.
vuex_token
===
''
)
{
that
.
$u
.
route
({
url
:
'/pages/login/login'
,
params
:{}
})
}
else
{
uni
.
getStorage
({
key
:
'business'
,
success
:
function
(
Lres
){
tenantId
=
Lres
.
data
.
id
that
.
tenantName
=
Lres
.
data
.
name
console
.
log
(
'recipientId'
,
recipientId
)
console
.
log
(
'tenantId'
,
tenantId
)
that
.
$u
.
get
(
'/mobile/messageInstance/list/'
+
tenantId
+
'/'
+
recipientId
).
then
(
response
=>
{
for
(
const
index
in
response
.
records
){
const
item
=
response
.
records
[
index
]
item
.
pushTime
=
item
.
pushTime
.
substring
(
0
,
10
)
}
that
.
list
=
response
.
records
that
.
total
=
response
.
total
})
}
})
}
},
fail
:
function
(
res
)
{
console
.
log
(
'fail'
,
res
.
data
);
that
.
$u
.
route
({
url
:
'/pages/login/login'
,
params
:{}
})
}
});
}
}
}
}
}
}
...
...
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