|
@@ -57,7 +57,7 @@
|
|
|
消费
|
|
|
</div>
|
|
|
<div class="value">
|
|
|
- -{{ consume }}
|
|
|
+ -{{ props.prizeData.score }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row-score-remain">
|
|
@@ -107,6 +107,13 @@ const store = useStore()
|
|
|
|
|
|
const $env = inject('$env')
|
|
|
|
|
|
+const props = defineProps({
|
|
|
+ prizeData: {
|
|
|
+ type: Object,
|
|
|
+ required: true,
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
const emit = defineEmits(['close'])
|
|
|
|
|
|
const isShowVerifiCode = ref(true)
|
|
@@ -122,9 +129,8 @@ const contact = ref('')
|
|
|
const feedback = ref('')
|
|
|
|
|
|
const current = ref(424)
|
|
|
-const consume = ref(200)
|
|
|
const remain = computed(() => {
|
|
|
- return current.value - consume.value
|
|
|
+ return current.value - props.prizeData.score
|
|
|
})
|
|
|
|
|
|
const canSubmit = computed(() => {
|
|
@@ -354,6 +360,7 @@ function onSubmit() {
|
|
|
&[disabled]{
|
|
|
background-image: url(@/assets/images/button-cancel-bg.png);
|
|
|
cursor: not-allowed;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
}
|