Commit ceb284bc authored by 黄奎's avatar 黄奎

页面修改

parent 432c7d1a
...@@ -53,25 +53,6 @@ ...@@ -53,25 +53,6 @@
<span>选择课程</span> <span>选择课程</span>
</div> </div>
<div class="row"> <div class="row">
<!-- <div class="col-5 q-mr-md">
<q-select
dense
standout
behavior="menu"
v-model="chosenCategory"
:options="categoryOptions"
@filter="filterFn"
input-debounce="0"
use-input
option-label="CateName"
option-value="CateId"
emit-value
map-options
@input="changeCategory"
:placeholder="!chosenCategory?'选择系类':''"
clearable
/>
</div> -->
<div class="col"> <div class="col">
<q-select dense standout behavior="menu" filled v-model="chosenCourse" :options="courseOptions" <q-select dense standout behavior="menu" filled v-model="chosenCourse" :options="courseOptions"
@filter="filterCourseFn" input-debounce="0" use-input option-label="CourseName" option-value="CourseId" @filter="filterCourseFn" input-debounce="0" use-input option-label="CourseName" option-value="CourseId"
...@@ -399,8 +380,10 @@ ...@@ -399,8 +380,10 @@
let offer = this.genernalOffer(val); let offer = this.genernalOffer(val);
if (this.chosenCourses.length > 0) { if (this.chosenCourses.length > 0) {
offer.DiscountPrice += 500; offer.DiscountPrice += 500;
offer.ActualPrice -= 500; if (offer.OriginalPrice > 5000) {
offer.Remark += `^购买多项课程再减500`; offer.ActualPrice -= 500;
offer.Remark += `^购买多项课程再减500`;
}
} }
this.chosenCourses.push(offer); this.chosenCourses.push(offer);
this.SumMoney(); this.SumMoney();
......
...@@ -149,13 +149,28 @@ ...@@ -149,13 +149,28 @@
{{ x.BuyNum }}{{ x.SendNum }} {{ x.BuyNum }}{{ x.SendNum }}
</div> </div>
<div class="border-bottom" v-if="x.PriceDiscountType == 2"> <div class="border-bottom" v-if="x.PriceDiscountType == 2">
单人报名享{{ 100 - x.PriceMoney }}折优惠 <template v-if="x.PriceMoney>0">
单人报名享{{ ((100 - x.PriceMoney)/10).toFixed(2) }}折优惠
</template>
<template v-else>
单人报名无优惠
</template>
</div> </div>
<div class="border-bottom" v-if="x.PriceDiscountType == 3"> <div class="border-bottom" v-if="x.PriceDiscountType == 3">
双人报名享{{ 100 - x.PriceMoney }}折优惠 <template v-if="x.PriceMoney>0">
双人报名享{{ ((100 - x.PriceMoney)/10).toFixed(2) }}折优惠
</template>
<template v-else>
双人报名无优惠
</template>
</div> </div>
<div class="border-bottom" v-if="x.PriceDiscountType == 4"> <div class="border-bottom" v-if="x.PriceDiscountType == 4">
续费享{{ 100 - x.PriceMoney }}折优惠 <template v-if="x.PriceMoney>0">
续费享{{ ((100 - x.PriceMoney)/10).toFixed(2) }}折优惠
</template>
<template v-else>
续费无优惠
</template>
</div> </div>
<div class="remark-font" v-if="x.PriceDiscountType == 0"> <div class="remark-font" v-if="x.PriceDiscountType == 0">
暂无优惠政策 暂无优惠政策
......
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