|
@@ -17,7 +17,7 @@
|
|
|
rows="4" autosize />
|
|
|
</van-cell-group>
|
|
|
|
|
|
- <van-panel title="课时安排" v-if="vipList.length > 0">
|
|
|
+ <van-panel title="课时安排" v-if="vipList.length > 0 && vipListType">
|
|
|
<template v-for="(item, index) in vipList">
|
|
|
<div class="leaveCell" v-if="item.type == 'VIP'" :key="index">
|
|
|
<div class="leaveCell-l">{{ item.name }}</div>
|
|
@@ -127,6 +127,7 @@ export default {
|
|
|
remark: null
|
|
|
},
|
|
|
vipList: [], // 申请调整的vip列表
|
|
|
+ vipListType: false, // 判断是否只有乐团课
|
|
|
changeShow: false,
|
|
|
changeDate: { // 结束时间
|
|
|
minDate: new Date(),
|
|
@@ -237,7 +238,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
let result = res.data
|
|
|
if(result.code == 200) {
|
|
|
- this.$toast('申请成功')
|
|
|
+ this.$toast('申请成功,请等待审核')
|
|
|
setTimeout(() => {
|
|
|
if(browser().iPhone) {
|
|
|
window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api: 'back'}))
|
|
@@ -307,6 +308,11 @@ export default {
|
|
|
this.vipList = []
|
|
|
if(result.code == 200 && result.data.length > 0) {
|
|
|
this.vipList = result.data
|
|
|
+ result.data.forEach(item => {
|
|
|
+ if(item.type == 'VIP') {
|
|
|
+ this.vipListType = true
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|