popup.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view>
  3. <!-- 信息弹窗 -->
  4. <view class="bgbox" style="z-index: 100;" v-if="initFace=='Y'"></view>
  5. <view class="fixedbox" style="z-index: 101;" v-if="initFace=='Y'">
  6. <image :src="tiptit" class="imga"></image>
  7. <view class="boxs">
  8. <view class="ztit">您的信息暂未完善,请前去完善</view>
  9. <view class="ztit">解锁更多内容</view>
  10. </view>
  11. <view class="fixedbtn flexcj">
  12. <view class="btns btn2 flex1" @click="getXxwsFn">去完善</view>
  13. </view>
  14. <image :src="closeimg" class="closeimg" @click="getClose"></image>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import config from '@/config'
  20. const baseUrl = config.baseUrl
  21. import { getToken } from '@/utils/auth'
  22. import {uploadmore} from '@/utils/common.js'
  23. export default{
  24. components:{},
  25. props:{
  26. type: {
  27. type: String,
  28. default () {
  29. return ''
  30. }
  31. },
  32. initFace:{
  33. type: [String,Number],
  34. default () {
  35. return 'N'
  36. }
  37. },
  38. phoneList:{
  39. type: Array,
  40. default () {
  41. return []
  42. }
  43. }
  44. },
  45. data(){
  46. return{
  47. baseUrl:config.baseUrl,
  48. closeimg:require("@/static/images/close.png"),
  49. tiptit:require("@/static/images/tiptit.png"),
  50. // rimg: require('@/work/static/people/rimg.png'),
  51. // headbg: require('@/work/static/service/headbg.png'),
  52. datainfo:{
  53. iszc:""
  54. },
  55. tabval:0,
  56. }
  57. },
  58. mounted() {
  59. this.baseUrl=baseUrl
  60. },
  61. watch:{
  62. type(val){
  63. // this.filelist=[];
  64. // this.shtext='';
  65. // this.isty='2';
  66. // this.phofile=[];
  67. }
  68. },
  69. methods:{
  70. getClose(){
  71. this.$emit('getClose')
  72. },
  73. getSure(){
  74. this.$emit('getSure')
  75. },
  76. getXxwsFn(){
  77. this.$emit('getXxwsFn')
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .closeimg{width: 34rpx;height: 34rpx;position: absolute;bottom: -52rpx;left: 50%;margin-left: -16rpx;}
  84. .fixedbox{position: fixed;left: 160rpx;right: 160rpx;background: #fff;border-radius: 20rpx;top: 50%;transform: translateY(-50%);z-index: 10;padding: 32rpx 28rpx 40rpx;box-sizing: border-box;background: linear-gradient(0deg, #FFFFFF, #DAF3FF);
  85. .imga{width: 230rpx;height: 70rpx;display: block;margin: 0 auto 36rpx;}
  86. .boxs{
  87. .ztit{font-weight: 500;font-size: 26rpx;color: #343434;text-align: center;line-height: 48rpx;text-align: center;
  88. }
  89. }
  90. .fixedbtn{margin: 36rpx 2rpx 0;
  91. .btns{width: 192rpx;height: 70rpx;border-radius: 36rpx;font-weight: bold;
  92. font-size: 26rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  93. // &.btn1{color: #00A9F0;border: 2rpx solid #00A9F0;margin-right: 24rpx;}
  94. &.btn2{background: #DAF3FF;color: #5f94fb;border: 2rpx solid #7aa3f3;}
  95. }
  96. }
  97. .closeimg{bottom: -58rpx;}
  98. }
  99. </style>