menu.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="page">
  3. <view class="showlines" v-for="(m,index) in list" :key='index' @tap="$jump(m.url)">
  4. <view >{{m.title}}</view>
  5. <view>
  6. <uni-icons type="arrowright" style="font-size: 16px; color: #666;display: inline-block;vertical-align: middle;font-weight: 600;"></uni-icons>
  7. </view>
  8. </view>
  9. <view class="showlines" @click="goYs()">
  10. <view >隐私协议</view>
  11. <view>
  12. <uni-icons type="arrowright" style="font-size: 16px; color: #666;display: inline-block;vertical-align: middle;font-weight: 600;"></uni-icons>
  13. </view>
  14. </view>
  15. <view class="showlines" @click="gozx()">
  16. <view >注销账号</view>
  17. <view>
  18. <uni-icons type="arrowright" style="font-size: 16px; color: #666;display: inline-block;vertical-align: middle;font-weight: 600;"></uni-icons>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. list:[]
  28. }
  29. },
  30. onLoad(opts) {
  31. var list=[];
  32. if(opts.act=='setting'){
  33. list.push({title:'资料设置',url:'mine.profile'});
  34. list.push({title:'绑定手机',url:'mine.mobile'});
  35. list.push({title:'登录密码',url:'mine.password'});
  36. // list.push({title:'资金密码',url:'mine.password1'});
  37. // list.push({title:'我的银行卡',url:'mine.bank'});
  38. list.push({title:'消息通知设置',url:'mine.note'});
  39. }
  40. else if(opts.act=='team'){
  41. list.push({title:'我的团队',url:'mine.my_invite'});
  42. list.push({title:'邀请好友',url:'mine.invite'});
  43. // list.push({title:'手动开户',url:'mine.user_add'});
  44. uni.setNavigationBarTitle({
  45. title:'我的下级'
  46. })
  47. }
  48. this.list=list;
  49. },
  50. methods: {
  51. gozx() {
  52. // console.log();
  53. uni.navigateTo({
  54. url:'/pages/mine/zxzh'
  55. })
  56. },
  57. goYs() {
  58. uni.navigateTo({
  59. url:'/pages/login/rule?type=1'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style>
  66. .page{
  67. background-color: #fafafa;
  68. }
  69. .showlines{
  70. display: flex;
  71. height: 50px;
  72. line-height: 50px;
  73. margin-top: 15px;
  74. flex-direction: row;
  75. background-color: #fff;
  76. border-bottom:1px #eee solid;
  77. }
  78. .showlines > view{
  79. flex-direction: row;
  80. height: 50px;
  81. line-height: 50px;
  82. }
  83. .showlines > view:nth-child(1){
  84. width:calc(100% - 30px);
  85. text-align: left;
  86. font-size: 16px;
  87. color: #000;
  88. padding-left: 20px;
  89. }
  90. .showlines > view:nth-child(2){
  91. width:30px ;
  92. text-align: center;
  93. }
  94. .showlines image{
  95. width: 25px;
  96. height:25px;
  97. vertical-align: middle;
  98. }
  99. </style>