|
@@ -5,6 +5,7 @@ import styles from './index.module.less'
|
|
|
import { ElSkeleton, ElSkeletonItem } from 'element-plus'
|
|
|
import { defineComponent } from 'vue'
|
|
|
import MusicItem from '../../user-info/music-class/item'
|
|
|
+import { getUserType } from '@/helpers/utils'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'list',
|
|
@@ -46,10 +47,14 @@ export default defineComponent({
|
|
|
const { data } = await request.get(url, {
|
|
|
params: {
|
|
|
page: this.pageInfo.page,
|
|
|
- rows: this.pageInfo.limit
|
|
|
+ rows: this.pageInfo.limit,
|
|
|
+ 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
|
|
@@ -101,8 +106,8 @@ export default defineComponent({
|
|
|
{this.list.map((item: any) => (
|
|
|
<MusicItem
|
|
|
onClick={(item: any) => {
|
|
|
+ // console.log(item)
|
|
|
if (this.auditStatus === 'UNPASS') {
|
|
|
- console.log(item)
|
|
|
this.$router.push({
|
|
|
path: '/userInfo/musicOperation',
|
|
|
query: {
|
|
@@ -112,6 +117,10 @@ export default defineComponent({
|
|
|
})
|
|
|
} else {
|
|
|
// 跳转对应详情 个人中心不跳转到详情
|
|
|
+ this.$router.push({
|
|
|
+ path: '/muiscDetial',
|
|
|
+ query: { id: item.id }
|
|
|
+ })
|
|
|
}
|
|
|
}}
|
|
|
item={{
|
|
@@ -122,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,
|