hookehuyr

✨ feat: 新增报名信息页面

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-27 15:57:59
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-28 15:46:04
* @LastEditTime: 2022-09-28 16:56:40
* @FilePath: /swx/src/app.config.js
* @Description:
*/
......@@ -28,6 +28,7 @@ export default {
'pages/joinActivity/index',
'pages/joinSuccess/index',
'pages/joinVolunteer/index',
'pages/joinInfo/index',
],
subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去
{
......
<!--
* @Date: 2022-09-26 16:10:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-28 15:47:42
* @LastEditTime: 2022-09-28 16:58:56
* @FilePath: /swx/src/components/activity-bar.vue
* @Description: 文件描述
-->
......@@ -22,7 +22,7 @@
<view class="button" @tap="goTo('join')">活动报名</view>
</view>
<view v-if="userType === '2'" class="user-reg">
<view class="button">报名信息</view>
<view class="button" @tap="goTo('info')">报名信息</view>
</view>
<view v-if="userType === '3'" class="admin-control">
<view class="edit">修改活动</view>
......@@ -62,6 +62,10 @@ const goTo = (type) => {
Taro.navigateTo({
url: '../joinVolunteer/index'
})
} else if (type === 'info') { // 报名信息
Taro.navigateTo({
url: '../joinInfo/index'
})
}
}
......
<!--
* @Date: 2022-09-26 14:36:57
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-27 17:55:02
* @LastEditTime: 2022-09-28 17:33:23
* @FilePath: /swx/src/pages/activityDetail/index.vue
* @Description: 文件描述
-->
......@@ -162,7 +162,7 @@ import { ref } from "vue";
// TEMP: 等待真实数据类型
// 根据用户类型显示对应操作栏
const userType = ref('1')
const userType = ref('2')
const show_share = ref(false);
const actions_share = ref([{
......
/*
* @Date: 2022-09-27 17:13:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-28 16:56:20
* @FilePath: /swx/src/pages/joinInfo/index.config.js
* @Description: 文件描述
*/
export default {
navigationBarTitleText: '报名信息',
usingComponents: {
},
}
.bg-gradient {
background: linear-gradient(#B3DDC9, #B3DDC9) no-repeat;
/*调整下划线的宽度占百分之百 高度是3px */
background-size: 100% 1vw;
/* 调整下划线的起始位置 左侧是0 上边是1.15em */
background-position: 0 1.25rem;
}
.join-activity-page {
background-color: #FFFFFF;
.activity-title {
background-color: #FFFFFF;
.box {
padding: 1rem 1rem 0.5rem 1rem;
text-align: center;
}
}
}
.confirm-wrapper-page {
background-color: #FFFFFF;
box-shadow: 0rem -0.17rem 0.67rem 0rem rgba(0,0,0,0.05);
position: fixed;
bottom: 0;
width: 100%;
display: flex;
.box {
padding: 1rem 0;
margin: 1rem;
padding-bottom: 2rem;
margin-top: 0;
text-align: center;
width: 50%;
.button {
color: #FFFFFF;
background-color: #199A74;
padding: 0.65rem 1rem;
border-radius: 1.5rem;
}
}
}
<!--
* @Date: 2022-09-27 17:13:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-09-28 18:30:16
* @FilePath: /swx/src/pages/joinInfo/index.vue
* @Description: 活动报名
-->
<template>
<view class="join-activity-page">
<view class="activity-title">
<view class="box">
<text class="bg-gradient" style="font-size: 1.25rem;">活动报名信息</text>
</view>
</view>
<view class="at-input">
<view class="at-input__container">
<label class="h5-label at-input__title at-input__title">姓名</label>
<input class="h5-input at-input__input" placeholder-class="placeholder" :value="username" placeholder="" :disabled="true"/>
</view>
</view>
<view class="at-input">
<view class="at-input__container">
<label class="h5-label at-input__title at-input__title">手机号</label>
<input class="h5-input at-input__input" placeholder-class="placeholder" :value="phone" placeholder="" :disabled="true"/>
</view>
</view>
<view class="at-input">
<view class="at-input__container">
<label class="h5-label at-input__title at-input__title">年龄段</label>
<input class="h5-input at-input__input" placeholder-class="placeholder" :value="age_range" placeholder="" :disabled="true"/>
</view>
</view>
<view class="at-input">
<view class="at-input__container">
<label class="h5-label at-input__title at-input__title">性别</label>
<input class="h5-input at-input__input" placeholder-class="placeholder" :value="user_sex" placeholder="" :disabled="true"/>
</view>
</view>
<view v-for="(item, index) in arr" :key="index">
<view class="at-input">
<view class="at-input__container">
<label class="h5-label at-input__title at-input__title">{{ item.title }}</label>
<input class="h5-input at-input__input" placeholder-class="placeholder" :value="item.value" placeholder="" :disabled="true"/>
</view>
</view>
</view>
</view>
<view class="confirm-wrapper-page">
<view class="box">
<view @tap="cancelJoin" class="button">取消报名</view>
</view>
<view class="box">
<view @tap="editJoin" class="button">确认修改报名</view>
</view>
</view>
</template>
<script setup>
import { ref, onMounted } from "vue";
import "taro-ui-vue3/dist/style/components/input.scss";
import Taro from '@tarojs/taro'
const username = ref('刘阳河');
const phone = ref('18687888990');
const age_range = ref('30-40岁');
const user_sex = ref('男士');
const arr = ref([]);
onMounted(() => {
arr.value = [{
title: '推荐人' ,
key: 'recommender',
value: '净莲',
}]
})
const cancelJoin = (val) => {
Taro.showToast({
title: '取消成功',
icon: 'success',
duration: 2000
});
}
const editJoin = (val) => {
Taro.navigateTo({
url: '../joinActivity/index'
})
}
</script>
<script>
import "./index.less";
export default {
name: "demoPage",
};
</script>