pointAuth.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <u-popup :custom-style="popupStyle" class="auth-point" v-model="show" mode="center" width="80%" border-radius="18" >
  3. <image class="auth-bg" mode="widthFix" src="/static/test/auth.jpg">
  4. <view class="auth-msg">
  5. </view>
  6. <u-button open-type="getPhoneNumber" @getphonenumber="getphonenumber" :custom-style="customStyle" shape="circle" >去授权</u-button>
  7. </image>
  8. </u-popup>
  9. </template>
  10. <script>
  11. export default {
  12. name:"pointAuth",
  13. data() {
  14. return {
  15. show: true,
  16. popupStyle: {
  17. 'u-mode-center-box': 'red'
  18. },
  19. customStyle: {
  20. color: 'white',
  21. background: "#E72226",
  22. width: '400rpx',
  23. margin: '30rpx auto'
  24. }
  25. };
  26. },
  27. methods: {
  28. showAuth(){
  29. this.show = true;
  30. },
  31. hide(){
  32. this.show = false;
  33. },
  34. getphonenumber(e){
  35. this.$emit('auth',e)
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .auth-bg{
  42. width: 100%;
  43. }
  44. .auth-msg{
  45. padding: 0rpx 40rpx 20rpx 40rpx;
  46. display: flex;
  47. align-items: center;
  48. justify-content: left;
  49. }
  50. </style>