车辆类型服务优化,培训文档详情
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div v-show="!show">培训文档</div>
|
<div v-show="!show">培训文档</div>
|
||||||
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @keyup.enter="getList"/>
|
<van-field v-model="keyword" placeholder="请输入关键词" v-show="show" @input="getList"/>
|
||||||
</template>
|
</template>
|
||||||
<template slot="right">
|
<template slot="right">
|
||||||
<div class="rightWrap" @click="show = !show">
|
<div class="rightWrap" @click="show = !show">
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<div class="contentWrap" v-show="!showEmpty">
|
<div class="contentWrap" v-show="!showEmpty">
|
||||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
|
<van-pull-refresh v-model="isLoading" @refresh="onRefresh">
|
||||||
<div class="itemWrap" v-for="(item,index) in pageList" :key="index">
|
<div class="itemWrap" v-for="(item,index) in pageList" :key="index" @click="goH5Detail(item)">
|
||||||
<div class="info flexBetween common">
|
<div class="info flexBetween common">
|
||||||
<div class="title">{{ item.pushUser }}</div>
|
<div class="title">{{ item.pushUser }}</div>
|
||||||
<div class="time">{{ item.pushTime }}</div>
|
<div class="time">{{ item.pushTime }}</div>
|
||||||
@ -42,7 +42,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</van-pull-refresh>
|
</van-pull-refresh>
|
||||||
</div>
|
</div>
|
||||||
<div class="empty" style="display: flex;justify-content: center;align-items: center;height:calc(100% - 46px);background-color: #FAFAFA" v-show="showEmpty">
|
<div class="empty" style="display: flex;justify-content: center;align-items: center;height:calc(100% - 46px);background-color: #FAFAFA" v-show="showEmpty">
|
||||||
@ -67,16 +66,23 @@ export default {
|
|||||||
keyword:'',
|
keyword:'',
|
||||||
show:false,
|
show:false,
|
||||||
showEmpty:false,
|
showEmpty:false,
|
||||||
isLoading:false
|
isLoading:false,
|
||||||
|
userId:'',
|
||||||
|
supplierId:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
this.supplierId = urlParams.get('supplierId');
|
||||||
|
this.userId = urlParams.get('userId');
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
// handleEnterKey() {
|
goH5Detail(item){
|
||||||
// this.getList()
|
// let url = (process.env.NODE_ENV === 'production' ? 'http://crm1.sino-assist.com': 'http://www.sinoassist.com'),
|
||||||
// },
|
// console.log(item)
|
||||||
|
window.location.href = `http://crm1.sino-assist.com/res/training/training.html?id=${item.id}&source=supplierApp&supplierId=${this.supplierId}&userId=${this.userId}`;
|
||||||
|
},
|
||||||
onRefresh() {
|
onRefresh() {
|
||||||
this.getList()
|
this.getList()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
<div class="trailerService" v-for="(item,index) in supplierServiceList" :key="index">
|
<div class="trailerService" v-for="(item,index) in supplierServiceList" :key="index">
|
||||||
<div class="serviceline" @click="loadAll(index)">
|
<div class="serviceline" @click="loadAll(index)">
|
||||||
<img :ref="'serviceline' + index" :src="imageUrl" style="width: 20px;height: 15px" >
|
<img :ref="'serviceline' + index" :src="imageUrl" style="width: 20px;height: 15px" >
|
||||||
<span class="service" style="width: 88px;">{{ item.name }}:</span>
|
<span class="service">{{ item.name }}:</span>
|
||||||
<span class="line"></span>
|
<span class="line"></span>
|
||||||
</div>
|
</div>
|
||||||
<div :ref="'checkboxGroup' + index" class="checkbox-group">
|
<div :ref="'checkboxGroup' + index" class="checkbox-group">
|
||||||
@ -267,10 +267,11 @@ export default {
|
|||||||
opacity: .7;
|
opacity: .7;
|
||||||
color: #323643;
|
color: #323643;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.line{
|
.line{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@include wh(246px,2px);
|
@include wh(240px,2px);
|
||||||
opacity: 0.16;
|
opacity: 0.16;
|
||||||
border-bottom: 1px solid;
|
border-bottom: 1px solid;
|
||||||
border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1;
|
border-image: linear-gradient(270deg, rgba(217, 217, 217, 0.6), rgba(178, 178, 178, 1), rgba(178, 178, 178, 1), rgba(217, 217, 217, 0.6)) 1 1;
|
||||||
|
Reference in New Issue
Block a user