Browse Source

新建页面

xiaohaizhao 1 year ago
parent
commit
7f3ec96b69
3 changed files with 38 additions and 1 deletions
  1. 11 1
      packageA/dailyYttendance/index.vue
  2. 25 0
      packageA/dailyYttendance/makePoster.vue
  3. 2 0
      pages.json

+ 11 - 1
packageA/dailyYttendance/index.vue

@@ -27,7 +27,7 @@
                 复制文本
             </view>
             <view v-if="dates[viewDate].attinfos[current].fileType == 'image'" class="but submit"
-                hover-class="navigator-hover">
+                hover-class="navigator-hover" @click="makePoster(dates[viewDate].attinfos[current])">
                 自定义海报及保存
             </view>
             <view v-else class="but submit" hover-class="navigator-hover"
@@ -147,6 +147,16 @@ export default {
                 })
             } catch (error) {
             }
+        },
+        makePoster(file) {
+            this.$Http.data = {
+                detail: this.dates[this.viewDate],
+                file
+            }
+            uni.navigateTo({
+                url: "/packageA/dailyYttendance/makePoster",
+            });
+
         }
     },
 }

+ 25 - 0
packageA/dailyYttendance/makePoster.vue

@@ -0,0 +1,25 @@
+<template>
+    <view>
+        <!-- <lime-painter /> -->
+    </view>
+</template>
+
+<script>
+
+export default {
+    components: {},
+    data() {
+        return {
+            detail: {},
+            file: {},
+        }
+    },
+    onLoad() {
+        this.detail = this.$Http.data.detail;
+        this.file = this.$Http.data.file;
+        delete (this.$Http.data)
+    }
+}
+</script>
+
+<style></style>

+ 2 - 0
pages.json

@@ -27,6 +27,8 @@
 			"path": "exam/detail"
 		}, {
 			"path": "dailyYttendance/index"
+		}, {
+			"path": "dailyYttendance/makePoster"
 		}]
 	}],
 	"globalStyle": {