account.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="box">
  3. <cu-custom bgColor="bg-blue" :isBack="true">
  4. <block slot="backText">账号安全</block>
  5. <block slot="content"></block>
  6. <block slot="right">
  7. <view class=" flex justify-center">
  8. <!-- <button class="margin-top-ssm cu-btn round bg-blue text-blue"><text class="cuIcon-add"></text></button> -->
  9. </view>
  10. </block>
  11. </cu-custom>
  12. <scroll-view scroll-y="true" class="DrawerPage margin-bottom-xxxl">
  13. <view class="cu-list menu">
  14. <!-- 菜单-->
  15. <view class="cu-item arrow" v-for="(item,index) in menuList" :key="item.name" v-if="index==0" >
  16. <view class="content" @click="navTo(item.url)">
  17. <text class="text-black ">{{item.name}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. menuList:[
  29. {name:"登录密码",url:"../password/password"},
  30. {name:"绑定手机",url:"../phone/phone"},
  31. {name:"第三方账号",url:"../otherAccount/otherAccount"},
  32. ],
  33. }
  34. },
  35. methods: {
  36. navTo(url){
  37. uni.navigateTo({
  38. url:url
  39. })
  40. },
  41. }
  42. }
  43. </script>
  44. <style>
  45. .text-black{
  46. color:#101010;
  47. }
  48. .cu-list.menu>.cu-item:after {border-bottom: 2rpx solid #E3E1E1!important;}
  49. </style>