Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -139,7 +139,7 @@ export default {
|
|||||||
params = {...this.forms}
|
params = {...this.forms}
|
||||||
}
|
}
|
||||||
params.id = this.id
|
params.id = this.id
|
||||||
this.$http.post(url, form).then((res) => {
|
this.$http.post(url, params).then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$u.toast(successText)
|
this.$u.toast(successText)
|
||||||
uni.$emit('update')
|
uni.$emit('update')
|
||||||
|
|||||||
@@ -19,10 +19,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
appName: '居民标签',
|
appName: '居民标签',
|
||||||
|
|
||||||
data () {
|
data() {
|
||||||
return {
|
return {
|
||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
list: [],
|
list: [],
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad (query) {
|
onLoad(query) {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
if (query.ids) {
|
if (query.ids) {
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onClick (id) {
|
onClick(id) {
|
||||||
const index = this.checked.indexOf(id)
|
const index = this.checked.indexOf(id)
|
||||||
|
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
submit () {
|
submit() {
|
||||||
if (!this.checked.length) {
|
if (!this.checked.length) {
|
||||||
return this.$u.toast('请选择标签')
|
return this.$u.toast('请选择标签')
|
||||||
}
|
}
|
||||||
@@ -72,11 +72,11 @@
|
|||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.tags {
|
.tags {
|
||||||
padding: 16px 0 130px;
|
padding: 16px 0 130px;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -96,7 +96,8 @@
|
|||||||
font-family: PingFangSC-Medium, PingFang SC;
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
div{
|
|
||||||
|
div {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,6 +128,10 @@
|
|||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
background: #F3F4F7;
|
background: #F3F4F7;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
max-width: 100%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -135,5 +140,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user