This commit is contained in:
liuye
2022-01-05 17:56:20 +08:00
parent e2d3ac1666
commit 182a223918
10 changed files with 295 additions and 8 deletions

View File

@@ -0,0 +1,216 @@
<template>
<div class="AddSet">
<div class="contents">
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
<u-form-item label="事项分组" prop="status" required :border-bottom="false" right-icon="arrow-right">
<u-input v-model="forms.status" placeholder="请选择事项分组" />
</u-form-item>
<u-form-item label="类别" prop="status" required :border-bottom="false">
</u-form-item>
<div class="remove-item">
<img src="./components/img/remove-icon.png" alt="">
<div class="input">
<u-input v-model="forms.status" placeholder="请输入" />
</div>
</div>
<div class="remove-item">
<img src="./components/img/add-icon.png" alt="">
<div class="input color-2270F1">添加分类</div>
</div>
</u-form>
</div>
<!-- <div class="btn" @click="submit">保存</div> -->
<div class="footer">
<div class="remove">删除</div>
<div class="confirm">保存</div>
</div>
</div>
</template>
<script>
export default {
name: 'AddSet',
components: {},
props: {},
data() {
return {
forms: {
status: '',
content: '',
fileIds: [],
},
flag: false,
show: false
}
},
methods: {
submit() {
if (this.flag) return
this.$refs.uForm.validate((valid) => {
if (valid) {
if (!this.forms.content) {
return this.$u.toast('请选择转交人')
}
const imgs = []
if (this.forms.fileIds) {
this.forms.fileIds.map((e) => {
imgs.push({ url: e.url, id: e.id })
})
}
this.flag = true
this.$http
.post(`/app/appvisitvondolence/addOrUpdate`, {
title: this.forms.title,
content: this.forms.content,
// images: JSON.stringify(imgs) || [],
images: imgs || [],
people: this.forms.people,
phone: this.forms.phone,
id: this.id,
})
.then((res) => {
if (res.code == 0) {
this.$u.toast('发布成功')
this.flag = false
uni.navigateTo({ url: `./AppHandSnapshot` })
}
})
} else {
this.$u.toast('失败')
}
})
},
toSelectUser() {
console.log(123)
uni.navigateTo({url: './SelectUser'})
}
},
}
</script>
<style scoped lang="scss">
.AddSet {
height: 100%;
.contents {
::v-deep .u-form {
.u-form-item {
padding: 0 45px !important;
.u-form-item__body {
.u-form-item--right__content__slot {
padding-bottom: 0;
.u-input {
text-align: right !important;
}
}
}
}
.u-form-item:first-child {
.u-form-item__body {
border-bottom: 1px solid #ddd;
}
}
.line {
height: 24px;
background: #f3f6f9;
}
.contents {
padding-bottom: 20px !important;
.u-form-item__body {
.u-form-item--right__content__slot {
.u-input {
text-align: left !important;
}
}
}
}
.avatars {
padding-bottom: 20px !important;
.u-form-item__body {
.default {
width: 160px;
height: 160px;
}
}
}
}
}
.remove-item{
padding: 42px 0 42px 32px;
box-sizing: border-box;
background-color: #fff;
img{
width: 36px;
height: 36px;
margin-right: 12px;
vertical-align: middle;
}
.input{
display: inline-block;
width: calc(100% - 48px);
height: 36px;
line-height: 36px;
}
.color-2270F1{
color: #2270F1;
font-size: 30px;
font-family: PingFangSC-Regular, PingFang SC;
line-height: 42px;
}
}
.btn {
position: fixed;
bottom: 0;
width: 100%;
box-sizing: border-box;
background: #3975c6;
padding: 34px 0;
text-align: center;
font-size: 32px;
font-weight: 500;
color: #ffffff;
}
.footer{
position: fixed;
bottom: 0;
width: 100%;
box-sizing: border-box;
background: #fff;
padding: 32px;
display: flex;
justify-content: space-between;
div{
height: 92px;
line-height: 92px;
box-sizing: border-box;
text-align: center;
border-radius: 8px;
font-size: 34px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
}
.remove{
flex: 1;
border: 1px solid #f46;
color: #f46;
margin-right: 32px;
}
.confirm{
flex: 2;
background: #3975C6;
color: #fff;
}
}
}
</style>

