popup.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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'">
  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')">暂存提案</text></view>
  25. </view>
  26. <view class="fixedbtn flexcj">
  27. <view class="btns btn1" @click="getFaFn('new')">重新发布</view>
  28. <view class="btns btn2" @click="getFaFn('old')">继续发布</view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  35. import config from '@/config'
  36. const baseUrl = config.baseUrl
  37. import { getToken } from '@/utils/auth'
  38. export default{
  39. props:{
  40. type: {
  41. type: String,
  42. default () {
  43. return ''
  44. }
  45. },
  46. },
  47. data(){
  48. return{
  49. }
  50. },
  51. watch:{
  52. },
  53. onShow() {
  54. },
  55. mounted() {
  56. },
  57. methods:{
  58. checkPermi, checkRole,
  59. getClose(){
  60. this.$emit("getClose")
  61. },
  62. getFaFn(type){
  63. this.$emit('getFaFn',type)
  64. },
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. // 弹窗
  70. .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;
  71. .ttit{position: relative;text-align: center;font-weight: bold;font-size: 36rpx;color: #222327;margin-bottom: 38rpx;}
  72. .boxs{
  73. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;
  74. text{margin-right: 6rpx;}
  75. }
  76. .ztit{font-weight: 500;font-size: 26rpx;color: #222327;text-align: center;line-height: 56rpx;text-align: center;
  77. text{color: #1D64E2;;margin: 0 6rpx;}
  78. }
  79. }
  80. .fixedbtn{margin-top: 48rpx;
  81. .btns{width: 192rpx;height: 70rpx;border-radius: 35rpx;font-weight: bold;
  82. font-size: 26rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  83. &.btn1{color: #1D64E2;border: 2rpx solid #1D64E2;}
  84. &.btn2{color: #ffffff;background: #1D64E2;}
  85. }
  86. }
  87. }
  88. </style>