This commit is contained in:
丁杰 2026-05-29 15:54:23 +08:00
parent 2e13ec14aa
commit ce03c0de2b
2 changed files with 40 additions and 8 deletions

View File

@ -4,7 +4,7 @@
<custom-navbar :title="navTitle" :showBack="true"></custom-navbar> <custom-navbar :title="navTitle" :showBack="true"></custom-navbar>
<!-- 步骤切换 --> <!-- 步骤切换 -->
<step-tab v-if="currentStep !== 2" :mappedStep="mappedStep"></step-tab> <step-tab v-if="currentStep !== 2 && currentStep !== 4" :mappedStep="mappedStep"></step-tab>
<!-- 内容区域根据身份和步骤显示不同内容 --> <!-- 内容区域根据身份和步骤显示不同内容 -->
<view class="content"> <view class="content">
@ -23,6 +23,10 @@
<view v-else-if="currentStep === 3"> <view v-else-if="currentStep === 3">
<store-info ref="storeInfo"></store-info> <store-info ref="storeInfo"></store-info>
</view> </view>
<view v-else-if="currentStep === 4">
<successruzhu :data="successData"></successruzhu>
</view>
</view> </view>
<view class="kong"></view> <view class="kong"></view>
@ -77,6 +81,15 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 步骤4: 资质认证成功 -->
<view v-else-if="currentStep === 4" class="step-2-buttons">
<view class="button-row">
<view class="showziliao" @click="topt">
<text class="showziliaotext">进入平台</text>
</view>
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -97,7 +110,7 @@ export default {
}, },
data() { data() {
return { return {
currentStep: 3, // currentStep: 4, //
isAgree: false, isAgree: false,
identity: null, identity: null,
textData: {}, textData: {},
@ -119,6 +132,7 @@ export default {
if (this.currentStep === 0) return 0; if (this.currentStep === 0) return 0;
if (this.currentStep === 1) return 1; if (this.currentStep === 1) return 1;
if (this.currentStep === 3) return 2; if (this.currentStep === 3) return 2;
if (this.currentStep === 4) return 2;
return 0; return 0;
} }
}, },
@ -542,13 +556,14 @@ export default {
const res = await request.post('/sj/userSjAuth/apply', formData); const res = await request.post('/sj/userSjAuth/apply', formData);
uni.hideLoading(); uni.hideLoading();
if (res.state == 1 || res.code == 200) { if (res.state == 1 || res.code == 200) {
this.successData = res.data ? (res.data.customer_service || {}) : {};
uni.showToast({ uni.showToast({
title: '提交成功', title: '提交成功',
icon: 'none' icon: 'none'
}); });
uni.navigateTo({ setTimeout(() => {
url: '/pages/shop/qualification_sj_change' this.currentStep = 4;
}) }, 1500);
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg || '提交失败了', title: res.msg || '提交失败了',
@ -770,5 +785,22 @@ export default {
color: #ffffff; color: #ffffff;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
}
.showziliao{
width: 690rpx;
height: 98rpx;
background: #FF4767;
border-radius: 49rpx;
}
.showziliaotext{
height: 40rpx;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
line-height: 80rpx;
font-style: normal;
margin: 0 0 0 281rpx;
align-items: center;
} }
</style> </style>

View File

@ -1,8 +1,8 @@
<template> <template>
<view class="pages"> <view class="pages">
<custom-navbar :title="infoData.notice" :showBack="true"></custom-navbar> <custom-navbar :title="infoData.top" :showBack="true"></custom-navbar>
<view class="title-icon">{{infoData.top}}</view> <view class="title-icon">{{infoData.title}}</view>
<view class="title-content">{{infoData.title}}</view> <view class="title-content">{{infoData.notice}}</view>
<view class="erweimabox"> <view class="erweimabox">
<view class="erweimab"> <view class="erweimab">
<image :src="infoData.photo" mode="widthFix" <image :src="infoData.photo" mode="widthFix"