Browse Source

ggg

master
Bobi 3 months ago
parent
commit
20da6766d9
13 changed files with 577 additions and 42 deletions
  1. +11
    -0
      api/api.js
  2. +67
    -34
      pages.json
  3. +6
    -5
      pages/index/center.vue
  4. +26
    -3
      pages/index/index.vue
  5. +98
    -0
      pages_order/order/ChangePassword.vue
  6. +1
    -0
      pages_order/order/FavoriteList.vue
  7. +38
    -0
      pages_order/order/HelpCenter.vue
  8. +122
    -0
      pages_order/order/ModifyMembers.vue
  9. +1
    -0
      pages_order/order/ModifyWorkOrder.vue
  10. +38
    -0
      pages_order/order/PrivacyAgreement.vue
  11. +1
    -0
      pages_order/order/WorkOrders.vue
  12. +44
    -0
      pages_order/order/Worknotice.vue
  13. +124
    -0
      pages_order/order/memberList.vue

+ 11
- 0
api/api.js View File

@ -33,6 +33,17 @@ const config = {
url: '/workorder/template/queryTemplateList',
method: 'GET',
},
//公告信息-查询公告列表
queryNewsList: {
url: '/workorder/news/queryNewsList',
method: 'GET',
},
// 公告信息-根据id查询公告信息
queryNewsById: {
url: '/workorder/news/queryNewsById',
method: 'GET',
},
}


+ 67
- 34
pages.json View File

@ -1,6 +1,5 @@
{
"pages": [
{
"pages": [{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "",
@ -22,8 +21,7 @@
},
"subPackages": [{
"root": "pages_order",
"pages": [
{
"pages": [{
"path": "auth/wxLogin"
},
{
@ -36,64 +34,99 @@
"path": "mine/help"
},
{
"path" : "order/WorkOrders"
"path": "order/WorkOrders"
},
{
"path": "order/ModifyWorkOrder",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "order/FavoriteList",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "order/WorkOrderList",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/ModifyWorkOrder",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/ProcessCardOne",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/FavoriteList",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/ProcessCardTo",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/WorkOrderList",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/ProcessCardThree",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "order/ProcessCardFour",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "order/memberList",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "order/ModifyMembers",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/ProcessCardOne",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/Worknotice",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/ProcessCardTo",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/ChangePassword",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/ProcessCardThree",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/HelpCenter",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "order/ProcessCardFour",
"style" :
{
"navigationBarTitleText" : ""
"path": "order/PrivacyAgreement",
"style": {
"navigationBarTitleText": ""
}
}
]
}],
"globalStyle": {


+ 6
- 5
pages/index/center.vue View File

@ -11,7 +11,8 @@
</view>
<view class="box">
<view class="index">
<view class="index"
@click="$utils.navigateTo('/pages_order/order/memberList')">
<view class="indus">
<view class="horn">
<uv-icon name="account-fill" size="30rpx"></uv-icon>
@ -25,12 +26,12 @@
</view>
</view>
<hr />
<view class="index">
<view class="index" @click="$utils.navigateTo('/pages_order/order/ChangePassword')">
<view class="indus">
<view class="horn">
<uv-icon name="lock-fill" size="30rpx"></uv-icon>
</view>
<view class="words">
<view class="words" >
修改密码
</view>
</view>
@ -54,7 +55,7 @@
</view>
</view>
<hr />
<view class="index">
<view class="index" @click="$utils.navigateTo('/pages_order/order/HelpCenter')">
<view class="indus">
<view class="horn">
<uv-icon name="question-circle-fill" size="30rpx"></uv-icon>
@ -68,7 +69,7 @@
</view>
</view>
<hr />
<view class="index">
<view class="index" @click="$utils.navigateTo('/pages_order/order/PrivacyAgreement')">
<view class="indus">
<view class="horn">
<uv-icon name="info-circle-fill" size="30rpx"></uv-icon>


+ 26
- 3
pages/index/index.vue View File

@ -24,7 +24,9 @@
</view>
<view class="festival">
<uv-notice-bar :text="text" direction="column"></uv-notice-bar>
<uv-notice-bar
@click="toNotice"
:text="text" direction="column" ></uv-notice-bar>
</view>
<view class="task">
@ -93,13 +95,15 @@
url : '/pages_order/order/WorkOrderList',
},
],
text: ['uv-ui众多组件覆盖开发过程的各个需求','组件功能丰富,多端兼容','让您快速集成,开箱即用'],
NewsList : [],//
text : [],//
}
},
computed: {
},
onLoad() {
this.queryBannerList()
this.queryNewsList()
},
methods: {
queryBannerList(){
@ -108,7 +112,26 @@
this.bannerList = res.result.records
}
})
}
},
queryNewsList(){
this.$api('queryNewsList', res =>{
if(res.code == 200){
this.NewsList = res.result.records
res.result.records.forEach(n => {
this.text.push(n.title)
})
}
})
},
toNotice(index){
console.log(this.NewsList[index]);
// @click="$utils.navigateTo('/pages_order/order/Worknotice')"
uni.navigateTo({
url: '/pages_order/order/Worknotice?id=' + this.NewsList[index].id
})
},
}
}
</script>


