security.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view class="page">
  3. <!-- 基本资料组 -->
  4. <view class="group">
  5. <view class="item" @click="goPage('/pages/my/editInfo')">
  6. <text class="title">基本资料</text>
  7. <view class="right">
  8. <text class="value">去完善</text>
  9. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
  10. </view>
  11. </view>
  12. </view>
  13. <!-- 账号安全组 -->
  14. <view class="group">
  15. <view class="item" @click="goPage('/pages/my/editMobile')">
  16. <text class="title">手机号</text>
  17. <view class="right">
  18. <text class="value">{{ phoneNumber || '未绑定' }}</text>
  19. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
  20. </view>
  21. </view>
  22. <view class="item" @click="goPage('/pages/my/editPass')">
  23. <text class="title">登录密码</text>
  24. <view class="right">
  25. <text class="value">未设置</text>
  26. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 第三方账号组 -->
  31. <view class="group">
  32. <view class="item" @click="bindWechat">
  33. <text class="title">微信账号</text>
  34. <view class="right">
  35. <text class="value">未授权</text>
  36. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
  37. </view>
  38. </view>
  39. <view class="item" @click="bindQQ">
  40. <text class="title">QQ账号</text>
  41. <view class="right">
  42. <text class="value">未授权</text>
  43. <image class="arrow" src="../../static/me/arrow_right_gray.png" mode="widthFix"></image>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 删除账号组 -->
  48. <view class="group">
  49. <view class="item" @click="goPage('/pages/my/editInfo')">
  50. <text class="title red">删除用户</text>
  51. <view class="right" >
  52. <text class="value red">注销账户</text>
  53. <image class="arrow" style="width: 30rpx; height: 30rpx;" src="../../static/me/wd_icon_jiantou_red.png" mode="widthFix"></image>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. phoneNumber: '', // 用户手机号
  64. }
  65. },
  66. onLoad() {
  67. this.loadUserInfo()
  68. },
  69. methods: {
  70. loadUserInfo() {
  71. // 这里添加获取用户信息的逻辑
  72. // 获取手机号等信息
  73. },
  74. goPage(url) {
  75. uni.navigateTo({
  76. url: url
  77. })
  78. },
  79. bindWechat() {
  80. // 微信绑定逻辑
  81. uni.showToast({
  82. title: '暂未开放',
  83. icon: 'none'
  84. })
  85. },
  86. bindQQ() {
  87. // QQ绑定逻辑
  88. uni.showToast({
  89. title: '暂未开放',
  90. icon: 'none'
  91. })
  92. }
  93. }
  94. }
  95. </script>
  96. <style scoped lang="scss">
  97. @import 'security.scss';
  98. </style>