修复:开发测试问题修改
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<!-- 积分输入 -->
|
||||
<view v-if="allowPointPay && userInfo?.jf > 0" class="points-input-section">
|
||||
<text class="points-label">
|
||||
{{ $t('order.maxPoints', { max: pointsUsableMax }) }}
|
||||
{{ $t('order.maxPoints').replace('max', pointsUsableMax) }}
|
||||
</text>
|
||||
<view class="points-input-box">
|
||||
<input
|
||||
@@ -136,16 +136,16 @@ const userStore = useUserStore()
|
||||
interface Props {
|
||||
goodsList: IGoods[],
|
||||
userInfo: object,
|
||||
allowPointPay: boolean,
|
||||
orderType: string,
|
||||
backStep: number // 购买完成后返回几层页面
|
||||
allowPointPay?: boolean,
|
||||
orderType?: string,
|
||||
backStep?: number // 购买完成后返回几层页面
|
||||
}
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
goodsList: () => [],
|
||||
userInfo: () => ({}),
|
||||
allowPointPay: () => false,
|
||||
orderType: () => '',
|
||||
backStep: () => 1
|
||||
allowPointPay: true,
|
||||
orderType: 'order',
|
||||
backStep: 1
|
||||
})
|
||||
|
||||
// 订单备注
|
||||
|
||||
@@ -33,6 +33,8 @@ const productImg = computed(() => {
|
||||
return props.data?.images || ''
|
||||
case 'vip':
|
||||
return '/static/vip.png'
|
||||
case 'abroadVip':
|
||||
return '/static/vip.png'
|
||||
case 'point':
|
||||
return '/static/jifen.png'
|
||||
default:
|
||||
@@ -47,6 +49,8 @@ const title = computed(() => {
|
||||
return props.data?.name || ''
|
||||
case 'vip':
|
||||
return props.data?.title + '<text style="color: #ff4703; font-weight: bold;">(' + props.data?.year + '年)</text>' || ''
|
||||
case 'abroadVip':
|
||||
return '电子书VIP' + props.data?.title + '<text style="color: #ff4703; font-weight: bold;">(' + props.data?.days + '天)</text>' || ''
|
||||
case 'point':
|
||||
return ''
|
||||
default:
|
||||
@@ -61,6 +65,8 @@ const price = computed(() => {
|
||||
return props.data?.abroadPrice || 0
|
||||
case 'vip':
|
||||
return props.data?.fee || 0
|
||||
case 'abroadVip':
|
||||
return props.data?.money || 0
|
||||
case 'point':
|
||||
return ''
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user