menu.vue 1.1 KB

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