|
@@ -7,6 +7,8 @@ import iconHead from './images/icon-head.png'
|
|
|
import iconBao from './images/icon-bao.png'
|
|
|
import iconFree from './images/icon-free.png'
|
|
|
import icon12 from './images/icon-12.png'
|
|
|
+import iconCheckbox from './images/icon-checkbox-ring.png'
|
|
|
+import iconCheckboxActive from './images/icon-checkbox-active.png'
|
|
|
import {
|
|
|
Button,
|
|
|
CellGroup,
|
|
@@ -74,7 +76,7 @@ export default defineComponent({
|
|
|
vipYearInfo: {} as any, // 学练工具
|
|
|
inspectStatus: true,
|
|
|
// 是否开启微信登录(测试使用)默认为false
|
|
|
- testIsWeixin: true,
|
|
|
+ testIsWeixin: false,
|
|
|
details: [] as any, //
|
|
|
pattern: /^1(3|4|5|6|7|8|9)\d{9}$/,
|
|
|
nameReg: /^[\u4E00-\u9FA5]+$/,
|
|
@@ -118,7 +120,6 @@ export default defineComponent({
|
|
|
const subjects: any = state.subjectList.find(
|
|
|
(item: any) => item.value == detail.registerSubjectId
|
|
|
)
|
|
|
- state.instrumentsInspectionDescribe = subjects.instrumentsInspectionDescribe
|
|
|
forms.username = detail.username
|
|
|
forms.sex = detail.sex ? 1 : 0
|
|
|
forms.currentGrade = detail.currentGrade
|
|
@@ -136,7 +137,7 @@ export default defineComponent({
|
|
|
// 更新商品信息
|
|
|
await registerGoods()
|
|
|
}
|
|
|
- forms.groupBuyType = detail.groupBuyType || 'GROUP_BUY'
|
|
|
+ forms.groupBuyType = detail.groupBuyType
|
|
|
} catch (e) {
|
|
|
//
|
|
|
console.log(e)
|
|
@@ -683,11 +684,11 @@ export default defineComponent({
|
|
|
<div class={styles.priceGroup}>
|
|
|
团购价:
|
|
|
<p>
|
|
|
- <span>¥</span> {state.vipYearInfo.currentPrice}
|
|
|
+ <span>¥</span> {moneyFormat(state.vipYearInfo.currentPrice)}
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class={styles.priceOrigin}>
|
|
|
- 原价: ¥{state.vipYearInfo.originalPrice}
|
|
|
+ 原价: ¥{moneyFormat(state.vipYearInfo.originalPrice)}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -705,21 +706,36 @@ export default defineComponent({
|
|
|
value: () => (
|
|
|
<div class={styles.goodsInfo}>
|
|
|
<div class={styles.goodsTitle}>
|
|
|
- {state.goodsInfo.goodsName} <img src={iconFree} />
|
|
|
+ {state.goodsInfo.goodsName}
|
|
|
+ {state.goodsInfo.currentPrice <= 0 ? <img src={iconFree} /> : ''}
|
|
|
</div>
|
|
|
<p class={[styles.goodsMemo, 'van-multi-ellipsis--l2']}>
|
|
|
{state.goodsInfo.description}
|
|
|
</p>
|
|
|
<div class={styles.goodsPrice}>
|
|
|
- <div class={styles.priceGroup}>
|
|
|
- 团购价:
|
|
|
- <p>
|
|
|
- <span>¥</span> {state.goodsInfo.currentPrice}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class={styles.priceOrigin}>
|
|
|
- 原价: ¥{state.goodsInfo.originalPrice}
|
|
|
- </div>
|
|
|
+ {state.goodsInfo.currentPrice > 0 ? (
|
|
|
+ <>
|
|
|
+ <div class={styles.priceGroup}>
|
|
|
+ 团购价:
|
|
|
+ <p>
|
|
|
+ <span>¥</span> {moneyFormat(state.goodsInfo.currentPrice)}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <div class={styles.priceOrigin}>
|
|
|
+ 原价: ¥{moneyFormat(state.goodsInfo.originalPrice)}
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ ) : (
|
|
|
+ <>
|
|
|
+ <div class={styles.priceGroup}>
|
|
|
+ 原价:
|
|
|
+ <p>
|
|
|
+ <span>¥</span>{' '}
|
|
|
+ <del>{moneyFormat(state.goodsInfo.originalPrice)}</del>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
</div>
|
|
|
</div>
|
|
|
)
|
|
@@ -755,7 +771,16 @@ export default defineComponent({
|
|
|
onClick={() => {
|
|
|
calcPrice()
|
|
|
}}
|
|
|
- ></Checkbox>
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ icon: (props: any) => (
|
|
|
+ <img
|
|
|
+ class={styles.checkboxImg}
|
|
|
+ src={props.checked ? iconCheckboxActive : iconCheckbox}
|
|
|
+ />
|
|
|
+ )
|
|
|
+ }}
|
|
|
+ </Checkbox>
|
|
|
</div>
|
|
|
</div>
|
|
|
)
|