🐛 MALL:修复领劵中心、拼团订单的判断错误
							parent
							
								
									ce389efdae
								
							
						
					
					
						commit
						76a719b46a
					
				|  | @ -38,7 +38,7 @@ | ||||||
|         <view class="order-card-footer ss-flex ss-row-right ss-p-x-20"> |         <view class="order-card-footer ss-flex ss-row-right ss-p-x-20"> | ||||||
|           <button |           <button | ||||||
|             class="detail-btn ss-reset-button" |             class="detail-btn ss-reset-button" | ||||||
|             @tap="sheep.$router.go('/pages/order/detail', { id: record.id })" |             @tap="sheep.$router.go('/pages/order/detail', { id: record.orderId })" | ||||||
|           > |           > | ||||||
|             订单详情 |             订单详情 | ||||||
|           </button> |           </button> | ||||||
|  |  | ||||||
|  | @ -15,7 +15,7 @@ | ||||||
|       text="暂无优惠券" |       text="暂无优惠券" | ||||||
|     /> |     /> | ||||||
|     <!-- 情况一:领劵中心 --> |     <!-- 情况一:领劵中心 --> | ||||||
|     <template v-if="state.currentTab === '0'"> |     <template v-if="state.currentTab === 0"> | ||||||
|       <view v-for="item in state.pagination.list" :key="item.id"> |       <view v-for="item in state.pagination.list" :key="item.id"> | ||||||
|         <s-coupon-list |         <s-coupon-list | ||||||
|           :data="item" |           :data="item" | ||||||
|  | @ -40,11 +40,7 @@ | ||||||
|         <s-coupon-list |         <s-coupon-list | ||||||
|           :data="item" |           :data="item" | ||||||
|           type="user" |           type="user" | ||||||
|           @tap=" |           @tap="sheep.$router.go('/pages/coupon/detail', { couponId: item.id })" | ||||||
|             sheep.$router.go('/pages/coupon/detail', { |  | ||||||
|               data: JSON.stringify(item), |  | ||||||
|             }) |  | ||||||
|           " |  | ||||||
|         > |         > | ||||||
|           <template #default> |           <template #default> | ||||||
|             <button |             <button | ||||||
|  | @ -183,12 +179,12 @@ | ||||||
|       getData(); |       getData(); | ||||||
|     // 我的优惠劵 |     // 我的优惠劵 | ||||||
|     } else { |     } else { | ||||||
|       state.type = Option.type; |  | ||||||
|       Option.type === 'geted' |       Option.type === 'geted' | ||||||
|         ? (state.currentTab = 1) |         ? (state.currentTab = 1) | ||||||
|         : Option.type === 'used' |         : Option.type === 'used' | ||||||
|           ? (state.currentTab = 2) |           ? (state.currentTab = 2) | ||||||
|           : (state.currentTab = 3); |           : (state.currentTab = 3); | ||||||
|  |       state.type = state.currentTab; | ||||||
|       getCoupon(); |       getCoupon(); | ||||||
|     } |     } | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 YunaiV
						YunaiV