新增修改资料页面-新增切换门户页面-其他修改

This commit is contained in:
FrancisHu 2024-08-08 16:21:32 +08:00
parent 4abbd22633
commit 6e0361deef
9 changed files with 9609 additions and 8622 deletions

View File

@ -68,6 +68,32 @@
"style": {
"navigationBarTitleText": "学习项目"
}
},
{
"path" : "pages/YNEduApp/user/editProfile",
"style" :
{
"navigationBarTitleText" : "编辑资料"
}
},
{
"path" : "pages/YNEduApp/user/changeGate",
"style" :
{
"navigationBarTitleText" : "选择公司",
"app-plus": {
"titleNView": {
"buttons": [
{
"text": "完成",
"fontSize": "16px",
"color": "#000",
"float": "right"
}
]
}
}
}
}
],
"globalStyle": {

View File

@ -26,8 +26,8 @@
</view>
</view>
<view class="swipe-area">
<swiper class="swiper-box" autoplay interval="2000" indicator-dots="true">
<swiper-item v-for="(item ,index) in imgList" :key="index">
<swiper class="swiper-box" autoplay interval="3000" indicator-dots="true">
<swiper-item v-for="(item, index) in imgList" :key="index">
<img :src="item.image" alt="" style="width: 100%; height: 100%">
</swiper-item>
</swiper>

View File

@ -141,10 +141,10 @@
{ title: '电功率', id: 124, percent: 13 },
],
theoryPracList: [
{ title: '母猪的产后护理', id: 141, ifPrac: false },
{ title: '公猪的情绪安抚', id: 142, ifPrac: true },
{ title: '母狗的二三情事', id: 143, ifPrac: true },
{ title: '公狗的大顶绿帽', id: 144, ifPrac: false },
{ title: '物理练习', id: 141, ifPrac: false },
{ title: '魔法练习', id: 142, ifPrac: true },
{ title: '近战练习', id: 143, ifPrac: true },
{ title: '远程练习', id: 144, ifPrac: false },
],
commentList: [
{ username: '王二', avatar: '/static/eduImg/avatar.jpg', cont: '写的什么东西' },

View File

@ -0,0 +1,74 @@
<template>
<view class="page">
<view
:class="[ 'single-company', { clicked: companyCount === index } ]"
v-for="(item, index) in companyList"
:key="item.id"
@click="clickCompany(index)"
>
{{ item.name }}
</view>
</view>
</template>
<script>
export default {
data() {
return {
companyCount: '',
companyList: [
{ id: 41, name: '测试单位' },
{ id: 42, name: '应急抢险技能实训场' },
{ id: 43, name: '云南送变电培训与评价中心' },
]
}
},
methods: {
clickCompany(count) {
this.companyCount = count
}
},
onNavigationBarButtonTap(e) {
if (this.companyCount === '') {
uni.showToast({
icon: 'none',
title: '请选择公司!'
})
} else {
console.log(this.companyList[this.companyCount].id)
}
},
}
</script>
<style lang="scss">
.page{
width: 100vw;
height: 100vh;
background-color: #F8F8F8;
box-sizing: border-box;
padding: 15rpx 0;
.single-company{
width: 100%;
background-color: #fff;
box-sizing: border-box;
padding: 25rpx;
margin-bottom: 10rpx;
font-size: 14px;
font-weight: bold;
}
.clicked{
background-color: #ECF2F8;
}
}
</style>

View File

@ -0,0 +1,83 @@
<template>
<view class="page">
<u-cell-group
style="width: 100%;
margin: 15rpx auto;
background-color: #fff;
box-sizing: border-box;
padding: 10rpx 20rpx;
box-shadow: #EFEFEF 2px 2px;
border-radius: 15rpx"
:border="false"
>
<u-cell
title="头像"
:isLink="true"
:border="false"
style="border-bottom: 1px solid #E9E9E9"
>
<image
:src="infos.avatar"
slot="value"
style="width: 5vh; height: 5vh; border-radius: 50%"
></image>
</u-cell>
<u-cell
title="姓名"
:isLink="true"
:border="false"
>
<span slot="value">{{ infos.username }}</span>
</u-cell>
</u-cell-group>
<u-cell-group
style="width: 100%;
margin: 15rpx auto;
background-color: #fff;
box-sizing: border-box;
padding: 10rpx 20rpx;
box-shadow: #EFEFEF 2px 2px;
border-radius: 15rpx"
:border="false"
>
<u-cell
title="工作单位"
:isLink="true"
:border="false"
>
<span slot="value">{{ infos.unit }}</span>
</u-cell>
</u-cell-group>
</view>
</template>
<script>
export default {
data() {
return {
infos: {
avatar: '/static/eduImg/avatar.jpg',
username: '马晓峰',
unit: '测试单位'
}
}
},
methods: {
}
}
</script>
<style lang="scss">
.page{
width: 100vw;
height: 100vh;
background-color: #F8F8F8;
box-sizing: border-box;
padding: 5vw;
}
</style>

View File

@ -9,7 +9,7 @@
<span style="font-size: 12px; color: #8A8A8B">云南送变电培训中心</span>
</view>
<view class="edit-btn">
<view>修改资料</view>
<view @click="jumpUrl('editProfile')">修改资料</view>
</view>
</view>
<view class="learn-infos">
@ -130,7 +130,7 @@
background: linear-gradient(90deg, #6DCDFA, #4BA2F9);
color: #fff;
box-sizing: border-box;
padding: 10rpx 0;
padding: 12rpx 0;
margin: auto;
border-radius: 20px;
display: flex;

View File

@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/login","pages/webview","pages/message/index","pages/message/detail","pages/gzt/index","pages/txl/index","pages/mine/index","pages/YNEduApp/index/index","pages/YNEduApp/user/user","pages/YNEduApp/user/settings","pages/YNEduApp/learnProj/learnProj","pages/YNEduApp/learnProj/learnProjDetail"],"window":{"fontFamily":"Helvetica, Arial, sans-serif","pageOrientation":"portrait","navigationBarTitleText":"作业管控智慧平台","navigationBarTextStyle":"black","navigationBarBackgroundColor":"#ffffff","backgroundColor":"#F8F8F8","backgroundColorTop":"#F4F5F6","backgroundColorBottom":"#F4F5F6"},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"作业管控智慧平台","compilerVersion":"4.23","entryPagePath":"pages/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login","meta":{"isQuit":true},"window":{"navigationBarTitleText":"登录","navigationStyle":"custom"}},{"path":"/pages/webview","meta":{},"window":{"navigationBarTitleText":"作业管控智慧平台","navigationStyle":"custom"}},{"path":"/pages/message/index","meta":{},"window":{"navigationBarTitleText":"消息"}},{"path":"/pages/message/detail","meta":{},"window":{"navigationBarTitleText":"消息"}},{"path":"/pages/gzt/index","meta":{},"window":{"navigationBarTitleText":"作业管控智慧平台","navigationStyle":"custom"}},{"path":"/pages/txl/index","meta":{},"window":{"navigationBarTitleText":"通讯录"}},{"path":"/pages/mine/index","meta":{},"window":{"navigationBarTitleText":"我的","navigationStyle":"custom"}},{"path":"/pages/YNEduApp/index/index","meta":{},"window":{"navigationBarTitleText":"首页"}},{"path":"/pages/YNEduApp/user/user","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/YNEduApp/user/settings","meta":{},"window":{"navigationBarTitleText":"设置"}},{"path":"/pages/YNEduApp/learnProj/learnProj","meta":{},"window":{"navigationBarTitleText":"学习项目"}},{"path":"/pages/YNEduApp/learnProj/learnProjDetail","meta":{},"window":{"navigationBarTitleText":"学习项目"}}];
var __uniConfig = {"pages":["pages/login","pages/webview","pages/message/index","pages/message/detail","pages/gzt/index","pages/txl/index","pages/mine/index","pages/YNEduApp/index/index","pages/YNEduApp/user/user","pages/YNEduApp/user/settings","pages/YNEduApp/learnProj/learnProj","pages/YNEduApp/learnProj/learnProjDetail","pages/YNEduApp/user/editProfile","pages/YNEduApp/user/changeGate"],"window":{"fontFamily":"Helvetica, Arial, sans-serif","pageOrientation":"portrait","navigationBarTitleText":"作业管控智慧平台","navigationBarTextStyle":"black","navigationBarBackgroundColor":"#ffffff","backgroundColor":"#F8F8F8","backgroundColorTop":"#F4F5F6","backgroundColorBottom":"#F4F5F6"},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"作业管控智慧平台","compilerVersion":"4.23","entryPagePath":"pages/login","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/login","meta":{"isQuit":true},"window":{"navigationBarTitleText":"登录","navigationStyle":"custom"}},{"path":"/pages/webview","meta":{},"window":{"navigationBarTitleText":"作业管控智慧平台","navigationStyle":"custom"}},{"path":"/pages/message/index","meta":{},"window":{"navigationBarTitleText":"消息"}},{"path":"/pages/message/detail","meta":{},"window":{"navigationBarTitleText":"消息"}},{"path":"/pages/gzt/index","meta":{},"window":{"navigationBarTitleText":"作业管控智慧平台","navigationStyle":"custom"}},{"path":"/pages/txl/index","meta":{},"window":{"navigationBarTitleText":"通讯录"}},{"path":"/pages/mine/index","meta":{},"window":{"navigationBarTitleText":"我的","navigationStyle":"custom"}},{"path":"/pages/YNEduApp/index/index","meta":{},"window":{"navigationBarTitleText":"首页"}},{"path":"/pages/YNEduApp/user/user","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/YNEduApp/user/settings","meta":{},"window":{"navigationBarTitleText":"设置"}},{"path":"/pages/YNEduApp/learnProj/learnProj","meta":{},"window":{"navigationBarTitleText":"学习项目"}},{"path":"/pages/YNEduApp/learnProj/learnProjDetail","meta":{},"window":{"navigationBarTitleText":"学习项目"}},{"path":"/pages/YNEduApp/user/editProfile","meta":{},"window":{"navigationBarTitleText":"编辑资料"}},{"path":"/pages/YNEduApp/user/changeGate","meta":{},"window":{"navigationBarTitleText":"选择公司","titleNView":{"buttons":[{"text":"完成","fontSize":"16px","color":"#000","float":"right"}]}}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long