DESKTOP-SVI9JE1\muzen 2 роки тому
батько
коміт
9b2d99564f
1 змінених файлів з 3 додано та 34 видалено
  1. 3 34
      src/components/open-app/open-app.vue

+ 3 - 34
src/components/open-app/open-app.vue

@@ -5,7 +5,7 @@
         <img src="@/static/logo.png" />
         <text style="font-weight: 600;">OhPlay猫王妙播</text>
       </view>
-      <uni-button type="submit" @click="open">打开App</uni-button>
+      <uni-button type="submit" @click="getOpen()">打开App</uni-button>
     </view>
     <view style="height: 88rpx" v-if="isShow" />
   </view>
@@ -14,47 +14,16 @@
 <script>
 export default {
   props: {
-    // 界面类型
-    page: {
-      type: Number,
-      default: null
-    },
-    // 频道类型
-    channel: {
-      type: Number,
-      default: null
-    },
-    // 音频类型
-    audioType: {
-      type: Number,
-      default: null
-    },
-    // 音频Id
-    audioId: {
-      type: Number,
-      default: null
-    },
     // 是否覆盖
     isShow: {
       type: Boolean,
       default: true
     }
   },
-  watch: {
-    channel(val) {
-      return val
-    },
-    audioType(val) {
-      return val
-    },
-    audioId(val) {
-      return val
-    }
-  },
   methods: {
     // 打开app
-    open() {
-      this.openApp(this.page, this.channel, this.audioType, this.audioId)
+    getOpen() {
+      this.$emit('open')
     }
   }
 }