|
@@ -75,19 +75,37 @@ export default defineComponent({
|
|
|
},
|
|
|
radioList: [], // 选中的人数
|
|
|
tagStatus: false,
|
|
|
- music_sheet_service_fee: 0
|
|
|
+ music_sheet_service_fee: 0,
|
|
|
+ music_account_period: 0
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
|
document.title = this.type === 'create' ? '新建曲谱' : '编辑曲谱'
|
|
|
try {
|
|
|
+ // await request
|
|
|
+ // .get('/api-website/sysConfig/queryByParamName', {
|
|
|
+ // params: {
|
|
|
+ // paramName: 'music_sheet_service_fee'
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .then(res => (this.music_sheet_service_fee = res.data.paramValue))
|
|
|
await request
|
|
|
- .get('/api-website/sysConfig/queryByParamName', {
|
|
|
+ .get('/api-website/sysConfig/queryByParamNameList', {
|
|
|
params: {
|
|
|
- paramName: 'music_sheet_service_fee'
|
|
|
+ paramNames: 'music_sheet_service_fee,music_account_period'
|
|
|
}
|
|
|
})
|
|
|
- .then(res => (this.music_sheet_service_fee = res.data.paramValue))
|
|
|
+ .then((res: any) => {
|
|
|
+ console.log(res, 'res')
|
|
|
+ const data = res.data || []
|
|
|
+ data.forEach((item: any) => {
|
|
|
+ if (item.paramName === 'music_sheet_service_fee') {
|
|
|
+ this.music_sheet_service_fee = item.paramValue
|
|
|
+ } else if (item.paramName === 'music_account_period') {
|
|
|
+ this.music_account_period = item.paramValue
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
await request.get('/api-website/open/subject/subjectSelect').then(res => {
|
|
|
this.subjectList = res.data || []
|
|
|
})
|
|
@@ -623,7 +641,10 @@ export default defineComponent({
|
|
|
</span>
|
|
|
元/人
|
|
|
</p>
|
|
|
- <p>您的乐谱收入将在学员购买后结算到您的账户中</p>
|
|
|
+ <p>
|
|
|
+ 您的乐谱收入在学员购买后{this.music_account_period}
|
|
|
+ 天结算到您的账户中
|
|
|
+ </p>
|
|
|
</div>
|
|
|
</ElFormItem>
|
|
|
</>
|