You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

164 lines
2.9 KiB

  1. <template>
  2. <view class="wrap">
  3. <view class="imgwrap">
  4. <image src="@/static/SSO/attes.png" mode=""></image>
  5. </view>
  6. <view class="title">IDENTITY AUTHENTICATION</view>
  7. <view class="titletext">统一身份认证平台</view>
  8. <view>
  9. <view v-if="firsttype">
  10. <view class="loading">系统认证中,请耐心等待......</view>
  11. </view>
  12. <view v-else>
  13. <view class="logintitle">用户登录</view>
  14. <view class="logintext">首次登录,请输入账号密码。</view>
  15. <view class="account" style="margin-top: 30rpx;">
  16. <view>账号:</view>
  17. <input v-model="UPUserName" class="uni-input" focus placeholder="请输入账号" />
  18. </view>
  19. <view class="account">
  20. <view>密码:</view>
  21. <input v-model="UPPass" class="uni-input" password="" placeholder="请输入密码" />
  22. </view>
  23. <view class="btnwrap">
  24. <button @click="register">登录</button>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. dataitem: '',
  35. FName: '',
  36. appid: '',
  37. firsttype: true,
  38. UPUserName: '',
  39. UPPass: '',
  40. UPId: '',
  41. FId: '',
  42. UserId: ''
  43. }
  44. },
  45. onLoad(data) {
  46. this.dataitem = JSON.parse(data.item)
  47. this.FName = this.dataitem.FName;
  48. this.appid = this.dataitem.appid;
  49. setTimeout(() => {
  50. this.gotolist()
  51. }, 1000)
  52. },
  53. methods: {
  54. gotolist() {
  55. let _this = this
  56. const { appid } = this
  57. // console.log(appid)
  58. this.HTTP_GET(
  59. 'quanjiang/sso/goto20', {
  60. appid
  61. },
  62. '加载数据时出错'
  63. ).then(res => {
  64. let option = {
  65. FInterfaceUrl:res.FInterfaceUrl,
  66. FName:this.FName
  67. }
  68. uni.redirectTo({
  69. url:`/pages/SSO/MyApp/listview?data=`+ encodeURIComponent(JSON.stringify(option))
  70. })
  71. })
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="less">
  77. .imgwrap {
  78. width: 214rpx;
  79. margin: 0 auto;
  80. padding-top: 100rpx;
  81. font-size: 0;
  82. }
  83. .imgwrap image {
  84. width: 214rpx;
  85. height: 200rpx;
  86. display: block;
  87. }
  88. .title {
  89. font-size: 24rpx;
  90. text-align: center;
  91. margin-top: 40rpx;
  92. color: gray;
  93. }
  94. .titletext {
  95. font-size: 50rpx;
  96. text-align: center;
  97. margin-top: 20rpx;
  98. }
  99. .loading {
  100. font-size: 28rpx;
  101. text-align: center;
  102. margin-top: 50rpx;
  103. color: goldenrod;
  104. }
  105. .logintitle {
  106. font-size: 36rpx;
  107. text-align: center;
  108. margin-top: 90rpx;
  109. color: gray;
  110. }
  111. .logintext {
  112. font-size: 28rpx;
  113. text-align: center;
  114. margin-top: 30rpx;
  115. color: goldenrod;
  116. }
  117. .account {
  118. display: flex;
  119. align-items: center;
  120. margin-top: 30rpx;
  121. justify-content: center;
  122. }
  123. .account view {
  124. font-size: 38rpx;
  125. }
  126. .account input {
  127. border: 1px solid #ccc;
  128. height: 80rpx;
  129. font-size: 30rpx;
  130. width: 450rpx;
  131. padding-left: 20rpx;
  132. }
  133. .btnwrap {}
  134. .btnwrap button {
  135. width: 50%;
  136. line-height: 50px;
  137. background-color: #0c86d8;
  138. text-align: center;
  139. color: #fff;
  140. border-radius: 4px;
  141. margin: 40px auto;
  142. font-size: 40rpx;
  143. }
  144. </style>