Commit d1c918da by sunerhu

1.修改H5 提交订单

parent bbb2cd89
...@@ -262,19 +262,19 @@ ...@@ -262,19 +262,19 @@
orderInfo: aliOrderString, orderInfo: aliOrderString,
success: function (resp) { success: function (resp) {
uni.navigateTo({ uni.navigateTo({
url:`/pages/orderStatus/orderStatus?orderId=${_this.orderId}&fileId=${_this.fileId}&orderStatus=2&userId=${_this.userId}` url:`/pages/orderStatus/orderStatus?orderId=${_this.orderId}&fileId=${_this.fileId}&orderStatus=2&userId=${_this.userId}isRedirect=1`
}) })
}, },
fail: function (err) { fail: function (err) {
console.log('fail:' + JSON.stringify(err)); console.log('fail:' + JSON.stringify(err));
uni.navigateTo({ uni.navigateTo({
url:`/pages/orderStatus/orderStatus?orderId=${_this.orderId}&fileId=${_this.fileId}&orderStatus=1&userId=${_this.userId}` url:`/pages/orderStatus/orderStatus?orderId=${_this.orderId}&fileId=${_this.fileId}&orderStatus=1&userId=${_this.userId}isRedirect=1`
}) })
} }
}); });
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url:`/pages/orderStatus/orderStatus?orderId=${this.orderId}&fileId=${this.fileId}&orderStatus=2&userId=${this.userId}` url:`/pages/orderStatus/orderStatus?orderId=${this.orderId}&fileId=${this.fileId}&orderStatus=2&userId=${this.userId}isRedirect=1`
}) })
} }
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
this.tipsFlag = true; this.tipsFlag = true;
this.amount = this.totalPrice; this.amount = this.totalPrice;
this.paymentBtnDisabled = false; this.paymentBtnDisabled = false;
let deductionCore = this.isDeduction==true ? parseFloat(this.deductionCore) : 0, let deductionCore = this.isDeduction==true ? parseFloat(this.deductionCore) : 0;
let url = window.location.href + `&isRedirect=1&amount=${this.amount}&jumptime=${new Date()}&isDeduction=${this.isDeduction}&deductionCore=${deductionCore}`; let url = window.location.href + `&isRedirect=1&amount=${this.amount}&jumptime=${new Date()}&isDeduction=${this.isDeduction}&deductionCore=${deductionCore}`;
window.history.replaceState(null, '',url); window.history.replaceState(null, '',url);
return; return;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<view class="course_content"> <view class="course_content">
<view class="tag"> <view class="tag">
<h4>精品课程</h4> <h4>精品课程</h4>
<view v-if="this.userId != ''" @click="goToCourselist()">更多<text class="iconfont icon-youjiantou"></text></view> <view v-if="this.isRedirect == 1" @click="goToCourselist()">更多<text class="iconfont icon-youjiantou"></text></view>
</view> </view>
<courselist :tagIds="[1111]" :onlyShowList="0"></courselist> <courselist :tagIds="[1111]" :onlyShowList="0"></courselist>
</view> </view>
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
fileId:'', fileId:'',
orderId:'', orderId:'',
orderStatus:'2', orderStatus:'2',
userId:'' userId:'',
isRedirect:''
}; };
}, },
methods:{ methods:{
...@@ -70,6 +71,7 @@ ...@@ -70,6 +71,7 @@
this.userId = options.userId; this.userId = options.userId;
uni.setStorageSync('cffp_userId', this.userId) uni.setStorageSync('cffp_userId', this.userId)
}; };
this.isRedirect = option.isRedirect
this.orderId = options.orderId; this.orderId = options.orderId;
this.orderStatus = options.orderStatus; this.orderStatus = options.orderStatus;
this.fileId = options.fileId; this.fileId = options.fileId;
......
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