Authored by ccbikai

在线客服页面

  1 +@function rem($n) {
  2 + @return $n / 40 * 1rem;
  3 +}
  4 +
  5 +.online-service-detail-page{
  6 + .question {
  7 + background: #fff;
  8 + }
  9 +
  10 + .question-title {
  11 + padding: rem(20) rem(30);
  12 + font-size: rem(28);
  13 + line-height: 1;
  14 + color: #b0b0b0;
  15 + }
  16 +
  17 + .question-tab {
  18 + padding: rem(10) rem(30) rem(30);
  19 + font-size: rem(32);
  20 + line-height: rem(58);
  21 + text-align: center;
  22 + color: #b0b0b0;
  23 + .current {
  24 + color: #444;
  25 + }
  26 + .line {
  27 + padding: 0 rem(32);
  28 + }
  29 + }
  30 +
  31 + .question-list {
  32 + display: none;
  33 + border-top: 1px solid #ccc;
  34 + border-bottom: 1px solid #ccc;
  35 + &.current {
  36 + display: block;
  37 + }
  38 + li {
  39 + margin-left: rem(30);
  40 + width: rem(610);
  41 + font-size: rem(28);
  42 + line-height: rem(90);
  43 + border-bottom: 1px solid #ccc;
  44 + a {
  45 + display: block;
  46 + color: #444;
  47 + }
  48 + .iconfont {
  49 + float: right;
  50 + margin-right: rem(30);
  51 + color: #ccc;
  52 + }
  53 + &:last-child {
  54 + border-bottom: none;
  55 + }
  56 + }
  57 + }
  58 +
  59 + .connect-info {
  60 + margin-top: 30px;
  61 + font-size: rem(28);
  62 + line-height: rem(50);
  63 + background: #fff;
  64 + border-top: 1px solid #ccc;
  65 + border-bottom: 1px solid #ccc;
  66 + p {
  67 + margin-top: rem(25);
  68 + margin-left: rem(-72);
  69 + line-height: 1.5;
  70 + }
  71 + .iconfont {
  72 + float: right;
  73 + color: #ccc;
  74 + }
  75 + .connect-item {
  76 + position: relative;
  77 + a {
  78 + display: block;
  79 + padding: rem(20) rem(30) rem(20) rem(94);
  80 + color: #444;
  81 + }
  82 + &:after {
  83 + content: '';
  84 + position: absolute;
  85 + right: 0;
  86 + bottom: 0;
  87 + width: rem(548);
  88 + height: 1px;
  89 + background: #ccc;
  90 + }
  91 + &:last-child {
  92 + &:after {
  93 + content: none;
  94 + }
  95 + }
  96 + }
  97 + .icon-chat {
  98 + @include retina-sprite($customerIcons, chat);
  99 + }
  100 + .icon-tel {
  101 + @include retina-sprite($customerIcons, tel);
  102 + }
  103 + .icon {
  104 + display: inline-block;
  105 + margin-right: rem(14);
  106 + margin-left: rem(-70);
  107 + vertical-align:middle;
  108 + }
  109 + }
  110 +}
  111 +
  112 +.online-service-detail-page {
  113 + .qa-list {
  114 + background: #f0f0f0;
  115 + .question-item {
  116 + margin-bottom: rem(32);
  117 + border-top: 1px solid #c8c7cc;
  118 + border-bottom: 1px solid #c8c7cc;
  119 + background: #fff;
  120 + &:last-child {
  121 + margin-bottom: 0;
  122 + }
  123 + }
  124 + %qa {
  125 + margin-left: rem(30);
  126 + padding: 0 rem(40) 0 rem(10);
  127 + font-size: rem(30);
  128 + line-height: rem(76);
  129 + font-weight: bold;
  130 + }
  131 + .question {
  132 + @extend %qa;
  133 + position: relative;
  134 + &:after {
  135 + content: '';
  136 + position: absolute;
  137 + left: 0;
  138 + bottom: 0;
  139 + width: 100%;
  140 + border-top: 1px solid #c8c7cc;
  141 + }
  142 + }
  143 + .answer {
  144 + @extend %qa;
  145 + }
  146 + }
  147 +}
1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="online-service-page yoho-page"> 2 <div class="online-service-page yoho-page">
3 - <form class="question-search">  
4 -  
5 - </form>  
6 - <ul class="question-list">  
7 - <li class="question-item">  
8 - 问题问  
9 - <span class="iconfont">&#xe604;</span>  
10 - </li>  
11 - <li class="question-item">  
12 - 问题问  
13 - <span class="iconfont">&#xe604;</span>  
14 - </li>  
15 - <li class="question-item">  
16 - 问题问  
17 - <span class="iconfont">&#xe604;</span>  
18 - </li>  
19 - </ul> 3 + <div class="question">
  4 + <div class="question-title">问题查询</div>
  5 + <div class="question-tab">
  6 + <span class="tab-item" data-tab="order">订单问题</span>
  7 + <span class="line">|</span>
  8 + <span class="tab-item current" data-tab="shopping">购物问题</span>
  9 + <span class="line">|</span>
  10 + <span class="tab-item" data-tab="other">其他问题</span>
  11 + </div>
  12 + {{#question}}
  13 + <ul class="question-list {{#current}}current{{/current}}" data-tab-name="{{name}}">
  14 + {{#list}}
  15 + <li class="question-item">
  16 + <a href="{{link}}" title="{{title}}">
  17 + {{title}}
  18 + <span class="iconfont icon-yoho-enter"></span>
  19 + </a>
  20 + </li>
  21 + {{/list}}
  22 + </ul>
  23 + {{/question}}
  24 + </div>
  25 + <div class="connect-info">
  26 + <div class="connect-item connect-online">
  27 + <a href="#" title="在线客服">
  28 + <span class="icon icon-chat"></span>
  29 + 在线客服
  30 + <span class="iconfont icon-yoho-enter"></span>
  31 + </a>
  32 + </div>
  33 + <div class="connect-item connect-tel">
  34 + <a href="tel:400-889-9649" title="电话客服">
  35 + <span class="icon icon-tel"></span>
  36 + 电话客服
  37 + <p>
  38 + 400-889-9649 &nbsp;&nbsp; 09:00 - 22:30 &nbsp; (周一至周日)
  39 + </p>
  40 + </a>
  41 +
  42 + </div>
  43 + </div>
20 </div> 44 </div>
21 {{> layout/footer}} 45 {{> layout/footer}}
  1 +{{> layout/header}}
  2 +<div class="online-service-detail-page yoho-page">
  3 + <div class="qa-list">
  4 + {{# list}}
  5 + <div class="question-item">
  6 + <div class="question">Q:{{q}}</div>
  7 + <div class="answer">{{a}}</div>
  8 + </div>
  9 + {{/ list}}
  10 + </div>
  11 +</div>
  12 +{{> layout/footer}}