ソースを参照

Signed-off-by: zhaobao <528046418@qq.com>

zhaobao 1 年間 前
コミット
b7142781cc
2 ファイル変更4 行追加1 行削除
  1. 1 1
      pages/history/history.vue
  2. 3 0
      pages/webview/webview.vue

+ 1 - 1
pages/history/history.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="art-wrap">
 		<view class="tabs">
-			<view class="tab"  v-for="(tab,index) in tabs" :key="index" @click="changeTab(tab)" :class="tab.artCatId===artCatId?'active':''">{{tab.artCatTitle}}</view>
+			<view class="tab"  v-for="(tab,index) in tabs" :key="index" @click="changeTab(tab)" :class="(tab.artCatId===artCatId)&&(tabs.length>1)?'active':''">{{tab.artCatTitle}}</view>
 		</view>
 		<view class="tab-container">
 		  <view class="item" v-for="(item,idx) in artList" :key="idx">

+ 3 - 0
pages/webview/webview.vue

@@ -40,6 +40,9 @@
 			getMSG(){
 				
 			}
+		},
+		onBackPress(e){
+			// console.log(e)
 		}
 	}
 </script>