Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-08 11:01:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a1fc5d5fade0c18f3285904d37c8a0121b686ff
2a1fc5d5
1 parent
90e0df53
fix 活动详情组件内容调整
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
src/app.config.js
src/components/activity-card.vue
src/pages/index/index.vue
src/app.config.js
View file @
2a1fc5d
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-27 15:57:59
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-
09-30 14:12:24
* @LastEditTime: 2022-
10-08 10:30:29
* @FilePath: /swx/src/app.config.js
* @Description:
*/
...
...
@@ -33,6 +33,7 @@ export default {
'pages/userInfo/index'
,
'pages/addRecord/index'
,
'pages/editInfo/index'
,
'pages/myActivityList/index'
,
],
subpackages
:
[
// 配置在tabBar中的页面不能分包写到subpackages中去
{
...
...
src/components/activity-card.vue
View file @
2a1fc5d
<!--
* @Date: 2022-09-20 15:39:37
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-
09-30 17:13:4
1
* @LastEditTime: 2022-
10-08 10:14:2
1
* @FilePath: /swx/src/components/activity-card.vue
* @Description: 活动卡片组件
-->
...
...
@@ -28,7 +28,7 @@
</view>
</van-col>
</van-row>
<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>
<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>
</view>
<view class="card-sub">
<van-row v-if="data.address">
...
...
@@ -46,13 +46,13 @@
<text>岗位:333</text>
</view>
</van-col>
<van-col v-if="
type === 'home
'" :span="5">
<van-col v-if="
status === 'join
'" :span="5">
<view @tap="goTo()" class="status-button">
<text>我要报名</text>
</view>
</van-col>
</van-row>
<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>
<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>
</view>
</view>
</template>
...
...
@@ -66,7 +66,7 @@ import Taro from '@tarojs/taro'
const props = defineProps({
data: Object,
type
: String
status
: String
})
const goTo = () => {
...
...
src/pages/index/index.vue
View file @
2a1fc5d
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-
09-28 15:22:32
* @LastEditTime: 2022-
10-08 10:10:20
* @FilePath: /swx/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -19,7 +19,7 @@
<text class="bg-gradient" style="font-size: 1.15rem;">推荐活动</text>
</view>
<view style="padding: 0 1rem;">
<activity-card v-for="(item, index) in activity_list" :key="index" :data="item"></activity-card>
<activity-card v-for="(item, index) in activity_list" :key="index" :data="item"
status="join"
></activity-card>
</view>
<view style="height: 6rem;"></view>
<navbar activated="home" />
...
...
Please
register
or
login
to post a comment