Explorar el Código

fix: 标讯标签禁止输入空格限制

cuiyalong hace 4 años
padre
commit
dcc131f504

+ 12 - 5
src/web/staticres/js/ent-search-index-pc.js

@@ -504,12 +504,19 @@ var vm = new Vue({
             $('#go-customer-4').trigger('click')
         },
         toDetail: function (id) {
-            if (this.powerInfo.vip > 1) {
-                // 去超级订阅画像
-                window.open('/swordfish/page_big_pc/svip/ent_ser_portrait/' + id)
+            // 去超级订阅画像
+            var svipLink = '/swordfish/page_big_pc/svip/ent_ser_portrait/' + id
+            // 大会员画像
+            var memberLink = '/swordfish/page_big_pc/ent_portrait/' + id
+
+            if (this.powerInfo.member) {
+                if (this.powerInfo.vip > 0) {
+                    window.open(svipLink)
+                } else {
+                    window.open(memberLink)
+                }
             } else {
-                // 去大会员画像
-                window.open('/swordfish/page_big_pc/ent_portrait/' + id)
+                window.open(svipLink)
             }
         },
         calcListItemForCap: function (p) {

+ 1 - 1
src/web/templates/pc/biddetail_rec.html

@@ -59,7 +59,7 @@ function isWechat() {
         <div class="tags-inputs">
           <div class="tag-input">
             <div class="tag-labels"></div>
-            <input type="text" class="clear-input">
+            <input type="text" class="clear-input" maxlength="5" oninput="this.value=this.value.replace(/\s+/g,'')">
             <div class="tag-placeholder">新增标签回车保存</div>
           </div>
           <div class="add-tag-button">添加并使用</div>

+ 1 - 1
src/web/templates/pc/supsearch.html

@@ -1176,7 +1176,7 @@ $(function(){
         <div class="tags-inputs">
           <div class="tag-input">
             <div class="tag-labels"></div>
-            <input type="text" class="clear-input">
+            <input type="text" class="clear-input" maxlength="5" oninput="this.value=this.value.replace(/\s+/g,'')">
             <div class="tag-placeholder">新增标签回车保存</div>
           </div>
           <div class="add-tag-button">添加并使用</div>