瀏覽代碼

feat: 修复弹窗层级问题

zhangyuhan 4 年之前
父節點
當前提交
d7d4b5bf01

+ 5 - 0
src/web/staticres/common-module/ent-search/ent-search-template.js

@@ -454,9 +454,11 @@ var vEntSearchComponent = new Vue({
     onSelectItem (item, index) {
       if (item.disabled) {
         var _this = this
+        this.$dialog.close()
         this.$dialog.confirm({
           message: '该条件为会员选项,请升级为会员服务',
           className: 'ent-search-dialog',
+          overlayClass: 'z-2030',
           confirmButtonText: '去升级',
         }).then(function () {
           _this.goUpBuyPage()
@@ -481,6 +483,7 @@ var vEntSearchComponent = new Vue({
       this.checkNowPower()
       this.showEntSearch = type
       if (type) {
+        $("#supersearchPage input[name=super_searchinput]").blur();
         this.doQueryList()
       }
       var _this = this
@@ -929,9 +932,11 @@ var vMainSearchComponent = new Vue({
     onSelectItem (item, index) {
       if (item.disabled) {
         var _this = this
+        this.$dialog.close()
         this.$dialog.confirm({
           message: '该条件为会员选项,请升级为会员服务',
           className: 'ent-search-dialog',
+          overlayClass: 'z-2030',
           confirmButtonText: '去升级',
         }).then(function () {
           _this.goUpBuyPage()

+ 9 - 0
src/web/staticres/common-module/keep-tags/keep-tags-template.js

@@ -7,6 +7,11 @@ var tempStyleComponent = `<style>
       font-size: 0.32rem;
       line-height: 0.48rem;
       color: #171826;
+      z-index: 2031 !important;
+    }
+    
+    .z-2030 {
+        z-index: 2030 !important;
     }
     
     .van-dialog.ent-search-dialog .van-dialog__content .van-dialog__message {
@@ -322,9 +327,11 @@ Vue.component('keep-component', {
             this.$emit('on-change-keep', false)
             var _this = this
             if (r.error_msg === '付费用户收藏已达上限') {
+              this.$dialog.close()
               this.$dialog.confirm({
                 message: '您的标讯收藏上限为5000条,请联系客服人员',
                 className: 'ent-search-dialog',
+                overlayClass: 'z-2030',
                 showCancelButton: false,
                 confirmButtonText: '我知道了',
               }).then(function () {
@@ -333,9 +340,11 @@ Vue.component('keep-component', {
               return
             }
             if (r.error_msg === '免费用户收藏已达上限') {
+              this.$dialog.close()
               this.$dialog.confirm({
                 message: '您的标讯收藏上限为100条,请升级为会员服务',
                 className: 'ent-search-dialog',
+                overlayClass: 'z-2030',
                 confirmButtonText: '去升级'
               }).then(function () {}).catch(function () {});
               return