mySet.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="content">
  3. <view class="content1 flex-all-center relative">
  4. <view class="user">
  5. <image src="../../static/logo.png" mode="widthFix" class="img"></image>
  6. <view class="name">
  7. 我是昵称
  8. </view>
  9. </view>
  10. <view class="position">
  11. <u-icon name="share-square" color="#2979ff" size="28"></u-icon>
  12. <u-icon name="grid-fill" color="#2979ff" size="28"></u-icon>
  13. </view>
  14. </view>
  15. <view class="content2">
  16. <view class="row" v-for="item in menuList" @click="menuClick(item.type)">
  17. <span class="left">{{item.name}}</span>
  18. <span class="right">></span>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. menuList:[
  28. {
  29. name:"我的名片",
  30. type:'myInfo'
  31. },
  32. {
  33. name:"我的主页",
  34. type:'myHome'
  35. },
  36. {
  37. name:"账号",
  38. type:"myAccount"
  39. },
  40. {
  41. name:"名片分类",
  42. type:"cardType"
  43. },
  44. {
  45. name:"我的证件",
  46. type:"myCard"
  47. },
  48. {
  49. name:"帮助说明",
  50. type:"help"
  51. },
  52. {
  53. name:"联系客服",
  54. type:"contactCustomer"
  55. },
  56. {
  57. name:"设置",
  58. type:'set'
  59. },
  60. ]
  61. };
  62. },
  63. methods:{
  64. menuClick(typeName){
  65. let _url = '/pages/mySet/'+typeName
  66. console.log(_url)
  67. uni.navigateTo({
  68. url:_url
  69. })
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .content1{
  76. .img{
  77. width: 100rpx;
  78. border-radius: 50%;
  79. }
  80. }
  81. </style>