Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e62e121
feat: init project
ctq123 May 2, 2023
19581f6
Merge branch 'master' of github.com:Local-Travel/CoupleGame
ctq123 May 2, 2023
81cc62d
feat: 添加首页
ctq123 May 4, 2023
b4f1dec
feat: 添加角色设置页面
ctq123 May 4, 2023
1166ed3
feat: 处理分发
ctq123 May 4, 2023
5b1b354
feat: 优化界面
ctq123 May 7, 2023
4a69285
feat: 优化界面
ctq123 May 7, 2023
8dc975a
feat: 初步完成开发
ctq123 May 7, 2023
cf06055
feat: 调整css
ctq123 May 7, 2023
f81d08e
feat: 实现图片旋转特效
ctq123 May 7, 2023
87193ae
feat: 实现图片旋转特效
ctq123 May 7, 2023
130c376
feat: 调整样式
ctq123 May 8, 2023
4df2d35
feat: 调整样式
ctq123 May 8, 2023
94c9a66
feat: 初步调整完毕
ctq123 May 9, 2023
417fecc
feat: 初步上线
ctq123 May 11, 2023
a520589
feat: 处理房间失效的问题
ctq123 May 11, 2023
9c92b95
feat: 添加云函数服务端消息推送功能,实现自动刷新
ctq123 May 11, 2023
d182a67
feat: 添加云函数服务端消息推送功能,实现自动刷新
ctq123 May 11, 2023
d4c6403
feat: 优化弹窗,限制输入数
ctq123 May 13, 2023
6ac48b2
feat: 增加云函数处理房间号的问题
ctq123 May 13, 2023
df1468f
feat: 增加云函数处理房间号的问题
ctq123 May 13, 2023
1fcfd8a
feat: 增加云函数处理房间号的问题
ctq123 May 13, 2023
ae4640f
feat: 优化css
ctq123 May 13, 2023
8b9084d
feat: 优化css
ctq123 May 15, 2023
03d3a3e
feat: 修改定时器
ctq123 May 19, 2023
c1abdd4
feat: 添加分配角色弹框
ctq123 May 19, 2023
f996617
feat: 初步完成谁是卧底的开发
ctq123 May 19, 2023
7e54195
feat: 初步完成谁是卧底的开发
ctq123 May 19, 2023
f062e66
feat: 处理完成谁是卧底
ctq123 May 19, 2023
221666e
feat: 删除冗余代码
ctq123 May 19, 2023
6006376
feat: 抽离弹窗
ctq123 May 20, 2023
7fe1bba
feat: 抽离弹窗
ctq123 May 20, 2023
3d0e28c
feat: 修改卧底弹层
ctq123 May 20, 2023
1befbf0
feat: 修改房间号名称
ctq123 May 20, 2023
d189dca
feat: 优化房间号滚动条
ctq123 May 20, 2023
3d5df64
feat: 优化房间号滚动条
ctq123 May 20, 2023
5b0660e
feat: 修改头像
ctq123 May 20, 2023
84532af
feat: 修复狼人身份暴露问题
ctq123 May 20, 2023
ea270d0
feat: 修复选择角色问题
ctq123 May 21, 2023
e1b8a4b
feat: 调整过度加载图片的问题
ctq123 May 21, 2023
115d1f5
feat: 调整首页UI
ctq123 May 21, 2023
d4ffd01
feat: 调整页面头像
ctq123 May 21, 2023
e98be2f
feat: 调整图片路径
ctq123 May 21, 2023
43acf60
feat: 调整谁是卧底的数据
ctq123 May 23, 2023
a75e991
fix: 修改云空间,由于分享受限制暂停更新
ctq123 Aug 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
.project
unpackage/
.DS_Store
20 changes: 20 additions & 0 deletions .hbuilderx/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version" : "0.0",
"configurations" : [
{
"default" : {
"launchtype" : "local"
},
"h5" : {
"launchtype" : "remote"
},
"mp-weixin" : {
"launchtype" : "remote"
},
"provider" : "alipay",
"type" : "uniCloud"
}
]
}
17 changes: 17 additions & 0 deletions App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>

<style>
/*每个页面公共css */
</style>
163 changes: 163 additions & 0 deletions components/bottom-layer-role.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<template>
<view v-if="visible" class="bottom-layer-role">
<view class="header">
<view class="btn-cancel" @click="onCancel">取消</view>
<view class="btn-ok" @click="onConfirm">完成</view>
</view>
<!-- 弹层内容 -->
<scroll-view class="layer-content" :scroll-y="true">
<view class="content">
<view class="select-item" v-for="(item,index) in list" :key="index">
<view class="plus-con">
<view class="plus-minus plus" @click="() => handleMinus(item, index)"></view>
<view class="middle-num">{{item.name}} <text class="count">{{item.roleCount}}</text></view>
<view class="plus-minus minus" @click="() => handlePlus(item, index)"></view>
</view>
</view>
</view>
</scroll-view>
</view>
</template>

<script>
export default {
data() {
return {
visible: false,// 是否显示弹窗
list: [],
};
},
methods: {
showModal({ list }) {
this.list = Array.isArray(list) ? list : []
this.visible = true;
},
hideModal() {
this.visible = false;
},
onCancel() {
this.hideModal();
this.$emit('cancel');
},
onConfirm() {
this.hideModal();
this.$emit('confirm', {});
},
handlePlus(item, index) {
// console.log('handlePlus', item)
if (item.roleCount < 30) {
item.roleCount += 1
this.$set(this.list, index, item)
}
},
handleMinus(item, index) {
if (item.roleCount > 0) {
item.roleCount -= 1
this.$set(this.list, index, item)
}
},
}
};
</script>

<style scoped>
.bottom-layer-role {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 300px;
/* background: linear-gradient(180deg, #07accf 0%, rgba(0, 0, 0, 1) 31.84%); */
background: linear-gradient(to bottom, #07accf 0%, rgba(0, 0, 0, 1) 100%)
/* 其他样式属性 */
}
.header {
font-size: 20px;
font-weight: 600;
text-align: center;
line-height: 48px;
padding: 0px 20px;
border-bottom: 0.5px solid #fff;
color: #fff;
/* background: #fff; */
display: flex;
align-items: center;
justify-content: space-between;
}

.layer-content {
height: 250px;
}

.content {
/* 弹层内容的样式 */
padding: 0px 0px 24px;
}

.select-item {
border-width: 1px;
border-style: solid;
border-image: linear-gradient(to right, transparent, #ffffff, transparent) 1;
height: 58px;
line-height: 58px;
}

.plus-con {
display: flex;
justify-content: space-around;
align-items: center;
}
.middle-num {
margin: 0px 16px;
color: #00ffff;
min-width: 120px;
font-size: 24px;
font-weight: 600;
text-align: center;
}
.count {
margin-left: 8px;
}
.plus-minus {
position: relative;
width: 24px;
height: 24px;
border: 1px solid #fff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
}

.plus-minus::before,
.plus-minus::after {
content: '';
position: absolute;
height: 2px;
width: 12px;
background-color: #fff;
}

.plus-minus::before {
transform: rotate(90deg);
}

.plus-minus:hover::before,
.plus-minus:hover::after {
background-color: #333;
}

.plus-minus:hover {
border-color: #333;
}

.plus-minus.plus::before {
transform: rotate(0deg);
}

.plus-minus.minus::before {
transform: rotate(90deg);
}

</style>
Loading