diff --git a/src/js/api.js b/src/js/api.js
index 65621b5..02d9831 100644
--- a/src/js/api.js
+++ b/src/js/api.js
@@ -53,6 +53,8 @@ API['course'] = {
// 体验课
getOfferPriceList: `${ORIGIN}/stadium/coach/getOfferPriceList`, // 小程序-体验课预约列表
offerExpBookingPrice: `${ORIGIN}/stadium/coach/offerExpBookingPrice`, // 体验课-报价 - 教练端
+ getOfferPriceInfo: `${ORIGIN}/stadium/coach/getOfferPriceInfo`, // 小程序-获取报价详情
+
}
diff --git a/src/pages/course/experience/experience.vue b/src/pages/course/experience/experience.vue
index aa884cb..024464b 100644
--- a/src/pages/course/experience/experience.vue
+++ b/src/pages/course/experience/experience.vue
@@ -137,14 +137,14 @@ export default {
})
},
toDetail(e){
- let _query = {
- price: e.price || 0,
- number: e.number || 0,
- name: e.name,
- course_name: e.course.name,
- order_pay_status: e.order_pay_status
- }
- util.routeTo(`/pages/course/offer_info/offer_info?query=${util.jsonStr(_query)}`, 'nT');
+ // let _query = {
+ // price: e.price || 0,
+ // number: e.number || 0,
+ // name: e.name,
+ // course_name: e.course.name,
+ // order_pay_status: e.order_pay_status
+ // }
+ util.routeTo(`/pages/course/offer_info/offer_info?class_id=${e.id}`, 'nT');
},
toOffer(e){
let _query = {
@@ -153,6 +153,11 @@ export default {
course_id: e.course.id,
user_name: e.name,
user_id: e.user_id,
+ offerInfo: {
+ price_option: e.course.price_option, // 1 面议/ 2 固定
+ number: e.course.number,
+ price: e.course.price,
+ }
}
util.routeTo(`/pages/course/offer/offer?query=${util.jsonStr(_query)}`, 'nT');
},
diff --git a/src/pages/course/offer/offer.vue b/src/pages/course/offer/offer.vue
index f56f622..6f4d946 100644
--- a/src/pages/course/offer/offer.vue
+++ b/src/pages/course/offer/offer.vue
@@ -11,11 +11,11 @@
课程次数:
-
+
课程报价:
-
+
元
@@ -55,6 +55,10 @@ export default {
onLoad(options){
let _query = util.jsonPar(options.query);
this.optionsQuery = _query;
+ if(_query.offerInfo&&_query.offerInfo.price_option == 2){
+ this.courseNumber = _query.offerInfo.number;
+ this.coursePrice = _query.offerInfo.price;
+ }
},
methods: {
submitBtn: util.debounce(function(){
@@ -72,7 +76,7 @@ export default {
.then(res=>{
if(res.data.code == 0){
util.showNone(res.data.message || '操作成功!');
- setTimeout(_=>util.routeTo(), 1200);
+ setTimeout(_=>util.routeTo(`/pages/course/offer_info/offer_info?class_id=${optionsQuery.id}`, 'rT'), 1200);
}else{
util.showNone(res.data.message || '操作失败!');
}
diff --git a/src/pages/course/offer_info/offer_info.vue b/src/pages/course/offer_info/offer_info.vue
index a08e6ab..f20c390 100644
--- a/src/pages/course/offer_info/offer_info.vue
+++ b/src/pages/course/offer_info/offer_info.vue
@@ -1,32 +1,50 @@
-
+
{{
- optionsQuery.order_pay_status == 0? '等待客户支付':
- optionsQuery.order_pay_status == 1? '客户已支付': ''
+ offerInfo.order_pay_status == 0? '等待客户支付':
+ offerInfo.order_pay_status == 1? '客户已支付': ''
}}
- 课程名称:{{optionsQuery.course_name || '-'}}
- 上课用户:{{optionsQuery.name || '-'}}
- 课程次数:{{optionsQuery.number || '-'}}
- 课程报价:{{optionsQuery.price || '-'}}
+ 课程名称:{{offerInfo.course.name || '-'}}
+ 上课用户:{{offerInfo.name || '-'}}
+ 课程次数:{{offerInfo.number || '0'}}
+ 课程报价:{{offerInfo.offer_price || '0'}}