Commit 103967a5 by sunerhu

1.还原课程购买页面

parent 90ea0902
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
if (res['success']) { if (res['success']) {
this.orderId = res['data']['id']; this.orderId = res['data']['id'];
uni.navigateTo({ 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 { } else {
uni.showToast({ uni.showToast({
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
orderId:this.orderId, orderId:this.orderId,
amount:this.totalPrice, amount:this.totalPrice,
paymentMethod:this.paymentMethod, paymentMethod:this.paymentMethod,
userId:localStorage.getItem('h5_userId')?localStorage.getItem('h5_userId'):this.userId, userId:this.userId,
integralExchange:this.isDeduction ? parseFloat(this.deductionCore) : 0, integralExchange:this.isDeduction ? parseFloat(this.deductionCore) : 0,
paymentType:'' paymentType:''
} }
...@@ -260,11 +260,10 @@ ...@@ -260,11 +260,10 @@
//支付宝h5支付 //支付宝h5支付
param.paymentType = 2; param.paymentType = 2;
this.amount = this.totalPrice; this.amount = this.totalPrice;
let userId = localStorage.getItem('h5_userId')?localStorage.getItem('h5_userId'):this.userId
if(this.deviceType == 3){ if(this.deviceType == 3){
this.tipsFlag = true; this.tipsFlag = true;
this.paymentBtnDisabled = false; 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); window.history.replaceState(null, '',url);
return; return;
} }
...@@ -296,8 +295,7 @@ ...@@ -296,8 +295,7 @@
}, },
// 积分查询 // 积分查询
queryByUserIdFortuneStatistic(){ queryByUserIdFortuneStatistic(){
let userId = localStorage.getItem('h5_userId') ? localStorage.getItem('h5_userId') : this.userId api.queryByUserIdFortuneStatistic({userId:this.userId}).then(res=>{
api.queryByUserIdFortuneStatistic({userId:userId}).then(res=>{
if(res['success']){ if(res['success']){
this.intergralInfo = res['data']; this.intergralInfo = res['data'];
this.intergralInfo.preFortune = 1.0; this.intergralInfo.preFortune = 1.0;
...@@ -306,8 +304,7 @@ ...@@ -306,8 +304,7 @@
}, },
// 课程详情页面 // 课程详情页面
courseDetail(){ courseDetail(){
let userId = localStorage.getItem('h5_userId') ? localStorage.getItem('h5_userId') : this.userId api.courseDetail({fileId:this.fileId,userId:this.userId}).then(res=>{
api.courseDetail({fileId:this.fileId,userId:userId}).then(res=>{
console.log('课程详情',res); console.log('课程详情',res);
if(res['success']){ if(res['success']){
this.courseInfoItem = res['data']['data']; 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