|
@@ -9,12 +9,12 @@
|
|
|
<img v-if="channelType !== '1'" class="cover" :src="form.icon" />
|
|
|
<view v-if="channelType === '1'" class="FM">
|
|
|
<img :src="form.icon" />
|
|
|
- <text>以上内容来自{{ form.platformId }}</text>
|
|
|
+ <text>以上内容来自{{ form.platformName }}</text>
|
|
|
</view>
|
|
|
<view class="title">{{ form.title }}</view>
|
|
|
<view class="name" v-if="channelType === '1'">{{ form.title }}</view>
|
|
|
<view v-if="channelType !== '1'" class="platform">
|
|
|
- 以上内容来自{{ form.platformId }}
|
|
|
+ 以上内容来自{{ form.platformName }}
|
|
|
</view>
|
|
|
<slider min="0" max="100" block-color="#78B06A" block-size="12" activeColor="#78B06A" backgroundColor="#727c82"
|
|
|
disabled />
|
|
@@ -34,46 +34,10 @@ export default {
|
|
|
return {
|
|
|
channelType: '',
|
|
|
form: {},
|
|
|
- platFormOptions: [{
|
|
|
- value: 0,
|
|
|
- label: '未知'
|
|
|
- }, {
|
|
|
- value: 1,
|
|
|
- label: '蜻蜓'
|
|
|
- }, {
|
|
|
- value: 2,
|
|
|
- label: '官方电台'
|
|
|
- }, {
|
|
|
- value: 3,
|
|
|
- label: '猫王好听'
|
|
|
- }, {
|
|
|
- value: 4,
|
|
|
- label: '海外电台'
|
|
|
- }, {
|
|
|
- value: 5,
|
|
|
- label: '音乐随身听'
|
|
|
- }, {
|
|
|
- value: 6,
|
|
|
- label: 'qq音乐'
|
|
|
- }, {
|
|
|
- value: 7,
|
|
|
- label: 'HiFIVE音乐'
|
|
|
- }, {
|
|
|
- value: 8,
|
|
|
- label: '看见音乐'
|
|
|
- }, {
|
|
|
- value: 9,
|
|
|
- label: '酷狗音乐'
|
|
|
- }, {
|
|
|
- value: 10,
|
|
|
- label: '爱听歌单音乐'
|
|
|
- }, {
|
|
|
- value: 11,
|
|
|
- label: '阿基米德'
|
|
|
- }]
|
|
|
}
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
+ console.log(e);
|
|
|
if (e.audioId) {
|
|
|
this.channelType = e.channelType
|
|
|
if (e.channelType === '1') {
|
|
@@ -82,7 +46,6 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.form = res.data.data
|
|
|
- this.form.platformId = this.platFormOptions.find(i => i.value === res.data.data.platformId).label
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -91,7 +54,6 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.form = res.data.data
|
|
|
- this.form.platformId = this.platFormOptions.find(i => i.value === res.data.data.platformId).label
|
|
|
this.form.icon = res.data.data.audioPic
|
|
|
}
|
|
|
})
|