|
@@ -1,7 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div v-if="action === 'bind'" class="p-imei">
|
|
<div v-if="action === 'bind'" class="p-imei">
|
|
<h3 class="ptc-title">
|
|
<h3 class="ptc-title">
|
|
- You have a {{ $route.query.v }} version of membership service to be bound
|
|
+ You have a {{ state.currentOrder.product_name }} version of membership
|
|
|
|
+ service to be bound
|
|
</h3>
|
|
</h3>
|
|
<div class="ptc-wrapper">
|
|
<div class="ptc-wrapper">
|
|
<div class="ptc-block">
|
|
<div class="ptc-block">
|
|
@@ -45,10 +46,23 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
+<script lang="ts">
|
|
|
|
+import { defineComponent } from 'vue'
|
|
|
|
+import { getCurrentOrder } from '@/store'
|
|
|
|
+
|
|
|
|
+export default defineComponent({
|
|
|
|
+ name: 'IMEI',
|
|
|
|
+ async beforeRouteEnter(to) {
|
|
|
|
+ await getCurrentOrder(to.query.id as string)
|
|
|
|
+ },
|
|
|
|
+})
|
|
|
|
+</script>
|
|
|
|
+
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
import { bindIMEI } from '@/service/order'
|
|
import { bindIMEI } from '@/service/order'
|
|
|
|
+import { state } from '@/store'
|
|
import Toast from '@/components/toast'
|
|
import Toast from '@/components/toast'
|
|
|
|
|
|
defineProps<{ action: 'bind' | 'view' }>()
|
|
defineProps<{ action: 'bind' | 'view' }>()
|