|
@@ -62,10 +62,13 @@ export default {
|
|
|
id: {
|
|
|
default: '',
|
|
|
type: String
|
|
|
+ },
|
|
|
+ goodsType: {
|
|
|
+ default: '201',
|
|
|
+ type: String
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
- // 这里存放数据
|
|
|
return {
|
|
|
discount_code: '', // 优惠码
|
|
|
discount_money: 0.0, // 优惠金额
|
|
@@ -78,9 +81,9 @@ export default {
|
|
|
buy() {
|
|
|
ApplyJoinCourse({
|
|
|
course_id: this.id, // 课程 ID
|
|
|
- discount_code: '' // 优惠码 (目前暂时没有用到)
|
|
|
- }).then(res => {
|
|
|
- console.log(res);
|
|
|
+ discount_code: this.discount_code // 优惠码 (目前暂时没有用到)
|
|
|
+ }).then(() => {
|
|
|
+ this.$message.success('申请加入课程成功');
|
|
|
});
|
|
|
}
|
|
|
}
|