security.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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="action">去完善</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. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. phoneNumber: '', // 用户手机号
  54. }
  55. },
  56. onLoad() {
  57. this.loadUserInfo()
  58. },
  59. methods: {
  60. loadUserInfo() {
  61. // 这里添加获取用户信息的逻辑
  62. // 获取手机号等信息
  63. },
  64. goPage(url) {
  65. uni.navigateTo({
  66. url: url
  67. })
  68. },
  69. bindWechat() {
  70. // 微信绑定逻辑
  71. uni.showToast({
  72. title: '暂未开放',
  73. icon: 'none'
  74. })
  75. },
  76. bindQQ() {
  77. // QQ绑定逻辑
  78. uni.showToast({
  79. title: '暂未开放',
  80. icon: 'none'
  81. })
  82. }
  83. }
  84. }
  85. </script>
  86. <style scoped lang="scss">
  87. @import 'security.scss';
  88. </style>