|
@@ -1,18 +1,24 @@
|
|
-import { defineComponent, onBeforeMount, watch } from "vue";
|
|
|
|
|
|
+import { defineComponent, onBeforeMount, reactive, watch } from "vue";
|
|
import styles from "./index.module.less";
|
|
import styles from "./index.module.less";
|
|
import iconClose from "../image/close2.png";
|
|
import iconClose from "../image/close2.png";
|
|
-import { Cell, Field, NoticeBar, Radio, RadioGroup, Slider, Switch, Tab, Tabs } from "vant";
|
|
|
|
|
|
+import { Cell, Field, NoticeBar, Popup, Radio, RadioGroup, Slider, Switch, Tab, Tabs } from "vant";
|
|
import state from "/src/state";
|
|
import state from "/src/state";
|
|
import { api_closeCamera, api_openCamera } from "/src/helpers/communication";
|
|
import { api_closeCamera, api_openCamera } from "/src/helpers/communication";
|
|
import iconInfo from "../image/info.svg";
|
|
import iconInfo from "../image/info.svg";
|
|
// import iconDown from "../image/down.svg";
|
|
// import iconDown from "../image/down.svg";
|
|
import iconTv from "../image/tv.png";
|
|
import iconTv from "../image/tv.png";
|
|
import iconYijian from "../image/yijian.png";
|
|
import iconYijian from "../image/yijian.png";
|
|
|
|
+import ScreenModel from "../../custom-plugins/helper-model/screen-model";
|
|
|
|
+import Recommendation from "../../custom-plugins/helper-model/recommendation";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: "header-settting",
|
|
name: "header-settting",
|
|
emits: ["close"],
|
|
emits: ["close"],
|
|
setup(props, { emit }) {
|
|
setup(props, { emit }) {
|
|
|
|
+ const helperData = reactive({
|
|
|
|
+ show: false,
|
|
|
|
+ recommendationShow: false, // 建议
|
|
|
|
+ });
|
|
return () => (
|
|
return () => (
|
|
<div class={styles["header-settting"]}>
|
|
<div class={styles["header-settting"]}>
|
|
<div class={styles.closeBtn} onClick={() => emit("close")}>
|
|
<div class={styles.closeBtn} onClick={() => emit("close")}>
|
|
@@ -28,11 +34,11 @@ export default defineComponent({
|
|
}}
|
|
}}
|
|
</Cell>
|
|
</Cell>
|
|
<div class={styles.btnsbar}>
|
|
<div class={styles.btnsbar}>
|
|
- <div class={styles.btn}>
|
|
|
|
|
|
+ <div class={styles.btn} onClick={() => (helperData.show = true)}>
|
|
<img src={iconTv} />
|
|
<img src={iconTv} />
|
|
投屏帮助
|
|
投屏帮助
|
|
</div>
|
|
</div>
|
|
- <div class={styles.btn}>
|
|
|
|
|
|
+ <div class={styles.btn} onClick={() => (helperData.recommendationShow = true)}>
|
|
<img src={iconYijian} />
|
|
<img src={iconYijian} />
|
|
意见反馈
|
|
意见反馈
|
|
</div>
|
|
</div>
|
|
@@ -120,6 +126,29 @@ export default defineComponent({
|
|
</Tab>
|
|
</Tab>
|
|
</Tabs>
|
|
</Tabs>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <Popup
|
|
|
|
+ class={["popup-custom", styles.screen]}
|
|
|
|
+ v-model:show={helperData.show}
|
|
|
|
+ onClose={() => {
|
|
|
|
+ helperData.show = false;
|
|
|
|
+ }}
|
|
|
|
+ position="right"
|
|
|
|
+ teleport="body"
|
|
|
|
+ >
|
|
|
|
+ <ScreenModel
|
|
|
|
+ onClose={(open: Boolean) => {
|
|
|
|
+ helperData.show = false;
|
|
|
|
+ }}
|
|
|
|
+ />
|
|
|
|
+ </Popup>
|
|
|
|
+ <Popup v-model:show={helperData.recommendationShow} class="popup-custom custom-close-btn van-scale" transition="van-scale" teleport="body" closeable>
|
|
|
|
+ <Recommendation
|
|
|
|
+ onClose={() => {
|
|
|
|
+ helperData.recommendationShow = false;
|
|
|
|
+ }}
|
|
|
|
+ />
|
|
|
|
+ </Popup>
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
},
|
|
},
|