提交 edb300f7 编写于 作者: guangjun.yang's avatar guangjun.yang

页面样式等

上级 7c5b0cc0
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-1-no-wrapper { .card-1-no-wrapper {
min-height: 100vh; height: 100vh;
font-size: 16px; font-size: 16px;
color: #3B3B3B; color: #3B3B3B;
background: #F4FEF8; background: #F4FEF8;
...@@ -40,6 +40,10 @@ export default { ...@@ -40,6 +40,10 @@ export default {
} }
} }
.detail { .detail {
position: relative;
top: 0;
left: 0;
z-index: 2;
margin: 60px 10px 20px 30px; margin: 60px 10px 20px 30px;
.title { .title {
line-height: 1; line-height: 1;
......
...@@ -23,7 +23,10 @@ export default { ...@@ -23,7 +23,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-1-wrapper { .card-1-wrapper {
min-height: 100vh; position: relative;
top: 0;
left: 0;
height: 100vh;
font-size: 16px; font-size: 16px;
color: #3B3B3B; color: #3B3B3B;
background: #F4FEF8; background: #F4FEF8;
...@@ -39,6 +42,10 @@ export default { ...@@ -39,6 +42,10 @@ export default {
} }
} }
.detail { .detail {
position: relative;
top: 0;
left: 0;
z-index: 2;
margin: 20px 30px; margin: 20px 30px;
.title { .title {
line-height: 1; line-height: 1;
......
...@@ -23,7 +23,10 @@ export default { ...@@ -23,7 +23,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-2-wrapper { .card-2-wrapper {
min-height: 100vh; position: relative;
top: 0;
left: 0;
height: 100vh;
font-size: 16px; font-size: 16px;
color: #3B3B3B; color: #3B3B3B;
background: #F4FEF8; background: #F4FEF8;
......
...@@ -22,7 +22,10 @@ export default { ...@@ -22,7 +22,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-3-wrapper { .card-3-wrapper {
min-height: 100vh; position: relative;
top: 0;
left: 0;
height: 100vh;
font-size: 16px; font-size: 16px;
color: #3B3B3B; color: #3B3B3B;
background: #F4FEF8; background: #F4FEF8;
......
...@@ -34,7 +34,10 @@ export default { ...@@ -34,7 +34,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-4-wrapper { .card-4-wrapper {
min-height: 100vh; position: relative;
top: 0;
left: 0;
height: 100vh;
font-size: 16px; font-size: 16px;
color: #3B3B3B; color: #3B3B3B;
&.ysl { &.ysl {
...@@ -53,6 +56,10 @@ export default { ...@@ -53,6 +56,10 @@ export default {
color: #FFFFFF; color: #FFFFFF;
} }
.detail { .detail {
position: relative;
top: 0;
left: 0;
z-index: 2;
margin: 20px 30px; margin: 20px 30px;
.ct { .ct {
p { p {
......
...@@ -34,7 +34,10 @@ export default { ...@@ -34,7 +34,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-5-wrapper { .card-5-wrapper {
min-height: 100vh; position: relative;
top: 0;
left: 0;
height: 100vh;
font-size: 16px; font-size: 16px;
color: #3B3B3B; color: #3B3B3B;
background: #FEF9F4; background: #FEF9F4;
...@@ -50,6 +53,10 @@ export default { ...@@ -50,6 +53,10 @@ export default {
} }
} }
.detail { .detail {
position: relative;
top: 0;
left: 0;
z-index: 2;
margin: 20px 30px; margin: 20px 30px;
p { p {
line-height: 2; line-height: 2;
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
props: { props: {
type: { type: {
type: Number | String, type: Number | String,
default: 2 // 1: 站内; 2: 站外 default: 1 // 1: 站内; 2: 站外
} }
} }
}; };
...@@ -60,7 +60,10 @@ export default { ...@@ -60,7 +60,10 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../style/as-common.less"; @import "../../style/as-common.less";
.card-6-wrapper { .card-6-wrapper {
min-height: 100vh; position: relative;
top: 0;
left: 0;
height: 100vh;
font-size: 16px; font-size: 16px;
color: #3b3b3b; color: #3b3b3b;
background: #88cb9d; background: #88cb9d;
...@@ -110,6 +113,7 @@ export default { ...@@ -110,6 +113,7 @@ export default {
position: absolute; position: absolute;
bottom: 25px; bottom: 25px;
left: 0; left: 0;
z-index: 3;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
......
<template> <template>
<div class="logo-wrapper"> <div class="logo-wrapper">
<div class="logo"> <img @click="back" class="back" v-show="imgType == 1" src="~@/images/annual/back-1.png" alt="">
<img v-show="imgType == 1" src="~@/images/annual/logo-1.png" alt /> <img @click="back" class="back" v-show="imgType == 2" src="~@/images/annual/back-2.png" alt="">
<img v-show="imgType == 2" src="~@/images/annual/logo-2.png" alt /> <img class="logo" v-show="imgType == 1" src="~@/images/annual/logo-1.png" alt />
</div> <img class="logo" v-show="imgType == 2" src="~@/images/annual/logo-2.png" alt />
</div> </div>
</template> </template>
<script> <script>
...@@ -13,19 +13,44 @@ export default { ...@@ -13,19 +13,44 @@ export default {
type: Number | String, type: Number | String,
default: 1 default: 1
} }
} },
data() {
return {
isWeb: window.__isWeb,
}
},
methods: {
back() {
// rocNative.goBack();
this.$router.back(-1);
}
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.logo-wrapper { .logo-wrapper {
position: relative;
top: 0;
left: 0;
z-index: 1;
padding-bottom: 80px;
.back {
position: absolute;
top: 35px;
z-index: 2;
left: 8px;
width: 20px;
height: 29px;
padding: 0 4px;
}
.logo { .logo {
padding-top: 20px; position: absolute;
padding-left: 30px; top: 30px;
img { right: 30px;
display: block; z-index: 2;
width: 88px; display: block;
height: 56px; width: 77px;
} height: 50px;
} }
} }
</style> </style>
\ No newline at end of file
src/images/annual/logo-1.png

2.4 KB | W: | H:

src/images/annual/logo-1.png

2.2 KB | W: | H:

src/images/annual/logo-1.png
src/images/annual/logo-1.png
src/images/annual/logo-1.png
src/images/annual/logo-1.png
  • 2-up
  • Swipe
  • Onion skin
src/images/annual/logo-2.png

2.1 KB | W: | H:

src/images/annual/logo-2.png

1.9 KB | W: | H:

src/images/annual/logo-2.png
src/images/annual/logo-2.png
src/images/annual/logo-2.png
src/images/annual/logo-2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -13,6 +13,7 @@ import Vant from 'vant'; ...@@ -13,6 +13,7 @@ import Vant from 'vant';
import 'vant/lib/index.css'; import 'vant/lib/index.css';
import clipboard from 'clipboard'; import clipboard from 'clipboard';
import { querystring } from '@/utils'; import { querystring } from '@/utils';
import 'swiper/swiper-bundle.css';
//注册到vue原型上 //注册到vue原型上
Vue.prototype.clipboard = clipboard; Vue.prototype.clipboard = clipboard;
......
<template> <template>
<div class="as-swipper-wrapper"> <div class="as-swipper-wrapper">
<!-- <Card1></Card1> --> <div class="swiper-container">
<!-- <Card1No></Card1No> --> <div class="swiper-wrapper">
<!-- <Card2></Card2> --> <div class="swiper-slide">
<!-- <Card3></Card3> --> <Card1></Card1>
<!-- <Card4></Card4> --> </div>
<!-- <Card5></Card5> --> <div class="swiper-slide">
<Card6></Card6> <Card2></Card2>
</div>
<div class="swiper-slide">
<Card3></Card3>
</div>
<div class="swiper-slide">
<Card4></Card4>
</div>
<div class="swiper-slide">
<Card5></Card5>
</div>
<div class="swiper-slide">
<Card6></Card6>
</div>
</div>
</div>
<Loading v-show="showLoading" /> <Loading v-show="showLoading" />
</div> </div>
</template> </template>
...@@ -22,6 +37,8 @@ import Card4 from "@/components/annual-summary/card-4"; ...@@ -22,6 +37,8 @@ import Card4 from "@/components/annual-summary/card-4";
import Card5 from "@/components/annual-summary/card-5"; import Card5 from "@/components/annual-summary/card-5";
import Card6 from "@/components/annual-summary/card-6"; import Card6 from "@/components/annual-summary/card-6";
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
import Swiper from "swiper";
let _this = null; let _this = null;
export default { export default {
...@@ -69,6 +86,24 @@ export default { ...@@ -69,6 +86,24 @@ export default {
_this.getUserInfo(); _this.getUserInfo();
}, },
mounted() {
new Swiper(".swiper-container", {
// direction: "vertical",
speed: 300,
slidesPerView: 1,
// slidesPerGroup : 5,
// loop: true,
// 如果需要分页器
// pagination: ".swiper-pagination",
// // 如果需要前进后退按钮
// nextButton: ".swiper-button-next",
// prevButton: ".swiper-button-prev",
// 如果需要滚动条
// scrollbar: ".swiper-scrollbar"
});
},
methods: { methods: {
...mapActions(["setUserInfo"]), ...mapActions(["setUserInfo"]),
...@@ -118,7 +153,30 @@ export default { ...@@ -118,7 +153,30 @@ export default {
} }
}; };
</script> </script>
<style lang="less" scoped> <style lang="less">
.swiper-container{width: 100%;height: 100%;}
.swiper-container-scrollbar .swiper-slide{
height: auto;
}
.swiper-container-free-mode > .swiper-wrapper {
-webkit-transition-timing-function: linear; /*之前是ease-out*/
-moz-transition-timing-function: linear;
-ms-transition-timing-function: linear;
-o-transition-timing-function: linear;
transition-timing-function: linear;
margin: 0 auto;
}
</style>
<style lang="less" >
.as-swipper-wrapper { .as-swipper-wrapper {
transform: translate3d(0, 0, 0);
// background: red;
.swiper-container {
transform: translate3d(0, 0, 0);
overflow: hidden;
}
.swiper-slide {
transform: translate3d(0, 0, 0);
}
} }
</style> </style>
\ No newline at end of file
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
created() { created() {
_this = this; _this = this;
// 截屏时通知前端 // 截屏时通知前端
window.screenCaptureEvent = function() { window.__screenCaptureEvent = function() {
console.log('in screenCaptureEvent'); console.log('in screenCaptureEvent');
_this.$sendBuriedData({ _this.$sendBuriedData({
component_tag: '557#557002' component_tag: '557#557002'
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
// 保存图片的回调 // 保存图片的回调
window.__savePage2Picture = function(param) { window.__savePage2Picture = function(param) {
this.isHide = false; this.isHide = true;
console.log("__savePage2Picture", param); console.log("__savePage2Picture", param);
} }
}, },
......
<template>
<div class="as-share-wrapper">
<Card6 type=2></Card6>
</div>
</template>
<script>
import Card6 from "@/components/annual-summary/card-6";
export default {
components: {
Card6
},
methods: {
},
}
</script>
<style lang="less" scoped>
.as-share-wrapper {
}
</style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册