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

商丘做网站需要多少钱seo外链工具

商丘做网站需要多少钱,seo外链工具,哪个网站做售楼推广好,网站建设中iis技术前置: 1.框架采用colorUI 2.原生开发 功能: 上传图片 1.上传已经拍摄的图片 2.实时拍摄上传 3.设置上传图片数量,每次上传数量 4.上传等待 ChooseImage() {if(this.data.imgList.length>4){_this.ErrorEvent("最多上传4…

在这里插入图片描述
技术前置:

1.框架采用colorUI

2.原生开发

功能:

上传图片

1.上传已经拍摄的图片

2.实时拍摄上传

3.设置上传图片数量,每次上传数量

4.上传等待

ChooseImage() {if(this.data.imgList.length>=4){_this.ErrorEvent("最多上传4张照片");return;}if(this.data.imgList.length>=4){_this.ErrorEvent("最多上传4张照片");return;}if(this.data.Mylatitude==null){this.ErrorEvent("请点击定位送达地址!");return;}if(this.data.Mylongitude==null){this.ErrorEvent("请点击定位送达地址!");return;}var position=this.data.Mylatitude+","+this.data.Mylongitude;wx.chooseImage({count: 1, //默认9sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有sourceType: ['album','camera'], //从相册选择 ,success: (res) => {if(res.tempFilePaths.length<=0){return;}wx.showLoading({title: '正在上传图片',// icon: 'loading',// duration: 5000,mask: true})const tempFilePaths = res.tempFilePaths;var uploadimgs=[];for(var i=0;i<tempFilePaths.length;i++){this.uploadImg(tempFilePaths[i],position);}}});},//上传图片uploadImg(address,longlatData){let reqaddress= app.globalData.baseUrl+ '/uploadPic';let _this=this;wx.uploadFile({url: reqaddress, //仅为示例,非真实的接口地址filePath: address,name: 'file',formData: {'user': 'test'},success (res){const data = res.data;var mdata= JSON.parse(data);wx.hideLoading();if(mdata.code==0){if (_this.data.uploadImgList.length > 0) {_this.setData({uploadImgList:_this.data.uploadImgList.concat(mdata.data.relativePath),})} else {var show="uploadImgList[0]";_this.setData({[show]:mdata.data.relativePath})}if (_this.data.imgList.length != 0) {_this.setData({imgList: _this.data.imgList.concat(address),})} else {var show="imgList[0]";_this.setData({[show]: address,})}_this.HideErrorEvent();wx.showToast({title: '图片上传成功',duration: 1000,})}else{// var count=_this.data.imgList.length;// _this.setData({//   imgList:_this.data.imgList.splice(count-1, 1)// })_this.ErrorEvent("上传图片到服务器失败!请重传");}}, complete() {  },fail(error){wx.hideLoading();console.log(error);// var count=_this.data.imgList.length;// _this.setData({//   imgList:_this.data.imgList.splice(count-1, 1)// })_this.ErrorEvent("上传图片到服务器失败!请重传");}})},
http://www.15wanjia.com/news/54715.html

相关文章:

  • 河南建设工程信息网公众号郑州seo外包
  • 大连科技网站制作网络搜索关键词
  • 做网站有发票吗网店推广方案
  • 深圳做英文网站大数据营销系统
  • wordpress centos 7安装兰州网络优化seo
  • 杭州网站建设开发外包公司口碑营销案例2022
  • 网站名称是什么开发定制软件公司
  • 网站关键词分布情况链接提交工具
  • 校园网站做自己的广告最好用的手机优化软件
  • php 网站 发布软文广告发布平台
  • 外贸网站平台有几个哈尔滨优化调整人员流动管理
  • 怎么自己做免费网站高级seo培训
  • 网站备案号注销查询系统权威发布
  • 青岛哪家公司做网站好怎么百度推广
  • 招生网站制作产品推广方法
  • 网站型销售怎么做的站内推广有哪些方式
  • 昆山外贸公司网站建设流程什么是营销型网站?
  • php网站后台开发dw友情链接怎么设置
  • wordpress站内搜索次数cnzz数据统计
  • 如何在工商局网站上做网登互联网项目
  • 做网站容易挣钱吗收录查询api
  • 营销网站建设专业团队在线服务免费服务器
  • 易天时代网站建设高端网站建设的公司
  • 苏州建站公司兴田德润简介呢什么软件引流客源最快
  • 用万网建设网站教程视频广东网络优化推广
  • 做汽车介绍视频的网站上海知名网站制作公司
  • 网站设计联系电话百度游戏排行榜
  • 自助建网站教程免费二级域名分发网站源码
  • 九一赣州人才网广州seo优化效果
  • 如何购买网站虚拟主机八大营销方式有哪几种