authorize.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view>
  3. <view class='popup-box' >
  4. <view class='title'>申请授权</view>
  5. <view class='tip'>获得你的公开信息(昵称、头像等),以便为您提供更好的服务</view>
  6. <view class='bottom flex'>
  7. <view class='item' @click="close">随便逛逛</view>
  8. <button class='item grant' type="primary" @click="login">去授权</button>
  9. </view>
  10. </view>
  11. <view class='mask'></view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name:"authorize",
  17. data() {
  18. return {
  19. };
  20. },
  21. methods:{
  22. login(){
  23. uni.navigateTo({
  24. url: "/pages/public/login"
  25. })
  26. },
  27. }
  28. }
  29. </script>
  30. <style>
  31. .popup-box{
  32. width:500rpx;
  33. background-color:#fff;
  34. position:fixed;
  35. top:50%;
  36. left:50%;
  37. margin-left:-250rpx;
  38. transform:translateY(-50%);
  39. z-index:311220;
  40. }
  41. .popup-box .title{
  42. font-size:28rpx;
  43. color:#000;
  44. text-align:center;
  45. margin-top: 30rpx;
  46. }
  47. .popup-box .tip{
  48. font-size:22rpx;
  49. color:#555;
  50. padding:0 24rpx;
  51. margin-top:25rpx;
  52. }
  53. .popup-box .bottom .item{
  54. width:50%;
  55. height:80rpx;
  56. background-color:#eeeeee;
  57. text-align:center;
  58. line-height:80rpx;
  59. font-size:24rpx;
  60. color:#666;
  61. margin-top:54rpx;
  62. }
  63. .popup-box .bottom .item.on{
  64. width: 100%;
  65. }
  66. .flex{
  67. display:flex;
  68. }
  69. .popup-box .bottom .item.grant{
  70. font-size:28rpx;
  71. color:#fff;
  72. font-weight:bold;
  73. background-color:#58be6b;
  74. border-radius:0;
  75. padding:0;
  76. }
  77. .mask{
  78. position:fixed;
  79. top:0;
  80. right:0;
  81. left:0;
  82. bottom:0;
  83. background-color:rgba(0,0,0,0.3);
  84. z-index:311110;
  85. }
  86. </style>