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

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

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