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

网站开发销售页面设计的特点是什么

网站开发销售,页面设计的特点是什么,个人网页制作教程,html wordpress套用通过阅读官方文档发现#xff0c;uni.chooseFile在app端不支持非媒体文件上传#xff1b; 可以使用这个插件#xff0c;验证过可以上传pdf#xff1b;具体使用可以去看文档 插件地址 就是还是会出现相机#xff0c;这个可能需要自己解决下 实现功能#xff1a;上传只能上…通过阅读官方文档发现uni.chooseFile在app端不支持非媒体文件上传 可以使用这个插件验证过可以上传pdf具体使用可以去看文档 插件地址 就是还是会出现相机这个可能需要自己解决下 实现功能上传只能上传一个如果文件列表有值点击上传进行toast提示不再出现选择文件弹框 只获取数据展示的文件列表使用uview的u-cell-group templateview classday-que-pageview classfeed-contentu--form refuForm :labelWidth70u-form-item label附件上传 propfileName requiredlsj-upload reflsjUpload childIddayUpload :optionoption :formatsformats :debugdebuguploadEndonuploadEnd progressonprogre changechange :multiplefalse :acceptacceptu-button typeprimary clickhanldUpload sizeministylewidth: 180rpx;height: 30px;margin-top: 10rpx;选择文件/u-button/lsj-upload/u-form-item/u--formview class stylepadding:24rpxu-cell-groupu-cell v-for(item, index) in imageValue :keyindex v-ifimageValue.length :titleitem.nameu-icon slotright-icon size12 nameclose clickhanldDelete(item)/u-icon/u-cell/u-cell-group/view/viewu-toast refuToast/u-toastview classfeed-bottomu-button text完成 typeprimary clicktoTemplatePage :loadingbtnLoading/u-button/view/view /templatejavascriptimport {confrimFeedBack} from ../../utils/meetingDetailexport default {data() {return {fileList: [],dateId: ,imageValue: [],//文件存放列表option: {url: this.$store.state.baseUrl /api/psm/file/upload/file,//服务器地址name: file,header: {Authorization: Bearer ${uni.getStorageSync(token)}}},accept: application/pdf,formats: pdf,debug: true,files: new Map(),btnLoading:false}},methods: {async toTemplatePage() {if (!this.imageValue.length) {this.showToastDesc(请进行附件上传);return;}let pages getCurrentPages();let curPage pages[pages.length - 1]; //当前页const prePage pages[pages.length - 2]; //上一页prePage.$vm.getDayQueData(this.imageValue)uni.navigateBack({delta: 1})},hanldUpload() {if (this.imageValue.length) {this.showToastDesc(只能上传一个文件);return;}},//单个删除上传文件hanldDelete(itemFile) {this.imageValue.map((item, index) {if (item.path itemFile.path) {this.imageValue.splice(index, 1)}});},showToastDesc(text) {this.$refs.uToast.show({message: text,type: error,})},//完成上传onuploadEnd(item) {console.log(${item.name}已上传结束上传状态${item.type});if (item[responseText]) {console.log(演示服务器返回的字符串JSON转Object对象);const responseText JSON.parse(item.responseText);console.log(responseText, 上传成功的数据);if (responseText.code 200) {this.imageValue.push({name: item.name,url: responseText.data});this.btnLoadingfalse;} else {this.showToastDesc(responseText.msg || 上传失败请重试)}};},onprogre(item) {// 更新当前状态变化的文件this.files.set(item.name, item);console.log(打印对象, JSON.stringify(this.files.get(item.name)));},change(files) {const fileData JSON.stringify([...files.values()]);if (fileData?.length) {const url JSON.parse(fileData)[0].path;const name JSON.parse(fileData)[0].name;console.log(url, name, 获取文件url);//触发上传this.$refs[lsjUpload].upload();this.btnLoadingtrue;}// this.files files;},},onLoad(props) {if (props.dayData props.dayData ! null) {const dealData JSON.parse(decodeURIComponent(props.dayData));// console.log(dealData)this.imageValue [{...dealData}];}//当文件列表本来就有值的时候点击上传弹出提示不再弹出选择文件弹框//为什么使用setTimeoutoption会触发show导致设置的hide不生效const timeout setTimeout(() {if (this.imageValue.length) {this.$refs[lsjUpload].hide();}if (timeout) {clearTimeout(timeout)}}, 600);},//监听文件列表的值hide时候会触发hanldUploadwatch: {imageValue(val) {if (this.imageValue.length) {this.$refs[lsjUpload].hide();}else{this.$refs[lsjUpload].show()}}}}
http://www.w-s-a.com/news/813660/

相关文章:

  • 做网站php都用什么框架把asp.net写的网站别人怎么访问
  • 网站建设捌金手指下拉六正规的代运营公司
  • 自己申请网站空间冀州建网站
  • 哈尔滨旅游团购网站建设江苏建设工程建设网
  • 在郑州做网站茶叶网站建设网页设计制作
  • 58做网站吗南京有关制作网站的公司
  • 申请建设门户网站的申请先做网站还是先申请域名
  • 门户网站怎么做seo玩具外贸好做吗
  • 网页设计模板的网站黄埔营销型网站建设
  • 企业为什么要建立网站江苏高校品牌专业建设工程网站
  • 网站建设公司需要交税么福建省城乡建设厅网站
  • dedecms网站首页网站正在建设中 源码下载
  • 论坛网站有哪些怎么wordpress主题
  • 网站搭建中企动力第一返利的网站怎么做
  • 在哪网站可以做农信社模拟试卷优衣库网站建设的目的
  • 杭州网站建设ttmwl网络平台推广公司
  • 工作室网站技能培训班
  • 东丰网站建设万盛网站制作
  • 安徽黄山网站建设wordpress 公众号 获取密码
  • 自己电脑做网站模板腾讯网站建设分析
  • 如何增加网站反链虚拟主机 2个网站
  • 手机网站调用分享wordpress.org移除
  • 工业和信息化部网站备案系统查询市场调研表模板
  • 网站流量转化线下推广活动有哪些
  • 030159网站建设与维护宝安网站公司
  • 个人网站备案网站内容做gif表情包网站
  • 湖南省建设厅城乡建设网站怎么建立一个网站网址
  • 图书馆网站建设的规章制度免费个人主页注册
  • 表格网站源码wordpress更换网站域名
  • 芜湖做网站多少钱做公司的网站的需求有哪些