+ 98
- 0
pages_order/order/ChangePassword.vue View File

@ -0,0 +1,98 @@
<template>
<!-- 修改成员 -->
<view class="page">
<navbar title="修改密码" leftClick @leftClick="$utils.navigateBack" />
<view class="box">
<view class="ChangeAccountpassword">
<view class="ChangeName">
新密码
<uv-input placeholder="请输入您的新密码" border="bottom"></uv-input>
<view class="Bo">
<uv-icon name="edit-pen" size="60"></uv-icon>
</view>
</view>
<view class="Changepassword">
确认密码
<uv-input placeholder="请重复新密码" border="bottom"></uv-input>
<view class="Bo">
<uv-icon name="edit-pen" size="60"></uv-icon>
</view>
</view>
</view>
<view class="preservation">
保存
</view>
</view>
</view>
</template>
<script >
export default {
data() {
return {
value: ''
}
},
methods: {
change(e) {
console.log('change', e);
}
}
}
</script>
<style scoped lang="scss">
.page {
.box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
justify-content: space-around;
height: 1300rpx;
.ChangeAccountpassword {
.ChangeName {
display: flex;
align-items: center;
margin: 80rpx 0rpx;
font-size: 35rpx;
.Bo {
margin-right: 50rpx;
}
}
.Changepassword {
display: flex;
align-items: center;
font-size: 35rpx;
.Bo {
margin-right: 50rpx;
}
}
}
.preservation {
background-color: #169bd5;
padding: 35rpx 70rpx;
border-radius: 20rpx;
}
}
}
</style>

+ 1
- 0
pages_order/order/FavoriteList.vue View File

@ -1,4 +1,5 @@
<template>
<!-- 收藏列表 -->
<view class="page">
<navbar
title="收藏列表"


+ 38
- 0
pages_order/order/HelpCenter.vue View File

@ -0,0 +1,38 @@
<template>
<!-- 帮助中心 -->
<view class="page">
<navbar
title="帮助中心"
leftClick
@leftClick="$utils.navigateBack"/>
<view class="box">
<view class="center">
<h2>帮助中心</h2>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.page{
.box{margin-top: 150rpx;
display: flex;
justify-content: center;
}
}
</style>

+ 122
- 0
pages_order/order/ModifyMembers.vue View File

@ -0,0 +1,122 @@
<template>
<!-- 修改成员 -->
<view class="page">
<navbar title="修改成员" leftClick @leftClick="$utils.navigateBack" />
<view class="box">
<view class="ChangeheadPortrait">
<view class="headPortrait">
</view>
<view class="Bo">
<uv-icon name="edit-pen" size="60"></uv-icon>
</view>
</view>
<view class="ChangeAccountpassword">
<view class="ChangeName">
员工账号
<uv-input placeholder="请输入员工账号" border="bottom"></uv-input>
<view class="Bo">
<uv-icon name="edit-pen" size="60"></uv-icon>
</view>
</view>
<view class="Changepassword">
员工密码
<uv-input placeholder="请输入员工密码" border="bottom"></uv-input>
<view class="Bo">
<uv-icon name="edit-pen" size="60"></uv-icon>
</view>
</view>
</view>
<view class="preservation">
保存
</view>
</view>
</view>
</template>
<script >
export default {
data() {
return {
value: ''
}
},
methods: {
change(e) {
console.log('change', e);
}
}
}
</script>
<style scoped lang="scss">
.page {
.box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
justify-content: space-around;
height: 1300rpx;
.ChangeheadPortrait {
display: flex;
align-items: center;
.headPortrait {
height: 150rpx;
width: 150rpx;
background-color: yellowgreen;
.Bo{
margin-right: 50rpx;
}
}
}
.ChangeAccountpassword {
.ChangeName {
display: flex;
align-items: center;
margin: 25rpx 0rpx;
font-size: 35rpx;
.Bo {
margin-right: 50rpx;
}
}
.Changepassword {
display: flex;
align-items: center;
font-size: 35rpx;
.Bo {
margin-right: 50rpx;
}
}
}
.preservation {
background-color: #169bd5;
padding: 35rpx 70rpx;
border-radius: 20rpx;
}
}
}
</style>

