dmLoginNotice.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. toLogin(){
  26. this.$refs.popView.hide()
  27. uni.$emit('login');
  28. }
  29. },
  30. mounted() {
  31. uni.$on('unLogin',()=>{
  32. this.show();
  33. })
  34. },
  35. components:{
  36. dmDialog
  37. }
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. .content{
  42. width: 100%;
  43. height: 270rpx;
  44. display: flex;
  45. flex-direction: column;
  46. align-items: center;
  47. .desc{
  48. font-size: 28rpx;
  49. font-family: Verdana, Verdana-Regular;
  50. font-weight: 400;
  51. text-align: center;
  52. color: #666666;
  53. margin-top: 30rpx;
  54. }
  55. .confirm{
  56. width: 410rpx;
  57. height: 80rpx;
  58. line-height: 80rpx;
  59. background: #f07423;
  60. border-radius: 40rpx;
  61. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
  62. font-size: 28rpx;
  63. font-family: Verdana, Verdana-Bold;
  64. font-weight: 700;
  65. text-align: center;
  66. color: #ffffff;
  67. margin-top: 50rpx;
  68. }
  69. }
  70. </style>