xuqiang 4 年 前
コミット
fffef61316
2 ファイル変更5 行追加2 行削除
  1. 2 1
      src/pages/home.vue
  2. 3 1
      src/pages/my.vue

+ 2 - 1
src/pages/home.vue

@@ -52,7 +52,8 @@
             <div class="box">
                 <img class="con-img" src="../static/imgs/fangjian-icon-zujing@3x.png" alt="" />
                 <div style="display: flex;align-items: center;" v-if="list.checkInType === 'INDIVIDUAL'">
-                    <div class="name1">{{ rateType }}</div>
+                    <div class="name1">租金</div>
+                    <!-- <div class="name1">{{ rateType }}</div> -->
                     <div class="name">{{ rate }}</div>
                 </div>
             </div>

+ 3 - 1
src/pages/my.vue

@@ -137,9 +137,11 @@ export default {
     },
     mounted() {
         // console.log(this.roomInfo);
+    },
+    onShow() {
         this.$http.get('/api/mp/getRoomInfo').then(res => {
             this.list = res;
-            console.log(this.list);
+            // console.log(this.list);
             this.$store.dispatch('updateRoomInfo');
         });
     },