lilei 8 月之前
父节点
当前提交
a86b913255
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      pagesB/shopiing/productDetail.vue

+ 9 - 2
pagesB/shopiing/productDetail.vue

@@ -184,7 +184,9 @@
 				busPos:{
 				    x: 10,
 				    y:uni.getSystemInfoSync().windowHeight - 30
-				}
+				},
+				submitOk: false,
+				refashOk: false
 			}
 		},
 		onLoad(option) {
@@ -380,8 +382,8 @@
 										confirmText:'确定刷新',
 										success(ret) {
 											if(ret.confirm){
-												_this.getDetail()
 												_this.showPopu = false
+												_this.refashOk = true
 											}
 										}
 									})
@@ -449,6 +451,11 @@
 			closePopu(){
 				this.showPopu = false
 				this.qty = 1
+				// 刷新页面
+				if(this.refashOk){
+					this.getDetail()
+				}
+				// 提交代码
 				if(this.submitOk){
 					this.submitOk = false
 					uni.navigateTo({