Showing
5 changed files
with
32 additions
and
14 deletions
@@ -59,8 +59,8 @@ const qaDetail = (params) => { | @@ -59,8 +59,8 @@ const qaDetail = (params) => { | ||
59 | // 根据子id,父id,关键字,匹配问题详情 | 59 | // 根据子id,父id,关键字,匹配问题详情 |
60 | if (params.keyword) { | 60 | if (params.keyword) { |
61 | // 从搜索列表进入,有关键字 | 61 | // 从搜索列表进入,有关键字 |
62 | - if (result && result[1] && result[1].data && result[1].data.data) { | ||
63 | - let keyList = result[1].data.data.helper_list; | 62 | + if (result && result[1] && result[1].data) { |
63 | + let keyList = result[1].data.helper_list; | ||
64 | 64 | ||
65 | _.forEach(keyList, function(val) { | 65 | _.forEach(keyList, function(val) { |
66 | if (val.id == params.sonId) { | 66 | if (val.id == params.sonId) { |
1 | <div class="chat-qa-c"> | 1 | <div class="chat-qa-c"> |
2 | <div class="search-c"> | 2 | <div class="search-c"> |
3 | - <a href="./qaSearch"> | 3 | + <a href="//m.yohobuy.com/service/qaSearch"> |
4 | <i class="search-icon iconfont"></i> | 4 | <i class="search-icon iconfont"></i> |
5 | <input type="text" placeholder="有问题?点我搜搜看吧" readonly="readonly" / > | 5 | <input type="text" placeholder="有问题?点我搜搜看吧" readonly="readonly" / > |
6 | </a> | 6 | </a> |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | {{# categorys}} | 10 | {{# categorys}} |
11 | <div class="list clearfix open-down"> | 11 | <div class="list clearfix open-down"> |
12 | <div class="ico-pic"> | 12 | <div class="ico-pic"> |
13 | - <img src="{{categoryIco}}" /> | 13 | + <img src="{{image categoryIco 60 60}}" /> |
14 | </div> | 14 | </div> |
15 | <div> | 15 | <div> |
16 | <p class="title">{{categoryName}}</p> | 16 | <p class="title">{{categoryName}}</p> |
@@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
20 | </div> | 20 | </div> |
21 | <div class="down-item"> | 21 | <div class="down-item"> |
22 | {{# contentItems}} | 22 | {{# contentItems}} |
23 | - <a href="./qaDetail?sonId={{id}}&parentId={{parentId}}"> | 23 | + <a href="//m.yohobuy.com/service/qaDetail?sonId={{id}}&parentId={{parentId}}"> |
24 | <p>{{caption}}</p> | 24 | <p>{{caption}}</p> |
25 | <i class="arr-ico iconfont"></i> | 25 | <i class="arr-ico iconfont"></i> |
26 | </a> | 26 | </a> |
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | <div class="list-title">常见问题</div> | 31 | <div class="list-title">常见问题</div> |
32 | <div class="list-group"> | 32 | <div class="list-group"> |
33 | {{# faqs}} | 33 | {{# faqs}} |
34 | - <a class="common-item" href="./qaDetail?sonId={{id}}"> | 34 | + <a class="common-item" href="//m.yohobuy.com/service/qaDetail?sonId={{id}}"> |
35 | <p>{{caption}}</p> | 35 | <p>{{caption}}</p> |
36 | <i class="arr-ico iconfont"></i> | 36 | <i class="arr-ico iconfont"></i> |
37 | </a> | 37 | </a> |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </div> | 8 | </div> |
9 | <div class="list-group hot-group"> | 9 | <div class="list-group hot-group"> |
10 | {{# hotSearch}} | 10 | {{# hotSearch}} |
11 | - <a class="common-item" href="./qaDetail?sonId={{id}}"> | 11 | + <a class="common-item" href="//m.yohobuy.com/service/qaDetail?sonId={{id}}"> |
12 | <p>{{caption}}</p> | 12 | <p>{{caption}}</p> |
13 | <i class="arr-ico iconfont"></i> | 13 | <i class="arr-ico iconfont"></i> |
14 | </a> | 14 | </a> |
@@ -53,7 +53,7 @@ $('.get-qa').on('keyup focus', | @@ -53,7 +53,7 @@ $('.get-qa').on('keyup focus', | ||
53 | $searchGroup.show(); | 53 | $searchGroup.show(); |
54 | $noResult.hide(); | 54 | $noResult.hide(); |
55 | $hotGroup.hide(); | 55 | $hotGroup.hide(); |
56 | - var keyList = result.data.data.helper_list; | 56 | + var keyList = result.data.helper_list; |
57 | 57 | ||
58 | if (keyList == '') { | 58 | if (keyList == '') { |
59 | $searchGroup.empty(); | 59 | $searchGroup.empty(); |
@@ -104,15 +104,24 @@ | @@ -104,15 +104,24 @@ | ||
104 | } | 104 | } |
105 | 105 | ||
106 | .gm-ico { | 106 | .gm-ico { |
107 | - background-image: resolve("service/chat/gm-ico.png"); | 107 | + background-image: url("/service/chat/gm-ico.png"); |
108 | + width: 60px; | ||
109 | + height: 60px; | ||
110 | + margin: 30px 20px; | ||
108 | } | 111 | } |
109 | 112 | ||
110 | .advice-ico { | 113 | .advice-ico { |
111 | - background-image: resolve("service/chat/advice-ico.png"); | 114 | + background-image: url("/service/chat/advice-ico.png"); |
115 | + width: 60px; | ||
116 | + height: 60px; | ||
117 | + margin: 30px 20px; | ||
112 | } | 118 | } |
113 | 119 | ||
114 | .tel-ico { | 120 | .tel-ico { |
115 | - background-image: resolve("service/chat/tel-ico.png"); | 121 | + background-image: url("/service/chat/tel-ico.png"); |
122 | + width: 60px; | ||
123 | + height: 60px; | ||
124 | + margin: 30px 20px; | ||
116 | } | 125 | } |
117 | 126 | ||
118 | .arr-ico { | 127 | .arr-ico { |
@@ -420,15 +429,24 @@ | @@ -420,15 +429,24 @@ | ||
420 | } | 429 | } |
421 | 430 | ||
422 | .gm-ico { | 431 | .gm-ico { |
423 | - background-image: resolve("service/chat/gm-ico.png"); | 432 | + background-image: url("/service/chat/gm-ico.png"); |
433 | + width: 60px; | ||
434 | + height: 60px; | ||
435 | + margin: 30px 20px; | ||
424 | } | 436 | } |
425 | 437 | ||
426 | .advice-ico { | 438 | .advice-ico { |
427 | - background-image: resolve("service/chat/advice-ico.png"); | 439 | + background-image: url("/service/chat/advice-ico.png"); |
440 | + width: 60px; | ||
441 | + height: 60px; | ||
442 | + margin: 30px 20px; | ||
428 | } | 443 | } |
429 | 444 | ||
430 | .tel-ico { | 445 | .tel-ico { |
431 | - background-image: resolve("service/chat/tel-ico.png"); | 446 | + background-image: url("/service/chat/tel-ico.png"); |
447 | + width: 60px; | ||
448 | + height: 60px; | ||
449 | + margin: 30px 20px; | ||
432 | } | 450 | } |
433 | 451 | ||
434 | .arr-ico { | 452 | .arr-ico { |
-
Please register or login to post a comment