Showing
3 changed files
with
9 additions
and
8 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-30 14:12:24 | 5 | + * @LastEditTime: 2022-10-08 10:30:29 |
| 6 | * @FilePath: /swx/src/app.config.js | 6 | * @FilePath: /swx/src/app.config.js |
| 7 | * @Description: | 7 | * @Description: |
| 8 | */ | 8 | */ |
| ... | @@ -33,6 +33,7 @@ export default { | ... | @@ -33,6 +33,7 @@ export default { |
| 33 | 'pages/userInfo/index', | 33 | 'pages/userInfo/index', |
| 34 | 'pages/addRecord/index', | 34 | 'pages/addRecord/index', |
| 35 | 'pages/editInfo/index', | 35 | 'pages/editInfo/index', |
| 36 | + 'pages/myActivityList/index', | ||
| 36 | ], | 37 | ], |
| 37 | subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去 | 38 | subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去 |
| 38 | { | 39 | { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-20 15:39:37 | 2 | * @Date: 2022-09-20 15:39:37 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-09-30 17:13:41 | 4 | + * @LastEditTime: 2022-10-08 10:14:21 |
| 5 | * @FilePath: /swx/src/components/activity-card.vue | 5 | * @FilePath: /swx/src/components/activity-card.vue |
| 6 | * @Description: 活动卡片组件 | 6 | * @Description: 活动卡片组件 |
| 7 | --> | 7 | --> |
| ... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
| 28 | </view> | 28 | </view> |
| 29 | </van-col> | 29 | </van-col> |
| 30 | </van-row> | 30 | </van-row> |
| 31 | - <view style="position: absolute; right: 0; bottom: 1rem; background-color: #BBBBBB; color: white; padding: 0.25rem; padding-left: 1rem; padding-right: 0.5rem; border-top-left-radius: 1rem; border-bottom-left-radius: 1rem; font-size: 0.85rem;">编辑</view> | 31 | + <view v-if="status === 'edit' || status === 'copy'" style="position: absolute; right: 0; bottom: 1rem; background-color: #BBBBBB; color: white; padding: 0.25rem; padding-left: 1rem; padding-right: 0.5rem; border-top-left-radius: 1rem; border-bottom-left-radius: 1rem; font-size: 0.85rem;">编辑</view> |
| 32 | </view> | 32 | </view> |
| 33 | <view class="card-sub"> | 33 | <view class="card-sub"> |
| 34 | <van-row v-if="data.address"> | 34 | <van-row v-if="data.address"> |
| ... | @@ -46,13 +46,13 @@ | ... | @@ -46,13 +46,13 @@ |
| 46 | <text>岗位:333</text> | 46 | <text>岗位:333</text> |
| 47 | </view> | 47 | </view> |
| 48 | </van-col> | 48 | </van-col> |
| 49 | - <van-col v-if="type === 'home'" :span="5"> | 49 | + <van-col v-if="status === 'join'" :span="5"> |
| 50 | <view @tap="goTo()" class="status-button"> | 50 | <view @tap="goTo()" class="status-button"> |
| 51 | <text>我要报名</text> | 51 | <text>我要报名</text> |
| 52 | </view> | 52 | </view> |
| 53 | </van-col> | 53 | </van-col> |
| 54 | </van-row> | 54 | </van-row> |
| 55 | - <view style="position: absolute; right: 0; bottom: 1rem; background-color: #199A74; color: white; padding: 0.25rem; padding-left: 1rem; padding-right: 0.5rem; border-top-left-radius: 1rem; border-bottom-left-radius: 1rem;">复制</view> | 55 | + <view v-if="status === 'copy'" style="position: absolute; right: 0; bottom: 1rem; background-color: #199A74; color: white; padding: 0.25rem; padding-left: 1rem; padding-right: 0.5rem; border-top-left-radius: 1rem; border-bottom-left-radius: 1rem;">复制</view> |
| 56 | </view> | 56 | </view> |
| 57 | </view> | 57 | </view> |
| 58 | </template> | 58 | </template> |
| ... | @@ -66,7 +66,7 @@ import Taro from '@tarojs/taro' | ... | @@ -66,7 +66,7 @@ import Taro from '@tarojs/taro' |
| 66 | 66 | ||
| 67 | const props = defineProps({ | 67 | const props = defineProps({ |
| 68 | data: Object, | 68 | data: Object, |
| 69 | - type: String | 69 | + status: String |
| 70 | }) | 70 | }) |
| 71 | 71 | ||
| 72 | const goTo = () => { | 72 | const goTo = () => { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-09-28 15:22:32 | 4 | + * @LastEditTime: 2022-10-08 10:10:20 |
| 5 | * @FilePath: /swx/src/pages/index/index.vue | 5 | * @FilePath: /swx/src/pages/index/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
| 19 | <text class="bg-gradient" style="font-size: 1.15rem;">推荐活动</text> | 19 | <text class="bg-gradient" style="font-size: 1.15rem;">推荐活动</text> |
| 20 | </view> | 20 | </view> |
| 21 | <view style="padding: 0 1rem;"> | 21 | <view style="padding: 0 1rem;"> |
| 22 | - <activity-card v-for="(item, index) in activity_list" :key="index" :data="item"></activity-card> | 22 | + <activity-card v-for="(item, index) in activity_list" :key="index" :data="item" status="join"></activity-card> |
| 23 | </view> | 23 | </view> |
| 24 | <view style="height: 6rem;"></view> | 24 | <view style="height: 6rem;"></view> |
| 25 | <navbar activated="home" /> | 25 | <navbar activated="home" /> | ... | ... |
-
Please register or login to post a comment