popup.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view>
  3. <!-- 弹窗 -->
  4. <view class="bgbox" @click="getClose" v-if="type"></view>
  5. <!-- 弹窗 -->
  6. <!-- 暂存提案的弹窗 -->
  7. <view class="fixedbox" v-if="type=='zcta'">
  8. <view class="ttit">提示</view>
  9. <view class="boxs">
  10. <view class="ztit">您有一条暂存信息还未提交</view>
  11. <view class="ztit">是否继续编辑?</view>
  12. <view class="ztit mb32">查看<text @click="getFaFn('old',type)">暂存信息</text></view>
  13. </view>
  14. <view class="fixedbtn flexcj">
  15. <view class="btns btn1" @click="getFaFn('new',type)">重新发布</view>
  16. <view class="btns btn2" @click="getFaFn('old',type)">继续发布</view>
  17. </view>
  18. </view>
  19. <!-- 委员信息弹窗 -->
  20. <view class="bgbox" style="z-index: 100;" v-if="initFace=='N'"></view>
  21. <view class="fixedbox" style="z-index: 101;" v-if="initFace=='N'">
  22. <view class="ttit">提示</view>
  23. <view class="boxs">
  24. <view class="ztit">您的认证信息暂未完善,请完善</view>
  25. </view>
  26. <view class="fixedbtn flexcj">
  27. <view class="btns btn2 flex1" @click="getXxwsFn">去完善</view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  34. import config from '@/config'
  35. const baseUrl = config.baseUrl
  36. import { getToken } from '@/utils/auth'
  37. export default{
  38. props:{
  39. type: {
  40. type: String,
  41. default () {
  42. return ''
  43. }
  44. },
  45. initFace:{
  46. type: [String,Number],
  47. default () {
  48. return 'N'
  49. }
  50. }
  51. },
  52. data(){
  53. return{
  54. }
  55. },
  56. watch:{
  57. },
  58. onShow() {
  59. },
  60. mounted() {
  61. },
  62. methods:{
  63. checkPermi, checkRole,
  64. getClose(){
  65. this.$emit("getClose")
  66. },
  67. getFaFn(type,ptype){
  68. this.$emit('getFaFn',type,ptype)
  69. },
  70. getXxwsFn(){
  71. this.$emit('getXxwsFn')
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. // 弹窗
  78. .fixedbox{position: fixed;left: 136rpx;right: 136rpx;background: #fff;border-radius: 10rpx;top: 50%;transform: translateY(-50%);z-index: 10;padding: 40rpx 24rpx 52rpx;max-height: calc(100vh - 300rpx);overflow: auto;box-sizing: border-box;
  79. .ttit{position: relative;text-align: center;font-weight: bold;font-size: 36rpx;color: #222327;margin-bottom: 38rpx;}
  80. .boxs{
  81. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;
  82. text{margin-right: 6rpx;}
  83. }
  84. .ztit{font-weight: 500;font-size: 26rpx;color: #222327;text-align: center;line-height: 56rpx;text-align: center;
  85. text{color: #00A9F0;;margin: 0 6rpx;}
  86. }
  87. }
  88. .fixedbtn{margin-top: 48rpx;
  89. .btns{width: 192rpx;height: 70rpx;border-radius: 35rpx;font-weight: bold;
  90. font-size: 26rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  91. &.btn1{color: #00A9F0;border: 2rpx solid #00A9F0;}
  92. &.btn2{color: #ffffff;background: #00A9F0;}
  93. }
  94. }
  95. }
  96. </style>