|
@@ -69,6 +69,14 @@
|
|
<div class="record mt-2" @click="toRecord">认证记录</div>
|
|
<div class="record mt-2" @click="toRecord">认证记录</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <SimpleDialog
|
|
|
|
+ v-model="active"
|
|
|
|
+ @confirm="onConfirm"
|
|
|
|
+ :cancel="false"
|
|
|
|
+ description="抱歉,该用户已进行过正品授权申请"
|
|
|
|
+ :center="true"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -89,6 +97,7 @@ export default {
|
|
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ active: false,
|
|
registerType: [3],
|
|
registerType: [3],
|
|
step: 1,
|
|
step: 1,
|
|
stepList: [
|
|
stepList: [
|
|
@@ -169,6 +178,10 @@ export default {
|
|
this.initForm()
|
|
this.initForm()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onConfirm() {
|
|
|
|
+ this.$router.push(this.routePrefix)
|
|
|
|
+ },
|
|
|
|
+
|
|
async onNextStep() {
|
|
async onNextStep() {
|
|
const validateAction = {
|
|
const validateAction = {
|
|
1: this.$refs.userForm?.validate(),
|
|
1: this.$refs.userForm?.validate(),
|
|
@@ -241,21 +254,25 @@ export default {
|
|
this.$router.push(`${this.routePrefix}/record/club/detail`)
|
|
this.$router.push(`${this.routePrefix}/record/club/detail`)
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ /***
|
|
|
|
+ * 已登录
|
|
|
|
+ * 1 机构 + 设备
|
|
|
|
+ * 2 设备
|
|
|
|
+ *
|
|
|
|
+ * 未登录
|
|
|
|
+ * 1 注册 + 机构 + 设备
|
|
|
|
+ * 2 注册 + 设备
|
|
|
|
+ */
|
|
|
|
+
|
|
// 初始化表单
|
|
// 初始化表单
|
|
async initForm() {
|
|
async initForm() {
|
|
- if (this.authId) {
|
|
|
|
- if (!this.accessToken) {
|
|
|
|
- this.registerType.push(1)
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.accessToken) {
|
|
|
|
+ this.step = 2
|
|
|
|
+ await this.initClubInfo()
|
|
|
|
+ this.stepList = this.stepList.filter((item) => item.id !== 1)
|
|
} else {
|
|
} else {
|
|
- // 判断用户是否登录
|
|
|
|
- if (!this.accessToken) {
|
|
|
|
- this.registerType.push(1, 2)
|
|
|
|
- } else {
|
|
|
|
- this.step = 2
|
|
|
|
- this.stepList = this.stepList.filter((item) => item.id !== 1)
|
|
|
|
- await this.initClubInfo()
|
|
|
|
- }
|
|
|
|
|
|
+ this.registerType.push(1)
|
|
|
|
+ await this.initClubInfo()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|