Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:开启毅行报名链接入口 #126

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"pages/suit/faq/index",
"pages/suit/information/index",
"pages/suit/apply/index",
"pages/suit/myapplication/index"
"pages/suit/myapplication/index",
"pages/trailWalk/index",

Check failure on line 34 in src/app.config.ts

View workflow job for this annotation

GitHub Actions / cache-and-install

Unexpected trailing comma
],
darkmode: true,
themeLocation: "theme.json",
Expand Down
2 changes: 2 additions & 0 deletions src/components/Card/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
background-color: var(--wjh-color-background-container);

.wjh-card-header {
font-size: 20Px;
font-weight: bold;
position: relative;
display: flex;
justify-content: space-between;
Expand Down
39 changes: 39 additions & 0 deletions src/components/Home/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,42 @@
color: var(--wjh-color-white);
border-radius: 16rpx;
}

.trailWalkCard {
position: relative;
box-shadow: 1Px 1Px 8Px 1Px rgba(0, 0, 0, 0.1);
padding: 20Px;
background-color: white;

.trailWalkTitle {
font-size: 20Px;
font-weight: bold;
padding: 0 0 8Px 0;
border-bottom: 2Px solid var(--wjh-color-border);
margin-left: 6Px;
}
.trailWalkCont {
margin-top: 8Px;
font-size: 17Px;
}

.trailWalkButton {
margin-top: 12Px;
}

.trailWalkIcon {
position: absolute;
top: -12%;
right: -5%;
opacity: 0.1;
}
.mountaimIcon {
margin-right: 10Px;
}

.titleModify {
display: inline;
border-left: 3Px solid black;
}
}

27 changes: 26 additions & 1 deletion src/components/Home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@
<questionnaire v-if="isQuestionnaireAccess() && isNeverShowQuestionnaire" />

<fixed-quick-view />
<view :class="[styles.trailWalkCard]">
<text :class="['iconfont','icon-run',styles.trailWalkIcon]" style="font-size: 225Px"></text>

Check warning on line 21 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Require self-closing on Vue.js custom components (<text>)
<view :class="styles.trailWalkTitle">
<text :class="['iconfont','icon-mountain',styles.mountaimIcon]"></text>

Check warning on line 23 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Require self-closing on Vue.js custom components (<text>)
<view :class="styles.titleModify">&nbsp&nbsp</view>

Check warning on line 24 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Expected 1 line break after opening tag (`<view>`), but no line breaks found

Check failure on line 24 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Parsing error: missing-semicolon-after-character-reference

Check failure on line 24 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Parsing error: missing-semicolon-after-character-reference

Check warning on line 24 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Expected 1 line break before closing tag (`</view>`), but no line breaks found
<text>毅行报名</text>
</view>
<view :class="[styles.trailWalkCont]">
<view style="text-align:center;">
<text>第十五届精弘毅行报名通道开启!{{'\n'}}</text>

Check warning on line 29 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Expected 1 space after '{{', but not found

Check warning on line 29 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Expected 1 space before '}}', but not found
<text>转发推送可得精弘第十五届毅行主题!</text>
</view>
<view :class="styles.trailWalkButton">
<WButton size="middle" @tap="jumpToTrailWalk">点我跳转</WButton>

Check failure on line 33 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Component name "WButton" is not kebab-case
</view>
</view>
</view>

<!-- 这里是可选卡片列表 -->
<cards />
Expand Down Expand Up @@ -59,6 +76,9 @@
{{ registerTips }}
</text>
</card>
<Card v-show="registerTips" title="新生提醒">

Check failure on line 79 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Component name "Card" is not kebab-case
<text style="font-size:14.5px">{{ registerTips }}</text>
</Card>
</view>
</scroll-view>
<edit-panel v-model:show="isShowEditPanel" />
Expand All @@ -79,7 +99,6 @@
import FixedQuickView from "../FixedQuickView/index.vue";
import EditPanel from "./edit-panel/index.vue";
import styles from "./index.module.scss";

const questionnairePath = questionnaireInfo.path; // 获取最新的问卷地址

const isShowEditPanel = ref(false);
Expand Down Expand Up @@ -146,4 +165,10 @@
url: "/pages/announcement/index"
});
}

const jumpToTrailWalk = () => {
Taro.navigateTo({
url: "/pages/trailWalk/index"
})

Check failure on line 172 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Missing semicolon
}

Check failure on line 173 in src/components/Home/index.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Missing semicolon
</script>
5 changes: 5 additions & 0 deletions src/pages/trailWalk/index.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
navigationBarTitleText: "毅行报名",
disableScroll: true,
backgroundColor: "#dfdfdf"
};
6 changes: 6 additions & 0 deletions src/pages/trailWalk/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<web-view
src="https://mp.weixin.qq.com/s?__biz=MzkwMDQ0NDM3Mw==&mid=2247533618&idx=1&sn=1983c6c16b581fe2f88126d44e1f57d3&chksm=c041fd88f736749e1d4bb450ff094b7eba1e69877025f6ecb481249f2041120f2a799a0a8d14&token=2112761156&lang=zh_CN#rd"
style="font-size: 100Px;"
/>
</template>
10 changes: 9 additions & 1 deletion src/style/icons.scss

Large diffs are not rendered by default.

Loading