+ 1
- 0
pages_order/order/ModifyWorkOrder.vue View File

@ -1,4 +1,5 @@
<template>
<!-- 工单详情 -->
<view class="page">
<navbar title="工单详情" leftClick @leftClick="$utils.navigateBack" />


+ 38
- 0
pages_order/order/PrivacyAgreement.vue View File

@ -0,0 +1,38 @@
<template>
<!-- 隐私协议 -->
<view class="page">
<navbar
title="隐私协议"
leftClick
@leftClick="$utils.navigateBack"/>
<view class="box">
<view class="center">
<h2>隐私协议</h2>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.page{
.box{margin-top: 150rpx;
display: flex;
justify-content: center;
}
}
</style>

+ 1
- 0
pages_order/order/WorkOrders.vue View File

@ -1,4 +1,5 @@
<template>
<!-- 工单详情 -->
<view class="page">
<navbar


+ 44
- 0
pages_order/order/Worknotice.vue View File

@ -0,0 +1,44 @@
<template>
<!-- 公告 -->
<view class="page">
<navbar title="工告" leftClick @leftClick="$utils.navigateBack" />
<view style="padding: 20rpx;">
<uv-parse :content="NewsById.content"></uv-parse>
</view>
</view>
</template>
<script>
export default {
data() {
return {
NewsById : {},
id : 0,
}
},
onLoad(args) {
this.id = args.id
this.queryNewsById()
},
methods: {
queryNewsById(){
this.$api('queryNewsById', {
newsId : this.id
}, res =>{
if(res.code == 200){
this.NewsById = res.result
}
})
},
}
}
</script>
<style scoped lang="scss">
.page {
}
</style>

+ 124
- 0
pages_order/order/memberList.vue View File

@ -0,0 +1,124 @@
<template>
<!-- 成员列表 -->
<view class="page">
<navbar title="成员列表" leftClick @leftClick="$utils.navigateBack" />
<view class="search">
<uv-search placeholder="输入员工姓名进行搜索" bgColor="#fff" height="80"></uv-search>
</view>
<view class="Memberinformation">
<view class="box" v-for="(item,index) in 10 ">
<view class="Top">
<view class="userName">
李晓春
</view>
<view class="modify"
@click="$utils.navigateTo('/pages_order/order/ModifyMembers')">
修改
</view>
</view>
<view class="AccountPassword">
<view class="Account">
账号李小春
</view>
<view class="password">
密码123456lixiaochun
</view>
</view>
<view class="item">
<view class="itemm">
创建时间2024.11.23
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
.page {
.search {
margin: 20rpx;
}
.Memberinformation {
margin: 90rpx 30rpx;
.box {
/* margin-top: 20rpx;
height: 220rpx;
border: 1rpx solid rgb(99, 187, 211);
border-radius: 20rpx;
padding: 20rpx 25rpx; */
margin-top: 20rpx;
border: 6rpx solid rgb(99, 187, 211);
border-radius: 25rpx;
padding: 15rpx;
background-color: #fff;
.Top {
margin-top: 20rpx;
display: flex;
justify-content: space-between;
.userName {
font-size: 33rpx;
}
.modify {
font-size: 33rpx;
color: rgb(99, 187, 211);
margin-right: 30rpx;
}
}
.AccountPassword {
margin-top: 40rpx;
.password {
margin-top: 20rpx;
}
}
.item {
display: flex;
justify-content: flex-end;
font-size: 24rpx;
padding: 0rpx 15rpx;
margin-top: 15rpx;
.itemm {
margin-left: 40rpx;
}
}
}
}
}
</style>

Loading…
Cancel
Save