shish 4 лет назад
Родитель
Сommit
8267014de9
1 измененных файлов с 10 добавлено и 4 удалено
  1. 10 4
      ghsApp/src/admin/book/index.vue

+ 10 - 4
ghsApp/src/admin/book/index.vue

@@ -1,9 +1,7 @@
 <template>
 	<view class="app-content">
         <view class="book_banner">
-            <!-- #ifndef APP-PLUS -->
-            <image class="slide" :src="`${constant.imgUrl}/book/banner1.png`" mode="aspectFit"></image>
-            <!-- #endif -->
+            <image v-if="showBanner" class="slide" :src="`${constant.imgUrl}/book/banner1.png`" mode="aspectFit"></image>           
         </view>
         <view class="book_content">
             <view v-for="(item, index) in book" :key="index" class="item">
@@ -24,12 +22,20 @@ export default {
 	mixins: [],
 	data() {
 		return {
-            book:[]
+            book:[],
+            showBanner:true
 		};
 	},
 	onShow() {
 
 	},
+    onload(){
+        // #ifdef APP-PLUS
+        if(plus.device.vendor == 'SUNMI'){
+            this.showBanner = false
+        }
+        // #endif
+    },
   	onShareAppMessage(res) {
 		return {
 			title: '销花宝使用手册',