system_popup.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="system_content column-c" :style="{paddingTop:`${$tools.topHeight()}px`}"
  3. >
  4. <view class="column justify-center avatar r-100">
  5. <view class="avatar r-100" style="background-color: rgba(0, 0, 0, 0.1);"></view>
  6. <view class="row-c avatar_name m-l20">
  7. <image class="wh-100 r-circle" src="/static/img/logo.png" mode=""></image>
  8. <view class="column m-l20">
  9. <text class="size-30 text-color-333">团子</text>
  10. <text class="size-26 text-color-666">游客</text>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="system_item">
  15. <view class="row-c p-tb25" v-for="(item,index) in systemList" :key="index" @click="onGoSetting(item)">
  16. <image class="m-r20" :src="item.icon" mode=""></image>
  17. <text class="size-28 text-color-333">{{item.name}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. topNavHeight: null,
  27. systemList: [{
  28. icon: "/static/img/index/index-info.png",
  29. name: '个人信息',
  30. id: 1
  31. }, {
  32. icon: "/static/img/index/index-lock.png",
  33. name: '修改密码',
  34. id: 2
  35. }, {
  36. icon: "/static/img/index/index-phone.png",
  37. name: '手机号',
  38. id: 3
  39. }, {
  40. icon: "/static/img/index/index-phone.png",
  41. name: '邀请二维码',
  42. id: 4
  43. }, ]
  44. }
  45. },
  46. created() {
  47. this.topNavHeight = getApp().globalData.topNavHeight
  48. },
  49. methods: {
  50. moveHandle() {
  51. return false
  52. },
  53. onGoSetting(item){
  54. uni.navigateTo({
  55. url:`/page_subpack/system_setting/system_setting?id=${item.id}&title=${item.name}`
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .system_content {
  63. width: 375rpx;
  64. height: 100vh;
  65. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/popup_bg.png");
  66. background-repeat: no-repeat;
  67. background-size: 100% 100%;
  68. }
  69. .avatar {
  70. width: 315rpx;
  71. height: 140rpx;
  72. }
  73. .avatar_name {
  74. position: absolute;
  75. }
  76. .system_item{
  77. width: 315rpx;
  78. margin-top: 50rpx;
  79. image{
  80. width: 30rpx;
  81. height: 32rpx;
  82. }
  83. }
  84. </style>