flat: 国庆节暂存
This commit is contained in:
@@ -372,7 +372,7 @@ const news = {
|
||||
current,
|
||||
total
|
||||
}) => {
|
||||
console.log(data)
|
||||
if (!data) return
|
||||
data.forEach(item => {
|
||||
state.dic[item.id] = item
|
||||
})
|
||||
|
||||
@@ -18,6 +18,9 @@ import {
|
||||
import {
|
||||
calcDate
|
||||
} from '@/untils/date.js'
|
||||
import {
|
||||
myResume,
|
||||
} from '@/api/resume.js';
|
||||
|
||||
let refreshTimer = null;
|
||||
|
||||
@@ -67,8 +70,18 @@ const user = {
|
||||
}) || 0, // 0 个体招工 ; 企业招工
|
||||
userLocation: null,
|
||||
userIsCms: false,
|
||||
resumeInfo: {},
|
||||
},
|
||||
actions: {
|
||||
getResumeInfo({
|
||||
commit,
|
||||
dispatch
|
||||
}) {
|
||||
myResume().then(res => {
|
||||
const data = res.data.data
|
||||
commit('upDataResumeInfo', data)
|
||||
})
|
||||
},
|
||||
getMobileIsCms({
|
||||
commit,
|
||||
dispatch
|
||||
@@ -83,14 +96,14 @@ const user = {
|
||||
commit,
|
||||
dispatch
|
||||
}) {
|
||||
console.log('getUserLocation null1')
|
||||
// commit('setLocation', {
|
||||
// latitude: 31.133980,
|
||||
// longitude: 104.404419,
|
||||
// })
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
type: 'wgs84',
|
||||
success: function(res) {
|
||||
console.warn('用户位置获取成功')
|
||||
const {
|
||||
longitude,
|
||||
latitude
|
||||
@@ -101,9 +114,12 @@ const user = {
|
||||
})
|
||||
},
|
||||
fail: function(err) {
|
||||
console.warn('用户位置获取失败')
|
||||
commit('setLocation', null)
|
||||
},
|
||||
complete: function(e) {}
|
||||
complete: function(e) {
|
||||
console.warn('getUserLocation' + JSON.stringify(e))
|
||||
}
|
||||
})
|
||||
},
|
||||
//用户点击radio按钮
|
||||
@@ -223,9 +239,12 @@ const user = {
|
||||
commit
|
||||
}, data) {
|
||||
commit('SET_USER_SENDTIMES', data);
|
||||
},
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
upDataResumeInfo(state, payload) {
|
||||
state.resumeInfo = payload
|
||||
},
|
||||
setIsCms(state, payload) {
|
||||
state.userIsCms = payload.val
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user