security.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="container padding-lr-sm" v-if="fetch && fetch.user">
  3. <use-tabbar :tabbar="false"></use-tabbar>
  4. <!-- 用户信息区域 -->
  5. <view class="dflex-c pos-r margin-bottom margin-top">
  6. <view class="portrait-box">
  7. <image class="border-radius-c" :src="fetch.user.avatar"></image>
  8. </view>
  9. <view class="margin-left-sm">
  10. <view>
  11. <text class="username">{{fetch.user.name}}</text>
  12. </view>
  13. <view>
  14. <text class="fs-xxs">{{fetch.user.sign}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <!-- 账号信息区域 -->
  19. <view class="border-radius">
  20. <view class="use-list-title dflex-b padding-lr w-full bg-main">
  21. <view class="dflex">
  22. <text class="flex1 ws-np" style="font-size: 13px;">手机号</text>
  23. </view>
  24. <view class="dflex margin-left-xl">
  25. <text class="tip line-height-1 margin-right-xs">{{fetch.user.mobile}}</text>
  26. <view class="iconfont fs-sm" style="color: #c0c0c0;"></view>
  27. </view>
  28. </view>
  29. <view class="use-list-title dflex-b padding-lr w-full bg-main" @click="Dever.location('user/setting/password', 'go')">
  30. <view class="dflex">
  31. <text class="flex1 ws-np" style="font-size: 13px;">密码</text>
  32. </view>
  33. <view class="dflex margin-left-xl">
  34. <text class="tip line-height-1 margin-right-xs" v-if="fetch.user.password == 1">已设置</text>
  35. <text class="tip line-height-1 margin-right-xs" v-else>未设置</text>
  36. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 账号绑定 -->
  41. <!--
  42. <view class="margin-top margin-left-sm fwb">账号绑定</view>
  43. <view class="border-radius margin-top-sm">
  44. <view class="use-list-title dflex-b padding-lr w-full bg-main">
  45. <view class="dflex">
  46. <text class="flex1 ws-np" style="font-size: 13px;">微信</text>
  47. </view>
  48. <view class="dflex margin-left-xl">
  49. <text class="tip line-height-1 margin-right-xs">已绑定</text>
  50. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  51. </view>
  52. </view>
  53. </view>-->
  54. <view class="padding"></view>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data() {
  60. return {
  61. fetch: {},
  62. }
  63. },
  64. onLoad() {
  65. this.loadData();
  66. },
  67. methods: {
  68. loadData() {
  69. this.DeverApi.get(this, 'user.info');
  70. },
  71. }
  72. }
  73. </script>
  74. <style>
  75. image {
  76. width: 62px;
  77. height: 62px;
  78. }
  79. </style>