|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <template>
- <view class="help-box">
- <view class="left-box">
- <view class='list-item' @click="selectFun(index)" :class="{active: currentIndex == index}" v-for="(item,index) in list" :key="index">{{item.name}}</view>
- </view>
- <view class="right-box">
- <view class="title u-line-1">{{list[currentIndex].name}}</view>
- <view @click="todetail(item)" class='list-item' v-for="(item,index) in questions" :key="index">
- <view class="text u-line-1">{{item.desc}}</view>
- <image src="/static/images/right-arrow.png" mode=""></image> </view>
- </view>
- </view>
- </template>
-
- <script>
- let domain = require("@/utils/domain")
- export default {
- data() {
- return {
- currentIndex: 0,
- list: [
- {name:'接待管理接待管理接待管理接待管理接待管理'},
- {name:'客户管理'},
- {name:'设备管理'},
- {name:'顾问管理'},
- ],
- questions: [
- {desc: '如何查看设备是否开启'},
- {desc: '如何查看设备是否联网'},
- {desc: '如何查看设备是否开启如何查看设备是否开启如何查看设备是否开启如何查看设备是否开启如何查看设备是否开启'},
- {desc: '如何查看设备是否没电'},
- {desc: '如何查看设备是否开启'},
- {desc: '如何查看设备是否没电'},
- ]
- };
- },
- onShow() {
- },
- methods: {
- searchFun(){
-
- },
- selectFun(index){
- this.currentIndex = index;
- },
- todetail(item){
- uni.navigateTo({
- url: '/pages/mine/help/helpDetail'
- })
- }
- },
- }
- </script>
-
- <style lang="scss">
- .help-box{
- width: 100%;
- min-height: 100vh;
- overflow: hidden;
- background: #F8F8F8;
- display: flex;
- padding-top: 20rpx;
- .left-box{
- flex: 0 0 176rpx;
- // width: 176rpx;
- background: #F0F1F5;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- .list-item{
- height: 100rpx;
- line-height: 100rpx;
- background: #F0F1F5;
- text-align: center;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- &.active{
- background: #fff;
- }
- }
- }
- .right-box{
- flex: 1;
-
- .title{
- width: 570rpx;
- height: 100rpx;
- line-height: 100rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #303030;
- border-bottom : 1rpx solid #E0E0E0;
- background: #fff;
- padding: 0 30rpx;
- }
- .list-item{
- width: 570rpx;
- padding: 0 30rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 98rpx;
- line-height: 98rpx;
- font-size: 30rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- border-bottom : 1rpx solid #E0E0E0;
- background: #fff;
- &:last-child{
- border: 0;
- }
- .text{
- flex: 1;
- }
- image{
- flex: 0 0 12rpx;
- width: 12rpx;
- height: 28rpx;
- margin-left: 20rpx;
- }
- }
- }
-
-
- }
-
- </style>
|