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

电商设计师网站哪些外包公司比较好

电商设计师网站,哪些外包公司比较好,北京最大的设计公司,wordpress文章头图锋哥原创的uniapp微信小程序投票系统实战#xff1a; uniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )_哔哩哔哩_bilibiliuniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )共计21条视频…锋哥原创的uniapp微信小程序投票系统实战 uniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )_哔哩哔哩_bilibiliuniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )共计21条视频包括uniapp微信小程序投票系统实战课程 (SpringBoot2vue3.2element plus ) ( 火爆连载更新中... )、第2讲 投票项目后端架构搭建、第3讲 小程序端 TabBar搭建等UP主更多精彩视频请关注UP账号。https://www.bilibili.com/video/BV1ea4y137xf/新建Vote投票类: package com.java1234.entity;import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import lombok.Data;import java.util.Date; import java.util.List;/*** 投票实体* author java1234_小锋 公众号java1234* site www.java1234.vip* company 南通小锋网络科技有限公司*/ TableName(t_vote) Data public class Vote {private Integer id; // 编号private String title; // 标题private String explanation; // 投票说明private String coverImage; // 封面图片JsonSerialize(usingCustomDateTimeSerializer.class)JsonFormat(pattern yyyy-MM-dd HH:mm:ss, timezone GMT8)private Date voteEndTime; // 投票结束时间private String openid; // 投票发起人openidTableField(selectfalse,exist false)private ListVoteItem voteItemList;TableField(selectfalse,exist false)private WxUserInfo wxUserInfo;private Integer type1; // 1 文字投票 2 图片投票} 新建VoteItem投票选项类 package com.java1234.entity;import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data;/*** 投票选项实体* author java1234_小锋 公众号java1234* site www.java1234.vip* company 南通小锋网络科技有限公司*/ TableName(t_vote_item) Data public class VoteItem {private Integer id; // 编号private Integer voteId; // 投票IDprivate String name; // 投票选项名称private String image; // 投票选项图片private Integer number; // 票数} 数据库新建t_vote投票表 create table t_vote (id int (11),title varchar (600),explanation varchar (3000),cover_image varchar (600),vote_end_time datetime ,openid varchar (600),type int (11) ); 数据库再新建t_vote_item投票选项表 create table t_vote_item (id int (11),vote_id int (11),name varchar (600),image varchar (600),number int (11) ); 新建VoteMapper /*** 投票Mapper接口*/ public interface VoteMapper extends BaseMapperVote { } 新建VoteItemMapper /*** 投票选项Mapper接口*/ public interface VoteItemMapper extends BaseMapperVoteItem {} 新建IVoteService /*** 投票Service接口*/ public interface IVoteService extends IServiceVote {} 新建IVoteItemService /*** 投票选项Service接口*/ public interface IVoteItemService extends IServiceVoteItem {} 新建IVoteServiceImpl Service(voteService) public class IVoteServiceImpl extends ServiceImplVoteMapper,Vote implements IVoteService {Autowiredprivate VoteMapper voteMapper;} 新建IVoteItemServiceImpl Service(voteItemService) public class IVoteItemServiceImpl extends ServiceImplVoteItemMapper, VoteItem implements IVoteItemService {Autowiredprivate VoteItemMapper voteItemMapper;} VoteController添加add方法: /*** 添加投票* param vote* return*/ RequestMapping(/add) Transactional public R add(RequestBody Vote vote, RequestHeader String token){System.out.println(tokentoken);Claims claims JwtUtils.validateJWT(token).getClaims();System.out.println(openidclaims.getId());vote.setOpenid(claims.getId());voteService.save(vote);// 存投票选项ListVoteItem voteItemListvote.getVoteItemList();for(VoteItem voteItem:voteItemList){voteItem.setVoteId(vote.getId());voteItem.setNumber(0);voteItemService.save(voteItem);}return R.ok(); } 前端验证以及提交 submitVote:async function(e){// 验证if(isEmpty(this.title)){uni.showToast({icon:error,title:请填写投票标题})return;}// 投票选项片段 至少2个选项let resultOptionsthis.options.filter(function(value,index,self){ // 过滤掉名称为空的投票选项console.log(valuevalue.name)return !isEmpty(value.name)})console.log(xxJSON.stringify(resultOptions));console.log(lengthresultOptions.length)if(resultOptions.length2){uni.showToast({icon:error,title:请至少填写两个投票选项})return;}// 提交表单let form{title:this.title,coverImage:this.coverImageFileName,explanation:this.explanation,voteEndTime:this.voteEndTime,voteItemList:resultOptions,type:1}const resultawait requestUtil({url:/vote/add,data:form,method:post});if(result.code0){console.log(发布成功)uni.showToast({icon:success,title:投票发起成功!})} }
http://www.zqtcl.cn/news/163681/

相关文章:

  • 好看的网站后台模板沧州网站群
  • 深圳做网站排名公司哪家好哪些网站seo做的好
  • 国内网站建设推荐网站建设合同标准版
  • 哈尔滨网站制作费用企业成品网站模板
  • 网络广告网站怎么做北京海淀建设中路哪打疫苗
  • 房地产公司网站制作电影发布网站模板
  • 如何利用开源代码做网站网站本科
  • 公司是做小程序还是做网站宜宾住房与城乡建设部网站
  • 做网站哪个公司最社区问答网站开发
  • 网站引量方法网站建设推广页
  • 书店网站的建设网络营销方法有哪些
  • 深圳网站优化软件顺企网怎么样
  • 做网站的需要什么要求中国五百强企业排名表
  • 网络营销 企业网站外贸响应式网站建设
  • 网站网页制作公司o2o平台是什么意思啊
  • 惠州市网站建设个人网站怎么进入后台维护
  • 微信网站链接怎么做wordpress 绑定手机版
  • 网站建设的内容是什么在线阅读小说网站怎么建设
  • 福州网站开发哪家比较好建设网站需要掌握什么编程语言
  • 邹平做网站的公司莱芜人才网莱芜招聘
  • 旅行网站开发意义怎样优化网络速度
  • 手机微网站建设多少钱拟定网络设计方案
  • 厦门制作公司网站安卓原生app开发工具
  • worldpress英文网站建设wordpress输出外部文章
  • u9u8网站建设商业公司的域名
  • 有学给宝宝做衣服的网站吗防网站黑客
  • 十大搜索引擎网站微信小程序有什么用处?
  • 团购网站 seo烟台网站建设方案优化
  • 公司网站建设招标文件范本公益永久免费主机
  • 建设银行网站查询企业年金五合一免费建站