This commit is contained in:
Lx 2025-04-16 17:41:03 +08:00
parent b741f1140a
commit 222dd08ee9
4 changed files with 407 additions and 422 deletions

View File

@ -195,6 +195,7 @@
flex-direction: column; flex-direction: column;
padding: 0 20rpx; padding: 0 20rpx;
box-sizing: border-box; box-sizing: border-box;
} }
} }
.messageItem { .messageItem {

View File

@ -175,7 +175,9 @@ export default {
}, },
onShow() { onShow() {
if (getToken()) { if (getToken()) {
// this.findSelfInfo() this.selfInfoLocal = getLocalUserInfo()
this.getUserInfo()
this.systemInfo()
} }
}, },

View File

@ -6,17 +6,9 @@
</view> </view>
<view class="section_2 flex-col"> <view class="section_2 flex-col">
<view class="list_1 flex-row"> <view class="list_1 flex-row">
<view <view class="image-text_1 flex-col align-items-center justify-content-center;"
class="image-text_1 flex-col align-items-center justify-content-center;" v-for="(item, index) in loopData0" :key="index" @click="handleItemClick(item)">
v-for="(item, index) in loopData0" <image class="label_1" referrerpolicy="no-referrer" :src="item.url" />
:key="index"
@click="handleItemClick(item)"
>
<image
class="label_1"
referrerpolicy="no-referrer"
:src="item.url"
/>
<text class="text-group_1" v-text="item.text"></text> <text class="text-group_1" v-text="item.text"></text>
</view> </view>
</view> </view>
@ -24,15 +16,9 @@
<view class="image-text_2 flex-row justify-between"> <view class="image-text_2 flex-row justify-between">
<!-- <u-notice-bar direction="column" duration="10000" bgColor="#e9f1ff" color="black" :text="textList.map(item => item.title)" @click="handleNoticeClick" icon="/static/lanhu_shouye2gai/FigmaDDSSlicePNGd2c17b5f24182e597acbfa50481040c1.png"></u-notice-bar> --> <!-- <u-notice-bar direction="column" duration="10000" bgColor="#e9f1ff" color="black" :text="textList.map(item => item.title)" @click="handleNoticeClick" icon="/static/lanhu_shouye2gai/FigmaDDSSlicePNGd2c17b5f24182e597acbfa50481040c1.png"></u-notice-bar> -->
<u-notice-bar <u-notice-bar direction="column" duration="10000" bgColor="#e9f1ff" color="black" :text="textList"
direction="column"
duration="10000"
bgColor="#e9f1ff"
color="black"
:text="textList"
@click="handleNoticeClick" @click="handleNoticeClick"
icon="/static/lanhu_shouye2gai/FigmaDDSSlicePNGd2c17b5f24182e597acbfa50481040c1.png" icon="/static/lanhu_shouye2gai/FigmaDDSSlicePNGd2c17b5f24182e597acbfa50481040c1.png" />
/>
</view> </view>
<view class="group_3 flex-col justify-between"> <view class="group_3 flex-col justify-between">
@ -45,18 +31,15 @@
<text class="text_2">优质驾校</text> <text class="text_2">优质驾校</text>
<view class="image-text_3 flex-row justify-between"> <view class="image-text_3 flex-row justify-between">
<text class="text-group_3" @click="goSchoolList()">查看更多</text> <text class="text-group_3" @click="goSchoolList()">查看更多</text>
<image <image class="thumbnail_2" referrerpolicy="no-referrer"
class="thumbnail_2" src="/static/lanhu_shouye2gai/FigmaDDSSlicePNGc8586e4d9e76802e4b93ae8fb3654b38.png" />
referrerpolicy="no-referrer"
src="/static/lanhu_shouye2gai/FigmaDDSSlicePNGc8586e4d9e76802e4b93ae8fb3654b38.png"
/>
</view> </view>
</view> </view>
<view class="itemContent"> <view class="itemContent">
<!-- 使用 scroll-view 包裹 SchoolInfo 组件 --> <!-- 使用 scroll-view 包裹 SchoolInfo 组件 -->
<scroll-view class="school-scroll-view" scroll-y > <scroll-view class="school-scroll-view" scroll-y>
<SchoolInfo style="" v-for="(school, index) in schoolList" :key="index" :schoolInfo="school" <SchoolInfo style="" v-for="(school, index) in schoolList" :key="index" :schoolInfo="school"
@click="goSchoolDetail(school)"/> @click="goSchoolDetail(school)" />
</scroll-view> </scroll-view>
</view> </view>
@ -66,9 +49,9 @@
</template> </template>
<script> <script>
import SchoolInfo from './SchoolInfo.vue'; import SchoolInfo from './SchoolInfo.vue';
import request from "@/utils/request"; import request from "@/utils/request";
import { import {
getCoachId, getCoachId,
getInviteId, getInviteId,
getLocalUserInfo, getLocalUserInfo,
@ -81,15 +64,14 @@ import {
setLocalUserInfo, setLocalUserInfo,
setStaffType, setStaffType,
setTenantId setTenantId
} from '@/utils/auth' } from '@/utils/auth'
export default { export default {
components: { components: {
SchoolInfo SchoolInfo
}, },
data() { data() {
return { return {
loopData0: [ loopData0: [{
{
url: '/static/lanhu_shouye2gai/xcbm.png', url: '/static/lanhu_shouye2gai/xcbm.png',
text: '学车报名' text: '学车报名'
}, },
@ -116,14 +98,14 @@ export default {
pageSize: 10, pageSize: 10,
total: 0, total: 0,
imageUrl: this.$imagesUrl, imageUrl: this.$imagesUrl,
textList:[], textList: [],
noticeList: [], noticeList: [],
qTenantId: null, qTenantId: null,
qCoachId: null, qCoachId: null,
}; };
}, },
onLoad(query) { onLoad(query) {
console.log('query',query) console.log('query', query)
// setInviteId('JLPXF1') // setInviteId('JLPXF1')
// this.getTenantIdByInviteId() // this.getTenantIdByInviteId()
this.getSwiperList() this.getSwiperList()
@ -131,7 +113,7 @@ export default {
const q = decodeURIComponent(query.q) // const q = decodeURIComponent(query.q) //
let theRequest = this.getUrlValue(q) let theRequest = this.getUrlValue(q)
if(theRequest.hasOwnProperty("inviteId")){ if (theRequest.hasOwnProperty("inviteId")) {
//code //code
setInviteId(theRequest['inviteId']) setInviteId(theRequest['inviteId'])
this.getTenantIdByInviteId() this.getTenantIdByInviteId()
@ -139,7 +121,7 @@ export default {
uni.reLaunch({ uni.reLaunch({
url: '/pages/login/login' url: '/pages/login/login'
}) */ }) */
}else{ } else {
removeInviteId() removeInviteId()
removeCoachId() removeCoachId()
removeTenantId() removeTenantId()
@ -150,9 +132,9 @@ export default {
} }
}, },
methods: { methods: {
getTenantIdByInviteId(){ getTenantIdByInviteId() {
console.log('1122', getInviteId()) console.log('1122', getInviteId())
if(!getInviteId()){ if (!getInviteId()) {
console.log(1) console.log(1)
this.getList() this.getList()
return return
@ -165,16 +147,16 @@ export default {
} }
}).then(res => { }).then(res => {
console.log(123) console.log(123)
if(res.data != null){ if (res.data != null) {
this.qTenantId = res.data.tenantId this.qTenantId = res.data.tenantId
this.qCoachId = res.data.userId this.qCoachId = res.data.userId
setTenantId(res.data.tenantId) setTenantId(res.data.tenantId)
this.getList() this.getList()
if(res.data.type == 'jl'){ if (res.data.type == 'jl') {
setCoachId(res.data.userId) setCoachId(res.data.userId)
setStaffType('02') setStaffType('02')
} }
if(res.data.type == 'yg'){ if (res.data.type == 'yg') {
setCoachId(res.data.userId) setCoachId(res.data.userId)
setStaffType('01') setStaffType('01')
} }
@ -182,7 +164,7 @@ export default {
}) })
}, },
getList() { getList() {
console.log('getInviteId',getInviteId()) console.log('getInviteId', getInviteId())
const params = { const params = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
@ -389,40 +371,42 @@ export default {
} }
} }
}; };
</script> </script>
<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';
// 使
.text-group_1 {
text-align: center;
}
// image-text_1 使 // 使
.image-text_1 { .text-group_1 {
text-align: center;
}
// image-text_1 使
.image-text_1 {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; // 使 align-items: center; // 使
justify-content: center; // 使 justify-content: center; // 使
} }
// scroll-view // scroll-view
.school-scroll-view { .school-scroll-view {
height: 500rpx; // height: 500rpx; //
overflow-y: auto; overflow-y: auto;
margin-left: 22rpx; margin-left: 22rpx;
} }
.itemContent { .itemContent {
padding: 30rpx 0; padding: 30rpx 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
row-gap: 20rpx; row-gap: 20rpx;
} margin-bottom: 200rpx;
}
.top_ { .top_ {
//padding-top: 200rpx; //padding-top: 200rpx;
} }
</style> </style>

View File

@ -99,11 +99,9 @@
} }
], ],
"subPackages": [ "subPackages": [{
{
"root": "pagesA", "root": "pagesA",
"pages": [ "pages": [{
{
"path": "appointmentAdd/index", "path": "appointmentAdd/index",
"style": { "style": {
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
@ -200,8 +198,9 @@
} }
], ],
"tabBar": { "tabBar": {
"list": [ "color": "#999999", //
{ "selectedColor": "#2c78f5", //
"list": [{
"pagePath": "newPages/newIndex/index", "pagePath": "newPages/newIndex/index",
"text": "首页", "text": "首页",
"iconPath": "static/imgs/homeone.png", "iconPath": "static/imgs/homeone.png",
@ -215,7 +214,6 @@
} }
] ]
}, },
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app", "navigationBarTitleText": "uni-app",