提交 5baef239 编写于 作者: tao.wu's avatar tao.wu

Merge remote-tracking branch 'origin/dev-stage2-20191125' into dev-stage2-20191125

......@@ -48,7 +48,7 @@
}
.big-bg-wrap{
width: 100%; height: auto; overflow: hidden;
background: url('../img/stageTwo/bg-01.png') no-repeat left top;
background: url('../img/stage-two/bg-01.png') no-repeat left top;
background-size: 100% 100%;
.award-wrap{
......@@ -73,7 +73,7 @@
position: relative;
width: 355px; height: 480px;
margin: 2px auto 0;
background: url('../img/stageTwo/user-info-bg.png') no-repeat left top;
background: url('../img/stage-two/user-info-bg.png') no-repeat left top;
background-size: 100% 100%;
.gold-coin{
position: absolute; right: -20px; top: -32px;
......@@ -84,9 +84,9 @@
padding: 16px 15px 0; box-sizing: border-box;
.head-icon{
float: left;
width: 50px; height: 50px; overflow: hidden;
width: 50px; height: 50px; overflow: hidden; border: 0; display: block;
border-radius: 50px;
border: 1px solid red;
// border: 1px solid red;
img{
width: 50px; height: 50px;
}
......@@ -227,7 +227,7 @@
}
.head-icon{
width: 50px; height: 50px; display: block; border: 0;
float: left;
float: left; border-radius: 50px;
}
.content-info{
float: left;
......@@ -339,7 +339,7 @@
padding: 0 15px;
.top-center-bar{
width: 325px; height: 58px; overflow: hidden;
background: url('../img/stageTwo/daily-task-bar.png') no-repeat center center;
background: url('../img/stage-two/daily-task-bar.png') no-repeat center center;
background-size: 128px 12px;
font-size: 18px; color: #F05D30; font-weight: 700; text-align: center; line-height: 58px;
}
......@@ -381,7 +381,7 @@
// 底部logo
.bottom-logo{
width: 100%; height: 92px;
background: url('../img/stageTwo/bottom-logo.png') no-repeat center center;
background: url('../img/stage-two/bottom-logo.png') no-repeat center center;
background-size: 36px 45px;
}
......@@ -444,7 +444,7 @@
.close-btn{
position: absolute; left: 50%; bottom: -50px; margin-left: -15px;
width: 30px; height: 30px;
background: url('../img/stageTwo/close-toast-icon.png') no-repeat center center;
background: url('../img/stage-two/close-toast-icon.png') no-repeat center center;
background-size: 30px; height: 30px;
}
}
......
<template>
<section class="footer-btn-wrap">
<div class="footer-btn">
<div class="btn" @click="handlerMethod">{{btnText}}</div>
</div>
</section>
</template>
<script>
export default {
name: "footer-button",
props: {
btnText: {
type: String,
default: () => {
return '确定'
}
},
btnType: {
type: Boolean,
default: () => {
return 1
}
}
},
methods: {
handlerMethod() {
if(this.btnType) {
this.$router.push('/in-activity')
} else {
this.$emit('sureBtn')
}
}
}
}
</script>
<style lang="less" scoped>
.footer-btn-wrap {
.footer-btn {
width: 100%;
height: 40px;
padding: 5px 0;
box-shadow:0px -1px 0px 0px rgba(237,237,237,1);
position: fixed;
bottom: 0;
background: #fff;
.btn {
width: 345px;
height: 40px;
margin: 0 auto;
line-height: 40px;
text-align: center;
background: linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius: 20px;
color: #FFFFFF;
font-weight: 700;
font-size: 15px;
}
}
}
</style>
\ No newline at end of file
......@@ -159,25 +159,5 @@
}
}
}
.footer-btn {
width: 100%;
height: 40px;
padding: 5px 0;
box-shadow:0px -1px 0px 0px rgba(237,237,237,1);
position: fixed;
bottom: 0;
.btn {
width: 345px;
height: 40px;
margin: 0 auto;
line-height: 40px;
text-align: center;
background: linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius: 20px;
color: #FFFFFF;
font-weight: 700;
font-size: 15px;
}
}
}
}
\ No newline at end of file
......@@ -74,19 +74,22 @@
<p class="num">{{itemD.score}}</p>
</div>
</div>
<div class="footer-btn">
<div class="btn">助力机构 创造佳绩</div>
</div>
<footer-button
:btnText="btnText"
:btnType="btnType">
</footer-button>
</div>
</section>
</template>
<script>
import RankingHeader from '@/components/ranking-header'
import RankingHeader from '@/components/ranking-header';
import FooterButton from '@/components/footer-button';
export default {
name: 'hospital-ranking',
components: {
RankingHeader
RankingHeader,
FooterButton
},
data() {
return {
......@@ -100,7 +103,9 @@
},
activeBtnType: true, //true机构,false人员
hospitalRanking: {},
contributionRanking: {}
contributionRanking: {},
btnText: '助力机构 创造佳绩',
btnType: true
};
},
computed: {
......
此差异已折叠。
......@@ -238,26 +238,5 @@
width: 300px;
}
}
.footer-btn {
width: 100%;
height: 40px;
padding: 5px 0;
box-shadow:0px -1px 0px 0px rgba(237,237,237,1);
position: fixed;
bottom: 0;
background: #fff;
.btn {
width: 345px;
height: 40px;
margin: 0 auto;
line-height: 40px;
text-align: center;
background: linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius: 20px;
color: #FFFFFF;
font-weight: 700;
font-size: 15px;
}
}
}
}
\ No newline at end of file
......@@ -50,8 +50,8 @@
<p class="active-line" v-if="recordType==2"></p>
</div>
</div>
<div class="record-list">
<p class="sum" v-if="recordTotal">{{recordTotal}}</p>
<div class="record-list" v-if="inviteList.length">
<p class="sum">{{recordTotal}}</p>
<div class="loadMore" v-infinite-scroll="loadMore" infinite-scroll-disabled="busy"
infinite-scroll-distance="10">
<div class="record-item" v-if="inviteList.length" v-for="item in inviteList">
......@@ -80,22 +80,24 @@
<p v-if="recordType==1">提醒您的医生好友领取课程您将获得奖励哦!</p>
<p v-if="recordType==2" class="text-get">提醒您的医生好友领取课程后登录云鹊医APP您将再获得奖励哦!</p>
</div>
<div class="footer-btn">
<div class="btn">去邀请</div>
</div>
<footer-button
:btnText="btnText"
:btnType="btnType">
</footer-button>
</div>
</div>
</section>
</template>
<script>
import NormalHeader from '@/components/normal-header'
import { getOneInviteDetails,getTwoInviteDetails } from '@/service/detailsAndRanking'
import NormalHeader from '@/components/normal-header';
import FooterButton from '@/components/footer-button';
import { getOneInviteDetails,getTwoInviteDetails } from '@/service/detailsAndRanking';
export default {
name: "index",
components: {
NormalHeader
NormalHeader,
FooterButton,
},
data() {
return {
......@@ -110,6 +112,8 @@
pageNo: 0,
pageSize: 10,
noMore: false,//分页参数--end
btnText: '去邀请',
btnType: true
};
},
mounted() {
......
......@@ -57,7 +57,7 @@
<div class="no-data" v-if="!personDetails.length">
<img src="~/assets/img/icon-nodata.png" alt="">
<p>暂无记录,您还没有参加活动</p>
<div class="button">立即参加</div>
<div class="button" @click="goInActivity">立即参加</div>
</div>
</div>
</section>
......@@ -92,6 +92,9 @@
this.getPersonDetails();
},
methods: {
goInActivity() {
this.$router.push('/in-activity')
},
detailTaskIcon(taskName) {
if(taskName == '打卡') {
return require('../../assets/img/person-detail/icon-invite.png')
......
......@@ -130,25 +130,5 @@
}
}
}
.footer-btn {
width: 100%;
height: 40px;
padding: 5px 0;
box-shadow:0px -1px 0px 0px rgba(237,237,237,1);
position: fixed;
bottom: 0;
.btn {
width: 345px;
height: 40px;
margin: 0 auto;
line-height: 40px;
text-align: center;
background: linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius: 20px;
color: #FFFFFF;
font-weight: 700;
font-size: 15px;
}
}
}
}
\ No newline at end of file
......@@ -46,19 +46,22 @@
<p class="num">{{item.score}}</p>
</div>
</div>
<div class="footer-btn">
<div class="btn">获得更多勤奋分</div>
</div>
<footer-button
:btnText="btnText"
:btnType="btnType">
</footer-button>
</div>
</section>
</template>
<script>
import RankingHeader from '@/components/ranking-header'
import RankingHeader from '@/components/ranking-header';
import FooterButton from '@/components/footer-button';
export default {
name: 'person-ranking',
components: {
RankingHeader
RankingHeader,
FooterButton
},
data() {
return {
......@@ -73,6 +76,8 @@
rightName: '累计排行榜'
},
activeBtnType: true, //true今日,false累计
btnText: '获得更多勤奋分',
btnType: true
};
},
computed: {
......@@ -135,6 +140,11 @@
}
],
}
if(this.rankData.score) {
this.btnText = '获得更多勤奋分'
} else {
this.btnText = '参与活动得勤奋分'
}
}
},
};
......
......@@ -80,24 +80,4 @@
}
}
.footer-btn {
width: 100%;
height: 40px;
padding: 5px 0;
box-shadow:0px -1px 0px 0px rgba(237,237,237,1);
position: fixed;
bottom: 0;
.btn {
width: 345px;
height: 40px;
margin: 0 auto;
line-height: 40px;
text-align: center;
background: linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius: 20px;
color: #FFFFFF;
font-weight: 700;
font-size: 15px;
}
}
}
\ No newline at end of file
......@@ -21,18 +21,21 @@
</div>
</div>
</div>
<div class="footer-btn">
<div class="btn">今日我要拿奖</div>
</div>
<footer-button
:btnText="btnText"
:btnType="btnType">
</footer-button>
</section>
</template>
<script>
import NormalHeader from '@/components/normal-header'
import NormalHeader from '@/components/normal-header';
import FooterButton from '@/components/footer-button';
export default {
name: "index",
components: {
NormalHeader
NormalHeader,
FooterButton
},
data() {
return {
......@@ -41,7 +44,9 @@
barHeight: 0,
barColor: '#fff',
rightText: '如何领奖',
rewardsList: []
rewardsList: [],
btnText: '今日我要拿奖',
btnType: true
};
},
mounted() {
......
......@@ -4,12 +4,13 @@ import request from './api';
// 获取已邀请的医生列表
export const getInviteList = (token) => {
export const getInviteList = () => {
return request({
url: `campaign/inviteDetail/oneList?pageNo=1&pageSize=10`,
method: 'get',
headers: {
token: token
}
withCredentials: true,
// headers: {
// token: token
// }
})
}
\ No newline at end of file
......@@ -10,6 +10,7 @@ Axios.interceptors.request.use(
// 0. Do something before request is sent
// 1. can be add loading
// 2. make sure if need token
console.log('config>>>>>> ', config)
const method = config.method.toLocaleLowerCase();
if (method === 'post' || method === 'put' || method === 'delete') {}
if (config.withCredentials) {
......
......@@ -23,7 +23,6 @@ export const JsBridgeOptions = {
'gotoLogin',
'shareWechat',
'showNativeToast',
'dispatchEventByModuleCode',
'appBuryingPointEntrust',
'webLoadSuccess',
'WfileImageCallBack',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册