Commit 282b511d authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/mp' into 'master'

Fix/mp

See merge request !14
parents 2dbc9c77 2d1911be
...@@ -26,10 +26,10 @@ if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production') ...@@ -26,10 +26,10 @@ if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production')
// } // }
if (EASY_ENV_IS_BROWSER) { if (EASY_ENV_IS_BROWSER) {
Vue.use(lazyload);
const saDirective = new SaDirective(); const saDirective = new SaDirective();
Vue.directive('track', saDirective.directive); Vue.directive('track', saDirective.directive);
} }
Vue.use(lazyload);
@Component({ @Component({
name: 'Layout' name: 'Layout'
}) })
......
...@@ -5,7 +5,7 @@ export default { ...@@ -5,7 +5,7 @@ export default {
// apiHost: `http://192.168.28.199:7001/`, // apiHost: `http://192.168.28.199:7001/`,
apiHost: 'https://quantum-blocks-vcc2.liangkebang.net/', apiHost: 'https://quantum-blocks-vcc2.liangkebang.net/',
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
opapiHost: `https://opapi-vcc2.liangkebang.net`, // opapiHost: `https://opapi-vcc2.liangkebang.net`,
kdspHost: 'https://kdsp-api-vcc2.liangkebang.net', kdspHost: 'https://kdsp-api-vcc2.liangkebang.net',
test: true test: true
}; };
...@@ -3,6 +3,6 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https'; ...@@ -3,6 +3,6 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
export default { export default {
apiHost: `https://quantum-blocks.q-gp.com/`, apiHost: `https://quantum-blocks.q-gp.com/`,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=production`, shenceUrl: `${protocol}//bn.xyqb.com/sa?project=production`,
opapiHost: `${protocol}//opapi.q-gp.com`, // opapiHost: `${protocol}//opapi.q-gp.com`,
test: false test: false
}; };
...@@ -2,7 +2,7 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https'; ...@@ -2,7 +2,7 @@ const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
export default { export default {
apiHost: `https://quantum-blocks-vcc2.liangkebang.net/`, apiHost: `https://quantum-blocks-vcc2.liangkebang.net/`,
opApiHost: 'https://opapi-vcc2.liangkebang.net', // opApiHost: 'https://opapi-vcc2.liangkebang.net',
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
test: true test: true
}; };
...@@ -14,20 +14,22 @@ export default { ...@@ -14,20 +14,22 @@ export default {
const { meta } = to; const { meta } = to;
// meta?.has?.header && store.commit('CHANGE_HEADER', meta.has.header); // 改变header // meta?.has?.header && store.commit('CHANGE_HEADER', meta.has.header); // 改变header
localStorageParams.forEach(item => { if (router.mode === 'history' && !to.hash) {
if (to.query[item] && errorQueryValues.indexOf(to.query[item]) === -1) { localStorageParams.forEach(item => {
localStorage.set(item, to.query[item]); if (to.query[item] && errorQueryValues.indexOf(to.query[item]) === -1) {
} else { localStorage.set(item, to.query[item]);
localStorage.set(item, ''); } else {
} localStorage.set(item, '');
}); }
cookiesParams.forEach(item => { });
if (to.query[item] && errorQueryValues.indexOf(to.query[item]) === -1) { cookiesParams.forEach(item => {
Cookies.set(item, to.query[item]); if (to.query[item] && errorQueryValues.indexOf(to.query[item]) === -1) {
} else { Cookies.set(item, to.query[item]);
Cookies.remove(item); } else {
} Cookies.remove(item);
}); }
});
}
// (isWechat || isApp || Cookies.get('h') === '0') && store.commit('CHANGE_HEADER', false); // 改变header // (isWechat || isApp || Cookies.get('h') === '0') && store.commit('CHANGE_HEADER', false); // 改变header
// document.body.className = store.state.pay.header ? 'has-header' : ''; // document.body.className = store.state.pay.header ? 'has-header' : '';
...@@ -36,4 +38,4 @@ export default { ...@@ -36,4 +38,4 @@ export default {
next(); next();
}); });
} }
}; };
\ No newline at end of file
...@@ -40,6 +40,8 @@ import Notify from '@qg/cherry-ui/src/notify'; ...@@ -40,6 +40,8 @@ import Notify from '@qg/cherry-ui/src/notify';
import Toast from '@qg/cherry-ui/src/toast'; import Toast from '@qg/cherry-ui/src/toast';
import citrusUi from '@qg/citrus-ui'; import citrusUi from '@qg/citrus-ui';
import Loading from '@qg/cherry-ui/src/loading'; import Loading from '@qg/cherry-ui/src/loading';
import Text from '@qg/cherry-ui/src/text';
import Tag from '@qg/cherry-ui/src/tag';
Vue.use(Button); Vue.use(Button);
Vue.use(Image); Vue.use(Image);
...@@ -67,6 +69,8 @@ Vue.use(Tabs); ...@@ -67,6 +69,8 @@ Vue.use(Tabs);
// Vue.use(SwipeItem); // Vue.use(SwipeItem);
// Vue.use(Swipe); // Vue.use(Swipe);
Vue.use(BackTop); Vue.use(BackTop);
Vue.use(Text);
Vue.use(Tag);
Vue.use(citrusUi); Vue.use(citrusUi);
......
...@@ -152,8 +152,8 @@ ...@@ -152,8 +152,8 @@
} }
*, *,
*:before, *::before,
*:after { *::after {
box-sizing: border-box; box-sizing: border-box;
} }
...@@ -176,13 +176,15 @@ ...@@ -176,13 +176,15 @@
box-sizing: content-box; box-sizing: content-box;
} }
@media screen and (min-width: 769Px) { @media screen and (min-width: 769px) {
html { html {
font-size: 37.5Px !important; font-size: 37.5px !important;
} }
body { body {
max-width: 375Px; max-width: 375px;
/*max-height: 667Px;*/
/* max-height: 667Px; */
margin: 0 auto !important; margin: 0 auto !important;
} }
} }
...@@ -199,44 +201,52 @@ ...@@ -199,44 +201,52 @@
z-index: 999; z-index: 999;
background-color: #fff; background-color: #fff;
} }
.mainload .container { .mainload .container {
text-align: center; text-align: center;
} }
.mainload p { .mainload p {
font-size: 16px; font-size: 16px;
color: #666; color: #666;
margin-top: 10px; margin-top: 10px;
} }
.mainload .circular { .mainload .circular {
height: 36px; height: 36px;
width: 36px; width: 36px;
animation: loading-rotate 2s linear infinite; animation: loading-rotate 2s linear infinite;
} }
.mainload .path { .mainload .path {
animation: loading-dash 1.5s ease-in-out infinite; animation: loading-dash 1.5s ease-in-out infinite;
stroke-dasharray: 90,150; stroke-dasharray: 90, 150;
stroke-dashoffset: 0; stroke-dashoffset: 0;
stroke-width: 3; stroke-width: 3;
stroke: #ec3333; stroke: #ec3333;
stroke-linecap: round; stroke-linecap: round;
} }
@keyframes loading-rotate { @keyframes loading-rotate {
to { to {
transform: rotate(1turn) transform: rotate(1turn);
} }
} }
@keyframes loading-dash { @keyframes loading-dash {
0% { 0% {
stroke-dasharray: 1,200; stroke-dasharray: 1, 200;
stroke-dashoffset: 0 stroke-dashoffset: 0;
} }
50% { 50% {
stroke-dasharray: 90,150; stroke-dasharray: 90, 150;
stroke-dashoffset: -40px stroke-dashoffset: -40px;
} }
to { to {
stroke-dasharray: 90,150; stroke-dasharray: 90, 150;
stroke-dashoffset: -120px stroke-dashoffset: -120px;
} }
} }
...@@ -247,9 +257,11 @@ ...@@ -247,9 +257,11 @@
overflow: hidden; overflow: hidden;
list-style: none; list-style: none;
padding: 0; padding: 0;
/* Fix of Webkit flickering */ /* Fix of Webkit flickering */
z-index: 1; z-index: 1;
} }
.swiper-wrapper { .swiper-wrapper {
position: relative; position: relative;
width: 100%; width: 100%;
...@@ -267,16 +279,19 @@ ...@@ -267,16 +279,19 @@
-webkit-box-sizing: content-box; -webkit-box-sizing: content-box;
box-sizing: content-box; box-sizing: content-box;
} }
.swiper-container-android .swiper-slide, .swiper-container-android .swiper-slide,
.swiper-wrapper { .swiper-wrapper {
-webkit-transform: translate3d(0px, 0, 0); -webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0px, 0, 0); transform: translate3d(0, 0, 0);
} }
.swiper-container-multirow > .swiper-wrapper { .swiper-container-multirow > .swiper-wrapper {
-webkit-flex-wrap: wrap; -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
} }
.swiper-slide { .swiper-slide {
-webkit-flex-shrink: 0; -webkit-flex-shrink: 0;
-ms-flex-negative: 0; -ms-flex-negative: 0;
...@@ -290,6 +305,7 @@ ...@@ -290,6 +305,7 @@
transition-property: transform; transition-property: transform;
transition-property: transform, -webkit-transform; transition-property: transform, -webkit-transform;
} }
.swiper-slide-invisible-blank { .swiper-slide-invisible-blank {
visibility: hidden; visibility: hidden;
} }
...@@ -310,6 +326,7 @@ ...@@ -310,6 +326,7 @@
<!-- <script src="https://activitystatic.lkbang.net/vue/2.6.11/vue.min.js"></script> --> <!-- <script src="https://activitystatic.lkbang.net/vue/2.6.11/vue.min.js"></script> -->
<!-- <script src="https://activitystatic.lkbang.net/vue-router/3.2.0/vue-router.min.js"></script> --> <!-- <script src="https://activitystatic.lkbang.net/vue-router/3.2.0/vue-router.min.js"></script> -->
<!-- <script src="https://activitystatic.lkbang.net/vuex/3.4.0/vuex.min.js"></script> --> <!-- <script src="https://activitystatic.lkbang.net/vuex/3.4.0/vuex.min.js"></script> -->
<script src="https://activitystatic.lkbang.net/sa-sdk-javascript/1.15.16/sensorsdata.min.js"></script> <script src="https://activitystatic.lkbang.net/sa-sdk-javascript/1.15.16/sensorsdata.min.js"></script>
<script src="https://activitystatic.lkbang.net/swiper/4.5.1/swiper.min.js"></script> <script src="https://activitystatic.lkbang.net/swiper/4.5.1/swiper.min.js"></script>
<script src="https://activitystatic.lkbang.net/axios/0.19.2/axios.min.js"></script> <script src="https://activitystatic.lkbang.net/axios/0.19.2/axios.min.js"></script>
......
This diff is collapsed.
// This file is created by egg-ts-helper@1.25.8 // This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!! // Do not modify this file!!!!!!!!!
import 'egg'; import 'egg';
......
// This file is created by egg-ts-helper@1.25.8 // This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!! // Do not modify this file!!!!!!!!!
import 'egg'; import 'egg';
......
// This file is created by egg-ts-helper@1.25.8 // This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!! // Do not modify this file!!!!!!!!!
import 'egg'; import 'egg';
......
// This file is created by egg-ts-helper@1.25.8 // This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!! // Do not modify this file!!!!!!!!!
import 'egg'; import 'egg';
......
// This file is created by egg-ts-helper@1.25.8 // This file is created by egg-ts-helper@1.25.9
// Do not modify this file!!!!!!!!! // Do not modify this file!!!!!!!!!
import 'egg'; import 'egg';
......
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