help-list.vue 5.82 KB
Newer Older
linxin's avatar
linxin committed
1 2
<template>
  <h-view id="help-list" class="public-style">
3
    <h-header :proportion="[5,1,1]" class="bar-custom">
linxin's avatar
linxin committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17
      <div slot="left" class="h-header-btn">
        <img src="@/assets/userBind/arrow.png" @click="$routeGo()" >
        <span>帮助与反馈</span>
      </div>
    </h-header>
    <h-content class="my-content">
      <div class="connect">
        <div class="connect-top">
          <img src="@/assets/help/call.png" >
          <span>联系我们</span>
        </div>
        <p>每日8:00-18:00</p>
      </div>
      <p class="matter">常见问题</p>
linxin's avatar
linxin committed
18 19 20 21 22 23
      <div class="question">
        <div class="question-top" @click="show(0)">
          <span>客户绑定相关问题</span>
          <img class="img0" src="@/assets/help/down.png" >
        </div>
        <ul class="list0">
24
          <li @click="changeDetail">如何进行客户绑定?</li>
linxin's avatar
linxin committed
25 26 27 28 29 30 31 32 33 34 35 36 37
          <li>如何通过扫描录入进件?</li>
        </ul>
      </div>
      <div class="question">
        <div class="question-top" @click="show(1)">
          <span>客户绑定相关问题</span>
          <img class="img1" src="@/assets/help/down.png" >
        </div>
        <ul class="list1">
          <li>如何进行客户绑定?</li>
          <li>如何通过扫描录入进件?</li>
        </ul>
      </div>
38 39 40 41 42 43 44 45 46 47 48
      <div class="question">
        <div class="question-top" @click="show(2)">
          <span>功能相关问题</span>
          <img class="img2" src="@/assets/help/down.png" >
        </div>
        <ul class="list2">
          <li>产品展示功能如何使用?</li>
          <li>如何进行“产品试算”?</li>
          <li>如何进行“合同还款”?</li>
        </ul>
      </div>
linxin's avatar
linxin committed
49
    </h-content>
50 51 52 53 54
    <bottom-tab>
      <tab-button class="bottom-button" @click.native="changeFeedback">
        <img src="@/assets/help/feedback.png" >没有想要的,点击反馈
      </tab-button>
    </bottom-tab>
linxin's avatar
linxin committed
55 56 57
  </h-view>
</template>
<script>
linxin's avatar
linxin committed
58 59 60 61 62 63 64 65 66 67
export default {
  data () {
    return {
      isShow: true,
    }
  },
  methods: {
    show (e) {
      let ul = document.querySelector(`.list${e}`)
      let li = ul.querySelectorAll('li')
68
      let img = document.querySelector(`.img${e}`)
linxin's avatar
linxin committed
69 70
      if (this.isShow) {
        ul.style.height = li.length * 35 + 'px'
71
        img.style.transform = 'rotate(' + 90 + 'deg)'
linxin's avatar
linxin committed
72 73 74
        this.isShow = false
      } else {
        ul.style.height = 0
75
        img.style.transform = 'rotate(' + 0 + 'deg)'
linxin's avatar
linxin committed
76 77 78
        this.isShow = true
      }
    },
79 80 81 82 83 84 85 86 87 88
    changeDetail () {
      this.$router.push({
        name: 'HelpDetail',
      })
    },
    changeFeedback () {
      this.$router.push({
        name: 'HelpFeedback',
      })
    },
linxin's avatar
linxin committed
89 90
  },
}
linxin's avatar
linxin committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
</script>
<style lang="less" scoped>
#help-list {
  .header {
    background-color: #00469c;
    color: #ffffff;
    .h-header-btn {
      img {
        width: 16px;
        height: 16px;
      }
      span {
        font-family: PingFangSC-Semibold;
        font-size: 17px;
        color: #ffffff;
        letter-spacing: 0.61px;
        margin-left: 16px;
      }
    }
  }
  .my-content {
    .connect {
      background: rgba(0, 70, 156, 0.08);
      border-radius: 4px;
      width: 335px;
      height: 57px;
      margin: 0 auto;
      margin-top: 8px;
      text-align: center;
      padding-top: 8px;
      .connect-top {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      img {
        width: 12.4px;
        height: 14.8px;
      }
      span {
        font-family: PingFangSC-Semibold;
        font-size: 14px;
        color: #383f45;
        letter-spacing: 0.43px;
        margin-left: 8px;
      }
      p {
        margin-top: 8px;
        font-family: PingFangSC-Regular;
        font-size: 12px;
        color: rgba(56, 63, 69, 0.6);
        letter-spacing: 0.37px;
      }
    }
    .matter {
      font-family: PingFangSC-Semibold;
      font-size: 15px;
      color: #383f45;
      letter-spacing: 0;
      line-height: 20px;
      margin-top: 10px;
      margin-left: 16px;
      margin-bottom: 10px;
    }
linxin's avatar
linxin committed
155 156
    .question {
      background-color: #ffffff;
linxin's avatar
linxin committed
157 158 159 160
      border-radius: 2px;
      width:359px;
      margin:0 auto;
      margin-top:8px;
linxin's avatar
linxin committed
161 162 163 164 165 166 167 168 169 170 171 172
      .question-top {
        height: 44px;
        line-height: 44px;
        background-color: #ffffff;
        padding-left: 24px;
        display: flex;
        align-items: center;
        span {
          display:inline-block;
          position: relative;
          font-family: PingFangSC-Regular;
          font-size: 13px;
173
          color: @headerColor;
linxin's avatar
linxin committed
174 175 176 177 178 179 180 181 182 183 184 185 186
          letter-spacing: 0;
          line-height: 20px;
          text-indent: 8px;
          flex:12;
        }
        span::before{
        content:'';
        display: block;
        position: absolute;
        top:4px;
        left: 0px;
        width:4px;
        height:12px;
187
        background-color:@headerColor;
linxin's avatar
linxin committed
188 189 190 191 192 193 194 195
      }
        img{
          width: 20px;
          height: 20px;
          margin-right: 20px;
          flex:1;
        }
      }
196
      .list0,.list1,.list2 {
linxin's avatar
linxin committed
197 198 199 200
        overflow: hidden;
        transition: 0.2s linear;
        height:0px;
        li {
201
          position: relative;
linxin's avatar
linxin committed
202 203 204 205 206 207 208 209 210 211
          font-family: PingFangSC-Regular;
          font-size: 12px;
          color: #656464;
          height: 35px;
          width:343px;
          margin:0 auto;
          line-height: 35px;
          border-bottom: 1px solid #F1F0F5;
          text-indent: 15px;
        }
212 213 214 215 216 217 218 219 220 221 222
        li::after{
          content:'';
          display: block;
          width:10px;
          height:14px;
          background:url("../../assets/help/right-arrow.png");
          background-size: 12px 16px;
          position:absolute;
          top:8px;
          right:0px;
        }
linxin's avatar
linxin committed
223 224
      }
    }
linxin's avatar
linxin committed
225
  }
226 227 228
  .bottom-button{
    font-family: PingFangSC-Regular;
font-size: 15px;
229
color: @headerColor;
230 231 232 233 234 235 236
line-height: 20px;
    img{
  width:16px;
    height:16px;
    }

  }
linxin's avatar
linxin committed
237 238
}
</style>