前端
This commit is contained in:
parent
0f654e23bb
commit
148965f985
@ -1,19 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<input v-model="form.title" class="title-input" placeholder="标题" />
|
<input v-model="form.title" class="title-input" placeholder="标题" />
|
||||||
<textarea placeholder="说些什么叭..." :auto-height="true" maxlength="-1" v-model="form.content" class="content-display"></textarea>
|
<textarea placeholder="说些什么叭..." :auto-height="true" maxlength="-1" v-model="form.content"
|
||||||
|
class="content-display"></textarea>
|
||||||
<!-- 上传图片 -->
|
<!-- 上传图片 -->
|
||||||
<block v-if="form.type == 1">
|
<block v-if="form.type == 1">
|
||||||
<u-upload
|
<u-upload ref="uUpload" :size-type="['original']" name="Image" :max-count="4" :header="header"
|
||||||
ref="uUpload"
|
:action="uploadImgUrl" @on-uploaded="submit" :auto-upload="false"></u-upload>
|
||||||
:size-type="['original']"
|
|
||||||
name="Image"
|
|
||||||
:max-count="4"
|
|
||||||
:header="header"
|
|
||||||
:action="uploadImgUrl"
|
|
||||||
@on-uploaded="submit"
|
|
||||||
:auto-upload="false"
|
|
||||||
></u-upload>
|
|
||||||
</block>
|
</block>
|
||||||
<!-- 分类 -->
|
<!-- 分类 -->
|
||||||
<view @click="chooseClass" class="choose-item">
|
<view @click="chooseClass" class="choose-item">
|
||||||
@ -137,31 +130,39 @@ export default {
|
|||||||
padding: 20rpx 0;
|
padding: 20rpx 0;
|
||||||
min-height: 300rpx;
|
min-height: 300rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.choose-item {
|
.choose-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
border-bottom: 1px solid #F5F5F5;
|
border-bottom: 1px solid #F5F5F5;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.txt {
|
.txt {
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sw {
|
.sw {
|
||||||
margin-left: 300rpx;
|
margin-left: 300rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputStyle {
|
.inputStyle {
|
||||||
margin-left: 60rpx;
|
margin-left: 60rpx;
|
||||||
width: 400rpx;
|
width: 400rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio {
|
.radio {
|
||||||
margin-left: 320rpx;
|
margin-left: 320rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.u-icon {
|
.u-icon {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
color: #999;
|
color: #999;
|
||||||
@ -171,6 +172,7 @@ export default {
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-style {
|
.button-style {
|
||||||
margin-top: 50rpx;
|
margin-top: 50rpx;
|
||||||
color: #F4F4F5;
|
color: #F4F4F5;
|
||||||
|
Loading…
Reference in New Issue
Block a user