|
@@ -21,7 +21,6 @@ export default defineComponent({
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- clientType: '',
|
|
|
pageInfo: {
|
|
|
// 分页规则
|
|
|
limit: 10, // 限制显示条数
|
|
@@ -35,8 +34,6 @@ export default defineComponent({
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- const clientType = getUserType()
|
|
|
- if (clientType === 'TEACHER') this.clientType = clientType
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
@@ -51,10 +48,13 @@ export default defineComponent({
|
|
|
params: {
|
|
|
page: this.pageInfo.page,
|
|
|
rows: this.pageInfo.limit,
|
|
|
- clientType: this.clientType
|
|
|
+ clientType: getUserType()
|
|
|
}
|
|
|
})
|
|
|
- this.list = data.rows || []
|
|
|
+ this.list = Array.isArray(data.rows) && data.rows.map(n => {
|
|
|
+ if (typeof n.paymentType === 'string') n.paymentType = n.paymentType.split(',')
|
|
|
+ return n
|
|
|
+ }) || []
|
|
|
this.pageInfo.total = data.total
|
|
|
if (data.total <= 0) {
|
|
|
this.dataShow = true
|
|
@@ -106,7 +106,7 @@ export default defineComponent({
|
|
|
{this.list.map((item: any) => (
|
|
|
<MusicItem
|
|
|
onClick={(item: any) => {
|
|
|
- console.log(item)
|
|
|
+ // console.log(item)
|
|
|
if (this.auditStatus === 'UNPASS') {
|
|
|
this.$router.push({
|
|
|
path: '/userInfo/musicOperation',
|
|
@@ -117,6 +117,10 @@ export default defineComponent({
|
|
|
})
|
|
|
} else {
|
|
|
// 跳转对应详情 个人中心不跳转到详情
|
|
|
+ this.$router.push({
|
|
|
+ path: '/muiscDetial',
|
|
|
+ query: { id: item.id }
|
|
|
+ })
|
|
|
}
|
|
|
}}
|
|
|
item={{
|
|
@@ -127,7 +131,8 @@ export default defineComponent({
|
|
|
titleImg: item.titleImg,
|
|
|
subjectNames: item.subjectNames,
|
|
|
composer: item.composer,
|
|
|
- chargeType: item.chargeType
|
|
|
+ chargeType: item.chargeType,
|
|
|
+ paymentType: item.paymentType || []
|
|
|
}}
|
|
|
class={[
|
|
|
styles.musicListItem,
|