Commit 103967a5 by sunerhu

1.还原课程购买页面

parent 90ea0902
......@@ -286,7 +286,7 @@
if (res['success']) {
this.orderId = res['data']['id'];
uni.navigateTo({
url: `/pages/orderConfirm/orderConfirm?fileId=${this.fileId}&orderId=${this.orderId}`
url: `/pages/orderConfirm/orderConfirm?fileId=${this.fileId}&orderId=${this.orderId}&userId=${this.userId}`
})
} else {
uni.showToast({
......
......@@ -193,7 +193,7 @@
orderId:this.orderId,
amount:this.totalPrice,
paymentMethod:this.paymentMethod,
userId:localStorage.getItem('h5_userId')?localStorage.getItem('h5_userId'):this.userId,
userId:this.userId,
integralExchange:this.isDeduction ? parseFloat(this.deductionCore) : 0,
paymentType:''
}
......@@ -260,11 +260,10 @@
//支付宝h5支付
param.paymentType = 2;
this.amount = this.totalPrice;
let userId = localStorage.getItem('h5_userId')?localStorage.getItem('h5_userId'):this.userId
if(this.deviceType == 3){
this.tipsFlag = true;
this.paymentBtnDisabled = false;
let url = window.location.href + `&isRedirect=1&userId=${userId}&amount=${this.amount}`;
let url = window.location.href + `&isRedirect=1&userId=${this.userId}&amount=${this.amount}`;
window.history.replaceState(null, '',url);
return;
}
......@@ -296,8 +295,7 @@
},
// 积分查询
queryByUserIdFortuneStatistic(){
let userId = localStorage.getItem('h5_userId') ? localStorage.getItem('h5_userId') : this.userId
api.queryByUserIdFortuneStatistic({userId:userId}).then(res=>{
api.queryByUserIdFortuneStatistic({userId:this.userId}).then(res=>{
if(res['success']){
this.intergralInfo = res['data'];
this.intergralInfo.preFortune = 1.0;
......@@ -306,8 +304,7 @@
},
// 课程详情页面
courseDetail(){
let userId = localStorage.getItem('h5_userId') ? localStorage.getItem('h5_userId') : this.userId
api.courseDetail({fileId:this.fileId,userId:userId}).then(res=>{
api.courseDetail({fileId:this.fileId,userId:this.userId}).then(res=>{
console.log('课程详情',res);
if(res['success']){
this.courseInfoItem = res['data']['data'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment