当前位置: 首页 > news >正文

做体彩网站怎么做海口注册公司代理公司地址电话

做体彩网站怎么做,海口注册公司代理公司地址电话,线上商城app,做网站的分工1、提示 注意::: 便利出来的数组 点击保存需要 把 双引号去掉 this.formData.image this.imageUrlList.filter((image) > image ! ) 注意::: 回显的时候需要 再把 双引号加上 …

1、提示

 注意:::         便利出来的数组   点击保存需要 把 双引号去掉

 this.formData.image = this.imageUrlList.filter((image) => image !== '')

注意:::    回显的时候需要 再把 双引号加上          

  this.imageUrlList = data.image.split(',')this.imageUrlList.unshift('') //落地页回显

目的是未来  ""  数组的第一项数据 是给 上传使用的    里面有判断   k==0 的时候  显示上传按钮 是添加操作

有时候还需要检测 数组里面是不是只要 一个 空字符串

  if (this.imageUrlList.includes('')) {} else {this.imageUrlList.unshift('') //落地页回显}

2、具体代码如下

   <divv-for="(itemd, k) in imageUrlList"class="qdsng":key="k"style="display: inline-block; position: relative"><!-- {{ itemd }} --><a-uploadv-if="k == 0"name="avatar"list-type="picture-card"class="avatar-uploader":show-upload-list="false":before-upload="beforeUploads":onRemove="handleRemove"multiplestyle="padding: 0"><div class="ant-upload-text">上传</div></a-upload><a-uploadv-elsename="avatar"list-type="picture-card":show-upload-list="false":before-upload="beforeUploads":onRemove="handleRemove"id="uploadi"><div v-if="itemd != ''" style="width: 100%; height: 100%; margin: 0 auto"><imgv-if="itemd != ''":src="itemd"alt="avatar"style="width: 100%; height: 100%"@click="uploadd(k)"/></div><div v-if="itemd == ''"><div class="ant-upload-text" @click="uploadd(k)">上传</div></div></a-upload><divv-if="itemd != ''"style="position: absolute;top: -2px;right: 3px;z-index: 11111;width: 20px;height: 20px;text-align: center;"@click="handleReset(k)"><a-icon type="close" size="20px" /></div></div>

      imageUrlList: [''],//落地页多张图片dataindex: '',uploadd(data) {if (this.uploadshow) {this.dataindex = data} else {this.$message.success('图片上传中,请稍后')}},handleRemove() {console.log('取消了')},handleReset(k) {this.imgindex = kthis.imageUrlList.splice(this.imgindex, 1)this.$set(this, 'imageUrlList', this.imageUrlList)},beforeUploads(file, fileList) {console.log(file, fileList, '上传的图片个数')this.upimgList = fileList.lengththis.getimng = 1let that = thisthis.loading = trueif (file.type == 'image/png' || file.type == 'image/jpeg') {// const isLt10M = file.size / 1024 / 1024 < 2// if (!isLt10M) {//   return this.$message.error('图片大小不能超过 2MB!')// }} else {return this.$message.error('请上传图片')}let a = new FormData()a.append('file', file)a.append('systemId', 1)if (this.groupDoctorPhoto) {a.append('photoId', this.groupDoctorPhoto.id)}this.uploadshow = falsesavePhoto(a).then((res) => {if (res.code == 200) {if (file.type == 'image/png' || file.type == 'image/jpeg') {this.fileUrl = res.datathis.uploadshow = truethis.loading = false// if(Number(this.upimgList) == this.getimng){//   this.getimng = 1// }else{//   this.getimng = this.getimng + 1//   //  this.loading = false// }if (this.dataindex) {console.log('修改图片')this.imageUrlList[this.dataindex] = res.datathis.dataindex = ''} else {console.log('正常添加图片')this.imageUrlList.push(res.data)}// this.$set(this.imageUrlList, this.dataindex, res.data)// console.log(this.imageUrlList,'图片列表集合')// this.changet('',res)// if (this.imgindex) {//   // console.log('进入修改')//   // this.$nextTick(()=>{//   //   this.dataSource[this.dataindex - 1].photoList[this.imgindex] = res.data//   // })//   this.$set(this.dataSource[this.dataindex - 1][this.dataList], this.imgindex, res.data)//   // (this.dataSource[this.dataindex - 1][this.dataList]).push(res.data)//   this.imgindex = ''// } else {//   // console.log(this.dataSource[this.dataindex - 1], this.dataList, '菩萨和')//   this.dataSource[this.dataindex - 1][this.dataList].push(res.data)// }}}})return false},

http://www.yayakq.cn/news/231951/

相关文章:

  • 做网站要懂什么编程申请做网站
  • 网站用哪些系统做的比较好上海闵行刚刚发生的
  • 延吉市建设局网站WordPress 类型 网页
  • 怎么用ftp管理网站php空间放两个网站
  • 网站可以做315认证吗厦门网站推广的目标
  • 软件 网站开发合作协议关于加强网站建设
  • 网站建设的课程设计表白网站制作源码
  • 北京海淀中关村找工作网站网业小游戏
  • 网站建设商品编码是多少网站开发必须要要掌握的语言
  • 网站建设公司做ppt吗官网网站搭建
  • 免费推广的网站泉州网站建站推广
  • app和网站开发人员工作职责在中国做网站网站违法吗
  • php做网站弊端福州大型网站建设
  • 太原网站搭建推广wordpress占用资源
  • 上海网站建设v芯ee8888eWordPress知更鸟主题怎样安装
  • 做地方网站论坛苏醒的wordpress主题怎么样
  • 网站seo课设校园二级网站建设
  • 深圳建站网站模板易企秀 旗下 网站建设
  • 虚拟主机如何做多个网站位置图片在线制作
  • 怎么健免费网站吗做网络推广的网站
  • 博湖网站建设建网站的策划方案
  • 搜索的网站后大拇指分享数量不见了广西教育学会 网站建设
  • 网站推广的方法有sem推广宁波seo运营推广平台排名
  • 深圳网站建设(信科网络)能自己做网站吗
  • 大连手机自适应网站建设网站开发经验总结与教训
  • 资源网站优化排名软件公司广告策划案例范文
  • 网站开发服务费会计分录wordpress固定链接404
  • 仿163源码交易平台宽屏整站源码 网站模板交易平台源码建瓯网站建设wzjseo
  • 网站内容规划网站外链有死链
  • 绍兴建设开发有限公司网站it培训机构推荐