ソースを参照

Update apply-withdrawal.tsx

lex 1 年間 前
コミット
5af4a8647d
1 ファイル変更14 行追加4 行削除
  1. 14 4
      src/student/my-orchestra/apply-withdrawal.tsx

+ 14 - 4
src/student/my-orchestra/apply-withdrawal.tsx

@@ -24,7 +24,8 @@ export default defineComponent({
       reason: '',
       id: route.query.id,
       dataInfo: {} as any,
-      isClick: false
+      isClick: false,
+      memberMessage: '您有待激活的团练宝订单,是否继续退团?'
     })
 
     const getDetails = async () => {
@@ -43,14 +44,23 @@ export default defineComponent({
       }
 
       try {
-        const { data } = await request.post('/api-student/student/hasWaitActivateVipOrder', {
+        const { data } = await request.post('/api-student/student/hasWaitActivateOrderGoods', {
           requestType: 'form',
           data: {
             orchestraId: forms.id
           }
         })
-        if (data) {
+        if (data.vip || data.instrumentInspection) {
           forms.statusMember = true
+
+          if (data.vip && data.instrumentInspection) {
+            forms.memberMessage = '您有待激活的团练宝订单和乐器检查服务,是否继续退团?'
+          } else if (data.instrumentInspection) {
+            forms.memberMessage = '您有待激活的乐器检查服务,是否继续退团?'
+          }
+          // 您有待激活的团练宝订单,是否继续退团?
+          // 您有待激活的乐器检查服务,是否继续退团?
+          // 您有待激活的团练宝订单和乐器检查服务,是否继续退团?
         } else {
           forms.status = true
         }
@@ -144,7 +154,7 @@ export default defineComponent({
         <ODialog
           v-model:show={forms.statusMember}
           title="提示"
-          message={'您有待激活的团练宝订单,是否继续退团?'}
+          message={forms.memberMessage}
           messageAlign="left"
           confirmButtonText="继续"
           cancelButtonText="取消"