李志伟 3 years ago
parent
commit
40d93c81d1

+ 2
- 4
src/components/CompoentsOrder/OrderCard/index.jsx View File

81
       }
81
       }
82
       {
82
       {
83
         item.status === 0 ? <SlideView del onDelete={() => handeDelete(item)} >
83
         item.status === 0 ? <SlideView del onDelete={() => handeDelete(item)} >
84
-          <CouponCard action={PayAction}>
84
+          <CouponCard onClick={() => { Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` })}} action={PayAction}>
85
             <CouponMedia>
85
             <CouponMedia>
86
               <CouponMedia.Header
86
               <CouponMedia.Header
87
                 cashback={item.cashback}
87
                 cashback={item.cashback}
115
           </CouponCard>
115
           </CouponCard>
116
         </SlideView>
116
         </SlideView>
117
           :
117
           :
118
-          <CouponCard onClick={() => {
119
-            item.status === 1 && item.isVerified == false ? Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` }) : ''
120
-          }} action={PayAction} >
118
+          <CouponCard onClick={() => { Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` })}} action={PayAction} >
121
             <CouponMedia>
119
             <CouponMedia>
122
               <CouponMedia.Header
120
               <CouponMedia.Header
123
                 cashback={item.cashback}
121
                 cashback={item.cashback}

+ 5
- 9
src/pages/TobeShop/index.jsx View File

122
   };
122
   };
123
 
123
 
124
   const PerfectionOK = () => {
124
   const PerfectionOK = () => {
125
-    setConsumption(false);
126
-    if (list?.length > 1) {
127
-      getList()
128
-    } else {
129
-      Taro.redirectTo({
130
-        url: '/pages/MineUserAll/AllOrder/index?tabJump=3',
131
-      });
132
-      // Taro.navigateBack({ delta: 1 })
133
-    }
125
+    setConsumption(false);    
126
+    Taro.redirectTo({
127
+      url: '/pages/MineUserAll/AllOrder/index?tabJump=3',
128
+    });
129
+    // Taro.navigateBack({ delta: 1 })    
134
   };
130
   };
135
 
131
 
136
   const btnText = ['确认核销', checked && checked.length > 0 ? `(${checked.length})` : undefined].filter(Boolean).join(' ')
132
   const btnText = ['确认核销', checked && checked.length > 0 ? `(${checked.length})` : undefined].filter(Boolean).join(' ')