完成商户进件查询功能
This commit is contained in:
parent
b9ce0ed741
commit
61b44c2e5f
@ -218,12 +218,13 @@ page {
|
|||||||
.submit-section {
|
.submit-section {
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit-btn {
|
.submit-btn,
|
||||||
|
.submit-btn1 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
background-color: #007aff;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
@ -232,6 +233,16 @@ page {
|
|||||||
box-shadow: 0 4rpx 12rpx rgba(0, 122, 255, 0.3);
|
box-shadow: 0 4rpx 12rpx rgba(0, 122, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.submit-btn {
|
||||||
|
background-color: #007aff;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submit-btn1 {
|
||||||
|
background-color: #ff4016;
|
||||||
|
margin-right: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.submit-btn:active {
|
.submit-btn:active {
|
||||||
background-color: #0051d5;
|
background-color: #0051d5;
|
||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
|
|||||||
@ -173,6 +173,7 @@
|
|||||||
|
|
||||||
<!-- 提交按钮 -->
|
<!-- 提交按钮 -->
|
||||||
<view class="form-section submit-section">
|
<view class="form-section submit-section">
|
||||||
|
<button type="button" class="submit-btn1" @click="ecQuery">结果查询</button>
|
||||||
<button type="submit" class="submit-btn" @click="submitForm">提交申请</button>
|
<button type="submit" class="submit-btn" @click="submitForm">提交申请</button>
|
||||||
</view>
|
</view>
|
||||||
</form>
|
</form>
|
||||||
@ -635,6 +636,40 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
ecQuery() {
|
||||||
|
const storeValue = uni.getStorageSync('storeValue');
|
||||||
|
if (!storeValue || !storeValue.ec_apply_id) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先提交申请',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const params = {
|
||||||
|
contractId: storeValue.contractId
|
||||||
|
}
|
||||||
|
request(apiArr.queryMerchant, "POST", params).then(res => {
|
||||||
|
if (res.respData.contractStatus === 'REVIEW_ING') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '审核通过',
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
uni.setStorageSync('storeValue', { merInnerNo: res.respData.merInnerNo });
|
||||||
|
uni.setStorageSync('storeValue', { merCupNo: res.respData.merCupNo });
|
||||||
|
} else if (res.respData.contractStatus === 'WAIT_FOR_CONTACT') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '审核驳回',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
} else if (res.respData.contractStatus === 'MANUAL_AUDIT') {
|
||||||
|
uni.showToast({
|
||||||
|
title: '审核中',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
// 表单提交逻辑
|
// 表单提交逻辑
|
||||||
submitForm() {
|
submitForm() {
|
||||||
// 验证表单
|
// 验证表单
|
||||||
@ -691,22 +726,11 @@ export default {
|
|||||||
// 调用addMer接口提交数据
|
// 调用addMer接口提交数据
|
||||||
request(apiArr.addMer, "POST", submitData).then(res => {
|
request(apiArr.addMer, "POST", submitData).then(res => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
|
||||||
if (res && res.cmdRetCode === 'SUCCESS') {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '提交成功',
|
title: '提交成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
|
uni.setStorageSync('storeValue', { contractId: res.respData.contractId });
|
||||||
setTimeout(() => {
|
|
||||||
uni.navigateBack();
|
|
||||||
}, 1500);
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: res?.retMsg || '提交失败',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
console.error('提交失败:', error);
|
console.error('提交失败:', error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user