popup.vue 3.2 KB

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