lilei 7 months ago
parent
commit
85f39beb2d
2 changed files with 13 additions and 1 deletions
  1. 10 1
      pagesB/cart/index.vue
  2. 3 0
      pagesB/procureOrder/creatOrder.vue

+ 10 - 1
pagesB/cart/index.vue

@@ -451,7 +451,16 @@
 			// 去结算
 			// 去结算
 			settlement(){
 			settlement(){
 				if(this.totalAmount>0){
 				if(this.totalAmount>0){
-					 this.submitOrder()
+					 // this.submitOrder()
+					 const list = []
+					 this.list.forEach(key => {
+					 	 const c = key.filter(item => item.checked)
+						 list.push(c)
+					 })
+					 this.$store.state.vuex_tempData = list
+					 uni.navigateTo({
+					 	url: '/pagesB/procureOrder/creatOrder'
+					 })
 				}else{
 				}else{
 					uni.showToast({
 					uni.showToast({
 						title: '请选择产品',
 						title: '请选择产品',

+ 3 - 0
pagesB/procureOrder/creatOrder.vue

@@ -11,6 +11,9 @@
 				
 				
 			}
 			}
 		},
 		},
+		onLoad(){
+			console.log(this.$store.state.vuex_tempData)
+		},
 		methods: {
 		methods: {
 			
 			
 		}
 		}