lisenzhou vor 2 Jahren
Ursprung
Commit
4f55792c61
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  1. 11
    0
      src/pages/share/index.vue

+ 11
- 0
src/pages/share/index.vue Datei anzeigen

1
 <template>
1
 <template>
2
   <div class="share-pg">
2
   <div class="share-pg">
3
+
4
+    <GoBack class="goback abs" style="z-index: 100" @click="router.go(-1)" />
5
+
3
     <div class="will-copy" ref="src">
6
     <div class="will-copy" ref="src">
4
       <img class="copy-img" src="/images/share.jpg" alt="" />
7
       <img class="copy-img" src="/images/share.jpg" alt="" />
5
       <div class="content txt">
8
       <div class="content txt">
17
 import { onMounted,watch, ref } from "vue";
20
 import { onMounted,watch, ref } from "vue";
18
 import html2canvas from "html2canvas";
21
 import html2canvas from "html2canvas";
19
 import { useModel } from "@zjxpcyc/vue-tiny-store";
22
 import { useModel } from "@zjxpcyc/vue-tiny-store";
23
+import { useRouter } from "vue-router";
24
+import GoBack from "@/components/GoBack.vue";
20
 
25
 
26
+const router = useRouter();
21
 const { user } = useModel("user");
27
 const { user } = useModel("user");
22
 const imgData = ref();
28
 const imgData = ref();
23
 const src = ref();
29
 const src = ref();
35
 <style lang="less" scoped>
41
 <style lang="less" scoped>
36
 .share-pg {
42
 .share-pg {
37
   position: relative;
43
   position: relative;
44
+  .goback{
45
+    z-index: 100;
46
+    left: 10px;
47
+    top: 10px;
48
+  }
38
 
49
 
39
   .will-copy {
50
   .will-copy {
40
     position: relative;
51
     position: relative;