counterMaintain.vue 4.4 KB
Newer Older
1 2 3
<template>
  <div class="container">
    <div class="img">
xd's avatar
xd committed
4
      <van-uploader class="upload" v-model="bannerList" :max-count="4">
5 6 7 8 9 10 11
        <div class="circle">
          <span class="add">+</span>
        </div>
      </van-uploader>
      <div class="tj">
        点击添加专柜主题图
      </div>
xd's avatar
xd committed
12 13 14 15
    </div>
    <div class="banner">
      <van-uploader class="upload" v-model="bannerList" :max-count="4">
      </van-uploader>
16 17
    </div>
    <van-cell-group class="gn">
xd's avatar
xd committed
18
      <van-cell title="专柜LOGO" center class="logo">
19
        <template slot="default">
xd's avatar
xd committed
20 21 22 23 24 25
            <van-uploader v-model="fileList" :max-count="1" class="input" >
              <div class="cube" style="width:54px;height:50px;">
                 <van-icon name="photo" size="40" /> 
                <div class="mb">点击替换</div> 
              </div>
          </van-uploader>        
26 27 28 29 30 31 32 33 34 35 36 37
        </template>
      </van-cell>
      <van-cell title="专柜名称">
        <template slot="default">
          <van-field v-model="name" placeholder="输入名称" class="input" />
        </template>
      </van-cell>
      <van-cell title="所在楼层">
        <template slot="default">
          <van-field v-model="floor" placeholder="输入楼层" class="input" />
        </template>
      </van-cell>
xd's avatar
xd committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51
      <!-- <van-cell title="专柜介绍" is-link value="点击输入" /> -->
      <div class="detail">
      <div class="border">
        <div class="des">活动描述</div>
        <van-field
          v-model="message"
          rows="4"
          autosize
          type="textarea"
          placeholder="请输入描述"
          show-word-limit
        />
      </div>
    </div>
52 53 54 55 56 57 58 59 60 61 62
    </van-cell-group>
    <div class="creat">保存信息</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "",
      floor: "",
xd's avatar
xd committed
63
      fileList: [],
xd's avatar
xd committed
64 65
      bannerList:[],
      message: ""
66 67 68 69 70 71 72 73
    };
  }
};
</script>
<style >

</style>
<style scoped>
xd's avatar
xd committed
74 75 76 77 78 79 80 81 82 83 84 85 86
.logo >>> .van-uploader__preview-delete{
  top: 0;
}
.des {
  font-size: 14px;
  font-weight: bold;
  color: rgba(45, 71, 106, 1);
  margin-bottom: 12px;
}
.detail {
  background-color: #fff;
  padding: 12px 16px 0 16px;
}
87

xd's avatar
xd committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
.border >>> .van-field__control {
  text-align: left !important;
  background-color: #f8f8f8;
}
.border >>> .van-cell {
  padding: 0;
}
.banner >>> .upload[data-v-6ea3d66a] {
  padding-top: 10px;
  z-index: 100;
  width: 100%;
  position: static;
  transform: unset;
  padding: 10px 9px 0;
}
.img >>> .van-uploader__preview {
  display: none;
}
.banner {
  width: 100%;
  background-color: #fff;
  height: 96px;
}
.banner >>> .van-uploader__upload-icon {
  display: none;
}
114
.creat {
xd's avatar
xd committed
115
  margin: 20px 0;
116 117 118 119 120 121 122 123 124 125 126 127
  width: 343px;
  height: 40px;
  line-height: 40px;
  background: rgba(117, 178, 253, 1);
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  bottom: 0;
}
.cube {
xd's avatar
xd committed
128 129
  width:54px;
  height: 50px;
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
  background: rgba(248, 248, 248, 1);
  border-radius: 8px;
  position: relative;
  text-align: center;
}
.tj {
  height: 32px;
  line-height: 32px;
  background: rgba(117, 178, 253, 0.8);
  text-align: center;
  font-size: 12px;
  color: #fff;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.add {
  font-size: 60px;
  font-weight: 500;
  color: #fff;
}
.circle {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  line-height: 60px;
  text-align: center;
}
.upload {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.van-cell__value,
.van-cell__value--alone {
  text-align: right;
}
.input {
  padding: 0;
}
.gn >>> .van-field__control {
  text-align: right;
}
.gn >>> .van-cell__title {
  font-size: 14px;
  font-weight: bold;
  color: rgba(45, 71, 106, 1);
}
.gn {
  margin-top: 12px;
xd's avatar
xd committed
182 183 184 185 186
  width: 100%;
  padding-bottom: 12px;
}
.input >>> .van-uploader__input-wrapper {
  width: 100%;
187 188
}
.container {
xd's avatar
xd committed
189
  min-height: 100%;
xd's avatar
xd committed
190
  height: auto;
191
  background: #F8F8F8;
xd's avatar
xd committed
192 193 194 195
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
196 197 198 199 200
}
.img {
  width: 100%;
  height: 200px;
  position: relative;
xd's avatar
xd committed
201 202
  background:url(../../../public/img/cswiper.png)no-repeat;
  background-size: cover;
203 204 205
}
.mb {
  position: absolute;
xd's avatar
xd committed
206
  width: 100%;
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
  height: 16px;
  bottom: 0;
  line-height: 16px;
  background-color: #8EBFFB;
  font-size: 6px;
  color: #fff;
}
.mb img {
  height: 100%;
}
.cfx {
  position: absolute;
  
  width: 100%;
  height: 100%;

}

</style>