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

个人明细页面

上级 f2099e6e
...@@ -38,6 +38,8 @@ export default { ...@@ -38,6 +38,8 @@ export default {
position: fixed; position: fixed;
left: 0; left: 0;
bottom: 0; bottom: 0;
z-index: 3;
background: #fff;
} }
.detail-btn { .detail-btn {
display: flex; display: flex;
......
<template> <template>
<div class="detail-list br"> <div class="detail-list br">
<ul v-show="dataList.length"> <ul v-show="!dataList.length">
<li class="list" v-for="(item, index) in dataList" :key="index"> <li class="list" v-for="(item, index) in dataList" :key="index">
<img src="../../assets/type-2.png" alt=""> <img src="../../assets/type-2.png" alt="">
<ul class="desc"> <ul class="desc">
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<span class="score"><span>+5</span>勤奋分</span> <span class="score"><span>+5</span>勤奋分</span>
</li> </li>
</ul> </ul>
<div v-show="!dataList.length" class="no-content"> <div v-show="dataList.length" class="no-content">
<img src="../../assets/no-content.png" alt=""> <img src="../../assets/no-content.png" alt="">
<div class="text">暂无记录,您还没有参加活动</div> <div class="text">暂无记录,您还没有参加活动</div>
<DetailBtn style="margin-top: 30px;" btnText="立即参加" :isFixed="isFixed" btnWidth="50%"></DetailBtn> <DetailBtn style="margin-top: 30px;" btnText="立即参加" :isFixed="isFixed" btnWidth="50%"></DetailBtn>
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
props: { props: {
dataList: { dataList: {
type: Array, type: Array,
default: () => [0, 1, 3, 4] default: () => [0, 1, 3,0, 1, 3,0, 1, 3,0, 1, 3, 4]
} }
}, },
data() { data() {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div :class="{ active: isScroll }" class="content title"> <div :class="{ active: isScroll }" class="content title">
<span>{{ shareTitle1 }}</span> <span>{{ shareTitle1 }}</span>
</div> </div>
<div class="content right-icon" @click="share"> <div v-show="isShowRightIcon" class="content right-icon" @click="share">
<img :src="headerRightIcon" /> <img :src="headerRightIcon" />
</div> </div>
</div> </div>
...@@ -45,6 +45,10 @@ export default { ...@@ -45,6 +45,10 @@ export default {
}, },
shareIconUrl: { shareIconUrl: {
type: String type: String
},
isShowRightIcon: {
type: Boolean,
default: false
} }
}, },
computed: { computed: {
...@@ -61,8 +65,11 @@ export default { ...@@ -61,8 +65,11 @@ export default {
}, },
methods: { methods: {
goBack() { goBack() {
this.$emit('closeVideo'); if(this.$rocNative.isWeb) {
this.$rocNative.goBack(); this.$router.go(-1);
} else {
this.$rocNative.goBack();
}
}, },
share() { share() {
let shareUrl = ''; let shareUrl = '';
......
此差异已折叠。
<template> <template>
<section class="personal-details-wrapper"> <section class="personal-detail">
<article class="user"> <Header
<img class="user-img" src="../assets/user-header.png" alt=""> :is-scroll="isScroll"
<div class="profile"> :share-title1="shareTitle1"
<img src="../assets/user-header.png" alt=""> :share-title2="shareTitle2"
<div class="desc"> />
<span class="score">22345</span> <section class="personal-details-wrapper">
<span class="text">我的勤奋分</span> <article class="user">
<img class="user-img" src="../assets/user-header.png" alt="">
<div class="profile">
<img src="../assets/user-header.png" alt="">
<div class="desc">
<span class="score">22345</span>
<span class="text">我的勤奋分</span>
</div>
</div> </div>
</div> </article>
</article> <DetailList></DetailList>
<DetailList></DetailList> <DetailBtn v-show="false" needBT=true @btnClick="goBack"></DetailBtn>
<DetailBtn needBT=true @btnClick="btnClick"></DetailBtn> </section>
</section> </section>
</template> </template>
<script> <script>
import DetailList from '@/components/bussiness/detail-list'; import DetailList from '@/components/bussiness/detail-list';
import DetailBtn from '@/components/bussiness/detail-btn'; import DetailBtn from '@/components/bussiness/detail-btn';
import Header from '../components/header';
export default { export default {
components: { components: {
Header,
DetailList, DetailList,
DetailBtn DetailBtn
}, },
data() { data() {
return { return {
token: '222',
shareTitle1: '个人明细',
shareTitle2: '',
shareIconUrl: '',
isScroll: true,
} }
}, },
methods: { methods: {
btnClick() { goBack() {
console.log(11); if(this.$rocNative.isWeb) {
// alert(1); this.$router.go(-1);
} } else {
this.$rocNative.goBack();
}
},
}, },
} }
</script> </script>
<style lang="less"> <style lang="less">
.personal-details-wrapper { .personal-details-wrapper {
padding: 70px 0 60px;
.user { .user {
position: relative; position: relative;
top: 0; top: 0;
...@@ -69,16 +86,16 @@ export default { ...@@ -69,16 +86,16 @@ export default {
// margin-left: 15px; // margin-left: 15px;
text-align: center; text-align: center;
.score { .score {
height: 24px; height: 18px;
line-height: 24px; line-height: 18px;
font-size: 24px; font-size: 24px;
font-weight: 700; font-weight: 700;
color: rgba(255,232,165, 0.8); color: rgba(255,232,165, 1);
} }
.text { .text {
height: 18px; height: 18px;
line-height: 18px; line-height: 18px;
// margin-top: 6px; margin-top: 6px;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #FFE8A5; color: #FFE8A5;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册