index_personal.vue 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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" v-if="!memberData.head_img" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-avatar.png" mode="aspectFill"></image>
  6. <image class="wh-100 r-circle" v-else :src="memberData.head_img" mode="aspectFill"></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. 评估专员
  12. </view>
  13. </view>
  14. </view>
  15. <image class="wh-80 r-circle is-hover" src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/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" :member-data="memberData" ></SystemPopup>
  21. </uni-popup>
  22. </view>
  23. </template>
  24. <script>
  25. import SystemPopup from "@/common/system_popup/system_popup.vue"
  26. import {getMemberInfo} from "@/api/user";
  27. export default {
  28. name: 'index_personal',
  29. components: {
  30. SystemPopup
  31. },
  32. props: {
  33. is_admin: {
  34. type: Boolean,
  35. default: true
  36. },
  37. data: {
  38. type: Object,
  39. default: () => {}
  40. },
  41. },
  42. data(){
  43. return{
  44. memberData: {
  45. position_name: "",
  46. head_img: "",
  47. id: 5,
  48. name: "",
  49. nickname: "",
  50. phone: "",
  51. status: 1,
  52. user_type: 1,
  53. accomplish_num: 0,
  54. take_num: 0,
  55. manage_num: 0,
  56. use_num: 0,
  57. end_num: 0,
  58. grand_num: 0,
  59. },
  60. }
  61. },
  62. mounted() {
  63. // this.getMemberInfo();
  64. // uni.$on('updateMemberInfo', () => {
  65. // this.getMemberInfo();
  66. // })
  67. },
  68. methods: {
  69. getMemberInfo() {
  70. getMemberInfo({
  71. 'type': 1
  72. }).then((res) => {
  73. if (res.code === 1) {
  74. this.memberData = res.data;
  75. uni.setStorageSync('receivingType', res.data.receivingType)
  76. uni.setStorageSync('enteringType', res.data.enteringType)
  77. this.$emit('setMemberData',this.memberData)
  78. }
  79. })
  80. },
  81. onSystemShow() {
  82. this.$refs.popup.open('left')
  83. },
  84. moveHandle() {
  85. return false
  86. },
  87. }
  88. }
  89. </script>
  90. <style>
  91. .index_personal {
  92. box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  93. }
  94. </style>