From f4fd78955ec75a385bc965dfc14265a3bf54e572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=BD=A6=E7=A5=96?= <605893810@qq.com> Date: Sat, 16 Aug 2025 00:14:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=AE=A2=E5=8D=95id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/contract/index.vue | 49 ++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/pages/contract/index.vue b/pages/contract/index.vue index 4461b37..28e9c70 100644 --- a/pages/contract/index.vue +++ b/pages/contract/index.vue @@ -3,12 +3,11 @@
- + + - + @@ -35,47 +34,46 @@ export default { flowId: null, signUrl: null, downShow: false, - selectItem: null, - tipsShow:false, - userInfo:null + tipsShow: false, + userInfo: null }; }, onShow() { }, - onLoad(){ + onLoad() { this.init(); this.userinfo(); }, methods: { init() { this.isSignContract() - + }, - userinfo(){ - getUserInfo().then(res=>{ - if(res.bizcode == 100){ + userinfo() { + getUserInfo().then(res => { + if (res.bizcode == 100) { this.userInfo = res.data; } - console.log('res',res) + console.log('res', res) }) }, - onConfirm(){ + onConfirm() { this.onTipsCancel(); uni.navigateTo({ - url:'/pages/mine_package/mine_authentication/mine_authentication' + url: '/pages/mine_package/mine_authentication/mine_authentication' }) }, - onTipsCancel(){ - this.tipsShow =false; + onTipsCancel() { + this.tipsShow = false; }, - onCancel(){ + onCancel() { this.downShow = false; }, isSignContract() { signContract().then(res => { if (res.bizcode == 100) { this.type = res.data; - if(this.type){ + if (this.type) { this.getSignContract() } } else { @@ -112,11 +110,11 @@ export default { }, // 发起合同签章 async onSignContract() { - if(this.userInfo.certStatus == 0){ + if (this.userInfo.certStatus == 0) { this.downShow = false; this.tipsShow = true; return; - }else if(this.userInfo.certStatus == 1){ + } else if (this.userInfo.certStatus == 1) { this.downShow = false; this.$refs.uToastRef.show({ type: 'success', @@ -124,11 +122,8 @@ export default { }); return; } - const params = { - // 需要的参数 - orderId: this.selectItem.id, - } - const { bizcode, data } = await signContract(params); + + const { bizcode, data } = await signContract(); if (bizcode === 100) { this.flowId = data.flowId;