webAuthAlert.vue 595 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view>
  3. <u-modal
  4. v-model="show"
  5. :content="tipsContent"
  6. show-cancel-button
  7. :confirm-style="confirmStyle"
  8. confirm-text="立即授权"
  9. cancel-text="暂不授权"
  10. @confirm="confirm"
  11. >
  12. </u-modal>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. tipsContent: ''
  19. },
  20. data() {
  21. return {
  22. show: false,
  23. confirmStyle: {
  24. color: 'white',
  25. },
  26. };
  27. },
  28. created() {
  29. this.confirmStyle.color = this.vuex_theme.bgColor;
  30. },
  31. methods: {
  32. confirm() {
  33. this.$emit('confirm')
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. </style>