login.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <view class="">
  3. <u-modal v-model="loginshow" width="576" :show-cancel-button="true"
  4. :title-style="{color: 'black',fontWeight:800,fontSize:'32rpx'}">
  5. <view class="slot-content">
  6. <view class="content">
  7. <view class="center">
  8. <image src="../static/common/login.png" style="height: 300rpx;width: 300rpx;" mode=""></image>
  9. </view>
  10. <text class="subtitle">申请获取您的公开信息(昵称,头像)</text>
  11. </view>
  12. </view>
  13. <button @click="getUserInfo" slot="confirm-button" class="cu-btn u-reset-button"
  14. style="width: 100%;height: 100%;border-radius: 0;background-color: #FFFFFF;">确认</button>
  15. </u-modal>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. name: '',
  21. data() {
  22. return {
  23. loginshow: false
  24. };
  25. },
  26. methods: {
  27. getUserInfo() {
  28. this.$u.vuex('vuex_isAuth', true)
  29. this.$emit('signIn')
  30. },
  31. show(){
  32. this.loginshow=true
  33. },
  34. hide(){
  35. this.loginshow=false
  36. }
  37. }
  38. };
  39. </script>
  40. <style lang="scss" scoped>
  41. .slot-content {
  42. padding: 10rpx 0rpx;
  43. }
  44. .content {
  45. display: flex;
  46. justify-content: center;
  47. align-items: center;
  48. flex-direction: column;
  49. padding: 35rpx 0;
  50. .userinfo-avatar {
  51. overflow: hidden;
  52. display: block;
  53. width: 140rpx;
  54. height: 140rpx;
  55. margin: 20rpx 0rpx 40rpx;
  56. border-radius: 50%;
  57. border: 2px solid #fff;
  58. }
  59. .subtitle {
  60. color: #7e7e7e;
  61. font-size: 26upx;
  62. margin-top: 30rpx;
  63. }
  64. }
  65. </style>