lianbingjie 1 سال پیش
والد
کامیت
3eb031f8ce

+ 5 - 1
src/jfw/modules/subscribepay/src/service/userAccountInfo.go

@@ -256,8 +256,12 @@ func (this *UserAccount) CompanyAssociation() {
 		if companyCount <= count*2 && companyCount > 0 {
 			count = companyCount
 		}
+		length, _ := this.GetInteger("len") //P416 电销要求公司名称可以两字联想,剑鱼业务还是三字
+		if length < 2 {
+			length = 3
+		}
 		list := []string{}
-		if len([]rune(name)) > 2 {
+		if len([]rune(name)) >= length {
 			query := fmt.Sprintf(`{"query": {"match_phrase": {"name": "%s"}},"_source": ["name"],"size": %d}`, name, count)
 			r := elastic.Get("qyxy", "qyxy", query)
 			if r != nil {

+ 20 - 5
src/web/staticres/brand/css/brand.css

@@ -1020,19 +1020,34 @@
 }
 
 .qr_box .item .tit {
-    width: 88px;
+    width: 100%;
     height: 40px;
     font-style: normal;
     font-weight: 400;
     font-size: 20px;
     line-height: 40px;
-    /* identical to box height, or 200% */
     text-align: center;
     letter-spacing: 0.1em;
-    /* Font/#686868 */
     color: #686868;
-    border-bottom: 4px solid #2CB7CA;
-    margin: auto;
+    border-bottom: 1px solid #ededed;
+    white-space: nowrap;
+    position: relative;
+}
+.qr_box .item img{
+    width: 160px;
+    height:160px;
+}
+.qr_box .item .tit::after{
+    content: '';
+    height: 4px;
+    width:88px;
+    background: #2CB7CA;
+    position: absolute;
+    bottom:-1px;
+    left:calc(50% - 44px);
+}
+.qr_box .item:nth-of-type(1) .tit::after{
+    transform: translateX(0);
 }
 
 .qr_box .name {

+ 17 - 0
src/web/templates/frontRouter/pc/brand/free/index.html

@@ -383,7 +383,10 @@
       <!-- <iframe src="/swordfish/frontPage/brand/free/maps" frameborder="0" style="width:100%;height:100%"  scrolling='no'></iframe> -->
       <img src="{{Msg "seo" "cdn"}}/brand/img/maps.png?v={{Msg "seo" "version"}}" alt="">
     </div>
+    {{$contactList:=(Ad "brand_contact_list" -1 .Host)}}
+    {{if $contactList}}
     <div class="qr_box">
+<<<<<<< HEAD
         <!-- 广告位站位-->
         {{range $k,$v:=Ad "jy-pc-bank-bottom" -1 .Host}}
           <img src="{{Msg "seo" "cdn"}}{{$v.S_pic}}" alt="">
@@ -409,7 +412,21 @@
 <!--        <p class="phone">扫一扫,即刻咨询</p>-->
 <!--        <p class="desc">marketing@jianyu360.com</p>-->
 <!--      </div>-->
+=======
+      {{range $contact:=$contactList}}
+        <div class="item">
+          <p class="tit">{{$contact.S_remark}}</p>
+          <p class="name">{{$contact.O_extend.Title}}</p>
+          <img src="{{$contact.S_pic}}" alt="" class="qr">
+          <p class="phone">{{$contact.O_extend.Theme}}</p>
+          <p class="desc">{{$contact.S_link}}</p>
+        </div>
+      {{end}}
+>>>>>>> master
     </div>
+    {{end}}
+
+
   </div>
 </div>
 <script src='{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}' type="text/javascript"></script>