popup.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. </view>
  19. </template>
  20. <script>
  21. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  22. import config from '@/config'
  23. const baseUrl = config.baseUrl
  24. import { getToken } from '@/utils/auth'
  25. export default{
  26. props:{
  27. type: {
  28. type: String,
  29. default () {
  30. return ''
  31. }
  32. },
  33. },
  34. data(){
  35. return{
  36. }
  37. },
  38. watch:{
  39. },
  40. onShow() {
  41. },
  42. mounted() {
  43. },
  44. methods:{
  45. checkPermi, checkRole,
  46. getClose(){
  47. this.$emit("getClose")
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. // 弹窗
  54. .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;
  55. .ttit{position: relative;text-align: center;font-weight: bold;font-size: 36rpx;color: #222327;margin-bottom: 38rpx;}
  56. .boxs{
  57. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;
  58. text{margin-right: 6rpx;}
  59. }
  60. .ztit{font-weight: 500;font-size: 26rpx;color: #222327;text-align: center;line-height: 56rpx;text-align: center;
  61. text{color: #1D64E2;;margin: 0 6rpx;}
  62. }
  63. }
  64. .fixedbtn{margin-top: 48rpx;
  65. .btns{width: 192rpx;height: 70rpx;border-radius: 35rpx;font-weight: bold;
  66. font-size: 26rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  67. &.btn1{color: #1D64E2;border: 2rpx solid #1D64E2;}
  68. &.btn2{color: #ffffff;background: #1D64E2;}
  69. }
  70. }
  71. }
  72. </style>