Commit f8b71f8a by 潘琦

首页获取用户电子券接口判断用户user id是否为空;

parent 93ca7769
......@@ -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 () {
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment