popup.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view>
  3. <!-- 弹窗 -->
  4. <view class="bgbox" @click="getClose" v-if="type"></view>
  5. <view v-if="type=='wygj'" class="wygjbox">
  6. <view class="wytop">
  7. <image :src="wytit" class="imga"></image>
  8. <image :src="head" class="imgb"></image>
  9. </view>
  10. <view class="wylist flexc">
  11. <image :src="phicoa"></image>
  12. <view>
  13. <view class="co6 mb4">管家电话</view>
  14. <view class="co27">18756900034</view>
  15. </view>
  16. </view>
  17. <view class="wylist flexc">
  18. <image :src="phicoa"></image>
  19. <view>
  20. <view class="co6 mb4">物业电话</view>
  21. <view class="co27">0551-5688168</view>
  22. </view>
  23. </view>
  24. <view class="wylist flexc">
  25. <image :src="phicob"></image>
  26. <view>
  27. <view class="co6 mb4">投诉电话</view>
  28. <view class="co27">18308560681</view>
  29. </view>
  30. </view>
  31. <image :src="closeimg" class="closeimg" @click="getClose"></image>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import config from '@/config'
  37. const baseUrl = config.baseUrl
  38. import { getToken } from '@/utils/auth'
  39. import {uploadmore} from '@/utils/common.js'
  40. export default{
  41. components:{},
  42. props:{
  43. type: {
  44. type: String,
  45. default () {
  46. return ''
  47. }
  48. },
  49. canres:{
  50. type: Array,
  51. default () {
  52. return []
  53. }
  54. },
  55. finshtype:{
  56. type: [String,Number],
  57. default () {
  58. return ''
  59. }
  60. }
  61. },
  62. data(){
  63. return{
  64. baseUrl:config.baseUrl,
  65. closeimg:require("@/static/images/close.png"),
  66. head:require("@/static/images/head.png"),
  67. phicoa:require("@/static/images/phicoa.png"),
  68. phicob:require("@/static/images/phicob.png"),
  69. wytit:require("@/static/images/wytit.png"),
  70. // rimg: require('@/work/static/people/rimg.png'),
  71. // headbg: require('@/work/static/service/headbg.png'),
  72. datainfo:{
  73. iszc:""
  74. },
  75. tabval:0,
  76. }
  77. },
  78. mounted() {
  79. this.baseUrl=baseUrl
  80. },
  81. watch:{
  82. type(val){
  83. // this.filelist=[];
  84. // this.shtext='';
  85. // this.isty='2';
  86. // this.phofile=[];
  87. }
  88. },
  89. methods:{
  90. getClose(){
  91. this.$emit('getClose')
  92. },
  93. getSure(){
  94. this.$emit('getSure')
  95. },
  96. }
  97. }
  98. </script>
  99. <style lang="scss" scoped>
  100. .wygjbox{position: fixed;left:166rpx;right: 166rpx;background: linear-gradient(0deg, #FFFFFF, #FEF6E1);border-radius: 20rpx;padding: 26rpx 38rpx 12rpx;z-index: 10;top: 40%;transform: translateY(-50%);
  101. .wytop{display: flex;align-items: flex-end;margin-bottom: 52rpx;
  102. .imga{width: 230rpx;height: 74rpx;margin-right: 26rpx;}
  103. .imgb{width: 86rpx;height: 86rpx;}
  104. }
  105. .wylist{padding-left: 34rpx;margin-bottom: 28rpx;
  106. image{width: 34rpx;height: 34rpx;margin-right: 16rpx;flex: 0 0 auto;}
  107. view{font-weight: 500;font-size: 26rpx;}
  108. }
  109. }
  110. .closeimg{width: 34rpx;height: 34rpx;position: absolute;bottom: -52rpx;left: 50%;margin-left: -16rpx;}
  111. </style>