center.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="pages">
  3. <u-navbar
  4. title="我的"
  5. :placeholder="true"
  6. :autoBack="true"
  7. :safeAreaInsetTop="true"
  8. >
  9. </u-navbar>
  10. <view class="page-wrap">
  11. <view class="top u-flex">
  12. <!-- <view class="code-wrap u-flex u-row-right" @click="$u.route('/center/paycode')">
  13. <img class="img" src="../static/img/center-code.png" alt="">
  14. <text class="text">推广码</text>
  15. </view> -->
  16. <view class="userinfo u-flex">
  17. <img class="defaultavatar" src="../static/img/defaultavatar.png" alt="">
  18. <view class="text">
  19. <view class="name">{{vuex_user_info.username}}</view>
  20. <!-- <view class="status">
  21. <text>区域代理人/</text>
  22. <text>白金/</text>
  23. <text>贵阳市云岩区</text>
  24. </view> -->
  25. </view>
  26. </view>
  27. <img class="center-top-bg" src="../static/img/center-top-bg.png" alt="">
  28. </view>
  29. <view class="tool-wrap">
  30. <u-cell-group :border="false">
  31. <u-cell
  32. title="修改密码"
  33. value=""
  34. center
  35. :isLink="true"
  36. :border="false"
  37. url="/center/resetpass"
  38. :customStyle="cellCustomStyle"
  39. ></u-cell>
  40. </u-cell-group>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import { systemInfo } from "@/mixin.js";
  47. export default {
  48. components:{
  49. },
  50. mixins:[systemInfo],
  51. data() {
  52. return {
  53. staticUrl:this.$commonConfig.staticUrl,
  54. userinfo:{},
  55. cellCustomStyle:{
  56. 'background-color':'#fff',
  57. 'border-radius':'8rpx',
  58. }
  59. }
  60. },
  61. onShow() {
  62. },
  63. onLoad() {
  64. this.getSystemInfo();
  65. },
  66. methods: {
  67. }
  68. }
  69. </script>
  70. <style>
  71. page{
  72. background-color: #F5F5F5;
  73. }
  74. </style>
  75. <style lang="scss" scoped>
  76. .top{
  77. .center-top-bg{
  78. position: absolute;
  79. right: 30rpx;
  80. bottom: 0;
  81. width: 210rpx;
  82. height: 169rpx;
  83. z-index: 1;
  84. }
  85. color: #fff;
  86. height: 280rpx;
  87. background: linear-gradient(225deg, #5DE8BD 0%, #00BAA0 100%);
  88. border-radius: 10rpx;
  89. position: relative;
  90. padding: 40rpx 30rpx;
  91. box-sizing: border-box;
  92. .code-wrap{
  93. font-size: 26rpx;
  94. padding-bottom: 10rpx;
  95. .img{
  96. width: 26rpx;
  97. height: 26rpx;
  98. margin-right: 10rpx;
  99. }
  100. }
  101. .userinfo{
  102. .defaultavatar{
  103. width: 110rpx;
  104. height: 110rpx;
  105. }
  106. .text{
  107. margin-left: 20rpx;
  108. font-size: 24rpx;
  109. font-family: PingFangSC-Regular, PingFang SC;
  110. font-weight: 400;
  111. color: #FFFFFF;
  112. line-height: 33rpx;
  113. .name{
  114. font-size: 40rpx;
  115. font-weight: 600;
  116. color: #FFFFFF;
  117. line-height: 56rpx;
  118. margin-bottom: 10rpx;
  119. }
  120. }
  121. }
  122. }
  123. .tool-wrap{
  124. margin-top: 20rpx;
  125. }
  126. </style>