pointAuth.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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="aspectFill" src="../../static/poster/bg_shouyetc.png">
  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: false,
  16. popupStyle: {
  17. 'u-mode-center-box': 'red'
  18. },
  19. customStyle: {
  20. color: 'white',
  21. background: "#E72226",
  22. width: '400rpx',
  23. margin: '25rpx auto'
  24. }
  25. };
  26. },
  27. methods: {
  28. showAuth(){
  29. this.show = true;
  30. },
  31. hide(){
  32. this.show = false;
  33. },
  34. getphonenumber(e){
  35. console.log(e);
  36. this.$emit('getphonenumber',e)
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .auth-bg{
  43. width: 100%;
  44. height: 266rpx;
  45. }
  46. .auth-msg{
  47. padding: 40rpx 40rpx 20rpx 40rpx;
  48. display: flex;
  49. align-items: center;
  50. justify-content: left;
  51. }
  52. </style>