popup.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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" v-for="(ite,idx) in phoneList" :key="idx">
  11. <image :src="ite.title.indexOf('投诉')!=-1?phicob:phicoa"></image>
  12. <view>
  13. <view class="co6 mb4">{{ite.title}}</view>
  14. <view class="co27">{{ite.content}}</view>
  15. </view>
  16. </view>
  17. <image :src="closeimg" class="closeimg" @click="getClose"></image>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import config from '@/config'
  23. const baseUrl = config.baseUrl
  24. import { getToken } from '@/utils/auth'
  25. import {uploadmore} from '@/utils/common.js'
  26. export default{
  27. components:{},
  28. props:{
  29. type: {
  30. type: String,
  31. default () {
  32. return ''
  33. }
  34. },
  35. canres:{
  36. type: Array,
  37. default () {
  38. return []
  39. }
  40. },
  41. finshtype:{
  42. type: [String,Number],
  43. default () {
  44. return ''
  45. }
  46. },
  47. phoneList:{
  48. type: Array,
  49. default () {
  50. return []
  51. }
  52. }
  53. },
  54. data(){
  55. return{
  56. baseUrl:config.baseUrl,
  57. closeimg:require("@/static/images/close.png"),
  58. head:require("@/static/images/head.png"),
  59. phicoa:require("@/static/images/phicoa.png"),
  60. phicob:require("@/static/images/phicob.png"),
  61. wytit:require("@/static/images/wytit.png"),
  62. // rimg: require('@/work/static/people/rimg.png'),
  63. // headbg: require('@/work/static/service/headbg.png'),
  64. datainfo:{
  65. iszc:""
  66. },
  67. tabval:0,
  68. }
  69. },
  70. mounted() {
  71. this.baseUrl=baseUrl
  72. },
  73. watch:{
  74. type(val){
  75. // this.filelist=[];
  76. // this.shtext='';
  77. // this.isty='2';
  78. // this.phofile=[];
  79. }
  80. },
  81. methods:{
  82. getClose(){
  83. this.$emit('getClose')
  84. },
  85. getSure(){
  86. this.$emit('getSure')
  87. },
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. .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%);
  93. .wytop{display: flex;align-items: flex-end;margin-bottom: 52rpx;
  94. .imga{width: 230rpx;height: 74rpx;margin-right: 26rpx;}
  95. .imgb{width: 86rpx;height: 86rpx;}
  96. }
  97. .wylist{padding-left: 34rpx;margin-bottom: 28rpx;
  98. image{width: 34rpx;height: 34rpx;margin-right: 16rpx;flex: 0 0 auto;}
  99. view{font-weight: 500;font-size: 26rpx;}
  100. }
  101. }
  102. .closeimg{width: 34rpx;height: 34rpx;position: absolute;bottom: -52rpx;left: 50%;margin-left: -16rpx;}
  103. </style>