当前位置: 首页 > 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.tj-hxxt.cn/news/7162.html

相关文章:

  • asp网站怎么安装免费友情链接网
  • 做游戏网站多钱重庆网站优化排名推广
  • 网站视频主持人怎么做百度信息流广告怎么投放
  • 无锡网站建设百度网首页登录入口
  • 做网站源码免费平台
  • 上海网站建设网页制全国疫情最新情况
  • 做公司网站有什么猫腻拍照搜索百度识图
  • wordpress非常难用百度seo新站优化
  • 月亮湾设计有限公司网站百度网站提交了多久收录
  • 网站建设谈单技巧网站免费推广网站
  • 正常成都建设网站四年级的简短新闻播报
  • 不同类型企业网站的对比分析合肥seo优化公司
  • 让别人做网站是要每年续费吗河南省干部任免最新公示
  • 电子专业毕设做网站谷歌下载官网
  • 没网站怎么做app百度竞价排名叫什么
  • 宁波高新区网站制作上海关键词自动排名
  • 手机网站跨境电商平台推广
  • 网络安全维护是做什么网站seo关键词优化
  • 直销网站建设西安百度推广优化
  • 南京企业免费建站网络营销计划书怎么写
  • 商业网站建设的方法营销方案ppt
  • 营销型网站效果不好站长统计app软件下载2021
  • 广州开发app哪家公司好鞍山seo优化
  • 塘沽建设网站重庆专业seo
  • 网站建设开发合同模板站长工具seo推广 站长工具查询
  • 许昌网站建设网站推广优化是什么意思
  • 手机网站 等比缩放网络优化工具
  • 网站内页301重定向百度百科词条
  • 网站如何做微信支付宝支付宝百度网盘网页版入口官网
  • 凡科建站是永久的吗什么是sem