dmLogoutPicker.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <dm-pop-view ref='popView' :isShowTitle="false" :isShowClose="false" :isShowConfirm="false" :maskTapHide='maskTapHide'>
  3. <view class="content">
  4. <view class="content-des">{{desContent}}</view>
  5. <view class="goBtn" :style="`background-color: ${themeColor};`" @click="confirmAction">{{confirmStr}}</view>
  6. <view class="knowBtn" @click="knowAction">{{cancelStr}}</view>
  7. </view>
  8. </dm-pop-view>
  9. </template>
  10. <script>
  11. import dmPopView from './dmPopView.vue'
  12. /**
  13. * This project is my writed, it’s very bad, it can run very good, wish you good luck
  14. */
  15. let app = getApp();
  16. export default {
  17. props: {
  18. maskTapHide: {
  19. type: Boolean,
  20. default: true
  21. },
  22. desContent: String,
  23. confirmStr: {
  24. type: String,
  25. default: '确认'
  26. },
  27. cancelStr: {
  28. type: String,
  29. default: '我再看看'
  30. }
  31. },
  32. data() {
  33. return {
  34. themeColor: null,
  35. fuzhuColor: null,
  36. themeColor50: null,
  37. themeColor25: null,
  38. fuzhuColor50: null,
  39. }
  40. },
  41. mounted() {
  42. this.themeColor = app.globalData.themeColor
  43. this.themeColor50 = app.globalData.themeColor50
  44. this.themeColor25 = app.globalData.themeColor25
  45. this.fuzhuColor = app.globalData.fuzhuColor
  46. this.fuzhuColor50 = app.globalData.fuzhuColor50
  47. },
  48. methods: {
  49. show() {
  50. this.$refs.popView.show()
  51. },
  52. knowAction(){
  53. this.$refs.popView.hide()
  54. },
  55. confirmAction() {
  56. this.$refs.popView.hide()
  57. this.$emit('confirmAction')
  58. }
  59. },
  60. components: {
  61. dmPopView
  62. }
  63. }
  64. </script>
  65. <style scoped lang="scss">
  66. .content {
  67. width: 100%;
  68. height: 520rpx;
  69. font-family: Verdana;
  70. .content-des {
  71. color: #333333;
  72. font-size: 32rpx;
  73. font-weight: bold;
  74. margin-top: 105rpx;
  75. text-align: center;
  76. }
  77. .goBtn {
  78. width: 260rpx;
  79. height: 84rpx;
  80. border-radius: 42rpx;
  81. margin-left: calc((100% - 260rpx) / 2);
  82. margin-top: 100rpx;
  83. font-size: 32rpx;
  84. color: #FFFFFF;
  85. line-height: 84rpx;
  86. text-align: center;
  87. }
  88. .knowBtn {
  89. width: 260rpx;
  90. height: 84rpx;
  91. border-radius: 42rpx;
  92. margin-left: calc((100% - 260rpx) / 2);
  93. margin-top: 20rpx;
  94. color: #666666;
  95. font-size: 32rpx;
  96. line-height: 84rpx;
  97. text-align: center;
  98. }
  99. }
  100. </style>