lex 1 年間 前
コミット
7eb565ccf8

+ 1 - 0
src/tenant/music/train-tool/index.tsx

@@ -374,6 +374,7 @@ export default defineComponent({
               <Button
               <Button
                 round
                 round
                 block
                 block
+                disabled={state.details?.musicNum <= 0}
                 color="#FE2451"
                 color="#FE2451"
                 onClick={() => (state.popupStatus = true)}
                 onClick={() => (state.popupStatus = true)}
               >
               >

+ 7 - 0
src/views/order-detail/index.tsx

@@ -155,6 +155,7 @@ export default defineComponent({
     async getOrderPayType() {
     async getOrderPayType() {
       try {
       try {
         const orderObject = orderStatus.orderObject
         const orderObject = orderStatus.orderObject
+        console.log(orderObject)
         let bizId =
         let bizId =
           orderObject.orderList.length > 0 ? orderObject.orderList[0].id : ''
           orderObject.orderList.length > 0 ? orderObject.orderList[0].id : ''
         if (orderObject.orderType === 'PRACTICE') {
         if (orderObject.orderType === 'PRACTICE') {
@@ -163,6 +164,12 @@ export default defineComponent({
               ? orderObject.orderList[0].teacherId
               ? orderObject.orderList[0].teacherId
               : ''
               : ''
         }
         }
+        if (orderObject.orderType === 'LIVE') {
+          bizId =
+            orderObject.orderList.length > 0
+              ? orderObject.orderList[0].courseGroupId
+              : ''
+        }
         const { data } = await request.post(
         const { data } = await request.post(
           state.platformApi + '/userOrder/orderPayType',
           state.platformApi + '/userOrder/orderPayType',
           {
           {

+ 3 - 0
src/views/order-detail/orderStatus.ts

@@ -150,18 +150,21 @@ export const orderTenantInfos = () => {
     }
     }
     if (item.orderType === 'VIP') {
     if (item.orderType === 'VIP') {
       params.bizContent = item.id
       params.bizContent = item.id
+      params.bizId = item.id
     } else if (item.orderType === 'MUSIC') {
     } else if (item.orderType === 'MUSIC') {
       params.bizContent = {
       params.bizContent = {
         musicSheetId: item.id,
         musicSheetId: item.id,
         actualPrice: item.actualPrice || 0,
         actualPrice: item.actualPrice || 0,
         clientType: state.platformType
         clientType: state.platformType
       }
       }
+      params.bizId = item.id
     } else if (item.orderType === 'ALBUM') {
     } else if (item.orderType === 'ALBUM') {
       params.bizContent = {
       params.bizContent = {
         musicSheetId: item.id,
         musicSheetId: item.id,
         actualPrice: item.actualPrice || 0,
         actualPrice: item.actualPrice || 0,
         clientType: state.platformType
         clientType: state.platformType
       }
       }
+      params.bizId = item.id
     } else if (item.orderType === 'TENANT_ALBUM') {
     } else if (item.orderType === 'TENANT_ALBUM') {
       params.bizContent = {
       params.bizContent = {
         tenantAlbumId: item.id,
         tenantAlbumId: item.id,