123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <view>
- <view class="Regular header-title">我是公司名称我是公司名称</view>
- <view class='content'>
- <view class='matter'>
- <view class="title Regular">纠错事项<text style='color:#FB1E1E;'>*</text></view>
- <view style='position:relative;'>
- <textarea class='textarea Regular' maxlength="150" v-model='status' placeholder="请输入举报事项" placeholder-style="color:#AFB3BF;" />
- <view class='Regular words'>{{status.length}}/150个字</view>
- </view>
- </view>
- <view class="uploading">
- <view class="title Regular">上传图片</view>
- <u-upload width='140' height='140' :file-list="fileList" :custom-btn="true" :show-upload-list="showUploadList" ref="uUpload" :max-size="5 * 1024 * 1024" max-count="6" :action="$uploadUrl">
- <view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
- <image style='width:23px;height:23px;margin-top:10px;' src="../../static/img/liangmai/xiangji-2.png" mode=""></image>
- <view style='color:#AFB3BF;font-size:10px;' class='Medium'>上传图片</view>
- </view>
- </u-upload>
- </view>
- </view>
- <view class="commitwrap">
- <view class='commit' @click='commit'>提交</view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- components: {
-
- },
- data() {
- return {
- status:'',
- fileList:[]
- }
- },
- onReady() {
- // 得到整个组件对象,内部图片列表变量为"lists"
- this.fileList = this.$refs.uUpload.lists;
- },
- onLoad(){
-
- },
- methods: {
- commit(){
- console.log(this.fileList)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page{
- background:#F5F6FA;
- }
- .header-title{
- margin:9.5px;
- padding:16.5px 12.5px;
- background:#fff;
- border-radius:10px;
- height:51px;
- }
- .content{
- padding:12.5px;margin:9px;
- background:#fff;
- border-radius:10px;
- }
- .matter .title{
- font-size:14px;
- margin-bottom:15px;
- }
- .uploading .title{
- font-size:14px;margin-top:13px;margin-bottom:13px;
- }
- .textarea{
- background:#F9F9FA;
- font-size:12px;
- padding:6.5px;
- width:326.5px;height:70px;
- border-radius:5px;
- }
- .words{
- font-size:10px;color:#AFB3BF;position: absolute;right:5px;
- bottom:8px;
- }
- .slot-btn{
- width: 70px;
- height: 70px;
- border-radius: 4px;
- border: 2px dashed #AFB3BF;
- text-align:center;
- }
- .commitwrap{
- position:fixed;bottom:0;left:0;
- width:100%;
- }
- .commit{
- background:#22C572;
- margin:10px 24px;
- text-align:center;
- height:46px;line-height:46px;
- color:#fff;
- font-size:17px;
- border-radius:20px;
- }
- /deep/.u-delete-icon{
- top:0;
- right:0;
- border-radius:0 0 0 15px;
- background:rgba(17, 26, 52, 0.5) !important;
- }
- </style>
|