popup.vue 2.3 KB

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