yxk_h5_master/pages/record/workExperience.vue

73 lines
1.4 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:'beforeExperience'
},
{
id:2,
name:'入职后转岗记录',
navUrl:'afterExperience'
},
{
id:3,
name:'入职后奖惩经历',
navUrl:'rewardsPunishments'
}
]
}
},
onLoad(options) {
this.id = options.id
// var _this = this;
// uni.getStorage({
// key: 'userInfo',
// success: function (res) {
// _this.id = res.data.userId
// }
// });
},
methods: {
neivate(url) {
if(url){
uni.navigateTo({
url: url+'?id='+this.id
});
}
}
},
// onBackPress(options) { //取消默认的返回事件.
// uni.navigateTo({
// url: "../main/main"
// });
// return true;
// }
}
</script>
<style>
.uni-list-cell-navigate.uni-navigate-right:after{
color: #333;
}
</style>