dmYaoyueDialog.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <dm-pop-view ref='popView' :isShowTitle="false" :isShowClose="true" :isShowConfirm="true" :maskTapHide='maskTapHide'>
  3. <view class="content" >
  4. <image v-if="isError" src="../../static/icons/complete_failure.png" mode="" class="img_notice"></image>
  5. <image v-else src="../../static/icons/icon_gandanhao.png" mode="" class="img_notice"></image>
  6. <view class="time_content">{{title}}</view>
  7. <view class="content_desc">
  8. {{desc}}
  9. </view>
  10. </view>
  11. </dm-pop-view>
  12. </template>
  13. <script>
  14. import dmPopView from './dmPopView.vue'
  15. let app = getApp();
  16. import {
  17. dateFormat,
  18. mobileFormat
  19. } from "../../static/format.js"
  20. export default {
  21. props: {
  22. maskTapHide: {
  23. type: Boolean,
  24. default: true
  25. },
  26. isError: {
  27. type: Boolean,
  28. default: true
  29. },
  30. confirmStr: {
  31. type: String,
  32. default: '确认'
  33. },
  34. title:String,
  35. desc:String
  36. },
  37. data() {
  38. return {
  39. themeColor: null,
  40. fuzhuColor: null,
  41. themeColor50: null,
  42. themeColor25: null,
  43. fuzhuColor50: null,
  44. }
  45. },
  46. mounted() {
  47. this.themeColor = app.globalData.themeColor
  48. this.themeColor50 = app.globalData.themeColor50
  49. this.themeColor25 = app.globalData.themeColor25
  50. this.fuzhuColor = app.globalData.fuzhuColor
  51. this.fuzhuColor50 = app.globalData.fuzhuColor50
  52. },
  53. filters:{
  54. dateFormatFilter(val){
  55. return dateFormat(val)
  56. }
  57. },
  58. methods: {
  59. show() {
  60. this.$refs.popView.show()
  61. },
  62. knowAction(){
  63. this.$refs.popView.hide()
  64. },
  65. confirmAction() {
  66. this.$refs.popView.hide()
  67. this.$emit('confirmAction')
  68. }
  69. },
  70. components: {
  71. dmPopView
  72. }
  73. }
  74. </script>
  75. <style scoped lang="scss">
  76. .content {
  77. width: 100%;
  78. height: 400rpx;
  79. font-family: Verdana;
  80. display: flex;
  81. flex-direction: column;
  82. .img_notice{
  83. width: 59px;
  84. height: 59px;
  85. margin: 0 auto;
  86. margin-top: 120rpx;
  87. }
  88. .content-des {
  89. color: #333333;
  90. font-size: 32rpx;
  91. font-weight: bold;
  92. margin-top: 60rpx;
  93. text-align: center;
  94. margin-right: 20rpx;
  95. }
  96. .time_content{
  97. font-size: 16px;
  98. font-family: Verdana, Verdana-Bold;
  99. font-weight: 700;
  100. text-align: center;
  101. color: #333333;
  102. margin-top: 20rpx;
  103. }
  104. .content_desc{
  105. font-size: 12px;
  106. font-family: Verdana, Verdana-Regular;
  107. font-weight: 400;
  108. text-align: center;
  109. color: #999999;
  110. margin-left: 20rpx;
  111. margin-right: 20rpx;
  112. margin-top: 2rpx;
  113. }
  114. .goBtn {
  115. width: 260rpx;
  116. height: 84rpx;
  117. border-radius: 42rpx;
  118. margin-left: calc((100% - 260rpx) / 2);
  119. margin-top: 50rpx;
  120. font-size: 32rpx;
  121. color: #FFFFFF;
  122. line-height: 84rpx;
  123. text-align: center;
  124. }
  125. .knowBtn {
  126. width: 260rpx;
  127. height: 84rpx;
  128. border-radius: 42rpx;
  129. margin-left: calc((100% - 260rpx) / 2);
  130. margin-top: 20rpx;
  131. color: #666666;
  132. font-size: 32rpx;
  133. line-height: 84rpx;
  134. text-align: center;
  135. }
  136. }
  137. </style>