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

民宿网站开发的开题报告seo搜索引擎优化原理

民宿网站开发的开题报告,seo搜索引擎优化原理,青岛开发区网站建设服务,网站建设公司发展历程锋哥原创的uniapp微信小程序投票系统实战: uniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )_哔哩哔哩_bilibiliuniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )共计21条视频…

锋哥原创的uniapp微信小程序投票系统实战:

uniapp微信小程序投票系统实战课程 (SpringBoot2+vue3.2+element plus ) ( 火爆连载更新中... )_哔哩哔哩_bilibiliuniapp微信小程序投票系统实战课程 (SpringBoot2+vue3.2+element plus ) ( 火爆连载更新中... )共计21条视频,包括:uniapp微信小程序投票系统实战课程 (SpringBoot2+vue3.2+element plus ) ( 火爆连载更新中... )、第2讲 投票项目后端架构搭建、第3讲 小程序端 TabBar搭建等,UP主更多精彩视频,请关注UP账号。icon-default.png?t=N7T8https://www.bilibili.com/video/BV1ea4y137xf/图文投票和文字投票基本一样,就是在投票选项里面,多了一个选项图片;

<view class="option_item" v-for="(item,index) in options" :key="item.id"><view class="option_input"><text class="removeOption" @click="removeOption(item.id)">&#xe618;</text><input type="text" v-model="item.name" placeholder="输入选项名称" placeholder-style="color:#bababa;font-size:14px"></view>				<view class="option_upload"><uni-file-picker@select="selectVoteItemFileFunc($event,index)":auto-upload="false" limit="1":del-icon="false" disable-preview file-mediatype="image" :imageStyles="voteItemImageStyles"><view class="upload"><text class="smallUploadImg">&#xe727;</text></view></uni-file-picker></view></view>
.option_item{margin-top: 10px;border-radius: 5px;background-color: white;padding: 10px;.option_input{display: flex;}.option_upload{margin-top: 20rpx;.upload{margin: 10rpx;background-color: #f4f5f7;width:90rpx;height: 90rpx;display: flex;align-items: center;justify-content: center;}}}
			voteItemImageStyles:{width:"150rpx",height:"120rpx",border:false},
selectVoteItemFileFunc:function(e,index){console.log("index="+index)console.log(e.tempFilePaths[0])uni.uploadFile({header:{token:uni.getStorageSync("token")},url:getBaseUrl()+"/vote/uploadVoteItemImage",filePath:e.tempFilePaths[0],name:"voteItemImage",success: (res) => {let result=JSON.parse(res.data);if(result.code==0){this.options[index].image=result.voteItemImageFileName;}}})},

加个image属性:

提交加上验证:

// 验证投票选项,如果有名称的,必须要上传图片for(var i=0;i<this.options.length;i++){var option=this.options[i];if(!isEmpty(option.name)){if(isEmpty(option.image)){console.log("请上传第"+(i+1)+"个投票选项图片")uni.showToast({icon:"error",title:"请上传第"+(i+1)+"个投票选项图片"})return;}}}

后端:

voteItemImagesFilePath: D://uniapp/voteItemImgs/
@Value("${voteItemImagesFilePath}")
private String voteItemImagesFilePath;
/*** 上传投票选项图片* @param voteItemImage* @return* @throws Exception*/
@RequestMapping("/uploadVoteItemImage")
public Map<String,Object> uploadVoteItemImage(MultipartFile voteItemImage)throws Exception{System.out.println("filename:"+voteItemImage.getName());Map<String,Object> resultMap=new HashMap<>();if(!voteItemImage.isEmpty()){// 获取文件名String originalFilename = voteItemImage.getOriginalFilename();String suffixName=originalFilename.substring(originalFilename.lastIndexOf("."));String newFileName= DateUtil.getCurrentDateStr()+suffixName;FileUtils.copyInputStreamToFile(voteItemImage.getInputStream(),new File(voteItemImagesFilePath+newFileName));resultMap.put("code",0);resultMap.put("msg","上传成功");resultMap.put("voteItemImageFileName",newFileName);}return resultMap;
}

http://www.khdw.cn/news/62834.html

相关文章:

  • 东莞网站优化电话网站优化方式有哪些
  • 香港专业做网站的公司信息如何优化上百度首页
  • 做独立网站给你的启发是什么seo课程总结怎么写
  • 城乡建设部网官方网站附近广告公司联系电话
  • 哪个网站可以做面料订单网络软文推广案例
  • 在线做名片做海报网站销售网络平台推广
  • 自己做网站麻烦吗网站要怎么创建
  • 网站 前台 后台seo优化软件免费
  • 用插件做的炫酷网站口碑营销5t
  • 个人做网站靠什么挣钱开发一个app需要多少钱?
  • 商丘网站建设服务免费关键词优化工具
  • 网站开发后怎么进入互联网软文大全800字
  • 万能模板sem优化推广
  • 怎样建网站赚钱快速百度
  • 建立网站对吗最新seo新手教程
  • 网站怎么分工做怎么设置自己的网站
  • app001推广平台官网网站优化查询
  • 个人网站怎么做收款链接百度手机助手下载2022官方正版
  • 企业常见问题及解决方案关键词优化方法
  • 对整个网站做词频分析云南网站建设公司哪家好
  • 湛江企业自助建站系统自建站怎么推广
  • icann官方网站三只松鼠营销案例分析
  • 做党建需要关注网站最佳磁力吧cili8
  • 威海网站制作win11优化大师
  • 网页网站培训班湖人最新消息
  • 徐州最好网站建设做网站要多少钱
  • 学校网站模板免费下载人大常委会委员长
  • 沈阳网站建设培训班百度一下你就知道了官网
  • ecshop生成网站地图url重复网络推广
  • 网站开发为什么要写接口连云港seo优化公司