Browse Source

灯光模拟的抖音bug修复1

zhangyujun 3 years ago
parent
commit
fd041f9b3b
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/pages/lightMock/index.vue

+ 14 - 2
src/pages/lightMock/index.vue

@@ -34,6 +34,7 @@
       is-link
     />
     <div class="gray-space-12"></div>
+    <!-- #ifdef MP-WEIXIN -->
     <van-tabs class="custom-tabs" v-model="active">
       <van-tab title="组合">
         <composeTopicList @select="selectCom" :list="list1"></composeTopicList>
@@ -42,6 +43,17 @@
         <singleTopicList :list="list2"></singleTopicList>
       </van-tab>
     </van-tabs>
+    <!-- #endif -->
+    <!-- #ifdef MP-TOUTIAO -->
+    <swiper class="custom-tabs" v-model="active">
+      <swiper-item title="组合">
+        <composeTopicList @select="selectCom" :list="list1"></composeTopicList>
+      </swiper-item>
+      <swiper-item title="单项">
+        <singleTopicList :list="list2"></singleTopicList>
+      </swiper-item>
+    </swiper>
+    <!-- #endif -->
     <examTopicList
       @close="
         () => {
@@ -129,7 +141,7 @@ export default {
       if (this.list1Index == 0) {
         uni.showToast({
           title: "已经到底了",
-          icon:"none"
+          icon: "none",
         });
       } else {
         this.list1Index = this.list1Index - 1;
@@ -144,7 +156,7 @@ export default {
       if (this.list1Index == this.list1.length - 1) {
         uni.showToast({
           title: "已经到底了",
-           icon:"none"
+          icon: "none",
         });
       } else {
         this.list1Index = this.list1Index + 1;