Commit 08dea97c authored by wykolor's avatar wykolor

Merge branch 'feature/2021_03_12_bonus' of dev.jiuaoedu.com:wykolor/mall-webview…

Merge branch 'feature/2021_03_12_bonus' of dev.jiuaoedu.com:wykolor/mall-webview into feature/2021_03_12_bonus
parents 0a0ddfe4 d8938f18
......@@ -9,6 +9,53 @@
<link rel="stylesheet" href="//at.alicdn.com/t/font_2425189_lvk0clvlo2.css">
<title><%= htmlWebpackPlugin.options.title %></title>
<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
<script>
(function flexible (window, document) {
var docEl = document.documentElement
var dpr = window.devicePixelRatio || 1
// adjust body font size
function setBodyFontSize () {
if (document.body) {
document.body.style.fontSize = (12 * dpr) + 'px'
}
else {
document.addEventListener('DOMContentLoaded', setBodyFontSize)
}
}
setBodyFontSize();
// set 1rem = viewWidth / 10
function setRemUnit () {
var rem = docEl.clientWidth / 10
rem = rem > 75 ? 75 : rem;
docEl.style.fontSize = rem + 'px';
}
setRemUnit()
// reset rem unit on page resize
window.addEventListener('resize', setRemUnit)
window.addEventListener('pageshow', function (e) {
if (e.persisted) {
setRemUnit()
}
})
// detect 0.5px supports
if (dpr >= 2) {
var fakeBody = document.createElement('body')
var testElement = document.createElement('div')
testElement.style.border = '.5px solid transparent'
fakeBody.appendChild(testElement)
docEl.appendChild(fakeBody)
if (testElement.offsetHeight === 1) {
docEl.classList.add('hairlines')
}
docEl.removeChild(fakeBody)
}
}(window, document))
</script>
</head>
<body>
<noscript>
......
......@@ -11,9 +11,26 @@
background: #f6f6f6;
min-height: 100vh;
box-sizing: border-box;
font-size: 26px;
font-size: 28px;
}
.van-button--small {
height: 72px;
line-height: 72px;
font-size: 28px;
}
.van-button {
height: 72px;
line-height: 72px;
font-size: 28px;
}
* {
box-sizing: inherit;
}
i.iconfont {
font-family: "iconfont" !important;
font-size: 28px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
......@@ -237,7 +237,7 @@ button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
outline: 1px / 2 dotted ButtonText;
}
/**
......@@ -316,7 +316,7 @@ textarea {
[type="search"] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
outline-offset: -2px / 2;
/* 2 */
}
......
......@@ -4,7 +4,6 @@ import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/style/normalize.css";
import "amfe-flexible";
if (process.env.VUE_APP_DEPLOY_MODE === "test") {
const VConsole = require("vconsole");
......
......@@ -22,9 +22,8 @@
</van-col>
<van-col span="12" style="text-align: right"
><van-button
style="border-color: #fff; width: 45%"
round
color="inherit"
class="withdraw-detail-btn"
size="small"
type="primary"
to="bonusDetail"
......@@ -371,6 +370,16 @@ export default Bonus;
<style lang="scss" scoped>
.bonus {
padding: 30px;
:deep(.van-button) {
&.withdraw-detail-btn {
height: 48px;
line-height: 48px;
background-color: inherit;
padding: 0 24px;
color: rgba(255, 255, 255, 0.8);
border: 2px solid rgba(255, 255, 255, 0.5);
}
}
.bonus-account {
padding: 30px;
color: #fff;
......@@ -485,6 +494,10 @@ export default Bonus;
}
}
::v-deep .bunus-rule-dialog {
&.van-dialog {
top: 50%;
width: 622px;
}
.van-dialog__header {
background: linear-gradient(213deg, #05b2ff 0%, #027aff 100%);
padding: 23px 0;
......@@ -497,12 +510,14 @@ export default Bonus;
color: #565858;
li {
line-height: 48px;
margin: 10px 0;
font-size: 26px;
}
}
}
.dialog-handle-btns {
display: flex;
padding: 30px;
padding: 0 30px 30px 30px;
margin-bottom: 30px;
justify-content: space-between;
.van-button {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment