index_personal.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view class="">
  3. <view class="index_personal bg-rgba-255 r-20 bor-f1 row-justify-sb center p-40">
  4. <view class="center">
  5. <image class="wh-100 r-circle" src="/static/img/index/index-avatar.png" mode="">
  6. </image>
  7. <view class="m-l20">
  8. <text class="text-color-fff">HI,李亮</text>
  9. <view class="text-color-fff size-24 text-center r-20 line-30 p-tb6 p-lr20 m-t10 "
  10. style="background-color: rgba(0, 0, 0, 0.2);opacity: 0.6;">
  11. {{is_admin?'管理员':'业务员'}}
  12. </view>
  13. </view>
  14. </view>
  15. <image class="wh-80 r-circle is-hover" src="/static/img/index/index-system.png" @click="onSystemShow">
  16. </image>
  17. </view>
  18. <uni-popup background-color="#fff" ref="popup" type="left" border-radius="10px 10px 0 0"
  19. @touchmove.stop.prevent="moveHandle">
  20. <SystemPopup ref="system" @onCloseSystem="onCloseSystem"></SystemPopup>
  21. </uni-popup>
  22. </view>
  23. </template>
  24. <script>
  25. import SystemPopup from "@/common/system_popup/system_popup.vue"
  26. export default {
  27. name: 'index_personal',
  28. components: {
  29. SystemPopup
  30. },
  31. props: {
  32. is_admin: {
  33. type: Boolean,
  34. default: true
  35. },
  36. data: {
  37. type: Object,
  38. default: () => {}
  39. },
  40. },
  41. methods: {
  42. onSystemShow() {
  43. this.$refs.popup.open('left')
  44. },
  45. moveHandle() {
  46. return false
  47. },
  48. }
  49. }
  50. </script>
  51. <style>
  52. .index_personal {
  53. box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  54. }
  55. </style>