shish 2 лет назад
Родитель
Сommit
8eab9952dc
2 измененных файлов с 20 добавлено и 1 удалено
  1. 1 1
      ghsApp/src/admin/home/me.vue
  2. 19 0
      hdApp/src/admin/home/me.vue

+ 1 - 1
ghsApp/src/admin/home/me.vue

@@ -133,7 +133,7 @@
             <!-- #ifdef APP-PLUS -->
 
             <tui-list-cell @click="getHzg()" class="line-cell" :hover="false" :arrow="true">
-              <view class="tui-title">下载花掌柜</view>
+              <view class="tui-title">下载最新版</view>
             </tui-list-cell>
 
             <tui-list-cell @click="closeApp()" class="line-cell" :hover="false" :arrow="true" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0">

+ 19 - 0
hdApp/src/admin/home/me.vue

@@ -102,6 +102,10 @@
             </tui-list-cell>
 
             <!-- #ifdef APP-PLUS -->
+            <tui-list-cell @click="getHzg()" class="line-cell" :hover="false" :arrow="true">
+              <view class="tui-title">下载最新版</view>
+            </tui-list-cell>
+
             <tui-list-cell @click="closeApp()" class="line-cell" :hover="false" :arrow="true" v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentShopId > 0">
               <view class="tui-title">关闭APP</view>
             </tui-list-cell>
@@ -174,6 +178,21 @@ export default {
     },
     init(){
 
+    },
+    getHzg(){
+      // #ifdef APP-PLUS
+      let that = this
+      let type = uni.getSystemInfoSync().platform
+      switch(type){
+        case 'android':
+          plus.runtime.openURL('http://www.wixhb.com/main/app')
+          break;
+        case 'ios':
+          that.$msg('请到应用市场下载')
+          break;
+        default:
+      }
+      // #endif
     },
     suggest(){
       let that = this