index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <ToolbarItemContainer
  3. :iconFile="Icon"
  4. title="我的发布"
  5. :needDialog="false"
  6. iconWidth="30px"
  7. iconHeight="30px"
  8. @onIconClick="onIconClick"
  9. >
  10. <div class="video-upload">
  11. <input
  12. ref="inputRef"
  13. title="我的发布"
  14. type="file"
  15. data-type="video"
  16. accept="video/*"
  17. />
  18. </div>
  19. </ToolbarItemContainer>
  20. </template>
  21. <script lang="ts" setup>
  22. import ToolbarItemContainer from "../toolbar-item-container/index.vue";
  23. import Icon from "@/static/images/user/tool-icon4.png";
  24. interface IProps {
  25. infoData: Object;
  26. }
  27. const props = withDefaults(defineProps<IProps>(), {});
  28. const onIconClick = () => {
  29. uni.navigateTo({
  30. url:
  31. "/pages/merChantSide/publish/my-publish?shopUserId=" +
  32. props.infoData.shopUserId +
  33. "&userId=" +
  34. props.infoData.userId,
  35. });
  36. };
  37. // 获取地址栏参数
  38. function getParamValue(paramName) {
  39. const regExp = new RegExp("[?&]" + paramName + "=([^&#]*)");
  40. const results = regExp.exec(window.location.href);
  41. if (results) {
  42. return decodeURIComponent(results[1]);
  43. } else {
  44. return null;
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. @import "../../../../assets/styles/common";
  50. </style>