personalInformation.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="page">
  3. <view class="content">
  4. <view class="header">
  5. <text>{{i18n.headerImg}}</text>
  6. <image class="header-img" src="http://pic.imeitou.com/uploads/allimg/240522/10-240522162434-50.jpg" mode=""></image>
  7. </view>
  8. <view class="bottom-text" @click="toName">
  9. <text>{{i18n.nickname}}</text>
  10. <AllRight :name="nickname"></AllRight>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import AllRight from '../mineComponent/allRight/allRight.vue'
  17. export default {
  18. components:{
  19. AllRight
  20. },
  21. data() {
  22. return {
  23. nickname:'张三'
  24. };
  25. },
  26. computed:{
  27. i18n(){
  28. return this.$t('index')
  29. }
  30. },
  31. mounted(){
  32. uni.setNavigationBarTitle({
  33. title:this.i18n.information
  34. })
  35. },
  36. methods:{
  37. toName(){
  38. uni.navigateTo({
  39. url:'/pageC/editName/editName'
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .page{
  47. padding: 20rpx 24rpx;
  48. .content{
  49. background-color: #fff;
  50. border-radius: 16rpx;
  51. padding: 0 20rpx;
  52. .header{
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. height: 176rpx;
  57. border-bottom: 2rpx solid rgba(151, 151, 151, .2);
  58. .header-img{
  59. height: 116rpx;
  60. width: 116rpx;
  61. border-radius: 50%;
  62. }
  63. }
  64. .bottom-text{
  65. display: flex;
  66. height: 116rpx;
  67. justify-content: space-between;
  68. align-items: center;
  69. }
  70. }
  71. }
  72. </style>