dmLoginNotice.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <dmDialog ref='popView' :isShowTitle="true" title="登录提醒" :isShowClose="true" :isShowConfirm="false" >
  3. <view class="content">
  4. <text class="desc">您还未进行登录,无法使用该功能\n点击登录后可以完整查看及使用</text>
  5. <view class="confirm" @click="toLogin">
  6. 去登录
  7. </view>
  8. </view>
  9. </dmDialog>
  10. </template>
  11. <script>
  12. import dmDialog from "./dmDialog.vue"
  13. export default{
  14. data(){
  15. return {
  16. }
  17. },
  18. methods:{
  19. show() {
  20. this.$refs.popView.show()
  21. },
  22. knowAction(){
  23. this.$refs.popView.hide()
  24. },
  25. hide(){
  26. this.knowAction();
  27. },
  28. toLogin(){
  29. this.$refs.popView.hide()
  30. uni.$emit('login');
  31. }
  32. },
  33. mounted() {
  34. uni.$on('unLogin',()=>{
  35. this.show();
  36. })
  37. },
  38. components:{
  39. dmDialog
  40. }
  41. }
  42. </script>
  43. <style scoped lang="scss">
  44. .content{
  45. width: 100%;
  46. height: 270rpx;
  47. display: flex;
  48. flex-direction: column;
  49. align-items: center;
  50. .desc{
  51. font-size: 28rpx;
  52. font-family: Verdana, Verdana-Regular;
  53. font-weight: 400;
  54. text-align: center;
  55. color: #666666;
  56. margin-top: 30rpx;
  57. }
  58. .confirm{
  59. width: 410rpx;
  60. height: 80rpx;
  61. line-height: 80rpx;
  62. background: #f07423;
  63. border-radius: 40rpx;
  64. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
  65. font-size: 28rpx;
  66. font-family: Verdana, Verdana-Bold;
  67. font-weight: 700;
  68. text-align: center;
  69. color: #ffffff;
  70. margin-top: 50rpx;
  71. }
  72. }
  73. </style>