0424
This commit is contained in:
parent
1ebfe3e9aa
commit
f3f3afa29a
@ -8,22 +8,21 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<view class="navigationBarBack" @click="back" >
|
<view class="navigationBarBack" @click="back">
|
||||||
<slot name="back">
|
<slot name="back">
|
||||||
<uni-icons size="24" type="left"
|
<uni-icons size="22px" type="left" :color="titleColor"></uni-icons>
|
||||||
:color="titleColor"></uni-icons>
|
|
||||||
</slot>
|
</slot>
|
||||||
</view>
|
</view>
|
||||||
<view class="navigationBarTitle" :style="{ color: titleColor }">
|
<view class="navigationBarTitle" :style="{ color: titleColor }">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</view>
|
</view>
|
||||||
<view v-if="showClear" @click="clearNoReadFun" class="navigationBarIcon" :style="{ color: titleColor }">
|
<view v-if="showClear" @click="clearNoReadFun" class="navigationBarIcon" :style="{ color: titleColor }">
|
||||||
<image src="@/static/imgs/clear.png" mode="" class="clear-icon"></image>
|
<image src="@/static/imgs/clear.png" mode="" class="clear-icon"></image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<view class="navigationBarBackExtra">
|
<view class="navigationBarBackExtra">
|
||||||
<slot name="extra">
|
<slot name="extra">
|
||||||
</slot>
|
</slot>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -85,9 +84,9 @@
|
|||||||
back() {
|
back() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
},
|
},
|
||||||
clearNoReadFun(){
|
clearNoReadFun() {
|
||||||
this.$emit('clearNoRead')
|
this.$emit('clearNoRead')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -106,7 +105,7 @@
|
|||||||
|
|
||||||
.navigationBarBack {
|
.navigationBarBack {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 20rpx;
|
left: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationBarBackExtra {
|
.navigationBarBackExtra {
|
||||||
@ -118,13 +117,15 @@
|
|||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationBarIcon {
|
.navigationBarIcon {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clear-icon {
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
.clear-icon{
|
|
||||||
width: 40rpx;
|
|
||||||
height: 40rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -5,8 +5,8 @@ module.exports = {
|
|||||||
imagesUrl: 'http://122.51.230.86:9000',
|
imagesUrl: 'http://122.51.230.86:9000',
|
||||||
// baseUrl: 'https://www.nuoyunr.com',
|
// baseUrl: 'https://www.nuoyunr.com',
|
||||||
baseUrl: 'http://192.168.1.27:48080',
|
baseUrl: 'http://192.168.1.27:48080',
|
||||||
appId:'wx684fc832e96cee65',
|
appId: 'wx684fc832e96cee65',
|
||||||
appSecret:'d1fecac806c5f3cd9aca9f3d5c3759c7',
|
appSecret: 'd1fecac806c5f3cd9aca9f3d5c3759c7',
|
||||||
// baseUrl: 'http://192.168.31.54:8016/jx',
|
// baseUrl: 'http://192.168.31.54:8016/jx',
|
||||||
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
// imagesUrl: 'http://192.168.31.54:8016/jx',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
@ -30,4 +30,4 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -276,9 +276,9 @@
|
|||||||
|
|
||||||
|
|
||||||
getUserInfo() {
|
getUserInfo() {
|
||||||
if (!getToken()) {
|
/* if (!getToken()) {
|
||||||
return;
|
return;
|
||||||
}
|
} */
|
||||||
request({
|
request({
|
||||||
url: '/app-api/small/dl-drive-school-student/getUsersInfo',
|
url: '/app-api/small/dl-drive-school-student/getUsersInfo',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
@ -372,6 +372,9 @@
|
|||||||
await request({
|
await request({
|
||||||
url: "/app-api/system/notify-message/get-unread-count",
|
url: "/app-api/system/notify-message/get-unread-count",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
params: {
|
||||||
|
systemCode: 'jiaxiao'
|
||||||
|
},
|
||||||
tenantIdFlag: false
|
tenantIdFlag: false
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@ -89,6 +89,10 @@
|
|||||||
url: '/static/lanhu_shouye2gai/pj.png',
|
url: '/static/lanhu_shouye2gai/pj.png',
|
||||||
text: '评价'
|
text: '评价'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
url: '/static/lanhu_shouye2gai/pj.png',
|
||||||
|
text: '业务办理指南'
|
||||||
|
},
|
||||||
],
|
],
|
||||||
swiperList: [],
|
swiperList: [],
|
||||||
msg: "1",
|
msg: "1",
|
||||||
@ -340,6 +344,7 @@
|
|||||||
case '学车报名':
|
case '学车报名':
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/newPages/schoolList/index'
|
url: '/newPages/schoolList/index'
|
||||||
|
// url: '/pagesA/guideContent/index'
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case '预约训练':
|
case '预约训练':
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
background-color: rgba(242, 244, 248, 1);
|
background-color: rgba(242, 244, 248, 1);
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 750rpx;
|
width: 750rpx;
|
||||||
height: 1624rpx;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
.block_1 {
|
.block_1 {
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
<view class="map_body flex-col">
|
<view class="map_body flex-col">
|
||||||
<view class="map_container"
|
<view class="map_container"
|
||||||
@click="bookingInfoClick(schoolInfo.lat, schoolInfo.lgt, schoolInfo.corpName, schoolInfo.address)">
|
@click="bookingInfoClick(schoolInfo.lat, schoolInfo.lgt, schoolInfo.corpName, schoolInfo.address)">
|
||||||
<image class="bg-img" src="/static/imgs/mapBackground.png" mode="scaleToFill" />
|
<image class="bg-img" src="/static/imgs/mapBackground-1.png" mode="scaleToFill" />
|
||||||
<view class="map-text-1">{{ schoolInfo.address }}</view>
|
<view class="map-text-1">{{ schoolInfo.address }}</view>
|
||||||
<!-- <view class="map-text-2">距离 {{ distance }}</view> -->
|
<!-- <view class="map-text-2">距离 {{ distance }}</view> -->
|
||||||
<view class="map-text-2" v-if="showDistance">距离 {{ distance }} </view>
|
<view class="map-text-2" v-if="showDistance">距离 {{ distance }} </view>
|
||||||
@ -376,7 +376,8 @@
|
|||||||
params: {
|
params: {
|
||||||
tenantId: this.tenantId,
|
tenantId: this.tenantId,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 100000
|
pageSize: 100000,
|
||||||
|
type: 'jl'
|
||||||
},
|
},
|
||||||
tenantIdFlag: false
|
tenantIdFlag: false
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
186
pagesA/guideContent/index.vue
Normal file
186
pagesA/guideContent/index.vue
Normal file
@ -0,0 +1,186 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<VNavigationBar titleColor="rgba(0,0,0,0.9)" backgroundColor="#fff" title="业务办理指南"></VNavigationBar>
|
||||||
|
<view class="body">
|
||||||
|
<view class="header">
|
||||||
|
<view class="title line-clamp-3">{{ guideDetails.title }}</view>
|
||||||
|
<view class="time" v-if="guideDetails.updateTime">{{ getCurrentDateTime(guideDetails.updateTime) }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<u-parse :content="guideDetails.guide"></u-parse>
|
||||||
|
<!-- <u-parse :content="test"></u-parse> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
getJSONData
|
||||||
|
} from "@/utils/auth";
|
||||||
|
import VNavigationBar from '@/components/tabbar/VNavigationBar.vue'
|
||||||
|
import request from '@/utils/request.js'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "content",
|
||||||
|
components: {
|
||||||
|
VNavigationBar
|
||||||
|
},
|
||||||
|
filters: {
|
||||||
|
formatRichText(html) {
|
||||||
|
const nodes = parser.getRichTextJson(html)
|
||||||
|
return nodes.children
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
richTextHtml: '',
|
||||||
|
toUrl: null,
|
||||||
|
tenantId: null,
|
||||||
|
guideDetails: [],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad(data) {
|
||||||
|
console.log('data', data.tenantId)
|
||||||
|
this.tenantId = data.tenantId
|
||||||
|
this.getGuideByTenantId()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getGuideByTenantId() {
|
||||||
|
request({
|
||||||
|
url: '/app-api/jx/driveSchool/smallProgram/guide/list',
|
||||||
|
method: 'GET',
|
||||||
|
params: {
|
||||||
|
// tenantId: this.tenantId
|
||||||
|
tenantId: '181'
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
const list = res.data || []
|
||||||
|
// 根据 updateTime 排序,时间新的排在前面
|
||||||
|
list.sort((a, b) => new Date(b.updateTime) - new Date(a.updateTime))
|
||||||
|
this.guideDetails = list.length > 0 ? list[0] : null
|
||||||
|
console.log('最新指南 guideDetails', this.guideDetails)
|
||||||
|
console.log('更新时间 guideDetails', this.guideDetails.updateTime)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 格式化时间
|
||||||
|
getCurrentDateTime() {
|
||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
const year = now.getFullYear();
|
||||||
|
const month = String(now.getMonth() + 1).padStart(2, '0');
|
||||||
|
const day = String(now.getDate()).padStart(2, '0');
|
||||||
|
const hours = String(now.getHours()).padStart(2, '0');
|
||||||
|
const minutes = String(now.getMinutes()).padStart(2, '0');
|
||||||
|
const seconds = String(now.getSeconds()).padStart(2, '0');
|
||||||
|
|
||||||
|
return `${year}-${month}-${day} ${hours}:${minutes}`;
|
||||||
|
// return now;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.container {
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background-color: #ffffff;
|
||||||
|
|
||||||
|
.body {
|
||||||
|
flex: 1;
|
||||||
|
padding: 24rpx 32rpx;
|
||||||
|
overflow-y: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
padding-bottom: 24rpx;
|
||||||
|
border-bottom: 1rpx solid #f0f0f0;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-bottom: 16rpx;
|
||||||
|
word-break: break-word;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 1.8;
|
||||||
|
|
||||||
|
/* 图片样式增强 */
|
||||||
|
img {
|
||||||
|
max-width: 100% !important;
|
||||||
|
/* 确保图片不超过容器宽度 */
|
||||||
|
height: auto !important;
|
||||||
|
/* 保持图片原始比例 */
|
||||||
|
display: block;
|
||||||
|
/* 改为块级元素避免间隙 */
|
||||||
|
margin: 32rpx auto;
|
||||||
|
/* 增加上下边距 */
|
||||||
|
border-radius: 12rpx;
|
||||||
|
/* 圆角效果 */
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
||||||
|
/* 轻微阴影提升层次感 */
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
/* 加载时的背景色 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 图片点击预览(可选) */
|
||||||
|
img {
|
||||||
|
cursor: pointer;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
img:active {
|
||||||
|
transform: scale(0.98);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 其他富文本元素样式 */
|
||||||
|
p {
|
||||||
|
margin: 24rpx 0;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
margin: 32rpx 0 24rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #2979ff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin: 24rpx 0;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
border: 1rpx solid #e0e0e0;
|
||||||
|
padding: 16rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -223,12 +223,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.group_6 {
|
.group_6 {
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
width: 686rpx;
|
width: 686rpx;
|
||||||
height: 278rpx;
|
// height: 278rpx;
|
||||||
justify-content: flex-center;
|
justify-content: flex-center;
|
||||||
margin: 20rpx 0 342rpx 32rpx;
|
margin: 20rpx 0 20rpx 32rpx;
|
||||||
.text_8 {
|
.text_8 {
|
||||||
width: 112rpx;
|
width: 112rpx;
|
||||||
height: 28rpx;
|
height: 28rpx;
|
||||||
|
|||||||
@ -7,8 +7,9 @@
|
|||||||
<uni-icons type="left" color="#000000" size="22px"></uni-icons>
|
<uni-icons type="left" color="#000000" size="22px"></uni-icons>
|
||||||
</headers>
|
</headers>
|
||||||
</view>
|
</view>
|
||||||
<view :style="{ height: scrollHeight + 'px' }">
|
<view class="block_2 flex-col">
|
||||||
<view class="block_2 flex-col">
|
<scroll-view class="scroll-view" scroll-y="true" :style="{ height: scrollHeight + 'px' }">
|
||||||
|
|
||||||
<!-- <view class="group_1 flex-row">
|
<!-- <view class="group_1 flex-row">
|
||||||
<image
|
<image
|
||||||
class="label_1"
|
class="label_1"
|
||||||
@ -54,57 +55,37 @@
|
|||||||
<view class="image-wrapper_2 flex-row justify-between">
|
<view class="image-wrapper_2 flex-row justify-between">
|
||||||
<u-upload :fileList="idCardfileList" @afterRead="idCardAfterRead" @delete="idCardDelete"
|
<u-upload :fileList="idCardfileList" @afterRead="idCardAfterRead" @delete="idCardDelete"
|
||||||
:maxCount="2" width="300rpx" height="196rpx" margin-right="10rpx" :previewFullImage="true">
|
:maxCount="2" width="300rpx" height="196rpx" margin-right="10rpx" :previewFullImage="true">
|
||||||
<!-- <view v-if="idCardList.length > 0" class="flex-row">
|
|
||||||
<image
|
|
||||||
v-for="(item, index) in idCardList"
|
|
||||||
:key="index"
|
|
||||||
class="image_3"
|
|
||||||
:style="{ marginRight: index === 0 ? '20rpx' : '0' }"
|
|
||||||
:src="imageUrl + '/' + item"
|
|
||||||
referrerpolicy="no-referrer"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
<image
|
|
||||||
v-else
|
|
||||||
class="image_3"
|
|
||||||
src="/static/lanhu_gerenxinxiweitianxie/FigmaDDSSlicePNG613ddce187a71bcc667c56c84cd2d022.png"
|
|
||||||
referrerpolicy="no-referrer"
|
|
||||||
/> -->
|
|
||||||
</u-upload>
|
</u-upload>
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="group_6 flex-col" v-if="noN">
|
<view class="group_6 flex-col" v-if="noN">
|
||||||
<text class="text_8">生活照片</text>
|
<text class="text_8">生活照片</text>
|
||||||
<view class="list_1 flex-row">
|
<view class="list_1 flex-row">
|
||||||
<u-upload :fileList="lifePhotoFileList" @afterRead="lifePhotoAfterRead"
|
<u-upload :fileList="lifePhotoFileList" @afterRead="lifePhotoAfterRead"
|
||||||
@delete="lifePhotoDelete" :maxCount="3" :previewFullImage="true">
|
@delete="lifePhotoDelete" :maxCount="3" :previewFullImage="true">
|
||||||
<!-- <view class="flex-row">
|
|
||||||
<view
|
|
||||||
class="list-items_1 flex-col"
|
|
||||||
v-for="(item, index) in lifePhotoList"
|
|
||||||
:key="index"
|
|
||||||
>
|
|
||||||
<image
|
|
||||||
class="list-items_1"
|
|
||||||
referrerpolicy="no-referrer"
|
|
||||||
:src="imageUrl + '/' + item"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
<image
|
|
||||||
v-if="lifePhotoList.length === 0"
|
|
||||||
class="list-items_1"
|
|
||||||
referrerpolicy="no-referrer"
|
|
||||||
src="/static/lanhu_gerenxinxiweitianxie/FigmaDDSSlicePNG6ea89e46a56641bc7e118ef1d4d789d5.png"
|
|
||||||
/>
|
|
||||||
</view> -->
|
|
||||||
</u-upload>
|
</u-upload>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
|
<!-- <view class="group_7 flex-col" v-if="noN ">
|
||||||
|
<text class="text_10">体检报告</text>
|
||||||
|
<view class="report-list flex-row">
|
||||||
|
<view class="report-item" v-for="(item, index) in examinationReportList" :key="index">
|
||||||
|
<image class="report-image" :src="item.url" mode="aspectFill" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
<view class="group_7 flex-col" v-if="noN ">
|
||||||
|
<text class="text_10">体检报告</text>
|
||||||
|
<u-album :urls="examinationReportList.map(item => item.url)" keyName="url" multipleSize="80"
|
||||||
|
rowCount="3" singleSize="200" previewFullImage="true"></u-album>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="block_5 flex-col">
|
<view class="block_5 flex-col">
|
||||||
<view class="text-wrapper_4 flex-col" @click="handleSave">
|
<view class="text-wrapper_4 flex-col" @click="handleSave">
|
||||||
<text class="text_9">保存</text>
|
<text class="text_9">保存</text>
|
||||||
@ -134,6 +115,7 @@
|
|||||||
// idCardList: [],
|
// idCardList: [],
|
||||||
// lifePhotoList: [],
|
// lifePhotoList: [],
|
||||||
lifePhotoFileList: [],
|
lifePhotoFileList: [],
|
||||||
|
examinationReportList: [], // 体检报告图片列表
|
||||||
imageUrl: this.$imagesUrl,
|
imageUrl: this.$imagesUrl,
|
||||||
userDetails: {
|
userDetails: {
|
||||||
userId: null,
|
userId: null,
|
||||||
@ -194,6 +176,7 @@
|
|||||||
userId: this.userId
|
userId: this.userId
|
||||||
},
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log('userDetails', res.data)
|
||||||
if (!res.data) {
|
if (!res.data) {
|
||||||
this.noN = false;
|
this.noN = false;
|
||||||
this.userDetails = {
|
this.userDetails = {
|
||||||
@ -242,8 +225,7 @@
|
|||||||
response: {
|
response: {
|
||||||
url: `${this.imageUrl}/${url.trim()}`
|
url: `${this.imageUrl}/${url.trim()}`
|
||||||
}
|
}
|
||||||
})) :
|
})) : [];
|
||||||
[];
|
|
||||||
|
|
||||||
// 生活照初始化
|
// 生活照初始化
|
||||||
this.lifePhotoFileList = res.data.lifePhoto ?
|
this.lifePhotoFileList = res.data.lifePhoto ?
|
||||||
@ -256,8 +238,15 @@
|
|||||||
response: {
|
response: {
|
||||||
url: `${this.imageUrl}/${url.trim()}`
|
url: `${this.imageUrl}/${url.trim()}`
|
||||||
}
|
}
|
||||||
})) :
|
})) : [];
|
||||||
[];
|
|
||||||
|
this.examinationReportList = res.data.examinationReport ?
|
||||||
|
res.data.examinationReport.split(',')
|
||||||
|
.filter(url => url.trim())
|
||||||
|
.map(url => ({
|
||||||
|
url: `${this.imageUrl}/${url.trim()}`,
|
||||||
|
fileName: url.trim()
|
||||||
|
})) : [];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -383,7 +372,7 @@
|
|||||||
// 获取屏幕高度
|
// 获取屏幕高度
|
||||||
const screenHeight = uni.getSystemInfoSync().windowHeight;
|
const screenHeight = uni.getSystemInfoSync().windowHeight;
|
||||||
// 获取顶部区域高度
|
// 获取顶部区域高度
|
||||||
const topHeight = 145;
|
const topHeight = 150;
|
||||||
// 计算滚动区域高度
|
// 计算滚动区域高度
|
||||||
this.scrollHeight = screenHeight - topHeight;
|
this.scrollHeight = screenHeight - topHeight;
|
||||||
},
|
},
|
||||||
@ -434,4 +423,40 @@
|
|||||||
<style lang='scss'>
|
<style lang='scss'>
|
||||||
@import '../common/common.scss';
|
@import '../common/common.scss';
|
||||||
@import './assets/style/index.rpx.scss';
|
@import './assets/style/index.rpx.scss';
|
||||||
|
|
||||||
|
|
||||||
|
.group_7 {
|
||||||
|
margin-top: 30rpx;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
background-color: rgba(255, 255, 255, 1);
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin-left: 32rpx;
|
||||||
|
margin-right: 32rpx;
|
||||||
|
|
||||||
|
.text_10 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 可以添加自定义样式覆盖u-album的默认样式
|
||||||
|
::v-deep .u-album {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
margin: auto;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
|
||||||
|
// 单图模式下的图片样式
|
||||||
|
.u-album__single-image {
|
||||||
|
border-radius: 8rpx;
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 多图模式下的图片样式
|
||||||
|
.u-album__image {
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -263,13 +263,9 @@
|
|||||||
this.userId = this.userDetails.id,
|
this.userId = this.userDetails.id,
|
||||||
this.userinfo = getLocalUserInfo()
|
this.userinfo = getLocalUserInfo()
|
||||||
this.localStaffType = getStaffType()
|
this.localStaffType = getStaffType()
|
||||||
console.log('localCoachId', this.localCoachId);
|
|
||||||
console.log('userId', this.userId);
|
|
||||||
console.log('this.localStaffType', this.localStaffType);
|
|
||||||
if (this.localStaffType === '02') {
|
if (this.localStaffType === '02') {
|
||||||
this.localCoachId = getCoachId()
|
this.localCoachId = getCoachId()
|
||||||
}
|
}
|
||||||
console.log('localCoachId', this.localCoachId);
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getListAll()
|
this.getListAll()
|
||||||
@ -347,8 +343,6 @@
|
|||||||
},
|
},
|
||||||
tenantIdFlag: false
|
tenantIdFlag: false
|
||||||
})
|
})
|
||||||
console.log('data', res.data)
|
|
||||||
|
|
||||||
// 1. 先过滤数据,只保留subject为2或3的教练
|
// 1. 先过滤数据,只保留subject为2或3的教练
|
||||||
const filteredData = res.data.filter(coach =>
|
const filteredData = res.data.filter(coach =>
|
||||||
coach.subject === '2' || coach.subject === '3'
|
coach.subject === '2' || coach.subject === '3'
|
||||||
@ -373,13 +367,9 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (this.localStaffType === '02' && this.localCoachId) {
|
if (this.localStaffType === '02' && this.localCoachId) {
|
||||||
console.log('123123', this.localStaffType)
|
|
||||||
console.log('321321', this.localCoachId)
|
|
||||||
console.log('coach', uniqueCoaches) // 这里改为使用去重后的数据
|
|
||||||
const defaultCoach = uniqueCoaches.find(coach =>
|
const defaultCoach = uniqueCoaches.find(coach =>
|
||||||
String(coach.coachId) === String(this.localCoachId)
|
String(coach.coachId) === String(this.localCoachId)
|
||||||
);
|
);
|
||||||
console.log('111222333', defaultCoach)
|
|
||||||
if (defaultCoach) {
|
if (defaultCoach) {
|
||||||
this.jlName = defaultCoach.coachName;
|
this.jlName = defaultCoach.coachName;
|
||||||
this.jlId = defaultCoach.coachId;
|
this.jlId = defaultCoach.coachId;
|
||||||
@ -458,13 +448,13 @@
|
|||||||
|
|
||||||
// 表单校验
|
// 表单校验
|
||||||
async validateForm() {
|
async validateForm() {
|
||||||
if (!this.isDisabled && !this.sfzimg) {
|
/* if (!this.isDisabled && !this.sfzimg) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请上传身份证照片',
|
title: '请上传身份证照片',
|
||||||
icon: 'error'
|
icon: 'error'
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
} */
|
||||||
if (!this.phone || !this.name || !this.identity) {
|
if (!this.phone || !this.name || !this.identity) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入完整信息',
|
title: '请输入完整信息',
|
||||||
@ -923,11 +913,14 @@
|
|||||||
if (this.localCoachId && this.localStaffType == '01') {
|
if (this.localCoachId && this.localStaffType == '01') {
|
||||||
studentData.source = '01';
|
studentData.source = '01';
|
||||||
studentData.sourceUserId = getCoachId(); // 设置来源用户ID为员工ID
|
studentData.sourceUserId = getCoachId(); // 设置来源用户ID为员工ID
|
||||||
|
this.sendMessages(this.name, this.rightInfoList.name, this.jlId)
|
||||||
} else if (this.localCoachId && this.localStaffType == '02') {
|
} else if (this.localCoachId && this.localStaffType == '02') {
|
||||||
studentData.source = '02';
|
studentData.source = '02';
|
||||||
studentData.sourceUserId = getCoachId(); // 设置来源用户ID为教练ID
|
studentData.sourceUserId = getCoachId(); // 设置来源用户ID为教练ID
|
||||||
|
this.sendMessages(this.name, this.rightInfoList.name, getCoachId())
|
||||||
} else {
|
} else {
|
||||||
studentData.source = '03'; // 自来客户
|
studentData.source = '03'; // 自来客户
|
||||||
|
this.sendMessages(this.name, this.rightInfoList.name, this.jlId)
|
||||||
}
|
}
|
||||||
|
|
||||||
request({
|
request({
|
||||||
@ -1041,6 +1034,19 @@
|
|||||||
return res.data.paymentStatus;
|
return res.data.paymentStatus;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 发送站内信
|
||||||
|
sendMessages(studentName, courseName, coachId) {
|
||||||
|
request({
|
||||||
|
url: '/app-api/small/drive/school-course-order/sendMessage',
|
||||||
|
method: 'GET',
|
||||||
|
params: {
|
||||||
|
studentName: studentName,
|
||||||
|
courseName: courseName,
|
||||||
|
coachId: coachId,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1304,4 +1310,4 @@
|
|||||||
.size-lv {
|
.size-lv {
|
||||||
margin-right: 35px;
|
margin-right: 35px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
BIN
static/imgs/mapBackground-1.png
Normal file
BIN
static/imgs/mapBackground-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
Loading…
Reference in New Issue
Block a user