shish 4 лет назад
Родитель
Сommit
0b76c9f563
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      ghsApp/src/admin/home/me.vue

+ 13 - 0
ghsApp/src/admin/home/me.vue

@@ -104,6 +104,7 @@
             <!-- #endif -->
             <!-- #endif -->
           </view>
           </view>
         </view>
         </view>
+        <view class="bottom-version">Version {{version}}</view>
       </view>
       </view>
     </template>
     </template>
     <ShopSelect ref="shopSelectComponent" class="bar" :isShowTit="false" top="0upx" @selectShopFn="selectShopFn" />
     <ShopSelect ref="shopSelectComponent" class="bar" :isShowTit="false" top="0upx" @selectShopFn="selectShopFn" />
@@ -135,6 +136,7 @@ export default {
     return {
     return {
       constant: this.$constant,
       constant: this.$constant,
       shopInfo: {},
       shopInfo: {},
+      version:'1.0.0'
     };
     };
   },
   },
   onPullDownRefresh () {
   onPullDownRefresh () {
@@ -143,6 +145,11 @@ export default {
   onShow () {
   onShow () {
       this.init()
       this.init()
   },
   },
+  onLoad(){
+    if(plus.runtime.version){
+      this.version = plus.runtime.version
+    }
+  },
   methods: {
   methods: {
     showAllShop () {
     showAllShop () {
       this.$refs.shopSelectComponent.dropdownShow = true;
       this.$refs.shopSelectComponent.dropdownShow = true;
@@ -321,6 +328,12 @@ export default {
         }
         }
       }
       }
     }
     }
+    .bottom-version{
+      text-align:center;
+      color:#CCCCCC;
+      font-size:30upx;
+      margin-top:20upx;
+    }
   }
   }
   & .account-info_box {
   & .account-info_box {
     margin-top: 20upx;
     margin-top: 20upx;