index.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="more_func_container">
  3. <!-- 照片 -->
  4. <!-- <view class="more_func_item" @click="openPhotoAlbum('album')">
  5. <view class="more_func_item_icon">
  6. <image
  7. class="more_func_item_icon_img"
  8. src="/static/images/new_ui/inputbar/more_picture_icon.png "
  9. ></image>
  10. </view>
  11. <text>照片</text>
  12. </view> -->
  13. <!-- 相机 -->
  14. <!-- <view class="more_func_item" @click="openPhotoAlbum('camera')">
  15. <view class="more_func_item_icon">
  16. <image
  17. class="more_func_item_icon_common"
  18. src="/static/images/new_ui/inputbar/more_camera_icon.png"
  19. ></image>
  20. </view>
  21. <text>相机</text>
  22. </view> -->
  23. <!-- 文件 -->
  24. <!-- <view class="more_func_item">
  25. <SendFileMessage
  26. ref="fileComps"
  27. @onCloseAllShowContainer="onCloseAllShowContainer"
  28. >
  29. <view class="more_func_item_icon">
  30. <image
  31. class="more_func_item_icon_common"
  32. src="/static/images/new_ui/inputbar/more_file_icon.png"
  33. ></image>
  34. </view>
  35. </SendFileMessage>
  36. <text>文件</text>
  37. </view> -->
  38. <!-- 名片 -->
  39. <view class="more_func_item" @click="entrySelectUserCard">
  40. <view class="more_func_item_icon">
  41. <image
  42. class="more_func_item_icon_profile"
  43. src="/static/images/new_ui/inputbar/more_profile_card_icon.png"
  44. ></image>
  45. </view>
  46. <text>名片</text>
  47. </view>
  48. <SendImageMessage
  49. ref="imageComps"
  50. @onCloseAllShowContainer="onCloseAllShowContainer"
  51. />
  52. </view>
  53. </template>
  54. <script>
  55. import SendImageMessage from '../inputMessages/sendImageMessage';
  56. import SendFileMessage from '../inputMessages/sendFileMessage';
  57. export default {
  58. components: { SendImageMessage, SendFileMessage },
  59. data() {
  60. return {};
  61. },
  62. methods: {
  63. openPhotoAlbum(type) {
  64. if (type === 'camera') {
  65. this.$refs.imageComps.openCamera();
  66. } else if (type === 'album') {
  67. this.$refs.imageComps.openPhotoAlbum();
  68. }
  69. },
  70. onCloseAllShowContainer() {
  71. this.$emit('onCloseAllShowContainer');
  72. },
  73. entrySelectUserCard() {
  74. uni.navigateTo({
  75. url: '../emChatContainer/emSelectUserCard/index',
  76. });
  77. this.onCloseAllShowContainer();
  78. },
  79. },
  80. };
  81. </script>
  82. <style scoped>
  83. @import './index.css';
  84. </style>