|
@@ -69,7 +69,7 @@
|
|
import {bannerList} from '@/api/banner.js'
|
|
import {bannerList} from '@/api/banner.js'
|
|
import {getLookUpDatas,openDevice} from '@/api/data.js'
|
|
import {getLookUpDatas,openDevice} from '@/api/data.js'
|
|
import {stationList} from '@/api/station.js'
|
|
import {stationList} from '@/api/station.js'
|
|
- import {checkLogin} from '@/api/login.js'
|
|
|
|
|
|
+ import {checkLogin,getUserInfo} from '@/api/login.js'
|
|
import {parseQueryString} from '@/libs/tools.js'
|
|
import {parseQueryString} from '@/libs/tools.js'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -108,11 +108,24 @@
|
|
uni.$on("updateGoodsBuyQty",item=>{
|
|
uni.$on("updateGoodsBuyQty",item=>{
|
|
this.updateGoodsBuyQty(item)
|
|
this.updateGoodsBuyQty(item)
|
|
})
|
|
})
|
|
|
|
+ // 查询用户信息
|
|
|
|
+ uni.$on("getUserInfo",item=>{
|
|
|
|
+ this.getUserInfo(item)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ // 获取用户信息
|
|
|
|
+ getUserInfo(){
|
|
|
|
+ console.log('getUserInfogetUserInfogetUserInfo')
|
|
|
|
+ getUserInfo().then(res => {
|
|
|
|
+ if(res.status == 200){
|
|
|
|
+ this.$u.vuex("vuex_userData",res.data)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 获取数据字典
|
|
// 获取数据字典
|
|
getCodeList(code,key) {
|
|
getCodeList(code,key) {
|
|
getLookUpDatas({
|
|
getLookUpDatas({
|