PickUpSignPage.vue
4.89 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<template>
<view class="page-container">
<van-notice-bar
color="#EE3140" background="#EE31401A"
left-icon="info"
text="请在30分钟内完成签署,超时需重新发起签署流程。"/>
<view class="content-card">
<view class="image-card">
<image src="https://img02.glsx.com.cn/aus/images/order/contract.png" class="contract-image"/>
</view>
<view class="content-text">
<text>等待签署中...</text>
<view v-if="accountInfo"> 已向您手机<span style="color: #007aff">{{ maskedMobile }} </span>发送签署短信</view>
</view>
<view class="operate-tip">
<text>操作流程</text>
<br/>
1、查看短信打开手机短信,点击e签宝发送的签 署链接 <br/>2、 验证身份输入验证码完成身份验证 <br/>3、完成签署确认合同内容并完成电子签名
</view>
</view>
<view class="delivery-card">
<text class="card-header">交接清单如下:</text>
<uni-grid :column="2" :showBorder="false" :square="false">
<uni-grid-item>
<view class="card-cell">机动车登记证</view>
</uni-grid-item>
<uni-grid-item>
<view class="card-cell">购置税证明及收据</view>
</uni-grid-item>
<uni-grid-item>
<view class="card-cell">机动车驾驶证</view>
</uni-grid-item>
<uni-grid-item>
<view class="card-cell">车钥匙</view>
</uni-grid-item>
</uni-grid>
</view>
<view class="footer">
<van-button type="primary" hairline round block @click="naviback">返回</van-button>
</view>
</view>
</template>
<script lang="ts">
import {Component, Vue} from 'vue-facing-decorator';
import {AccountInfo} from "lib/src/entity/account/domain/AccountInfo";
import {AuthService} from "@/common/AuthService";
import {onHide, onLoad, onShow, onUnload} from "@dcloudio/uni-app";
import {AuctionOrderController} from "@/api/AuctionOrderController";
@Component({})
export default class PickUpSignPage extends Vue {
accountInfo: AccountInfo = null;
orderId: number;
// 定义一个变量来存储setInterval返回的ID
intervalId: any;
created(): void {
this.accountInfo = (this.$auth as AuthService).getAuthentication();
onLoad((option) => {
this.orderId = option.orderId;
});
onShow((option) => {
this.startFetchOrderState();
});
onHide(() => {
this.stopFetchOrderState();
});
onUnload(() => {
this.stopFetchOrderState();
});
}
unmounted() {
this.stopFetchOrderState();
}
startFetchOrderState(): void {
this.intervalId = setInterval(() => {
AuctionOrderController.getAuctionOrderStateById(this.axios, this.orderId).then(res => {
if (res.data === 'TRANSFERRING') {
uni.navigateTo({url: '/module/order/pickup/PickUpSuccessPage?orderId=' + this.orderId});
}
});
}, 4000);
}
stopFetchOrderState(): void {
clearInterval(this.intervalId);
}
get maskedMobile(): string {
const mobile = this.accountInfo.mobile;
return mobile.slice(0, 3) + "****" + mobile.slice(7);
}
naviback(): void {
uni.navigateBack({delta: 1});
}
}
</script>
<style scoped lang="scss">
.page-container {
background-color: #f8f8f8;
min-height: 100vh;
}
.content-card {
background-color: #fff;
border-radius: 12px;
margin: 12px;
padding: 12px;
height: 100%;
}
.footer {
position: fixed;
left: 0;
right: 0;
bottom: 16px;
padding: 24rpx;
background-color: #ffffff;
}
.image-card {
padding-top: 42px;
text-align: center;
}
.contract-image {
width: 100px;
height: 100px;
}
.content-text {
text-align: center;
font-size: 18px;
font-weight: 600;
line-height: 28px;
padding-top: 12px;
color: rgba(51, 51, 51, 1);
}
.operate-tip {
border-radius: 2.21px;
background: rgba(246, 249, 255, 1);
padding: 16px;
margin-top: 16px;
font-size: 14px;
font-weight: 400;
line-height: 28px;
color: rgba(51, 51, 51, 1);
text-align: left;
}
.delivery-card {
margin: 12px;
.card-header {
font-size: 18px;
font-weight: 500;
color: #141E34;
}
.card-cell {
border-radius: 8px;
background: #F6F9FF;
border: 1px solid #DBE6FF;
padding: 14px 14px 14px 14px;
margin: 6px;
font-size: 14px;
font-weight: 400;
color: #333333;
text-align: center;
}
}
</style>