锋哥原创的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账号。https://www.bilibili.com/video/BV1ea4y137xf/
投票后 跳转列表页面:
uni.navigateTo({
url:"/pages/createVoteList/createVoteList"
})
新建voteDetail页面 投票详情页面
{
"path": "pages/voteDetail/voteDetail",
"style": {
"navigationBarTitleText": "投票明细"
}
}
goVoteDetailPage:function(){
uni.navigateTo({
url:"/pages/voteDetail/voteDetail?id="+this.vote.id
})
},
{{item.name}}
[ {{item.number}} ] 票
查看明细
import {getBaseUrl, requestUtil} from "../../util/requestUtil.js"
export default{
data(){
return{
vote:{}
}
},
onLoad(e) {
console.log(e.id);
this.getVoteInfo(e.id)
},
methods:{
getVoteInfo:async function(id){
const result=await requestUtil({url:"/vote/"+id,method:"get"});
console.log(result)
this.vote=result.vote;
},
goVotePeopleDetail:function(itemId,itemName){
uni.navigateTo({
url:"/pages/votePeopleDetail/votePeopleDetail?voteId="+this.vote.id+"&voteItemId="+itemId+"&voteItemName="+itemName
})
}
}
}
.options{
margin-top: 0px服务器托管网;
padding: 10px;
padding-top: 0px;
padding-bottom: 70px;
.option{
margin-top: 10px;
display: flex;
justify-content: space-between;
padding: 15px;
border-radius: 10px;
background-color: white;
.name_vote_number{
.name{
padding-left: 2px;
font-weight: bolder;
}
.number{
padding-top: 5px;
color: blue;
font-size: 11px;
}
}
.detail{
margin-top: 10px;
padding: 5px;
padding-top: 8px;
padding-bottom: 8px;
border-radius: 10px;
background-color: #e6eeff;
font-size: 12px;
width: 55px;
text-align: center;
}
}
}
新建votePeopleDetail页面 投票人详情页面
{
"path": "pages/votePeopleDetail/votePeopleDetail",
"style": {
"navigationBarTitleText": "投票人明细"
}
}
[选项]{{voteItemName}}
[共{{voteDetailList.length}}票]
{{value.wxUserInfo.nickName}}
投票时间:{{value.voteDate}}
import {getBaseUrl, requestUtil} from "../../util/requestUtil.js"
export default{
data(){
return{
voteDetailList:[],
voteItemName:'',
baseUrl:''
}
},
onLoad(e) {
console.log(e.voteId);
console.log(e.voteItemId);
console.log(e.voteItemName);
this.voteItemName=e.voteItemName
this.getVoteDetailInfo(e.voteId,e.voteItemId);
this.baseUrl=getBaseUrl();
},
methods:{
getVoteDetailInfo:async function(voteId,voteItemId){
const result=await requestUtil({url:"/voteDetail/"+voteId+"/"+voteItemId,method:"get"});
console.log(result)
this.voteDetailList=result.voteDetailList;
}
}
}
.detail{
.header{
padding-left: 20px;
padding-top: 20px;
padding-bottom服务器托管网: 20px;
padding-right: 20px;
display: flex;
justify-content: space-between;
.option{
color: green;
}
.total{
color: green;
font-size: 13px;
}
}
.list{
.item{
background-color: white;
margin-bottom: 5px;
padding: 10px;
.people{
display: flex;
flex-direction: row;
.user_image{
width: 100rpx;
height: 100rpx;
text-align: center;
padding: 0rpx;
margin: 0rpx;
image{
border-radius: 50%;
width: 90rpx;
height: 90rpx;
}
}
.user_name_wrap{
display: flex;
flex-direction: column;
padding-left: 10px;
.nick_name{
}
.vote_date{
padding-top: 10rpx;
font-size: 25rpx;
}
}
}
}
}
}
/**
* 根据id查询投票人详情
* @param voteId
* @param voteItemId
* @return
*/
@GetMapping("/{voteId}/{voteItemId}")
public R findById(@PathVariable(value = "voteId")Integer voteId,@PathVariable(value = "voteItemId")Integer voteItemId){
List voteDetailList = voteDetailService.list(new QueryWrapper().eq("vote_id", voteId).eq("vote_item_id", voteItemId));
for(VoteDetail voteDetail:voteDetailList){
WxUserInfo wxUserInfo = wxUserInfoService.getOne(new QueryWrapper().eq("openid", voteDetail.getOpenid()));
voteDetail.setWxUserInfo(wxUserInfo);
}
Map resultMap=new HashMap();
resultMap.put("voteDetailList",voteDetailList);
return R.ok(resultMap);
}
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
企业架构LB-服务器的负载均衡之LVS实现 学习目标和内容 1、能够了解LVS的基本工作方式 2、能够安装配置LVS实现负载均衡 3、能够了解LVS-NAT的配置方式 4、能够了解LVS-DR的配置方式 #一、LVS介绍和安装 ==LVS==(Linux Vi…