phone-number.vue 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="">
  3. <view class="img text-center">
  4. <image src="../../../static/my-phone.png" mode=""></image>
  5. </view>
  6. <view class="text-center u-m-t-30">
  7. 当前手机号: {{userInfo.mobile}}
  8. </view>
  9. <view class="fixed-bottom pb-80">
  10. <u-button type="primary" @click="gochange">更改手机号</u-button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import {
  16. mapState
  17. } from 'vuex';
  18. export default {
  19. data() {
  20. return {
  21. }
  22. },
  23. computed: {
  24. ...mapState(['userInfo'])
  25. },
  26. onLoad() {
  27. // uni.setNavigationBarTitle({
  28. // title: '当前手机号'
  29. // });
  30. },
  31. methods: {
  32. gochange() {
  33. uni.navigateTo({
  34. url: '/pages/my/set/phone-change'
  35. })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. /deep/.u-primary-hover {
  42. background-color: $blue !important;
  43. }
  44. .img {
  45. margin-top: 160rpx;
  46. image {
  47. width: 120rpx;
  48. height: 120rpx;
  49. }
  50. }
  51. .bottom {
  52. position: fixed;
  53. bottom: 80rpx;
  54. }
  55. </style>