dmLogoutPicker.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. let app = getApp();
  13. export default {
  14. props: {
  15. maskTapHide: {
  16. type: Boolean,
  17. default: true
  18. },
  19. desContent: String,
  20. confirmStr: {
  21. type: String,
  22. default: '确认'
  23. },
  24. cancelStr: {
  25. type: String,
  26. default: '我再看看'
  27. }
  28. },
  29. data() {
  30. return {
  31. themeColor: null,
  32. fuzhuColor: null,
  33. themeColor50: null,
  34. themeColor25: null,
  35. fuzhuColor50: null,
  36. }
  37. },
  38. mounted() {
  39. this.themeColor = app.globalData.themeColor
  40. this.themeColor50 = app.globalData.themeColor50
  41. this.themeColor25 = app.globalData.themeColor25
  42. this.fuzhuColor = app.globalData.fuzhuColor
  43. this.fuzhuColor50 = app.globalData.fuzhuColor50
  44. },
  45. methods: {
  46. show() {
  47. this.$refs.popView.show()
  48. },
  49. knowAction(){
  50. this.$refs.popView.hide()
  51. },
  52. confirmAction() {
  53. this.$refs.popView.hide()
  54. this.$emit('confirmAction')
  55. }
  56. },
  57. components: {
  58. dmPopView
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .content {
  64. width: 100%;
  65. height: 520rpx;
  66. font-family: Verdana;
  67. .content-des {
  68. color: #333333;
  69. font-size: 32rpx;
  70. font-weight: bold;
  71. margin-top: 105rpx;
  72. text-align: center;
  73. }
  74. .goBtn {
  75. width: 260rpx;
  76. height: 84rpx;
  77. border-radius: 42rpx;
  78. margin-left: calc((100% - 260rpx) / 2);
  79. margin-top: 100rpx;
  80. font-size: 32rpx;
  81. color: #FFFFFF;
  82. line-height: 84rpx;
  83. text-align: center;
  84. }
  85. .knowBtn {
  86. width: 260rpx;
  87. height: 84rpx;
  88. border-radius: 42rpx;
  89. margin-left: calc((100% - 260rpx) / 2);
  90. margin-top: 20rpx;
  91. color: #666666;
  92. font-size: 32rpx;
  93. line-height: 84rpx;
  94. text-align: center;
  95. }
  96. }
  97. </style>