| | |
| | | </view> |
| | | </template> |
| | | </z-paging> |
| | | <Scan ref="scanRef" /> |
| | | <Scan ref="scanRef" emitName="scanMono" /> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import MonofilCard from "../components/MonofilCard.vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import { onLoad, onUnload, onShow, onHide } from "@dcloudio/uni-app"; |
| | | import { onLoad, onUnload } from "@dcloudio/uni-app"; |
| | | import Scan from "@/components/scan/index.vue"; |
| | | import ManageApi from "@/api/product/manage"; |
| | | import TwistApi from "@/api/product/twist"; |
| | |
| | | |
| | | onLoad((options: any) => { |
| | | // 开启广播监听事件 |
| | | uni.$on("scan", getScanCode); |
| | | uni.$on("scanMono", getScanCode); |
| | | paramsId.value = options.id; |
| | | }); |
| | | onUnload(() => { |
| | | // 开启广播监听事件 |
| | | uni.$off("scan", getScanCode); |
| | | uni.$off("scanMono", getScanCode); |
| | | }); |
| | | |
| | | onShow(() => {}); |
| | | |
| | | onHide(() => {}); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |