|
@@ -1,47 +1,54 @@
|
|
|
-<!--
|
|
|
- ****--@date 2024-06-10 15:08:22
|
|
|
- ****--@author yizhiyang
|
|
|
- ****--@description 底部发布评论按钮
|
|
|
--->
|
|
|
<template>
|
|
|
- <view class="fl-flex publish-review">
|
|
|
- <u--input
|
|
|
- placeholder="说点什么..."
|
|
|
- shape="circle"
|
|
|
- v-model="value"
|
|
|
- border="none"
|
|
|
- :customStyle="customStyleInput"
|
|
|
- ></u--input>
|
|
|
- <u-button text="发布" :customStyle="customStyleBtn" color="#215EBE"></u-button>
|
|
|
- </view>
|
|
|
+ <u-popup :show="show" @close="close" closeable>
|
|
|
+ <view :style="{ height }" class="publish-review">
|
|
|
+ <view class="review-title">商品评价</view>
|
|
|
+ <view class="u-m-t-32">
|
|
|
+ <evaluate-list v-for="(item, index) in 1" :key="index"></evaluate-list>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="review-button">
|
|
|
+ <publish-bottom></publish-bottom>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: 'publish-review',
|
|
|
- computed: {
|
|
|
- customStyleBtn() {
|
|
|
- return {
|
|
|
- width: '96rpx',
|
|
|
- height: '68rpx',
|
|
|
- borderRadius: ' 8rpx',
|
|
|
- marginLeft: '32rpx',
|
|
|
- };
|
|
|
+ props: {
|
|
|
+ show: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
+ height: {
|
|
|
+ type: String,
|
|
|
+ default: '600rpx',
|
|
|
},
|
|
|
- customStyleInput() {
|
|
|
- return {
|
|
|
- height: '70rpx !important',
|
|
|
- backgroundColor: '#f5f6f8',
|
|
|
- paddingLeft: '32rpx',
|
|
|
- };
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ show: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ close() {
|
|
|
+ this.$emit('close', false);
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
+<style lang="scss" scope>
|
|
|
.publish-review {
|
|
|
- height: 88rpx;
|
|
|
- padding: 10rpx 32rpx;
|
|
|
+ padding: 32rpx;
|
|
|
+ .review-title {
|
|
|
+ font-size: 32rpx;
|
|
|
+ padding-bottom: 28rpx;
|
|
|
+ border-bottom: 2rpx solid #dddddd;
|
|
|
+ }
|
|
|
+ .review-button {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ width: 100%;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|