Browse Source

feat 个人中心页面跳转

anxiaoxia 1 year ago
parent
commit
222627e1b7

+ 0 - 2
src/packagesEnv/pages/officehome/index.wpy

@@ -1256,7 +1256,6 @@ wepy.page({
   },
     // 加载字体
   onLoad(routeParams) {
-    console.log(routeParams, '----routeParams')
     this.getCardWidth()
     this.getWeatherInfo()// 天气预报
     var nowTimeStr = moment().format('YYYY-MM-DD')
@@ -1358,7 +1357,6 @@ wepy.page({
     },
     getCurrentSpace(from) {
       return checkUserControl().then(res => {
-        console.log(res, '-----1')
         // 1-租户下无可控;2-租户有可控;3-用户有可控 4-当前空间为常驻空间
         this.userControlSpace = res
         // 从首页进入 才给空间重新赋值

+ 5 - 1
src/packagesEnv/pages/personalCenter/index.wpy

@@ -119,7 +119,10 @@ page {
 <!-- 个人中心 -->
 <template>
     <div class="percsonal-center">
-        <page-top-bar icon="{{h5Static+'/page-top-bar/return-icon.svg'}}"></page-top-bar>
+        <page-top-bar
+        iconClickedEmitId="toPage"
+        @toPage="toPage('/packagesEnv/pages/home/index')"
+          icon="{{h5Static+'/page-top-bar/return-icon.svg'}}"></page-top-bar>
         <image
             class="imgst"
             src="{{h5StaticPath}}/bg-personal.png"
@@ -149,6 +152,7 @@ page {
                         hover-class="hover-st"
                         hover-style-time="100"
                         class="little-card"
+                        @click="toPage('/packagesEnv/pages/portrait/home')"
                     >
                         <image
                             class="little-imgst"