Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
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
潘琦
voucher-h5
Commits
f8b71f8a
Commit
f8b71f8a
authored
Dec 23, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页获取用户电子券接口判断用户user id是否为空;
parent
93ca7769
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
index.vue
src/views/home/index.vue
+8
-1
No files found.
src/views/home/index.vue
View file @
f8b71f8a
...
...
@@ -57,11 +57,18 @@ export default {
// // }, 2000)
// // window.location.href = 'http://' + location.host + '/recommend/list'
// }, false)
if
(
this
.
userId
&&
this
.
userId
!==
'null'
&&
this
.
userId
!==
''
)
{
this
.
getUserCardByIdFn
()
// 获取当前用户待使用健康券(前3条)
this
.
getUserInfoByUserIdFn
()
// 获取当前用户基本信息
this
.
getunUsedCountByIdFn
()
// 获取当前用户待使用健康券数量
// store.commit('SET_USERIFNO', {name: '1'})
}
else
{
this
.
$toast
({
message
:
'缺少用户标识(user id为空)'
,
position
:
'center'
,
duration
:
3000
})
}
},
mounted
:
function
()
{
},
...
...
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