From b5686902d35c00e607670f181e225f3bdc39cd0c Mon Sep 17 00:00:00 2001 From: libo Date: Mon, 20 Feb 2023 15:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=9F=E8=AE=A1=E5=BA=94?= =?UTF-8?q?=E7=94=A82.0=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=BA=94=E7=94=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages.json | 14 +- .../pages/SSO/MyApp/attestation.vue | 20 ++- .../LearunApp-2.2.0/pages/SSO/MyApp/list.vue | 26 +-- .../pages/SSO/MyApp20/attestation.vue | 163 ++++++++++++++++++ .../pages/SSO/MyApp20/list.vue | 100 +++++++++++ 5 files changed, 300 insertions(+), 23 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/attestation.vue create mode 100644 Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/list.vue diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json index 34e52c853..c4699cd22 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json @@ -157,7 +157,19 @@ "navigationBarTitleText": "统一认证" } }, - + // 统一应用20 + { + "path": "pages/SSO/MyApp20/list", + "style": { + "navigationBarTitleText": "统一应用2.0" + } + }, + { + "path": "pages/SSO/MyApp20/attestation", + "style": { + "navigationBarTitleText": "统一认证2.0" + } + }, // 通用页面 { "path": "pages/common/select-organize", diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/attestation.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/attestation.vue index 4d0d68042..9d6fa84d7 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/attestation.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/attestation.vue @@ -101,7 +101,8 @@ let _this = this let {UPId,UPUserName,UPPass,FId,UserId} = this if (UPUserName && UPPass) { - _this.HTTP_POST('quanjiang/sso/first', {UPId,FId,UserId,UPUserName,UPPass},'加载数据时出错').then(resitem => { + _this.HTTP_POST( + 'quanjiang/sso/first', {UPId,FId,UserId,UPUserName,UPPass},'加载数据时出错').then(resitem => { let sysid = resitem.FInterfaceUrl.slice(resitem.FInterfaceUrl.indexOf('=') + 1, resitem .FInterfaceUrl.indexOf('&')) let openid = resitem.FInterfaceUrl.slice(resitem.FInterfaceUrl.lastIndexOf('=') + 1) @@ -134,7 +135,7 @@ .title { font-size: 24rpx; text-align: center; - margin-top: 50rpx; + margin-top: 40rpx; color: gray; } @@ -168,31 +169,32 @@ .account { display: flex; align-items: center; - margin-top: 20rpx; + margin-top: 30rpx; justify-content: center; } .account view { - font-size: 30rpx; + font-size: 38rpx; } .account input { border: 1px solid #ccc; - height: 60rpx; + height: 80rpx; font-size: 30rpx; - width: 380rpx; + width: 450rpx; padding-left: 20rpx; } .btnwrap {} .btnwrap button { - width: 40%; - line-height: 40px; + width: 50%; + line-height: 50px; background-color: #0c86d8; text-align: center; color: #fff; border-radius: 4px; - margin: 30px auto; + margin: 40px auto; + font-size: 40rpx; } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/list.vue index e077e5829..d01f3bf3f 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp/list.vue @@ -37,7 +37,6 @@ myList: [], editList: [], searchText: '', - listitem: [], focus: false, edit: false @@ -51,7 +50,6 @@ methods: { // 页面初始化 async init() { - this.LOADING('加载菜单中…') this.HTTP_GET( 'quanjiang/sso/list' @@ -59,11 +57,8 @@ this.listitem = res this.HIDE_LOADING() }) - }, - - // 点击按钮 funcListClick(item) { if(item.FInterfaceUrl.indexOf('http')!=-1){ @@ -75,15 +70,20 @@ url:`/pages/SSO/MyApp/listview?data=`+ encodeURIComponent(JSON.stringify(option)) }) }else{ - let sysid = item.FInterfaceUrl.slice(item.FInterfaceUrl.indexOf('=')+1,item.FInterfaceUrl.indexOf('&')) - let openid = item.FInterfaceUrl.slice(item.FInterfaceUrl.lastIndexOf ('=')+1) - let FName = item.FName - let dataitem = { - sysid,openid,FName + console.log(item.FInterfaceUrl) + let FInterfaceUrldata = item.FInterfaceUrl + if(FInterfaceUrldata.indexOf('sysid')!=-1 && FInterfaceUrldata.indexOf('openid')!=-1 ){ + let sysid = item.FInterfaceUrl.slice(item.FInterfaceUrl.indexOf('sysid')+6,item.FInterfaceUrl.indexOf('openid')-1) + let openid = item.FInterfaceUrl.slice(item.FInterfaceUrl.lastIndexOf ('openid')+7) + let FName = item.FName + let dataitem = { + sysid,openid,FName + } + console.log(dataitem) + uni.navigateTo({ + url:`/pages/SSO/MyApp/attestation?item=${JSON.stringify(dataitem)}` + }) } - uni.navigateTo({ - url:`/pages/SSO/MyApp/attestation?item=${JSON.stringify(dataitem)}` - }) } }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/attestation.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/attestation.vue new file mode 100644 index 000000000..1db5bc02d --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/attestation.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/list.vue new file mode 100644 index 000000000..c28b4edf2 --- /dev/null +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/SSO/MyApp20/list.vue @@ -0,0 +1,100 @@ + + + + + + +