yxk_h5_master/pages/record/record.vue

87 lines
1.6 KiB
Vue

<template>
<view>
<view class="uni-list">
<view class="uni-list-cell" hover-class="uni-list-cell-hover" v-for="(item,index) in list" :key="index">
<view class="uni-list-cell-navigate uni-navigate-right" @click="neivate(item.navUrl)">
{{item.name}}
</view>
</view>
</view>
<view class="goHome" @click='goMain()'>
<img src="../../static/img/gohome.png">
</view>
</view>
</template>
<script>
export default {
data() {
return {
id:'',
list:[
{
id:1,
name:'基本信息',
navUrl:'information'
},
{
id:2,
name:'扩展信息',
navUrl:'expandInformation'
},
{
id:3,
name:'专业技能',
navUrl:'professionalSkills'
},
{
id:4,
name:'工作经历',
navUrl:'workExperience'
},
{
id:5,
name:'教育经历',
navUrl:'educationExperience'
},
{
id:6,
name:'社会关系',
navUrl:'socialRelation'
}
]
}
},
onLoad(options) {
var _this = this;
uni.getStorage({
key: 'userInfo',
success: function (res) {
console.log(res.data)
_this.id = res.data.employeeId
}
});
},
methods: {
neivate(url) {
if(url){
uni.navigateTo({
url: url+'?id='+this.id
});
}
}
},
onBackPress(options) { //取消默认的返回事件.
uni.switchTab({
url: "../main/main"
});
return true;
}
}
</script>
<style>
.uni-list-cell-navigate.uni-navigate-right:after{
color: #333;
}
</style>