popup.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view>
  3. <!-- 弹窗 -->
  4. <view class="bgbox" @click="getClose" v-if="type"></view>
  5. <!-- 提示 -->
  6. <view class="tips" v-if="type==1">
  7. <image :src="bgimg" class="bgimg"></image>
  8. <view class="tipa">
  9. <view class="tit mb12">温馨提示</view>
  10. <view class="txt">您当前已有<text>1</text>条预约申请</view>
  11. <view class="txt">可前往查看详情</view>
  12. <view class="flexcj mt16">
  13. <view class="tbtn btn1" @click="getClose">查看详情</view>
  14. <view class="tbtn btn2" @click="getClose">我知道了</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default{
  22. props:{
  23. type: {
  24. type: Number,
  25. default () {
  26. return 0
  27. }
  28. },
  29. },
  30. watch:{
  31. },
  32. data(){
  33. return{
  34. // type:0,
  35. bgimg:require("@/static/images/order/come/ytbg.png"),
  36. }
  37. },
  38. mounted() {
  39. },
  40. methods:{
  41. getClose(){
  42. this.$emit("getClose")
  43. },
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. // 公共
  49. // end
  50. .tips{
  51. position: fixed;left: 100rpx;right: 100rpx;height: 494rpx;top: 50%;margin-top: -280rpx;border-radius: 14rpx;z-index: 10;background: #FEFEFE;
  52. padding-bottom: 36rpx;box-sizing: border-box;
  53. .bgimg{width: 100%;height: 204rpx;}
  54. .tipa{padding:4rpx 40rpx 0;
  55. .tit{font-size: 30rpx;font-weight: bold;color: #000000;text-align: center;}
  56. .txt{font-size: 30rpx;font-weight: 500;color: #666666;text-align: center;
  57. text{color: $com-cd3;padding: 0 4rpx;}
  58. }
  59. .tbtn{text-align: center;font-size: 30rpx;font-weight: 500;flex:0 0 auto;width: 214rpx;height: 70rpx;border-radius: 35rpx;line-height: 70rpx;
  60. &.btn1{color: #666666;;border: 2rpx solid #E6E6E6;}
  61. &.btn2{color: $com-cd3;border: 1px solid $com-cd3;}
  62. }
  63. }
  64. }
  65. </style>