Showing
6 changed files
with
164 additions
and
5 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-27 15:57:59 | 3 | * @Date: 2022-05-27 15:57:59 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2022-09-28 15:46:04 | 5 | + * @LastEditTime: 2022-09-28 16:56:40 |
| 6 | * @FilePath: /swx/src/app.config.js | 6 | * @FilePath: /swx/src/app.config.js |
| 7 | * @Description: | 7 | * @Description: |
| 8 | */ | 8 | */ |
| ... | @@ -28,6 +28,7 @@ export default { | ... | @@ -28,6 +28,7 @@ export default { |
| 28 | 'pages/joinActivity/index', | 28 | 'pages/joinActivity/index', |
| 29 | 'pages/joinSuccess/index', | 29 | 'pages/joinSuccess/index', |
| 30 | 'pages/joinVolunteer/index', | 30 | 'pages/joinVolunteer/index', |
| 31 | + 'pages/joinInfo/index', | ||
| 31 | ], | 32 | ], |
| 32 | subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去 | 33 | subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去 |
| 33 | { | 34 | { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-26 16:10:35 | 2 | * @Date: 2022-09-26 16:10:35 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-09-28 15:47:42 | 4 | + * @LastEditTime: 2022-09-28 16:58:56 |
| 5 | * @FilePath: /swx/src/components/activity-bar.vue | 5 | * @FilePath: /swx/src/components/activity-bar.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | <view class="button" @tap="goTo('join')">活动报名</view> | 22 | <view class="button" @tap="goTo('join')">活动报名</view> |
| 23 | </view> | 23 | </view> |
| 24 | <view v-if="userType === '2'" class="user-reg"> | 24 | <view v-if="userType === '2'" class="user-reg"> |
| 25 | - <view class="button">报名信息</view> | 25 | + <view class="button" @tap="goTo('info')">报名信息</view> |
| 26 | </view> | 26 | </view> |
| 27 | <view v-if="userType === '3'" class="admin-control"> | 27 | <view v-if="userType === '3'" class="admin-control"> |
| 28 | <view class="edit">修改活动</view> | 28 | <view class="edit">修改活动</view> |
| ... | @@ -62,6 +62,10 @@ const goTo = (type) => { | ... | @@ -62,6 +62,10 @@ const goTo = (type) => { |
| 62 | Taro.navigateTo({ | 62 | Taro.navigateTo({ |
| 63 | url: '../joinVolunteer/index' | 63 | url: '../joinVolunteer/index' |
| 64 | }) | 64 | }) |
| 65 | + } else if (type === 'info') { // 报名信息 | ||
| 66 | + Taro.navigateTo({ | ||
| 67 | + url: '../joinInfo/index' | ||
| 68 | + }) | ||
| 65 | } | 69 | } |
| 66 | } | 70 | } |
| 67 | 71 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-26 14:36:57 | 2 | * @Date: 2022-09-26 14:36:57 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-09-27 17:55:02 | 4 | + * @LastEditTime: 2022-09-28 17:33:23 |
| 5 | * @FilePath: /swx/src/pages/activityDetail/index.vue | 5 | * @FilePath: /swx/src/pages/activityDetail/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -162,7 +162,7 @@ import { ref } from "vue"; | ... | @@ -162,7 +162,7 @@ import { ref } from "vue"; |
| 162 | 162 | ||
| 163 | // TEMP: 等待真实数据类型 | 163 | // TEMP: 等待真实数据类型 |
| 164 | // 根据用户类型显示对应操作栏 | 164 | // 根据用户类型显示对应操作栏 |
| 165 | -const userType = ref('1') | 165 | +const userType = ref('2') |
| 166 | 166 | ||
| 167 | const show_share = ref(false); | 167 | const show_share = ref(false); |
| 168 | const actions_share = ref([{ | 168 | const actions_share = ref([{ | ... | ... |
src/pages/joinInfo/index.config.js
0 → 100755
| 1 | +/* | ||
| 2 | + * @Date: 2022-09-27 17:13:05 | ||
| 3 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 4 | + * @LastEditTime: 2022-09-28 16:56:20 | ||
| 5 | + * @FilePath: /swx/src/pages/joinInfo/index.config.js | ||
| 6 | + * @Description: 文件描述 | ||
| 7 | + */ | ||
| 8 | +export default { | ||
| 9 | + navigationBarTitleText: '报名信息', | ||
| 10 | + usingComponents: { | ||
| 11 | + }, | ||
| 12 | +} |
src/pages/joinInfo/index.less
0 → 100644
| 1 | +.bg-gradient { | ||
| 2 | + background: linear-gradient(#B3DDC9, #B3DDC9) no-repeat; | ||
| 3 | + /*调整下划线的宽度占百分之百 高度是3px */ | ||
| 4 | + background-size: 100% 1vw; | ||
| 5 | + /* 调整下划线的起始位置 左侧是0 上边是1.15em */ | ||
| 6 | + background-position: 0 1.25rem; | ||
| 7 | +} | ||
| 8 | + | ||
| 9 | +.join-activity-page { | ||
| 10 | + background-color: #FFFFFF; | ||
| 11 | + .activity-title { | ||
| 12 | + background-color: #FFFFFF; | ||
| 13 | + .box { | ||
| 14 | + padding: 1rem 1rem 0.5rem 1rem; | ||
| 15 | + text-align: center; | ||
| 16 | + } | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + | ||
| 20 | +} | ||
| 21 | + | ||
| 22 | +.confirm-wrapper-page { | ||
| 23 | + background-color: #FFFFFF; | ||
| 24 | + box-shadow: 0rem -0.17rem 0.67rem 0rem rgba(0,0,0,0.05); | ||
| 25 | + position: fixed; | ||
| 26 | + bottom: 0; | ||
| 27 | + width: 100%; | ||
| 28 | + display: flex; | ||
| 29 | + .box { | ||
| 30 | + padding: 1rem 0; | ||
| 31 | + margin: 1rem; | ||
| 32 | + padding-bottom: 2rem; | ||
| 33 | + margin-top: 0; | ||
| 34 | + text-align: center; | ||
| 35 | + width: 50%; | ||
| 36 | + .button { | ||
| 37 | + color: #FFFFFF; | ||
| 38 | + background-color: #199A74; | ||
| 39 | + padding: 0.65rem 1rem; | ||
| 40 | + border-radius: 1.5rem; | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | +} |
src/pages/joinInfo/index.vue
0 → 100644
| 1 | +<!-- | ||
| 2 | + * @Date: 2022-09-27 17:13:05 | ||
| 3 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 4 | + * @LastEditTime: 2022-09-28 18:30:16 | ||
| 5 | + * @FilePath: /swx/src/pages/joinInfo/index.vue | ||
| 6 | + * @Description: 活动报名 | ||
| 7 | +--> | ||
| 8 | +<template> | ||
| 9 | + <view class="join-activity-page"> | ||
| 10 | + <view class="activity-title"> | ||
| 11 | + <view class="box"> | ||
| 12 | + <text class="bg-gradient" style="font-size: 1.25rem;">活动报名信息</text> | ||
| 13 | + </view> | ||
| 14 | + </view> | ||
| 15 | + <view class="at-input"> | ||
| 16 | + <view class="at-input__container"> | ||
| 17 | + <label class="h5-label at-input__title at-input__title">姓名</label> | ||
| 18 | + <input class="h5-input at-input__input" placeholder-class="placeholder" :value="username" placeholder="" :disabled="true"/> | ||
| 19 | + </view> | ||
| 20 | + </view> | ||
| 21 | + <view class="at-input"> | ||
| 22 | + <view class="at-input__container"> | ||
| 23 | + <label class="h5-label at-input__title at-input__title">手机号</label> | ||
| 24 | + <input class="h5-input at-input__input" placeholder-class="placeholder" :value="phone" placeholder="" :disabled="true"/> | ||
| 25 | + </view> | ||
| 26 | + </view> | ||
| 27 | + <view class="at-input"> | ||
| 28 | + <view class="at-input__container"> | ||
| 29 | + <label class="h5-label at-input__title at-input__title">年龄段</label> | ||
| 30 | + <input class="h5-input at-input__input" placeholder-class="placeholder" :value="age_range" placeholder="" :disabled="true"/> | ||
| 31 | + </view> | ||
| 32 | + </view> | ||
| 33 | + <view class="at-input"> | ||
| 34 | + <view class="at-input__container"> | ||
| 35 | + <label class="h5-label at-input__title at-input__title">性别</label> | ||
| 36 | + <input class="h5-input at-input__input" placeholder-class="placeholder" :value="user_sex" placeholder="" :disabled="true"/> | ||
| 37 | + </view> | ||
| 38 | + </view> | ||
| 39 | + <view v-for="(item, index) in arr" :key="index"> | ||
| 40 | + <view class="at-input"> | ||
| 41 | + <view class="at-input__container"> | ||
| 42 | + <label class="h5-label at-input__title at-input__title">{{ item.title }}</label> | ||
| 43 | + <input class="h5-input at-input__input" placeholder-class="placeholder" :value="item.value" placeholder="" :disabled="true"/> | ||
| 44 | + </view> | ||
| 45 | + </view> | ||
| 46 | + </view> | ||
| 47 | + </view> | ||
| 48 | + | ||
| 49 | + <view class="confirm-wrapper-page"> | ||
| 50 | + <view class="box"> | ||
| 51 | + <view @tap="cancelJoin" class="button">取消报名</view> | ||
| 52 | + </view> | ||
| 53 | + <view class="box"> | ||
| 54 | + <view @tap="editJoin" class="button">确认修改报名</view> | ||
| 55 | + </view> | ||
| 56 | + </view> | ||
| 57 | +</template> | ||
| 58 | + | ||
| 59 | +<script setup> | ||
| 60 | +import { ref, onMounted } from "vue"; | ||
| 61 | + | ||
| 62 | +import "taro-ui-vue3/dist/style/components/input.scss"; | ||
| 63 | + | ||
| 64 | +import Taro from '@tarojs/taro' | ||
| 65 | + | ||
| 66 | +const username = ref('刘阳河'); | ||
| 67 | +const phone = ref('18687888990'); | ||
| 68 | +const age_range = ref('30-40岁'); | ||
| 69 | +const user_sex = ref('男士'); | ||
| 70 | +const arr = ref([]); | ||
| 71 | +onMounted(() => { | ||
| 72 | + arr.value = [{ | ||
| 73 | + title: '推荐人' , | ||
| 74 | + key: 'recommender', | ||
| 75 | + value: '净莲', | ||
| 76 | + }] | ||
| 77 | +}) | ||
| 78 | + | ||
| 79 | +const cancelJoin = (val) => { | ||
| 80 | + Taro.showToast({ | ||
| 81 | + title: '取消成功', | ||
| 82 | + icon: 'success', | ||
| 83 | + duration: 2000 | ||
| 84 | + }); | ||
| 85 | +} | ||
| 86 | + | ||
| 87 | +const editJoin = (val) => { | ||
| 88 | + Taro.navigateTo({ | ||
| 89 | + url: '../joinActivity/index' | ||
| 90 | + }) | ||
| 91 | +} | ||
| 92 | +</script> | ||
| 93 | + | ||
| 94 | +<script> | ||
| 95 | +import "./index.less"; | ||
| 96 | +export default { | ||
| 97 | + name: "demoPage", | ||
| 98 | +}; | ||
| 99 | +</script> |
-
Please register or login to post a comment