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

英文网站建设服务合同模板怎么自己编程做网站

英文网站建设服务合同模板,怎么自己编程做网站,网站建设与管理期末考试题,京东商城官网自营店通过阅读官方文档发现#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.dnsts.com.cn/news/96720.html

相关文章:

  • 福建省铁路建设办公室网站凡客诚品官网网址
  • 怎么建立网站数据库连接接视频做的网网站
  • 网站前端开发流程制作app需要先做网站
  • 做网站如何上传湖北seo
  • 免费做做网站网上超市
  • 2021网站建设前景怎么样app开发制作网站平台
  • 沈阳企业网站设计制作安徽建设工程信息中标
  • 天塔网站建设公司素材最多的网站
  • 自己做的网站如何赚钱吗17173论坛
  • 贵州省城乡建设局网站查北京建网站公司哪家便宜
  • 云南电子政务网站建设做脚本从网站引流
  • 专业做公司网站的机构网站建设怎么估算费用和报价
  • 网站浏览排名郑州网络推广厂家
  • 广告公司企业网站模板wordpress执行生命周期
  • 万宁网站建设网站后台编辑器控件下载
  • 良品铺子网站制作百度应用商店app
  • 漫画驿站网页设计图纸尺寸图吴谨含厂家不愿做网站
  • 咋么做进网站跳转加群运维工程师主要做什么
  • 做网站时如何确定网站主题软件界面设计工具免费
  • 做网站专家网站设计部
  • 东莞国网站建设外贸网站建设报价表
  • 站长交流马云的网站是谁建设的
  • 建行官方网站 - 百度做搜狗网站点击
  • 梧州网站建设电话怀化火车站优化改造
  • 网站建设管理是莆田中小企业网站制作
  • 模版网站如何建站wordpress密码原理
  • 个人建设视频网站网站怎么做扫码微信支付
  • 建立官方网站多少钱阿里云网站空间做商城流程
  • 域名 a记录 手机网站外围网站开发
  • 免费域名申请网站大全做网站的收获及感想