This commit is contained in:
liuye
2022-01-10 10:12:28 +08:00
5 changed files with 295 additions and 272 deletions

View File

@@ -68,7 +68,6 @@
</div>
</div>
</div>
<div class="pad-b112"></div>
<div class="btn" @click="submit">保存</div>
</div>
</template>
@@ -161,7 +160,7 @@ export default {
for (let i = 0; i < list.length; i ++) {
if (!list[i].content) {
return this.$u.toast(`请输入${i + 1}个选项的内容`)
return this.$u.toast(`请输入${i + 1}个选项的内容`)
}
}
}
@@ -243,7 +242,8 @@ export default {
<style lang="scss" scoped>
.add {
// height: 100%;
padding-bottom: 200px;
background: #f5f5f5;
.header-description {
::v-deep .u-form {

View File

@@ -237,7 +237,7 @@ export default {
width: 100%;
.addresss {
.u-form-item__body {
::v-deep .u-form-item__body {
.u-form-item--right {
.u-form-item--right__content {
.u-form-item--right__content__slot {
@@ -252,6 +252,11 @@ export default {
}
}
}
.u-form-item--right__content__icon {
.u-icon {
margin-bottom: 8px !important;
}
}
}
}
}

View File

@@ -1,5 +1,6 @@
<template>
<div class="Detail" v-if="pageShow" :class="[isAnnouncer && data.status === '0' && data.type === '0' ? 'detail-active' : '']">
<div class="details">
<div class="detail-top">
<div flex class="w-100">
<div class="avatar" v-text="data.avatar" />
@@ -20,6 +21,7 @@
<img :src="item.url" alt="" v-for="(item, index) in data.images" :key="index" @click="previewImage(data.images, item.url)" />
</div>
</div>
<div v-if="data.type == 0" class="comments">
<span class="totalCount">
<span class="total" v-text="`全部评论(${commentCount})`" />
@@ -75,6 +77,7 @@
<u-icon name="arrow-right" color="#999"></u-icon>
</div>
</div>
</div>
<div class="bottomInput" v-if="isAnnouncer && data.status === '0' && data.type === '0'">
<div class="leftInput" @click="showBottomInput = true">我来说两句...</div>
@@ -94,8 +97,10 @@
</u-popup>
<u-popup v-model="deleShow" mode="bottom" class="popupdele">
<div class="hint">删除我的评论</div>
<div class="dele" @click="modalShow = true">删除</div>
<div @click="deleShow = false">取消</div>
<div class="liness"></div>
<div class="cancel" @click="deleShow = false">取消</div>
</u-popup>
<u-modal v-model="modalShow" content="确定删除该留言" :mask-close-able="true" @confirm="confirmDelete"></u-modal>
@@ -328,6 +333,7 @@ export default {
.Detail {
padding-bottom: 40px;
background: #f6f7f9;
height: 100%;
.end-btn {
position: fixed;
@@ -347,6 +353,8 @@ export default {
padding-bottom: 132px;
}
.details {
// padding-bottom: 112px;
.detail-top {
padding: 30px;
background: #fff;
@@ -558,6 +566,7 @@ export default {
}
}
}
}
.bottomInput {
position: fixed;
@@ -633,23 +642,31 @@ export default {
.popupdele {
::v-deep .u-drawer-content {
border-radius: 24px 24px 0px 0px;
text-align: center;
div {
padding: 5px 0;
color: #666;
.hint {
padding: 40px 0 44px 0;
border-bottom: 1px solid #e7e8e9;
font-size: 24px;
color: #666666;
font-size: 24px;
color: #666666;
}
.dele {
padding: 24px 0 28px 0;
font-size: 32px;
color: #c25450;
}
.liness {
height: 12px;
background: #f6f7f8;
}
.cancel {
padding: 24px 0 62px 0;
font-size: 32px;
color: #333333;
}
}
}
// ::v-deep .u-drawer {
// .u-drawer-content {
// .u-drawer__scroll-view {
// .uni-scroll-view {
// // overflow: hidden;
// overflow: inherit !important;
// }
// }
// }
// }
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -1,12 +1,14 @@
<template>
<div class="userList">
<div v-if="data.votes && data.votes.length > 0">
<div v-if="data.votes && data.votes.length">
<div class="datas" v-for="(item, index) in data.votes" :key="index">
<div class="avatLeft">{{ item.userName.substring(item.userName.length, item.userName.length - 2) }}</div>
<div class="avatLeft" v-if="anonymous == 0">{{ item.userName.substring(item.userName.length, item.userName.length - 2) }}</div>
<img class="avatLeft" src="./img/user-img.png" alt="" v-else />
<div class="right">
<div class="top">
<span class="names" v-if="anonymous && anonymous == 1">{{ item.userName }}</span>
<span class="names" v-if="anonymous && anonymous == 0">{{ item.userName }}</span>
<span v-else>匿名用户</span>
<span class="times">{{ item.createTime }}</span>
@@ -75,7 +77,6 @@ uni-page-body {
.datas {
display: flex;
padding: 20px 32px 0 32px;
.avatLeft {
@@ -92,7 +93,7 @@ uni-page-body {
}
.right {
border-bottom: 1px solid #ddd;
width: 100%;
width: calc(100% - 90px);
margin: 10px 0 0 16px;
padding-bottom: 32px;
.top {