wangshan 4 years ago
parent
commit
441742bd84

+ 1 - 1
src/jfw/modules/publicapply/src/drainage/service/service.go

@@ -26,7 +26,7 @@ func (this *DrainageStruct) Bmbutinfo(id string) {
 		p := this.GetString("p")                 //买点类型
 		price, _ := this.GetInteger("price")     //下单价格
 		orderCode := this.GetString("orderCode") //订单编号
-		log.Println(p, "---", price, "---", orderCode, "----000")
+		// log.Println(id, "---", p, "---", price, "---", orderCode, "----000")
 		m := UpdateDrainageUserLogById(id, p, orderCode, price)
 		return Result{Data: m}
 	}()

+ 4 - 2
src/web/templates/big-member/wx/page_buy_commit.html

@@ -479,8 +479,10 @@
                                 console.log(error)
                               }
                             }
-                            history.replaceState({"flag": "pay"}, '', '/front/wxMyOrder/memberDetail/' + res.data.order_code);
-                            location.href = '/weixin/pay/checkout_member?orderCode='+res.data.order_code + '&mid=' +paramsMid;
+                            setTimeout(function(){
+                              history.replaceState({"flag": "pay"}, '', '/front/wxMyOrder/memberDetail/' + res.data.order_code);
+                              location.href = '/weixin/pay/checkout_member?orderCode='+res.data.order_code + '&mid=' +paramsMid;
+                            },300)
                         }else {
                             alert(res.error_msg)
                         }