Quellcode durchsuchen

fix:授权页面

chenzhen2 vor 1 Jahr
Ursprung
Commit
d18e28a907
2 geänderte Dateien mit 63 neuen und 3 gelöschten Zeilen
  1. 3 3
      project.config.json
  2. 60 0
      src/pages/home/index.wpy

+ 3 - 3
project.config.json

@@ -18,9 +18,9 @@
     "checkSiteMap": true,
     "uploadWithSourceMap": true,
     "compileHotReLoad": false,
-    "useMultiFrameRuntime": false,
-    "useApiHook": false,
-    "useApiHostProcess": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],

+ 60 - 0
src/pages/home/index.wpy

@@ -0,0 +1,60 @@
+<style lang="less">
+.overflow-wrap {
+  width: 100%;
+  height: 100%;
+  scroll-view {
+    position: relative;
+    width: 100%;
+    height: 100%;
+    z-index: 2;
+  }
+}
+</style>
+</wxs>
+<template>
+<div class="overflow-wrap">
+<div @click="goEnv">
+环境控制
+</div>
+<div @click="goPortrait">
+节能评分
+</div>
+</div>
+</template>
+
+<script>
+import wepy from '@wepy/core';
+import eventHub from '../common/eventHub';
+import { mapState } from '@wepy/x';
+import store from '../store';
+import testMixin from '../mixins/test';
+
+wepy.page({
+  store,
+  config: {
+    navigationBarTitleText: 'test'
+  },
+
+  data: {},
+  methods: {
+    goEnv() {
+      wx.navigateTo({
+        url: '/packagesEnv/pages/officehome/index?spaceId=Sp1101080259b3510e26e7dd4dd9bf9784f06f3feb68'
+      });
+    },
+    goPortrait() {
+      wx.navigateTo({
+        url: '/packagesEnv/pages/portrait/home'
+      });
+    }
+  },
+  created() {}
+});
+</script>
+<config>
+{
+navigationBarTitleText: '首页',
+usingComponents: {
+}
+}
+</config>