articleThree.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <div class="article_three">
  3. <div class="get_business">
  4. <a @click="showRemindBox = true">查看 》</a>
  5. </div>
  6. <!--弹出框-->
  7. <el-dialog
  8. :visible.sync="showRemindBox">
  9. <div class="content">
  10. <span @click="showRemindBox = false">×</span>
  11. <img src="/images/applyPurchase/dialog_banner.png">
  12. <a @click="Maintenance()">去维护个人产品 》</a>
  13. </div>
  14. </el-dialog>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. data () {
  20. return {
  21. showRemindBox: false
  22. }
  23. },
  24. computed: {
  25. user () {
  26. return this.$store.state.option.user
  27. }
  28. },
  29. methods: {
  30. Maintenance () {
  31. if (!this.user.logged) {
  32. this.$message.error('请先登录')
  33. } else {
  34. let isSelf = true
  35. let tempEnterprise = {}
  36. let ens = this.user.data.enterprises
  37. if (ens && ens.length) {
  38. ens.forEach(function (item) {
  39. if (item.current) {
  40. isSelf = false
  41. tempEnterprise = item
  42. }
  43. })
  44. } else {
  45. isSelf = true
  46. }
  47. if (isSelf) {
  48. this.$message.error('请先点击【卖家中心】升级成为卖家')
  49. } else {
  50. if (tempEnterprise.isVendor === 313) {
  51. window.location.href = '/vendor#/vendor_upload?type=self'
  52. } else {
  53. this.$message.error('请先点击【卖家中心】升级成为卖家')
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss">
  62. .el-dialog--small{
  63. width:1190px;
  64. .el-dialog__header{
  65. display:none;
  66. }
  67. .el-dialog__body{
  68. padding:0;
  69. .content{
  70. position:relative;
  71. span{
  72. position:absolute;
  73. top:15px;
  74. right:25px;
  75. display:inline-block;
  76. width:32px;
  77. height:32px;
  78. cursor:pointer;
  79. line-height: 26px;
  80. font-size:36px;
  81. color:#fff;
  82. background: #999999;
  83. border-radius:50%;
  84. text-align: center;
  85. }
  86. a{
  87. position:absolute;
  88. top: 1525px;
  89. left: 215px;
  90. display:inline-block;
  91. width:135px;
  92. height:30px;
  93. line-height: 30px;
  94. color:#eee;
  95. background: #2496f1;
  96. border-radius:5px;
  97. text-align: center;
  98. }
  99. img{
  100. width:100%;
  101. }
  102. }
  103. }
  104. }
  105. .article_three{
  106. position:relative;
  107. border-radius:5px;
  108. border:1px solid #d2d2d2;
  109. margin-bottom:20px;
  110. .get_business{
  111. padding-top:275px;
  112. height:340px;
  113. background: url(/images/applyPurchase/business_banner.png)no-repeat center;
  114. > a{
  115. width: 130px;
  116. height: 30px;
  117. line-height: 30px;
  118. background: #2496f1;
  119. color: #fdfdfd;
  120. font-size: 14px;
  121. display: block;
  122. border-radius: 3px;
  123. cursor: pointer;
  124. text-align: center;
  125. margin:0 auto;
  126. }
  127. }
  128. }
  129. </style>