提交 cc2dc50f authored 作者: 劳广强's avatar 劳广强

fix: 修复 选择发布类型 举报说明弹框过高

上级 7aa038e5
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
<view style="height: 60rpx" /> <view style="height: 60rpx" />
<u-modal :show="showReport" title="举报说明" @confirm="onReportConfirm"> <u-modal :show="showReport" title="举报说明" @confirm="onReportConfirm">
<rich-text :nodes="content" /> <view :style="`max-height: ${modalHeight}rpx; overflow-y: scroll; white-space: pre-wrap`">
<rich-text :nodes="content" />
</view>
</u-modal> </u-modal>
</view> </view>
</view> </view>
...@@ -37,6 +39,12 @@ export default { ...@@ -37,6 +39,12 @@ export default {
}; };
}, },
computed: {
modalHeight() {
return Math.ceil(window.innerHeight * 2 * 0.6);
},
},
onLoad(query) { onLoad(query) {
this.query = query; this.query = query;
this.fetchPhotoTaskTypeData(); this.fetchPhotoTaskTypeData();
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
<u-button class="report-btn" @click="onReportClick">举报说明</u-button> <u-button class="report-btn" @click="onReportClick">举报说明</u-button>
</view> </view>
<u-modal :show="showReport" title="举报说明" :content="content" @confirm="onReportConfirm" /> <u-modal :show="showReport" title="举报说明" @confirm="onReportConfirm">
<view :style="`max-height: ${modalHeight}rpx; overflow-y: scroll; white-space: pre-wrap`">{{ content }}</view>
</u-modal>
</view> </view>
</view> </view>
</template> </template>
...@@ -54,6 +56,12 @@ export default { ...@@ -54,6 +56,12 @@ export default {
}; };
}, },
computed: {
modalHeight() {
return Math.ceil(window.innerHeight * 2 * 0.6);
},
},
onLoad(query) { onLoad(query) {
this.fetchPhotoTaskTypeData(); this.fetchPhotoTaskTypeData();
// this.fetchPhotoTaskTypeDetail(); // this.fetchPhotoTaskTypeDetail();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论