uniapp微信小程序投票系统实战 (SpringBoot2+vue3.2+element plus ) -我创建的投票列表实现
作者:mmseoamin日期:2024-02-05

锋哥原创的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账号。uniapp微信小程序投票系统实战 (SpringBoot2+vue3.2+element plus ) -我创建的投票列表实现,icon-default.png?t=N7T8,第1张https://www.bilibili.com/video/BV1ea4y137xf/

uniapp微信小程序投票系统实战 (SpringBoot2+vue3.2+element plus ) -我创建的投票列表实现,第2张

新建我创建的投票页面:

	{
		"path": "pages/createVoteList/createVoteList",
		"style": {
			"navigationBarTitleText": "我创建的投票"
		}
	}

个人中心页面,加下 点击 “我创建的投票”跳转列表页面:

uniapp微信小程序投票系统实战 (SpringBoot2+vue3.2+element plus ) -我创建的投票列表实现,第3张

		goVoteList:function(){
			uni.navigateTo({
				url:"/pages/createVoteList/createVoteList"
			})
		}

后端:

/**
 * 获取指定用户创建的投票
 * @param token
 * @return
 */
@RequestMapping("/listOfUser")
public R listOfUser(@RequestHeader String token){
    Claims claims = JwtUtils.validateJWT(token).getClaims();
    System.out.println("openid="+claims.getId());
    List voteList = voteService.list(new QueryWrapper().eq("openid", claims.getId()).orderByDesc("vote_end_time"));
    Map resultMap=new HashMap<>();
    resultMap.put("voteList",voteList);
    return R.ok(resultMap);
}

前端: