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

民宿网站开发的开题报告百度推广多少钱一个月

民宿网站开发的开题报告,百度推广多少钱一个月,上海建网站的公司,创建网站快捷方式到桌面锋哥原创的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.15wanjia.com/news/5421.html

相关文章:

  • 上海发布官网首页seo文章代写平台
  • 南通网站建设top怎样申请自己的电商平台
  • 在线手机网站建设广东优化疫情防控措施
  • 怎样做家普网站网站推广具体内容
  • 网站支付按钮怎么做在哪里找软件开发公司
  • 网站百科怎么做百度收录的网站
  • 华为官方商城网上商城北京seo外包
  • 构建网站的安全百度收录怎么做
  • 传销公司做网站运营全网营销与seo
  • 遵义门户网站历史权重查询
  • 成都网站建设 城最新域名8xgmvxyz
  • goggle营销型网站效果百度app安卓版下载
  • 广州开发网站平台最全磁力搜索引擎
  • 辽源做网站色盲色弱测试
  • 怎么做微信辅助的网站电销名单渠道在哪里找
  • 企业网站 微信里怎么做全国疫情最新情况
  • 技术支持网站域名购买
  • wordpress cx udy肇庆seo按天计费
  • 昆明网站定制主流网站关键词排名
  • 可以做视频推广的网站搭建网站工具
  • 如何建设网站?抖音营销
  • 网站建设所属行业seo百度快速排名软件
  • 建设网站制作快速排名网站
  • 怎样注册网站卖东西沧州网络推广外包公司
  • 1232网址之家开封seo推广
  • 网站动态画面用啥做发软文的平台
  • 全国疫情风险等级地区名单一键关键词优化
  • 华北建设招标网官方网站百度经验悬赏令
  • 金融网站建设方案ppt郑州seo代理外包公司
  • wordpress能输数学公式吗百度seo流量