View File

@@ -26,10 +26,10 @@ export default {
data() { data() {
return { return {
component: 'List', component: 'Set',
params: {}, params: {},
refresh: true, refresh: true,
tabIndex: 0, tabIndex: 2,
tabs: [ tabs: [
{ {
img: require('./components/img/handle-icon.png'), img: require('./components/img/handle-icon.png'),

View File

@@ -200,13 +200,13 @@
<div class="fixedBtn"> <div class="fixedBtn">
<div class="status00"> <div class="status00">
<div class="columns" @click="toContent"> <div class="columns border-r" @click="toContent">
<img src="./components/22.png" alt="" /> <img src="./components/img/zhuanjiao.png" alt="" />
<span class="hint">转交事件</span> <span class="hint">转交事件</span>
</div> </div>
<div class="columns" @click="toContent"> <div class="columns" @click="toContent">
<img src="./components/22.png" alt="" /> <img src="./components/img/jujue.png" alt="" />
<span class="hint">拒绝受理</span> <span class="hint">拒绝受理</span>
</div> </div>
@@ -478,6 +478,7 @@ uni-page-body {
align-items: center; align-items: center;
width: 22%; width: 22%;
padding: 16px 0; padding: 16px 0;
border-top: 1px solid #ddd;
img { img {
width: 44px; width: 44px;
height: 42px; height: 42px;
@@ -488,6 +489,9 @@ uni-page-body {
color: #666666; color: #666666;
} }
} }
.border-r{
border-right: 1px solid #ddd;
}
.doIt { .doIt {
width: 56%; width: 56%;
background: #3975c6; background: #3975c6;

View File

@@ -21,7 +21,7 @@
<img src="./components/img/right-icon.png" alt=""> <img src="./components/img/right-icon.png" alt="">
</div> </div>
</div> </div>
<div class="btn">新建分类</div> <div class="btn" @click="toAddSet">新建分类</div>
</div> </div>
</template> </template>
@@ -37,7 +37,11 @@ export default {
data() { data() {
return {} return {}
}, },
methods: {}, methods: {
toAddSet() {
uni.navigateTo({url: './AddSet'})
}
},
} }
</script> </script>

View File

@@ -74,7 +74,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="info-content"> <div class="info-content" @click="toUserList">
<div class="title">成员明细 <div class="title">成员明细
<img src="./components/img/right-icon.png" alt=""> <img src="./components/img/right-icon.png" alt="">
</div> </div>
@@ -141,6 +141,9 @@ export default {
toPercentageDetail() { toPercentageDetail() {
uni.navigateTo({url: './PercentageDetail'}) uni.navigateTo({url: './PercentageDetail'})
},
toUserList() {
uni.navigateTo({url: './UserList'})
} }
}, },
} }

View File

@@ -0,0 +1,60 @@
<template>
<div class="UserList">
<div class="item">
<img src="./components/img/user-img.png" alt="">
<div class="info">
<h2>李毅</h2>
<p>共受理23条 | 已办结17条</p>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'UserList',
data() {
return {
}
},
methods: {
},
}
</script>
<style scoped lang="scss">
.UserList {
height: 100%;
.item{
padding: 24px 0 0 32px;
background-color: #fff;
img{
width: 80px;
height: 80px;
margin-right: 32px;
}
.info{
display: inline-block;
width: calc(100% - 112px);
padding-bottom: 24px;
border-bottom: 1px solid #E4E5E6;
h2{
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333;
line-height: 44px;
margin-bottom: 6px;
}
p{
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666;
line-height: 40px;
}
}
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB