menu.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view >
  3. <nav-bar title="基本资料"></nav-bar>
  4. <u-cell-group>
  5. <u-cell-item title="基本信息" @click="jumpInfo"></u-cell-item>
  6. <u-cell-item title="教育信息" @click="jumpEduInfo"></u-cell-item>
  7. </u-cell-group>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. }
  15. },
  16. onLoad(option) {
  17. // this.getDict()
  18. },
  19. onShow(){
  20. },
  21. methods: {
  22. jumpInfo(){
  23. this.$navTo.togo('/pages2/wd/info', {})
  24. },
  25. jumpEduInfo(){
  26. this.$navTo.togo('/pages2/wd/edu_info', {})
  27. },
  28. getDict(){
  29. let that = this
  30. this.$api.dictList().then(res => {
  31. if (res.data.code === 200) {
  32. let newList = {}
  33. let list = res.data.data
  34. for(let i =0 ;i<list.length;i++){
  35. let item = list[i]
  36. if(newList.hasOwnProperty(item.dictType)){
  37. newList[item.dictType].push(item.dictLabel)
  38. }else{
  39. newList[item.dictType] = [item.dictLabel]
  40. }
  41. }
  42. that.$store.state.dictObj = newList;
  43. console.log(newList)
  44. }
  45. });
  46. }
  47. },
  48. }
  49. </script>
  50. <style scope>
  51. page {
  52. background: #FFFFFF;
  53. }
  54. </style>