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

+ 0 - 7
pagesB/cart/index.vue

@@ -127,17 +127,10 @@
 			uni.$on('removeCatGood',(snList,a,b)=>{
 				this.removeCart(snList,a,b)
 			})
-			// 打开订单详情页
-			uni.$on('toOrderDetail',(purchaseSn)=>{
-				uni.navigateTo({
-					url: "/pagesB/procureOrder/orderDetail?purchaseSn="+purchaseSn
-				})
-			})
 		},
 		onUnload() {
 			uni.$off('refashCartList')
 			uni.$off('removeCatGood')
-			uni.$off('toOrderDetail')
 		},
 		data() {
 			return {

+ 3 - 3
pagesB/procureOrder/creatOrder.vue

@@ -286,9 +286,9 @@
 			// 订单详情页
 			payComplete(data){
 				// 创建成功,跳转到订单详情页
-				this.showPopu = false
-				uni.navigateBack()
-				uni.$emit('toOrderDetail',this.$store.state.vuex_tempOrderData.purchaseSn)
+				uni.redirectTo({
+					url: "/pagesB/procureOrder/orderDetail?purchaseSn="+this.$store.state.vuex_tempOrderData.purchaseSn
+				})
 			},
 			// 计算总款数、合计、数量
 			getChooseHeji(){