登录调整整合

This commit is contained in:
aixianling
2022-01-04 17:17:44 +08:00
parent 4e81b6edb9
commit 6e529abfd7
3 changed files with 115 additions and 163 deletions

View File

@@ -40,7 +40,7 @@
</div>
<AiEmpty v-if="!list.length"/>
</div>
<div class="footer-btn" @click="uploadImg" v-if="editText == '编辑' ">上传图片</div>
<div class="footer-btn" @click="delConfirm" v-if="editText == '取消'">删除</div>
</div>
@@ -64,14 +64,12 @@ export default {
computed: { ...mapState(['user']) },
onLoad(option) {
this.params = option
console.log(this.params)
this.getList()
this.getStatistic()
},
onShow() {
document.title = "乡村相册"
},
methods: {
delConfirm() {
if(!this.delIds.length) {
@@ -86,7 +84,6 @@ export default {
this.getList()
this.getStatistic()
this.editClick('取消')
uni.$emit('updateList')
}
})
})
@@ -197,7 +194,6 @@ export default {
})
},
confirmUpload() {
console.log(this.fileList)
var urlList = []
this.fileList.map((item) => {
urlList.push(item.url)
@@ -211,7 +207,6 @@ export default {
this.$u.toast('上传成功!')
this.getList()
this.getStatistic()
uni.$emit('updateList')
}
})
}
@@ -343,7 +338,7 @@ export default {
height: 112px;
line-height: 112px;
background: #3975C6;
box-shadow: 0px 1px 0px 0px #EEEEEE;
box-shadow: 0 1px 0 0 #EEEEEE;
position: fixed;
bottom: 0;
left: 0;
@@ -354,4 +349,4 @@ export default {
z-index: 999;
}
}
</style>
</style>