Commit bb5aae69 authored by 刘玉宏's avatar 刘玉宏

1323

parent b8bf8d29
...@@ -2,44 +2,50 @@ ...@@ -2,44 +2,50 @@
<view class="container"> <view class="container">
<Header title="评论"></Header> <Header title="评论"></Header>
<view class="content"> <view class="content">
<view class="remake"> <wd-form ref="form" :model="model" :rules="rules" class="remake">
<wd-row> <text class="textarea">老凯里酸汤鱼</text>
<wd-col :span="24" custom-class="text"> <view class="itemPicker">
<h5>老凯里酸汤鱼</h5> <view class="item01">
</wd-col> <text class="label">评分</text>
</wd-row>
<wd-row custom-class="wd-rows">
<wd-col :span="16">
<span>评分</span>
<wd-rate v-model="pinfen" active-color="#ff0000" size="50rpx" space="10px" /> <wd-rate v-model="pinfen" active-color="#ff0000" size="50rpx" space="10px" />
</wd-col> </view>
<wd-col :span="8"> <view class="item02">
<span>非常满意</span> <text>非常满意</text>
</wd-col> </view>
</wd-row> </view>
<wd-divider></wd-divider>
<wd-textarea v-model="pingjia" placeholder="亲,分享您的看法,给其他人一个参考哦!" /> <wd-textarea v-model="pingjia" placeholder="亲,分享您的看法,给其他人一个参考哦!" />
<wd-row>
<wd-col :span="24" custom-class="text"> <text class="textarea">上传图片/视频</text>
<h5>上传图片/视频</h5>
</wd-col>
</wd-row>
<wd-upload <wd-upload
class="wdUpload"
accept="media" accept="media"
multiple multiple
:file-list="fileList" :file-list="fileList"
:action="action" :action="action"
@change="handleChange" @change="handleChange"
></wd-upload> ></wd-upload>
<view class="tuijian">
<view class="tjTitle">
<text class="textarea">我要推荐菜</text>
<text class="textRight">
查看全部(30)
<i></i>
</text>
</view>
<view class="itemtuijianList">
<wd-button type="success" plain classPrefix="fish" icon="kehuishouwu">
主要按钮
</wd-button>
</view>
</view>
<wd-row> <wd-cell title="开启折扣" title-width="100px" prop="switchVal" center>
<wd-col :span="24" custom-class="text"> <view style="text-align: left">
<h5>我要推荐菜</h5> <wd-switch v-model="mode.switchVal" />
<h5>查看全部(30)</h5>
</wd-col>
</wd-row>
</view> </view>
</wd-cell>
</wd-form>
<wd-button type="error" block>发布</wd-button> <wd-button type="error" block>发布</wd-button>
</view> </view>
...@@ -49,36 +55,37 @@ ...@@ -49,36 +55,37 @@
import Header from './components/Header/index.vue'; import Header from './components/Header/index.vue';
const pinfen = ref<number>(0); const pinfen = ref<number>(0);
const pingjia = ref<string>('');
function changeValue({ pinfen }) { function changeValue({ pinfen }) {
console.log(pinfen); console.log(pinfen);
} }
const fileList = ref<any[]>([ const pingjia = ref<string>('');
{
url: '1', const action = ref<string>('/zhTuw2P8c29bc981a741931bdd86eb04dc1e8fd64865cb5/upload');
},
]);
const action: string = ''; const fileList = ref([]);
function handleChange({ fileList: files }) { function handleChange({ files }) {
fileList.value = files; fileList.value = files;
} }
const mode = reactive<{
switchVal: boolean;
}>({
switchVal: true,
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
width: 100%; width: 100%;
height: auto; height: auto;
background: #f4f4f4; background: #f4f4f4;
margin-top: 88rpx; min-height: calc(100vh - 1rpx);
min-height: calc(100vh - 88rpx);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.content { .content {
margin: 0 20rpx; margin: 25rpx 20rpx 0;
padding-top: 88rpx;
.remake { .remake {
width: auto; width: auto;
...@@ -89,17 +96,60 @@ function handleChange({ fileList: files }) { ...@@ -89,17 +96,60 @@ function handleChange({ fileList: files }) {
margin-bottom: 172rpx; margin-bottom: 172rpx;
padding: 20rpx; padding: 20rpx;
.wd-rows { .itemPicker {
margin-top: 25rpx; display: flex;
justify-content: space-between;
align-items: center;
margin-top: 32rpx;
padding-bottom: 24rpx;
border-bottom: 1rpx solid #e8e8e8;
.item01 {
display: flex;
align-items: center;
gap: 29rpx;
.label {
width: 64rpx;
height: 32rpx;
font-family:
PingFang SC Bold,
PingFang SC Bold;
font-weight: 400;
font-size: 32rpx;
color: #333333;
line-height: 32rpx;
text-align: left;
font-style: normal;
text-transform: none;
}
}
} }
.text h5 { .textarea {
font-weight: 400; font-weight: 400;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
line-height: 32rpx; line-height: 32rpx;
text-align: left; text-align: left;
} }
.wdUpload {
margin-top: 25rpx;
}
}
.tuijian {
margin-top: 72rpx;
.tjTitle {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40rpx;
.textRight {
font-size: 24rpx;
}
}
} }
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment