index.vue 911 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view>
  3. <z-navbar title="设置" back></z-navbar>
  4. <z-card class="mt-30">
  5. <z-cell label="更换手机号" arrow height="100rpx" @click.native="changeTel"></z-cell>
  6. <z-cell label="修改密码" arrow hideline height="100rpx" @click.native="changePass"></z-cell>
  7. </z-card>
  8. <z-button class="mt-50" @click="exit">退出登录</z-button>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. };
  16. },
  17. methods:{
  18. changeTel(){
  19. uni.navigateTo({
  20. url: './changetel',
  21. success: res => {},
  22. fail: () => {},
  23. complete: () => {}
  24. });
  25. },
  26. changePass(){
  27. uni.navigateTo({
  28. url: './modifypass',
  29. success: res => {},
  30. fail: () => {},
  31. complete: () => {}
  32. });
  33. },
  34. exit(){
  35. uni.clearStorage();
  36. uni.reLaunch({
  37. url: '../../login/newlogin'
  38. });
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. </style>