1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
| <template>
| <div>
| <u-navbar :border-bottom="false"></u-navbar>
| <step1 v-if="current == 1" :companyData="companyData" @callback="next()" />
| <step2 v-if="current == 2" :companyData="companyData" @callback="next()" />
| <step3
| v-if="current == 3"
| :companyData="companyData"
| @callback="finished()"
| />
| </div>
| </template>
|
| <script>
| import '@/components/uview-components/uview-ui';
|
| import { getCompanyDetail } from "@/api/entry";
| import step1 from "./step1";
| import step2 from "./step2";
| import step3 from "./step3";
| export default {
| data() {
| return {
| companyData: "",
| current: 1,
| };
| },
| components: {
| step1,
| step2,
| step3
| },
| mounted() {
| this.init();
| },
| methods: {
| async init(next) {
| const res = await getCompanyDetail();
| if (res.data.success) {
| this.companyData = res.data.result;
| next ? this.current++ : "";
| }
| },
| next() {
| this.init("next");
| },
| finished() {
| uni.navigateTo({
| url: "/pages/passport/entry/seller/index",
| });
| },
| },
| };
| </script>
|
| <style lang="scss" scoped></style>
|
|