0416-2
This commit is contained in:
parent
b741f1140a
commit
222dd08ee9
@ -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 {
|
||||||
|
|||||||
@ -175,7 +175,9 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
// this.findSelfInfo()
|
this.selfInfoLocal = getLocalUserInfo()
|
||||||
|
this.getUserInfo()
|
||||||
|
this.systemInfo()
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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>
|
||||||
12
pages.json
12
pages.json
@ -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",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user