|
@@ -37,7 +37,7 @@ import { useRoute, useRouter } from 'vue-router';
|
|
|
import { useStudentRegisterStore } from '@/store/modules/student-register-store';
|
|
|
import request from '@/helpers/request';
|
|
|
import requestStudent from './request';
|
|
|
-import { browser, checkPhone, getHttpOrigin, getUrlCode, moneyFormat } from '@/helpers/utils';
|
|
|
+import { browser, checkPhone, getHttpOrigin, getUrlCode, moneyFormat, convertToChineseNumber } from '@/helpers/utils';
|
|
|
import deepClone from '@/helpers/deep-clone';
|
|
|
import OWxTip from '@/components/m-wx-tip';
|
|
|
import MDialog from '@/components/m-dialog';
|
|
@@ -74,7 +74,9 @@ import tipIcon3 from './images/tip3-icon.png';
|
|
|
import tipBtnIcon from './images/tip-btn-icon.png';
|
|
|
import giftBoxTitleIcon from './images/gift-box-title.png';
|
|
|
import giftExtraTitleIcon from './images/gift-tip-icon.png';
|
|
|
+import giftCard1Icon from './images/gift_card1.png';
|
|
|
import giftCard2Icon from './images/gift_card2.png';
|
|
|
+import giftZsIcon from './images/gift_zs_icon.png';
|
|
|
|
|
|
const classList: any = [];
|
|
|
for (let i = 1; i <= 40; i++) {
|
|
@@ -223,7 +225,11 @@ export default defineComponent({
|
|
|
config: {} as any,
|
|
|
paymentStatus: false,
|
|
|
orderTimer: null as any,
|
|
|
- tipBoxPop: true, // 团购政策提示弹窗
|
|
|
+ tipBoxPop: false, // 团购政策提示弹窗
|
|
|
+ intrumentList: [] as any, // 赠送的乐器列表
|
|
|
+ currentIntrument: null as any, // 当前匹配上的乐器
|
|
|
+ giftDesc: '' as any, // 团购政策,赠送会员的提示信息
|
|
|
+ descSecondsNum: 3, // 倒计时
|
|
|
});
|
|
|
|
|
|
/*
|
|
@@ -337,6 +343,27 @@ export default defineComponent({
|
|
|
|
|
|
if (forms.details.length > 0) {
|
|
|
forms.detailVip = forms.details[0];
|
|
|
+ const { giftPeriod, giftFlag, giftVipDay } = forms.detailVip
|
|
|
+ forms.detailVip.zsUnit = giftPeriod === 'DAY' ? '天' : giftPeriod === 'MONTH' ? '月' : giftPeriod === 'YEAR' ? '年' : '天'
|
|
|
+ /**
|
|
|
+ * 计算赠品原价
|
|
|
+ * giftFlag: 是否赠送会员
|
|
|
+ * giftVipDay: 赠送天数
|
|
|
+ * giftPeriod: 赠送单位,'DAY','MONTH', 'YEAR'(天月年)
|
|
|
+ * 原价取值:学校管理-会员原价
|
|
|
+ * 按天赠送:会员原价/365*赠送天数
|
|
|
+ * 按月赠送:就会员原价/12*赠送月数
|
|
|
+ * 按年赠送:就会员原价*年数
|
|
|
+ */
|
|
|
+ if (giftFlag) {
|
|
|
+ if (giftPeriod === 'YEAR') {
|
|
|
+ const preNum = convertToChineseNumber(giftVipDay)
|
|
|
+ const totalNum = convertToChineseNumber(giftVipDay+1)
|
|
|
+ state.giftDesc = `买一赠${preNum},即<span>团购一年,使用${totalNum}年</span>`
|
|
|
+ } else {
|
|
|
+ state.giftDesc = `团购一年,<span>赠送${giftVipDay}${forms.detailVip.zsUnit}有效期</span>`
|
|
|
+ }
|
|
|
+ }
|
|
|
// forms.giftVipDay = forms.details[0].membershipDays;
|
|
|
}
|
|
|
forms.giftVipDay = data.giftVipDay || 0;
|
|
@@ -345,6 +372,10 @@ export default defineComponent({
|
|
|
forms.registerType = data.registerType;
|
|
|
studentInfo.extra.registerType = data.registerType;
|
|
|
const schoolInstrumentList = data.schoolInstrumentList || [];
|
|
|
+ state.intrumentList = schoolInstrumentList
|
|
|
+ if (data.schoolInstrumentSetType === 'SCHOOL' && forms.registerType === 'MUST_BUY_GOODS') {
|
|
|
+ state.currentIntrument = schoolInstrumentList[0] || null
|
|
|
+ }
|
|
|
if (data.schoolInstrumentSetType === 'SCHOOL') {
|
|
|
const instrumentCode = schoolInstrumentList[0]?.instrumentCode;
|
|
|
forms.gradeList = getGradeList(data.gradeYear, instrumentCode);
|
|
@@ -395,6 +426,7 @@ export default defineComponent({
|
|
|
list.classList.sort((a: any, b: any) => a.value - b.value);
|
|
|
lastGradeList.push(list);
|
|
|
});
|
|
|
+ console.log('显示11',schoolInstrumentList)
|
|
|
lastGradeList.sort((a: any, b: any) => a.value - b.value);
|
|
|
forms.gradeList = lastGradeList;
|
|
|
forms.classList = [];
|
|
@@ -450,6 +482,11 @@ export default defineComponent({
|
|
|
originAmount += Number(vip.originalPrice);
|
|
|
});
|
|
|
|
|
|
+ // 一页必买,需要加水赠送的价格和乐器价格
|
|
|
+ if (forms.registerType === 'MUST_BUY_GOODS') {
|
|
|
+ originAmount = originAmount + (state.currentIntrument?.originalPrice || 0)
|
|
|
+ }
|
|
|
+
|
|
|
// const goodsList: any[] = studentRegisterStore.getGoods;
|
|
|
// goodsList.forEach((good: any) => {
|
|
|
// amount += Number(good.price) * good.quantity;
|
|
@@ -947,6 +984,16 @@ export default defineComponent({
|
|
|
paymentCouponAmount: 0 // 优惠券金额
|
|
|
});
|
|
|
});
|
|
|
+ // 添加赠送的乐器
|
|
|
+ if (state.currentIntrument?.instrumentId) {
|
|
|
+ params.push({
|
|
|
+ goodsId: state.currentIntrument?.instrumentId,
|
|
|
+ goodsNum: 1,
|
|
|
+ goodsType: "INSTRUMENTS",
|
|
|
+ paymentCashAmount: 0,
|
|
|
+ paymentCouponAmount: 0
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
// goodsList.forEach((goods: any) => {
|
|
|
// params.push({
|
|
@@ -1283,6 +1330,18 @@ export default defineComponent({
|
|
|
forms.isChangeSchool = false; // 是否切换学校
|
|
|
};
|
|
|
|
|
|
+ const tipCountdown = (seconds: number) => {
|
|
|
+ let remainingTime = seconds;
|
|
|
+ const interval = setInterval(() => {
|
|
|
+ remainingTime--;
|
|
|
+ state.descSecondsNum = state.descSecondsNum > 1 ? state.descSecondsNum - 1 : 1;
|
|
|
+ if (remainingTime < 1) {
|
|
|
+ clearInterval(interval); // 清除定时器
|
|
|
+ state.tipBoxPop = false
|
|
|
+ }
|
|
|
+ }, 1000); // 每秒执行一次
|
|
|
+ }
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
try {
|
|
|
// 获取支付类型
|
|
@@ -1326,6 +1385,13 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
await getRegisterGoods();
|
|
|
+ nextTick(() => {
|
|
|
+ // 一页展示(必买)才显示团购提示弹窗
|
|
|
+ if (forms.registerType === 'MUST_BUY_GOODS' && browser().weixin) {
|
|
|
+ state.tipBoxPop = true
|
|
|
+ tipCountdown(3)
|
|
|
+ }
|
|
|
+ })
|
|
|
} catch {}
|
|
|
});
|
|
|
|
|
@@ -1335,7 +1401,7 @@ export default defineComponent({
|
|
|
|
|
|
return () => (
|
|
|
<div class={styles['student-register']}>
|
|
|
- <div class={styles.studentRegisterContainer}>
|
|
|
+ <div class={[forms.registerType === 'MUST_BUY_GOODS' ? styles.studentRegisterContainer2 : styles.studentRegisterContainer]}>
|
|
|
{!forms.activeOverStatus && (
|
|
|
<div class={styles.countdownSection}>
|
|
|
<div class={styles.timer}>
|
|
@@ -1369,8 +1435,10 @@ export default defineComponent({
|
|
|
styles.studentSectionForm,
|
|
|
forms.giftVipDay <= 0 && styles.noSendDay
|
|
|
]}>
|
|
|
- {/* <div class={styles.title1}></div> */}
|
|
|
-
|
|
|
+ {
|
|
|
+ forms.registerType === 'MUST_BUY_GOODS' &&
|
|
|
+ <div class={styles.title1}></div>
|
|
|
+ }
|
|
|
<Form labelAlign="left" class={styles.registerForm}>
|
|
|
<Field
|
|
|
clearable={false}
|
|
@@ -1639,116 +1707,137 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div> */}
|
|
|
|
|
|
- <div class={[styles.goodsExtra]}>
|
|
|
- {/* <i class={styles.iconArrow}></i> */}
|
|
|
- <Cell
|
|
|
- border={false}
|
|
|
- class={[
|
|
|
- styles.goodsCell,
|
|
|
- forms.registerType === 'SELECT_BUY_GOODS' &&
|
|
|
- styles.goodsBuyGoods
|
|
|
- ]}
|
|
|
- center
|
|
|
- onClick={() => {
|
|
|
- // console.log(forms.joinType, 'joinType');
|
|
|
- if (forms.registerType !== 'SELECT_BUY_GOODS') return;
|
|
|
-
|
|
|
- if (forms.joinType === 'digitalize') {
|
|
|
- otherParams.showOtherMessage = `没有陪练工具,将无法实现同步练习`;
|
|
|
- otherParams.showOtherSchool = true;
|
|
|
- otherParams.showCloseButton = true;
|
|
|
- otherParams.showCancelButton = true;
|
|
|
- otherParams.cancelButtonColor = '';
|
|
|
- otherParams.cancelButtonText = '确认取消';
|
|
|
- otherParams.confirmButtonColor = '';
|
|
|
- otherParams.confirmButtonText = '放弃取消';
|
|
|
- otherParams.otherType = 'payment';
|
|
|
- otherParams.messageAlign = 'center';
|
|
|
- } else if (forms.joinType === 'tradition') {
|
|
|
- forms.joinType = 'digitalize';
|
|
|
- }
|
|
|
- }}>
|
|
|
- {{
|
|
|
- icon: () =>
|
|
|
- forms.registerType === 'SELECT_BUY_GOODS' && (
|
|
|
- <div class={styles.checkedGroup}>
|
|
|
- <i
|
|
|
- class={[
|
|
|
- styles.iconChecked,
|
|
|
- forms.joinType === 'digitalize' && styles.selected
|
|
|
- ]}></i>
|
|
|
-
|
|
|
- {/* {forms.tipStatus && <i class={styles.showBg}></i>} */}
|
|
|
- {forms.joinType === 'digitalize' && (
|
|
|
- <i class={styles.showBg}></i>
|
|
|
- )}
|
|
|
- </div>
|
|
|
- ),
|
|
|
- title: () => (
|
|
|
- <div class={styles.section}>
|
|
|
- <Image
|
|
|
- class={styles.img}
|
|
|
- src={forms.detailVip.goodsUrl || tuangou}
|
|
|
- />
|
|
|
- <div class={styles.sectionContent}>
|
|
|
- <img
|
|
|
- src={
|
|
|
- forms.registerType === 'SELECT_BUY_GOODS'
|
|
|
- ? icon5
|
|
|
- : icon10
|
|
|
- }
|
|
|
- class={styles.goodsName}
|
|
|
+ {
|
|
|
+ forms.registerType !== 'MUST_BUY_GOODS' &&
|
|
|
+ <div class={[styles.goodsExtra]}>
|
|
|
+ {/* <i class={styles.iconArrow}></i> */}
|
|
|
+ <Cell
|
|
|
+ border={false}
|
|
|
+ class={[
|
|
|
+ styles.goodsCell,
|
|
|
+ forms.registerType === 'SELECT_BUY_GOODS' &&
|
|
|
+ styles.goodsBuyGoods
|
|
|
+ ]}
|
|
|
+ center
|
|
|
+ onClick={() => {
|
|
|
+ // console.log(forms.joinType, 'joinType');
|
|
|
+ if (forms.registerType !== 'SELECT_BUY_GOODS') return;
|
|
|
+
|
|
|
+ if (forms.joinType === 'digitalize') {
|
|
|
+ otherParams.showOtherMessage = `没有陪练工具,将无法实现同步练习`;
|
|
|
+ otherParams.showOtherSchool = true;
|
|
|
+ otherParams.showCloseButton = true;
|
|
|
+ otherParams.showCancelButton = true;
|
|
|
+ otherParams.cancelButtonColor = '';
|
|
|
+ otherParams.cancelButtonText = '确认取消';
|
|
|
+ otherParams.confirmButtonColor = '';
|
|
|
+ otherParams.confirmButtonText = '放弃取消';
|
|
|
+ otherParams.otherType = 'payment';
|
|
|
+ otherParams.messageAlign = 'center';
|
|
|
+ } else if (forms.joinType === 'tradition') {
|
|
|
+ forms.joinType = 'digitalize';
|
|
|
+ }
|
|
|
+ }}>
|
|
|
+ {{
|
|
|
+ icon: () =>
|
|
|
+ forms.registerType === 'SELECT_BUY_GOODS' && (
|
|
|
+ <div class={styles.checkedGroup}>
|
|
|
+ <i
|
|
|
+ class={[
|
|
|
+ styles.iconChecked,
|
|
|
+ forms.joinType === 'digitalize' && styles.selected
|
|
|
+ ]}></i>
|
|
|
+
|
|
|
+ {/* {forms.tipStatus && <i class={styles.showBg}></i>} */}
|
|
|
+ {forms.joinType === 'digitalize' && (
|
|
|
+ <i class={styles.showBg}></i>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ ),
|
|
|
+ title: () => (
|
|
|
+ <div class={styles.section}>
|
|
|
+ <Image
|
|
|
+ class={styles.img}
|
|
|
+ src={forms.detailVip.goodsUrl || tuangou}
|
|
|
/>
|
|
|
+ <div class={styles.sectionContent}>
|
|
|
+ <img
|
|
|
+ src={
|
|
|
+ forms.registerType === 'SELECT_BUY_GOODS'
|
|
|
+ ? icon5
|
|
|
+ : icon10
|
|
|
+ }
|
|
|
+ class={styles.goodsName}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- )
|
|
|
- }}
|
|
|
- </Cell>
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </Cell>
|
|
|
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- <div class={styles.giftBox}>
|
|
|
- <img class={styles.titleIcon} src={giftBoxTitleIcon} />
|
|
|
- <div class={styles.tools}>
|
|
|
- <img class={styles.toolImg} src={giftCard2Icon} />
|
|
|
- <div class={styles.toolRight}>
|
|
|
- <p>乐器AI学练工具一年卡</p>
|
|
|
- <div class={styles.trDesc}>7天无理由退款</div>
|
|
|
- <div class={styles.trBottom}>
|
|
|
- <span class={styles.tcPrice}>¥ 360.00</span>
|
|
|
- <span class={styles.toPrice}>|原价 ¥ 400.00</span>
|
|
|
+ {
|
|
|
+ forms.registerType === 'MUST_BUY_GOODS' &&
|
|
|
+ <div class={styles.giftBox}>
|
|
|
+ <img class={styles.titleIcon} src={giftBoxTitleIcon} />
|
|
|
+ <div class={styles.tools}>
|
|
|
+ <img class={styles.toolImg} src={forms.detailVip.goodsUrl || giftCard1Icon} />
|
|
|
+ <div class={styles.toolRight}>
|
|
|
+ <p>乐器AI学练工具一年卡</p>
|
|
|
+ <div class={styles.trDesc}>7天无理由退款</div>
|
|
|
+ <div class={styles.trBottom}>
|
|
|
+ <span class={styles.tcPrice}>¥ {forms.detailVip.currentPrice}</span>
|
|
|
+ <span class={styles.toPrice}>|原价 <i>¥ {Number(forms.detailVip.originalPrice).toFixed(2)}</i></span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class={styles.extraTools}>
|
|
|
- <div class={styles.exTitle}>
|
|
|
- <img src={giftExtraTitleIcon} />
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <img src={giftCard2Icon} />
|
|
|
- <div>
|
|
|
- <p>乐器AI学练工具二年卡</p>
|
|
|
- <div>
|
|
|
- <span>¥ 360.00</span>
|
|
|
- <span>|原价 ¥ 400.00</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <img src={giftCard2Icon} />
|
|
|
- <div>
|
|
|
- <p>32键口风琴</p>
|
|
|
- <div>
|
|
|
- <span>¥ 360.00</span>
|
|
|
- <span>|原价 ¥ 400.00</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ {/** 有赠品才显示 */}
|
|
|
+ {
|
|
|
+ (forms.detailVip.giftFlag || state.currentIntrument?.instrumentId) &&
|
|
|
+ <div class={styles.extraTools}>
|
|
|
+ <div class={styles.exTitle}>
|
|
|
+ <img src={giftExtraTitleIcon} />
|
|
|
+ </div>
|
|
|
+ {/** 会员赠送 */}
|
|
|
+ {
|
|
|
+ forms.detailVip.giftFlag &&
|
|
|
+ <div class={styles.extItem}>
|
|
|
+ <img class={styles.toolImg} src={giftCard2Icon} />
|
|
|
+ <div class={styles.toolRight}>
|
|
|
+ <p>乐器AI学练工具{forms.detailVip.giftPeriod === 'YEAR' ? convertToChineseNumber(forms.detailVip.giftVipDay) : forms.detailVip.giftVipDay}{forms.detailVip.zsUnit}卡</p>
|
|
|
+ <div class={styles.trBottom}>
|
|
|
+ <span class={styles.tcPrice}>¥ 00.00</span>
|
|
|
+ <span class={styles.toPrice}>|原价 <i>¥ {Number(forms.detailVip.giftOriginalPrice).toFixed(2)}</i></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img class={styles.toolZsIcon} src={giftZsIcon} />
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ {/** 乐器赠送,注册类型为MUST_BUY_GOODS,才显示赠送乐器 */}
|
|
|
+ {
|
|
|
+ (state.currentIntrument?.instrumentId && forms.registerType === 'MUST_BUY_GOODS') &&
|
|
|
+ <div class={styles.extItem}>
|
|
|
+ <img class={styles.toolImg} src={giftCard2Icon} />
|
|
|
+ <div class={styles.toolRight}>
|
|
|
+ <p>{state.currentIntrument.instrumentName}</p>
|
|
|
+ <div class={styles.trBottom}>
|
|
|
+ <span class={styles.tcPrice}>¥ 00.00</span>
|
|
|
+ <span class={styles.toPrice}>|原价 <i>¥ {Number(state.currentIntrument.originalPrice).toFixed(2)}</i></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img class={styles.toolZsIcon} src={giftZsIcon} />
|
|
|
+ </div>
|
|
|
+ }
|
|
|
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ }
|
|
|
|
|
|
- </div>
|
|
|
|
|
|
{/* <div class={[styles.memberNumer, styles.aiMemberNumber]}>
|
|
|
<img src={iconGift} class={styles.iconGift} />
|
|
@@ -1758,7 +1847,7 @@ export default defineComponent({
|
|
|
</p>
|
|
|
</div> */}
|
|
|
|
|
|
- {/* {forms.detailVip.membershipDays ? (
|
|
|
+ {forms.detailVip.membershipDays && forms.registerType !== 'MUST_BUY_GOODS' ? (
|
|
|
<div class={styles.vipGiftContainer}>
|
|
|
<img src={vipGiftTIps} class={styles.iconGift} />
|
|
|
<p>
|
|
@@ -1775,7 +1864,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
) : (
|
|
|
''
|
|
|
- )} */}
|
|
|
+ )}
|
|
|
|
|
|
{/* {forms.joinType === 'tradition' && (
|
|
|
<div class={styles.goodsTradition}>
|
|
@@ -1826,7 +1915,10 @@ export default defineComponent({
|
|
|
<MSticky position="bottom" ref={mstickyRef}>
|
|
|
<div class={styles.paymentContainer}>
|
|
|
<div class={styles.payemntPrice}>
|
|
|
- <img src={giftTip} class={styles.giftTip} />
|
|
|
+ {
|
|
|
+ forms.registerType === 'SELECT_BUY_GOODS' &&
|
|
|
+ <img src={giftTip} class={styles.giftTip} />
|
|
|
+ }
|
|
|
<div>
|
|
|
<span class={styles.needPrice}>
|
|
|
<i style="font-style: normal">¥ </i>
|
|
@@ -1850,14 +1942,24 @@ export default defineComponent({
|
|
|
onClick={() => {
|
|
|
onSubmit();
|
|
|
}}>
|
|
|
- <Button
|
|
|
- round
|
|
|
- disabled={forms.submitLoading}
|
|
|
- loading={forms.submitLoading}>
|
|
|
- {forms.joinType === 'digitalize'
|
|
|
- ? '报名与支付'
|
|
|
- : '提交报名'}
|
|
|
- </Button>
|
|
|
+ {
|
|
|
+ forms.registerType === 'MUST_BUY_GOODS' ?
|
|
|
+ <Button
|
|
|
+ round
|
|
|
+ disabled={forms.submitLoading}
|
|
|
+ loading={forms.submitLoading}>
|
|
|
+ 立即购买
|
|
|
+ </Button> :
|
|
|
+ <Button
|
|
|
+ round
|
|
|
+ disabled={forms.submitLoading}
|
|
|
+ loading={forms.submitLoading}>
|
|
|
+ {forms.joinType === 'digitalize'
|
|
|
+ ? '报名与支付'
|
|
|
+ : '提交报名'}
|
|
|
+ </Button>
|
|
|
+ }
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
{/* {forms.joinType === 'tradition' && (
|
|
@@ -1931,6 +2033,11 @@ export default defineComponent({
|
|
|
forms.currentClassText = '';
|
|
|
studentInfo.extra.currentClass = '';
|
|
|
}
|
|
|
+ // 更换年级班级后,判断是否需要更换赠送的乐器
|
|
|
+ if (forms.schoolInstrumentSetType === 'GRADE') {
|
|
|
+ state.currentIntrument = state.intrumentList.find((item: any) => (item.gradeNum === studentInfo.extra.currentGradeNum && item.classNum === selectedOption.value) )
|
|
|
+ }
|
|
|
+ // console.log('选择111',state.currentIntrument)
|
|
|
}}
|
|
|
/>
|
|
|
)}
|
|
@@ -1961,6 +2068,11 @@ export default defineComponent({
|
|
|
if (['CLASS'].includes(forms.schoolInstrumentSetType)) {
|
|
|
forms.instrumentCode = selectedOption.instrumentCode;
|
|
|
}
|
|
|
+ // 更换年级班级后,判断是否需要更换赠送的乐器
|
|
|
+ if (forms.schoolInstrumentSetType === 'CLASS') {
|
|
|
+ state.currentIntrument = state.intrumentList.find((item: any) => (item.gradeNum === selectedOption.value))
|
|
|
+ }
|
|
|
+ // console.log('选择222',state.currentIntrument)
|
|
|
}}
|
|
|
/>
|
|
|
)}
|
|
@@ -2070,13 +2182,13 @@ export default defineComponent({
|
|
|
</MPopup>
|
|
|
|
|
|
{/* 是否在微信中打开 */}
|
|
|
- {/* <OWxTip
|
|
|
+ <OWxTip
|
|
|
show={forms.showTips}
|
|
|
message={forms.showMessage}
|
|
|
showButton={forms.showButton}
|
|
|
buttonText="刷新"
|
|
|
onConfirm={() => window.location.reload()}
|
|
|
- /> */}
|
|
|
+ />
|
|
|
|
|
|
<MMessageTip
|
|
|
show={otherParams.showOtherSchool}
|
|
@@ -2209,6 +2321,7 @@ export default defineComponent({
|
|
|
}}
|
|
|
/>
|
|
|
</Popup>
|
|
|
+
|
|
|
{
|
|
|
state.tipBoxPop &&
|
|
|
<div class={styles.tipBoxPop}>
|
|
@@ -2219,18 +2332,21 @@ export default defineComponent({
|
|
|
<img src={tipIcon1} />
|
|
|
<p>开课时赠送<span>全新乐器一支</span></p>
|
|
|
</li>
|
|
|
+ {
|
|
|
+ state.giftDesc &&
|
|
|
+ <li class={styles.tipItem}>
|
|
|
+ <img src={tipIcon2} />
|
|
|
+ <p v-html={state.giftDesc}></p>
|
|
|
+ </li>
|
|
|
+ }
|
|
|
<li class={styles.tipItem}>
|
|
|
- <img src={tipIcon2} />
|
|
|
- <p>买一赠二,即<span>团购一年,使用三年</span></p>
|
|
|
- </li>
|
|
|
- <li class={styles.tipItem}>
|
|
|
- <img src={tipIcon3} />
|
|
|
+ <img src={state.giftDesc ? tipIcon3 : tipIcon2} />
|
|
|
<p><span>7天内无理由</span>全额退款保障</p>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<div class={styles.tipBtn}>
|
|
|
<img src={tipBtnIcon} />
|
|
|
- <span onClick={() => state.tipBoxPop = false}>我知道了(3s)</span>
|
|
|
+ <span>我知道了({state.descSecondsNum}s)</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|