|
@@ -54,6 +54,7 @@ import icon3 from './images/new/icon-3.png';
|
|
|
// import icon6 from './images/new/icon-6.png';
|
|
|
import giftTip from './images/new/icon-9.png';
|
|
|
import iconGift from './images/new/icon-gift.png';
|
|
|
+import vipGiftTIps from './images/new/vip_gift_tips.png';
|
|
|
import icon10 from './images/new/icon-n-10.png';
|
|
|
import icon11 from './images/new/icon-n-11.png';
|
|
|
import dayjs from 'dayjs';
|
|
@@ -115,6 +116,12 @@ const getGradeList = (gradeYear: string, instrumentCode?: string) => {
|
|
|
return tempList;
|
|
|
};
|
|
|
|
|
|
+export const vipGiftPeriodType = {
|
|
|
+ DAY: '天',
|
|
|
+ MONTH: '个月',
|
|
|
+ YEAR: '年'
|
|
|
+} as any;
|
|
|
+
|
|
|
export default defineComponent({
|
|
|
name: 'student-register',
|
|
|
setup() {
|
|
@@ -960,6 +967,7 @@ export default defineComponent({
|
|
|
vipList.forEach((vip: any) => {
|
|
|
params.push({
|
|
|
giftVipDay: vip.membershipDays,
|
|
|
+ giftPreiod: vip.giftPeriod,
|
|
|
goodsId: vip.goodsId,
|
|
|
goodsNum: 1,
|
|
|
goodsType: vip.goodsType,
|
|
@@ -1951,22 +1959,7 @@ export default defineComponent({
|
|
|
{forms.joinType && (
|
|
|
<div class={styles.goodsTypeGroup}>
|
|
|
{forms.joinType === 'digitalize' && (
|
|
|
- <>
|
|
|
- <img src={icon10} class={styles.showImg} />
|
|
|
-
|
|
|
- {forms.detailVip.membershipDays ? (
|
|
|
- <div class={styles.memberNumer}>
|
|
|
- <img src={iconGift} class={styles.iconGift} />
|
|
|
- <p>
|
|
|
- 首次购买赠送乐器AI学练工具
|
|
|
- <span>{forms.detailVip.membershipDays || 0}</span>
|
|
|
- 天有效期
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- ) : (
|
|
|
- ''
|
|
|
- )}
|
|
|
- </>
|
|
|
+ <img src={icon10} class={styles.showImg} />
|
|
|
)}
|
|
|
{forms.joinType === 'tradition' && (
|
|
|
<img src={icon11} class={styles.showImg} />
|
|
@@ -1975,6 +1968,23 @@ export default defineComponent({
|
|
|
)}
|
|
|
</div>
|
|
|
|
|
|
+ {forms.detailVip.membershipDays && forms.joinType === 'digitalize' ? (
|
|
|
+ <div class={styles.vipGiftContainer}>
|
|
|
+ <img src={vipGiftTIps} class={styles.iconGift} />
|
|
|
+ <p>
|
|
|
+ 现在购买额外赠送有效期
|
|
|
+ <span class={styles.vipGiftNum}>
|
|
|
+ {forms.detailVip.membershipDays || 0}
|
|
|
+ </span>
|
|
|
+ <span class={styles.vipGiftPreviod}>
|
|
|
+ {vipGiftPeriodType[forms.detailVip.giftPeriod]}
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ ) : (
|
|
|
+ ''
|
|
|
+ )}
|
|
|
+
|
|
|
{/* {forms.joinType === 'digitalize' && (
|
|
|
<div class={[styles.goodsExtra]}>
|
|
|
<i class={styles.iconArrow}></i>
|