zs 2 years ago
parent
commit
6ecaf30332
2 changed files with 10 additions and 2 deletions
  1. 9 1
      components/discount/index.vue
  2. 1 1
      pagesHome/order/order.vue

+ 9 - 1
components/discount/index.vue

@@ -29,7 +29,15 @@
 
 
 			};
 			};
 		},
 		},
-		methods: {}
+		methods: {
+			// 选择优惠劵
+			toDiscount(e) {
+				const that = this;
+				that.$emit('toDiscount', {
+					e
+				})
+			},
+		}
 	}
 	}
 </script>
 </script>
 
 

+ 1 - 1
pagesHome/order/order.vue

@@ -115,7 +115,7 @@
 				</view>
 				</view>
 			</view>
 			</view>
 			<view class="content" v-else>
 			<view class="content" v-else>
-				<discount :couponList="couponList"></discount>
+				<discount :couponList="couponList" @toDiscount="toDiscount"></discount>
 			</view>
 			</view>
 		</uni-popup>
 		</uni-popup>
 	</mobile-frame>
 	</mobile-frame>