-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from Tianci-King/suitApply
feat(suitApply):新增正装借用
- Loading branch information
Showing
42 changed files
with
2,609 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* 正装借用 借用须知 | ||
* 默认须知 | ||
*/ | ||
|
||
export const faqText = [ | ||
"① -- 确定正装需求\n\n", | ||
"② -- 联系管理员\n\n", | ||
"③ -- 填写正装申请表\n\n", | ||
"④ -- 线下确定尺寸\n\n" | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@import "@/style/theme.scss"; | ||
|
||
.container { | ||
text-align: center; | ||
padding: 8Px; | ||
font-size: 1.0rem; | ||
color: var(--wjh-color-text-secondary); | ||
background-color: var(--wjh-color-primary-light); | ||
display: flex; | ||
justify-content: center; | ||
gap: 8Px; | ||
align-items: center; | ||
z-index: 1000; | ||
@include shadow; | ||
|
||
.arrow { | ||
rotate: 90deg; | ||
width: 0; | ||
height: 0; | ||
border: 7Px solid transparent; | ||
border-bottom: 12Px solid var(--wjh-color-primary-dark); | ||
} | ||
|
||
.helpicon { | ||
font-size: 1.2rem; | ||
color: var(--wjh-color-primary-dark); | ||
line-height: 150%; | ||
} | ||
} | ||
|
||
.ios { | ||
padding-bottom: 2rem; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<script setup lang="ts"> | ||
import styles from "./index.module.scss"; | ||
import { isNewIPhone } from "@/utils"; | ||
import Taro from "@tarojs/taro"; | ||
const emit = defineEmits(["showHelp"]); | ||
const data: Array<{ content: string; extra?: string }> = [ | ||
{ | ||
content: "学生事务大厅-朝晖: 综合楼一楼河畔旁", | ||
extra: "学生事务大厅-朝晖\r\n电话: 88320868", | ||
}, | ||
{ | ||
content: "学生事务大厅-屏峰: 西4和东15楼下", | ||
extra: "学生事务大厅-屏峰\r\n东15电话: 85290858\r\n西4电话:85290880", | ||
}, | ||
{ | ||
content: "学生事务大厅-莫干山: 德8德9连廊", | ||
extra: "学生事务大厅-莫干山\r\n电话: (0571) 8881 3551", | ||
}, | ||
]; | ||
const handleClick = () => { | ||
Taro.showActionSheet({ | ||
itemList: data.map((item) => item.content), | ||
success: (res) => { | ||
if (data[res.tapIndex].extra) { | ||
Taro.showModal({ | ||
title: "详情", | ||
content: data[res.tapIndex].extra, | ||
}); | ||
} | ||
}, | ||
}); | ||
}; | ||
function handleTapHelp() { | ||
emit("showHelp", "lost-found"); | ||
} | ||
</script> | ||
|
||
<template> | ||
<view :class="[styles.container, isNewIPhone() ? styles.ios : undefined]"> | ||
<view @tap="handleClick" :class="styles.arrow" /> | ||
<text @tap="handleClick" >点击查看学生事务大厅的联系方式</text> | ||
<view | ||
:class="[styles.helpicon]" class="iconfont icon-help" | ||
@tap="handleTapHelp" | ||
/> | ||
</view> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.dark { | ||
.record-list-item { | ||
color: var(--wjh-color-primary); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
navigationBarTitleText: "正装查看与申请", | ||
backgroundColor: "#F9D8BE", | ||
disableScroll: true, | ||
navigationStyle: "custom" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
@import "@/style/theme.scss"; | ||
|
||
.campus-selector { | ||
padding: 12Px; | ||
|
||
.container { | ||
display: flex; | ||
height: 100%; | ||
gap: 16Px; | ||
} | ||
|
||
.campus { | ||
@include shadow; | ||
flex: 0 calc(100% / 3); | ||
padding: 6Px 16Px; | ||
border-radius: 100Px; | ||
background-color: var(--wjh-color-primary-light); | ||
color: var(--wjh-color-primary-dark); | ||
text-align: center; | ||
transition: all .1s; | ||
} | ||
|
||
.campus:active { | ||
transform: scale(1.05); | ||
} | ||
|
||
.active { | ||
background-color: var(--wjh-color-primary); | ||
color: var(--wjh-color-white); | ||
} | ||
} | ||
|
||
.suit-selector { | ||
display: flex; | ||
flex: 0 0 auto; | ||
margin-bottom: 6Px; | ||
padding: 6Px; | ||
overflow-x: scroll; | ||
white-space: nowrap; | ||
|
||
.suits { | ||
@include shadow; | ||
position: relative; | ||
height: 178Px; | ||
// height: 142Px; | ||
margin: 0 6Px; | ||
padding: 0Px 62Px; | ||
border-radius: 12Px; | ||
background-color: var(--wjh-color-week); | ||
background-size:100% 100%; | ||
|
||
.suit-name { | ||
height: 36Px; | ||
width: 124Px; | ||
line-height: 65px; | ||
position: absolute; | ||
top: 142Px; | ||
left: 0Px; | ||
text-align: center; | ||
border-radius: 0 0 9Px 9Px; | ||
background-color: var(--wjh-color-background-container); | ||
} | ||
} | ||
|
||
.active { | ||
border: solid 4Px var(--wjh-color-primary); | ||
} | ||
} | ||
|
||
.suit-panel { | ||
background-color: var(--wjh-color-background-popup); | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
border-top-right-radius: 20Px; | ||
border-top-left-radius: 20Px; | ||
|
||
.container { | ||
padding: 12Px 33Px; | ||
|
||
.title { | ||
margin: 24Px 0; | ||
padding-left: .6rem; | ||
border-left: 2Px solid; | ||
font-size: 1.1rem; | ||
line-height: 100%; | ||
color: var(--wjh-color-primary); | ||
} | ||
|
||
.size-scroll { | ||
display: flex; | ||
overflow-x: auto; | ||
|
||
.size-card { | ||
@include shadow; | ||
display: flex; | ||
flex: 0 0 auto; | ||
height: 40Px; | ||
padding: 0 25Px; | ||
margin-right: 16Px; | ||
border: solid 2Px var(--wjh-color-week); | ||
border-radius: 10Px; | ||
color: var(--wjh-color-text-secondary); | ||
text-align: center; | ||
line-height: 40Px; | ||
} | ||
|
||
.active { | ||
border: solid 2Px var(--wjh-color-primary); | ||
color: var(--wjh-color-primary); | ||
} | ||
} | ||
|
||
.remain-suit-num { | ||
// display: inline-flex; | ||
position: relative; | ||
} | ||
|
||
.warning { | ||
position: absolute; | ||
top: -12Px; | ||
left: 100Px; | ||
display: inline-flex; | ||
// margin: -12Px 0 0 40Px; | ||
padding: 9Px 13Px 9Px 13Px; | ||
border-radius: 8Px; | ||
color: var(--wjh-color-orange-600); | ||
background-color: var(--wjh-color-orange-400); | ||
|
||
.text { | ||
margin-left: 12Px; | ||
} | ||
} | ||
|
||
.rent-suit-number { | ||
transition: all 0.1s; //need test | ||
|
||
.number-symbal { | ||
@include shadow; | ||
display: inline-block; | ||
height: 35Px; | ||
width: 35Px; | ||
border: solid 1Px var(--wjh-color-week); | ||
border-radius: 5Px; | ||
color: var(--wjh-color-week); | ||
font-size: 1.6rem; | ||
font-weight: var(--wjh-font-weight-medium); | ||
text-align: center; | ||
line-height: 35Px; | ||
} | ||
|
||
.number-symbal:hover { | ||
color: var(--wjh-color-text-secondary); | ||
background-color: var(--wjh-color-light); | ||
border: solid 1Px var(--wjh-color-light); | ||
} | ||
|
||
.number-num { | ||
display: inline-block; | ||
margin: 0 30Px; | ||
} | ||
} | ||
} | ||
|
||
.confirm { | ||
@include shadow; | ||
height: 40Px; | ||
margin: 12Px; | ||
border-radius: 7Px; | ||
text-align: center; | ||
line-height: 40Px; | ||
background-color: var(--wjh-color-primary); | ||
color: var(--wjh-color-white); | ||
} | ||
|
||
.unactive { | ||
background-color: var(--wjh-color-week); | ||
} | ||
} | ||
|
||
.card-alarm { | ||
margin: 0 30Px; | ||
} |
Oops, something went wrong.