441a011a by 张猛

会员认证

1 parent 9bf46b24
1 <template> 1 <template>
2 <view :class="{ 'lock-scroll': popupShow }"> 2 <view :class="{ 'lock-scroll': popupShow }">
3 <view v-if="showDirectly&&directUnderFlag==0"> 3 <view v-if="showDirectly&&directUnderFlag==0">
4 <view class="flexbox"> 4 <view class="head-box">
5 <view> 5 <view class="flexbox ">
6 有效日期至 6 <view class="title">{{ form.name }}</view>
7 <text class="text-primary">{{ form?.validityDate?.slice(0, 10) }}</text> 7 <view>
8 <text v-if="activeStatus==0&&authenticationStatusa" class="text-danger">未激活</text>
9 <text v-else>
10 <text v-if="authenticationStatusa == 0 ||!authenticationStatusa" class="text-danger">未认证</text>
11 <text v-if="authenticationStatusa == 1" class="text-success">认证中</text>
12 <text v-if="authenticationStatusa == 2" class="text-success">已认证</text>
13 <text v-if="authenticationStatusa == 3" class="text-danger">认证未通过</text>
14 <text v-if="authenticationStatusa == 4" class="text-danger">即将过期</text>
15 <text v-if="authenticationStatusa == 5" class="text-danger">已过期</text>
16 </text>
17 </view>
8 </view> 18 </view>
9 <view> 19 <view class="flexbox">
10 <text v-if="activeStatus==0&&authenticationStatusa" class="text-danger">未激活</text> 20 <view>
11 <text v-else> 21 有效日期至
12 <text v-if="authenticationStatusa == 0 ||!authenticationStatusa" class="text-danger">未认证</text> 22 <text class="highlight">{{ form?.validityDate?.slice(0, 10) }}</text>
13 <text v-if="authenticationStatusa == 1" class="text-success">认证中</text> 23 </view>
14 <text v-if="authenticationStatusa == 2" class="text-success">已认证</text> 24
15 <text v-if="authenticationStatusa == 3" class="text-danger">认证未通过</text>
16 <text v-if="authenticationStatusa == 4" class="text-danger">即将过期</text>
17 <text v-if="authenticationStatusa == 5" class="text-danger">已过期</text>
18 </text>
19 </view> 25 </view>
20 </view> 26 <view class="flexbox" style="justify-content: flex-end;padding: 20rpx 40rpx 30rpx 40rpx;">
21 <view class="flexbox" style="justify-content: flex-end;padding: 0 30rpx 40rpx;"> 27 <button v-if="activeStatus==0&&authenticationStatusa" class="btn-red" size="mini"
22 <button v-if="activeStatus==0&&authenticationStatusa" class="btn-red" size="mini" 28 style="margin: 0 20rpx 0 0;" @click="payTheFees">激活
23 style="margin: 0 20rpx 0 0;" @click="payTheFees">激活
24 </button>
25 <view v-else>
26 <!-- :disabled="auditStatus==1||auditStatus==2||form.isPoints==0" class="btn-red" -->
27 <!-- <button v-if="form.deptType==6"
28
29 size="mini"
30 style="margin: 0 20rpx 0 0;"
31 @click="showApplyDialog">考点申请
32 </button> -->
33 <!-- <button v-if="form.deptType==6"
34 class="btn-red-kx"
35 size="mini"
36 style="margin: 0 20rpx 0 0;"
37 @click="auditEditFN(2)">考点详情
38 </button> -->
39 <button :disabled="btn" class="btn-red" size="mini" style="margin: 0 20rpx 0 0;"
40 @click="payTheFees">去缴费
41 </button>
42 <button v-if="form.deptType!=1" class="btn-red-kx" size="mini" style="margin: 0 20rpx 0 0;"
43 @click="auditEditFN(1)">审核详情
44 </button> 29 </button>
30 <view v-else>
31 <!-- :disabled="auditStatus==1||auditStatus==2||form.isPoints==0" class="btn-red" -->
32 <!-- <button v-if="form.deptType==6"
33
34 size="mini"
35 style="margin: 0 20rpx 0 0;"
36 @click="showApplyDialog">考点申请
37 </button> -->
38 <!-- <button v-if="form.deptType==6"
39 class="btn-red-kx"
40 size="mini"
41 style="margin: 0 20rpx 0 0;"
42 @click="auditEditFN(2)">考点详情
43 </button> -->
44 <button :disabled="btn" class="btn-red" size="mini" style="margin: 0 20rpx 0 0;"
45 @click="payTheFees">去缴费
46 </button>
47 <button v-if="form.deptType!=1" class="btn-red-kx" size="mini" style="margin: 0 20rpx 0 0;"
48 @click="auditEditFN(1)">审核详情
49 </button>
50 </view>
45 </view> 51 </view>
46 </view> 52 </view>
53
47 </view> 54 </view>
55
48 <view class="mainbox"> 56 <view class="mainbox">
49 <uni-list> 57 <uni-list>
50 <uni-list-item v-if="authenticationStatusa != 1&&authenticationStatusa != 0&&authenticationStatusa != 3" 58 <uni-list-item v-if="authenticationStatusa != 1&&authenticationStatusa != 0&&authenticationStatusa != 3"
...@@ -121,6 +129,7 @@ ...@@ -121,6 +129,7 @@
121 </uni-list-item> 129 </uni-list-item>
122 </uni-list> 130 </uni-list>
123 </view> 131 </view>
132
124 <!-- 弹窗添加触摸事件拦截 --> 133 <!-- 弹窗添加触摸事件拦截 -->
125 <uni-popup ref="applyPopup" type="center" @close="onPopupClose" @open="onPopupOpen" 134 <uni-popup ref="applyPopup" type="center" @close="onPopupClose" @open="onPopupOpen"
126 @touchmove.stop.prevent="() => {}"> 135 @touchmove.stop.prevent="() => {}">
...@@ -511,7 +520,6 @@ function payTheFees() { ...@@ -511,7 +520,6 @@ function payTheFees() {
511 .frrr { 520 .frrr {
512 width: 100%; 521 width: 100%;
513 text-align: right; 522 text-align: right;
514 text-align: right;
515 display: flex; 523 display: flex;
516 flex-wrap: wrap; 524 flex-wrap: wrap;
517 justify-content: flex-end; 525 justify-content: flex-end;
...@@ -543,14 +551,34 @@ function payTheFees() { ...@@ -543,14 +551,34 @@ function payTheFees() {
543 color: #999; 551 color: #999;
544 } 552 }
545 553
546 .flexbox { 554 .head-box {
547 padding: 30rpx; 555 width: calc(100% - 60rpx);
556 margin: 0 auto;
548 background-color: #fff; 557 background-color: #fff;
558 border-radius: 30rpx;
559 margin-top: 20rpx;
560 padding-top: 20rpx;
561
562 .title {
563 font-size: 40rpx;
564 font-weight: bold;
565 }
566 }
567
568 .flexbox {
569 padding: 10rpx 30rpx;
549 justify-content: space-between; 570 justify-content: space-between;
550 } 571 }
551 572
573 .highlight {
574 color: orange;
575 }
576
552 .mainbox { 577 .mainbox {
553 margin: 30rpx; 578 margin: 30rpx;
579 padding: 70rpx 20rpx;
580 border-radius: 30rpx;
581 background-color: #ffff;
554 } 582 }
555 583
556 .apply-dialog { 584 .apply-dialog {
...@@ -616,5 +644,8 @@ function payTheFees() { ...@@ -616,5 +644,8 @@ function payTheFees() {
616 .btn-red, .btn-red-kx { 644 .btn-red, .btn-red-kx {
617 padding: 0 !important; 645 padding: 0 !important;
618 width: 140rpx; 646 width: 140rpx;
647 border-radius: 30rpx;
648 height: 55rpx;
649 line-height: 55rpx;
619 } 650 }
620 </style> 651 </style>
......
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
47 <view class="payRow "> 47 <view class="payRow ">
48 <radio-group @change="onPayTypeChange"> 48 <radio-group @change="onPayTypeChange">
49 <label class="radioItem"> 49 <label class="radioItem">
50 <radio :checked="payType === '1'" class="custom-radio" value="1"/> 50 <radio :checked="payType === '0'" class="custom-radio" value="0"/>
51 <view class="payInfo"> 51 <view class="payInfo">
52 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon" mode="widthFix"></image> 52 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon" mode="widthFix"></image>
53 <text>民生付</text> 53 <text>民生付</text>
54 </view> 54 </view>
55 </label> 55 </label>
56 <label class="radioItem mt10" > 56 <label class="radioItem mt10">
57 <radio :checked="payType === '3'" class="custom-radio" value="3"/> 57 <radio :checked="payType === '3'" class="custom-radio" value="3"/>
58 <view class="payInfo"> 58 <view class="payInfo">
59 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon" mode="widthFix"></image> 59 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon" mode="widthFix"></image>
...@@ -62,16 +62,16 @@ ...@@ -62,16 +62,16 @@
62 </label> 62 </label>
63 </radio-group> 63 </radio-group>
64 </view> 64 </view>
65 65
66 <!-- 对公转账表单 --> 66 <!-- 对公转账表单 -->
67 <view v-if="payType === '3'" class="card transfer-form"> 67 <view v-if="payType === '3'" class="card transfer-form">
68 <view class="form-item"> 68 <view class="form-item">
69 <text class="form-label">联系人</text> 69 <text class="form-label">联系人</text>
70 <input class="form-input" v-model="form.contactPerson" placeholder="请输入联系人" /> 70 <input v-model="form.contactPerson" class="form-input" placeholder="请输入联系人"/>
71 </view> 71 </view>
72 <view class="form-item"> 72 <view class="form-item">
73 <text class="form-label">联系电话</text> 73 <text class="form-label">联系电话</text>
74 <input class="form-input" v-model="form.contactTel" type="number" placeholder="请输入联系电话" /> 74 <input v-model="form.contactTel" class="form-input" placeholder="请输入联系电话" type="number"/>
75 </view> 75 </view>
76 </view> 76 </view>
77 77
...@@ -156,7 +156,7 @@ const handelPay = async () => { ...@@ -156,7 +156,7 @@ const handelPay = async () => {
156 }) 156 })
157 return 157 return
158 } 158 }
159 159
160 // 对公转账校验 160 // 对公转账校验
161 if (payType.value === '3') { 161 if (payType.value === '3') {
162 if (!form.value.contactPerson) { 162 if (!form.value.contactPerson) {
...@@ -182,7 +182,7 @@ const handelPay = async () => { ...@@ -182,7 +182,7 @@ const handelPay = async () => {
182 return 182 return
183 } 183 }
184 } 184 }
185 185
186 // 显示 loading 186 // 显示 loading
187 uni.showLoading({ 187 uni.showLoading({
188 title: '支付中...', 188 title: '支付中...',
...@@ -190,19 +190,19 @@ const handelPay = async () => { ...@@ -190,19 +190,19 @@ const handelPay = async () => {
190 }) 190 })
191 if (isPaying.value) return 191 if (isPaying.value) return
192 isPaying.value = true 192 isPaying.value = true
193 193
194 // 构建请求参数 194 // 构建请求参数
195 const params = { 195 const params = {
196 renewYear: form.value.renewYear, 196 renewYear: form.value.renewYear,
197 type: payType.value 197 type: payType.value
198 } 198 }
199 199
200 // 对公转账需要传联系人信息 200 // 对公转账需要传联系人信息
201 if (payType.value === '3') { 201 if (payType.value === '3') {
202 params.contactPerson = form.value.contactPerson 202 params.contactPerson = form.value.contactPerson
203 params.contactTel = form.value.contactTel 203 params.contactTel = form.value.contactTel
204 } 204 }
205 205
206 // 创建订单 - 参考PC端逻辑 206 // 创建订单 - 参考PC端逻辑
207 const [orderErr, orderRes] = await to(api.certifiedNew(params)) 207 const [orderErr, orderRes] = await to(api.certifiedNew(params))
208 if (orderErr) { 208 if (orderErr) {
...@@ -214,7 +214,7 @@ const handelPay = async () => { ...@@ -214,7 +214,7 @@ const handelPay = async () => {
214 }) 214 })
215 return 215 return
216 } 216 }
217 217
218 const data = orderRes.data 218 const data = orderRes.data
219 // 无需支付,直接成功 219 // 无需支付,直接成功
220 if (data.payFlag == 0) { 220 if (data.payFlag == 0) {
...@@ -225,7 +225,7 @@ const handelPay = async () => { ...@@ -225,7 +225,7 @@ const handelPay = async () => {
225 }) 225 })
226 return 226 return
227 } 227 }
228 228
229 // 对公转账 - 跳转转账信息页面 229 // 对公转账 - 跳转转账信息页面
230 if (data.payFlag == 2) { 230 if (data.payFlag == 2) {
231 uni.hideLoading() 231 uni.hideLoading()
...@@ -235,7 +235,7 @@ const handelPay = async () => { ...@@ -235,7 +235,7 @@ const handelPay = async () => {
235 }) 235 })
236 return 236 return
237 } 237 }
238 238
239 // 民生支付 239 // 民生支付
240 if (data.payResult && data.payResult.encryptedData) { 240 if (data.payResult && data.payResult.encryptedData) {
241 try { 241 try {
...@@ -452,7 +452,7 @@ async function getZtxDiscountPolicyApi() { ...@@ -452,7 +452,7 @@ async function getZtxDiscountPolicyApi() {
452 align-items: center; 452 align-items: center;
453 padding: 20rpx 0; 453 padding: 20rpx 0;
454 border-bottom: 1rpx solid #f5f5f5; 454 border-bottom: 1rpx solid #f5f5f5;
455 455
456 &:last-child { 456 &:last-child {
457 border-bottom: none; 457 border-bottom: none;
458 } 458 }
......
...@@ -949,7 +949,7 @@ const confirmLogout = () => { ...@@ -949,7 +949,7 @@ const confirmLogout = () => {
949 padding-bottom: 20rpx; 949 padding-bottom: 20rpx;
950 950
951 .logOutBtn { 951 .logOutBtn {
952 background-image: linear-gradient(135deg, #dbbb69 10%, #f0deb0 100%);; 952 background-image: linear-gradient(135deg, #dbbb69 10%, #f0deb0 100%);
953 backdrop-filter: blur(4px); 953 backdrop-filter: blur(4px);
954 width: 80%; 954 width: 80%;
955 border: 1px solid #dadada; 955 border: 1px solid #dadada;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!