DESKTOP-O04BTUJ\muzen 2 yıl önce
ebeveyn
işleme
fa72903916
1 değiştirilmiş dosya ile 41 ekleme ve 1 silme
  1. 41 1
      src/mixin/index.js

+ 41 - 1
src/mixin/index.js

@@ -474,6 +474,45 @@ const coverMixin = {
   }
 }
 
+// 通过频道属性查找音频类型
+const channelMixin = {
+  data() {
+    return {
+      channelOptions: {
+        2: [{
+          value: 2,
+          label: '广播电台'
+        }],
+        6: [{
+          value: 6,
+          label: '节目'
+        }, {
+          value: 11,
+          label: '歌曲'
+        }],
+        8: [{
+          value: 8,
+          label: '播客专辑'
+        }, {
+          value: 10,
+          label: '歌单'
+        }, {
+          value: 15,
+          label: '音乐专辑'
+        }],
+        16: [{
+          value: 8,
+          label: '播客专辑'
+        }],
+        17: [{
+          value: 2,
+          label: '广播电台'
+        }]
+      }
+    }
+  }
+}
+
 export {
   devMixin,
   serviceTimeMixin,
@@ -492,5 +531,6 @@ export {
   rewardMixin,
   classifyMixin,
   currentMixin,
-  coverMixin
+  coverMixin,
+  channelMixin
 }