leon 1 ano atrás
pai
commit
9f5dad2d39
1 arquivos alterados com 15 adições e 3 exclusões
  1. 15 3
      src/_health/pages/schedules_list.tsx

+ 15 - 3
src/_health/pages/schedules_list.tsx

@@ -14,6 +14,7 @@ import { IconAdd } from '@/components/basic/Icons'
 import { rpxToPx } from '@/utils/tools'
 import { useRouter } from '@tarojs/taro'
 import Taro from '@tarojs/taro'
+import showAlert from '@/components/basic/Alert'
 
 let useRoute;
 let useNavigation;
@@ -120,10 +121,21 @@ export default function SchedulesList() {
 
     function add(item) {
         if (item.list.length==5){
-            Taro.showToast({
-                title:'最多添加4个',
-                icon:'none'
+            // Taro.showToast({
+            //     title:'最多添加4个',
+            //     icon:'none'
+            // })
+
+            showAlert({
+                title:'会员',
+                content:'会员desc',
+                showCancel:true,
+                confirm:()=>{
+                    jumpPage('/pages/store/product_list', 'ProductList', navigation)
+                }
             })
+
+            
             return;
         }
         setShowModal(true)