index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <ToolbarItemContainer
  3. iconFile="https://qianzhiy-applet.oss-rg-china-mainland.aliyuncs.com/h5/images/homemaking/user/tool-icon4.png"
  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. interface IProps {
  24. infoData: Object;
  25. }
  26. const props = withDefaults(defineProps<IProps>(), {});
  27. const onIconClick = () => {
  28. uni.navigateTo({
  29. url:
  30. "/pages/merChantSide/publish/my-publish?shopUserId=" +
  31. props.infoData.shopUserId +
  32. "&userId=" +
  33. props.infoData.userId,
  34. });
  35. };
  36. // 获取地址栏参数
  37. function getParamValue(paramName) {
  38. const regExp = new RegExp("[?&]" + paramName + "=([^&#]*)");
  39. const results = regExp.exec(window.location.href);
  40. if (results) {
  41. return decodeURIComponent(results[1]);
  42. } else {
  43. return null;
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. @import "../../../../assets/styles/common";
  49. </style>