提交 663ce5de 编写于 作者: chengxiang.li's avatar chengxiang.li

拉取代码解决merge冲突

......@@ -7,14 +7,14 @@
<div
class="btn left"
:class="{'active-btn':activeBtnType}"
@click="headBtnClick">
@click="headBtnClick(true)">
{{headBtn.leftName}}
</div>
<div class="line"></div>
<div
class="btn right"
:class="{'active-btn':!activeBtnType}"
@click="headBtnClick">
@click="headBtnClick(false)">
{{headBtn.rightName}}
</div>
</div>
......@@ -74,8 +74,8 @@
this.$rocNative.goBack()
}
},
headBtnClick() {
this.$emit('handleBtn')
headBtnClick(val) {
this.$emit('handleBtn', val)
},
rightBtnClick() {
this.$emit('handleRightBtn')
......
......@@ -160,4 +160,33 @@
}
}
}
.no-data {
margin-top: 112px;
img {
width: 150px;
height: 150px;
display: block;
margin: 0 auto;
}
p {
color: #999999;
font-size: 15px;
line-height: 21px;
margin-top: 5px;
margin-bottom: 30px;
text-align: center;
}
.button {
color: #fff;
font-size: 15px;
font-weight: 700;
width: 180px;
height: 45px;
line-height: 45px;
text-align: center;
background: linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius: 22.5px;
margin: 0 auto;
}
}
}
\ No newline at end of file
......@@ -49,7 +49,7 @@
</div>
</div>
</div>
<div class="main-content">
<div class="main-content" v-if="!noContributionRanking">
<div class="description description-h" v-if="activeBtnType"><span>{{dealRankName(hospitalRanking.hospitalType)}}</span>排行实时刷新,部分原因存在几分钟延迟</div>
<div class="description description-d" v-else>排行实时刷新,部分原因存在几分钟延迟</div>
<div class="ranking-title">
......@@ -74,11 +74,19 @@
<p class="num">{{itemD.score}}</p>
</div>
</div>
<footer-button
:btnText="btnText"
:btnType="btnType">
</footer-button>
</div>
<div class="main-content" v-if="noContributionRanking">
<div class="no-data">
<img src="~/assets/img/icon-nodata.png" alt="">
<p>暂无记录,您还没有参加活动</p>
<div class="button" @click="goInActivity">立即参加</div>
</div>
</div>
<footer-button
v-if="!noContributionRanking"
:btnText="btnText"
:btnType="btnType">
</footer-button>
</section>
</template>
......@@ -105,7 +113,8 @@
hospitalRanking: {},
contributionRanking: {},
btnText: '助力机构 创造佳绩',
btnType: true
btnType: true,
noContributionRanking: false //是否有人员贡献榜单数据
};
},
computed: {
......@@ -115,8 +124,11 @@
this.getRankData();
},
methods: {
changeRanking() {
this.activeBtnType = !this.activeBtnType;
goInActivity() {
this.$router.push('/in-activity')
},
changeRanking(val) {
this.activeBtnType = val;
this.getRankData()
},
dealRankName(hospitalType) {
......@@ -140,6 +152,7 @@
}
},
getHospitalRanking() {
this.noContributionRanking = false;
getHospitalRanking().then(res => {
if(res.code == '000000') {
this.hospitalRanking = res.data;
......@@ -150,6 +163,11 @@
getContributionRanking().then(res => {
if(res.code == '000000') {
this.contributionRanking = res.data;
if(this.contributionRanking.topRankList.length) {
this.noContributionRanking = false;
} else {
this.noContributionRanking = true;
}
}
})
......
......@@ -197,7 +197,7 @@
<div class="content-wrap activity-end">
<p class="content-text">本次活动已结束,感谢您的参与,最终获奖排名将于12月30日10点公布,届时查看</p>
<ul class="btn-list">
<li>我知道了</li>
<li @click="goBack">领奖</li>
<li @click="goToYesterdayPrize" class="high-light">查看昨日获奖</li>
</ul>
</div>
......@@ -221,7 +221,11 @@
export default {
data () {
return {
<<<<<<< HEAD
token: '',
=======
activeOverTimeStr: new Date('2019/12/27 00:00:00') , // 活动结束
>>>>>>> 58ce88329aa24db45f0add7a0135c1d68c96e1e3
activityId: 2, // 上线前等产品通知修改默认值
serverTime: '',
......@@ -262,8 +266,8 @@
hospitalLevelScore: [], // 三阶段达标分值, 数组返回
targetRequiredScore: '', // 再获得多少分 // 再获得10勤奋分即可上升到前10名获得欧姆龙温度计
targetRank: '', // 上升到多少名
todayDate: 0,
yesterdayDate: 0,
todayDate: 0, // 今日服务器时间(用来展示对应奖项)
yesterdayDate: 0, // 昨日服务器时间(用来展示对应奖项)
userYesterdayRank: 0, // 用戶昨日排名
},
......@@ -287,7 +291,6 @@
id: '',
},
isWeb: false,
shareObj: {},
padTop: 0
}
},
......@@ -349,6 +352,7 @@
}
})
}
<<<<<<< HEAD
vm.shareObj = {
shareUrl: window.location.href,
......@@ -356,6 +360,13 @@
title2: '分享desc分享desc',
shareImageUrl: 'https://file.yunqueyi.com/h5/nzhd19/share.png'
}
=======
},
mounted() {
// 这里需要删掉!!!
vm.getUserActivityInfo();
// 这里需要删掉!!!
>>>>>>> 58ce88329aa24db45f0add7a0135c1d68c96e1e3
vm.isWeb = vm.$rocNative.isWeb;
......@@ -451,6 +462,9 @@
// alert('获取用户及分数信息。。。');
// alert(JSON.stringify(res));
vm.doctorInfo = res.data;
if(vm.doctorInfo.userYesterdayRank>0 && vm.doctorInfo.userYesterdayRank<=10){
vm.clockSuccessVisible = true;
}
});
},
goToCheckJoin() { // 检查是否加入结构
......@@ -588,6 +602,9 @@
name: 'hospital-ranking',
});
},
goBack(){
this.$rocNative.goBack();
},
// 昨日获奖
goToYesterdayPrize() {
alert('跳转至 昨日获奖页面')
......@@ -656,12 +673,8 @@
goToShare() {
alert('调app分享');
// let id = vm.encryptDoctorId();
let params = {
id: '',
taskId: '',
activityId: '',
};
// 调用APP分享
this.$rocNative.shareWechat(this.shareObj);
},
encryptDoctorId() {
......@@ -726,9 +739,13 @@
getTasks() {
// debugger;
getTimsActivityInfo(vm.activityId).then(res => {
alert('^^^^^获取任务信息…………………………')
alert(JSON.stringify(res))
// alert('^^^^^获取任务信息…………………………')
// alert(JSON.stringify(res))
if(res && res.code == '000000'){
if(!vm.checkTimeStatus(res.data)){
this.activityEndVisible = true;
return;
}
let data = res.data;
let taskRuleData = data.taskRuleData || [];
......@@ -787,6 +804,18 @@
vm.$toast(res.message);
}
})
<<<<<<< HEAD
=======
},
// 校验活动是否结束
checkTimeStatus(data){
const { timeStatus } = data.activityData;
// timeStatus 活动时间状态 1:在活动时间范围 2.已经结束 3.未开始
if(timeStatus==2){
return false;
}
return true;
>>>>>>> 58ce88329aa24db45f0add7a0135c1d68c96e1e3
},
goToGetClockStatus(params) {
vm.isClockFinish = false;
......@@ -853,6 +882,7 @@
}
return text;
},
<<<<<<< HEAD
async jumpPage(url, id) {
const _this = this;
......@@ -996,12 +1026,87 @@
}
});
},
=======
// async jumpPage(url, id) {
// const _this = this;
// if (!!url) {
// // 判断是否有跳转
// const { token, isWeb } = _this;
// _this.videoWatchTime = 0;
// _this.widgetId = id;
// const { data } = await selectAppModuleParam({
// id: url,
// token
// });
// const itemData = data.model;
// this.$sendBuriedData({ // 积木组件点击埋点
// url: this.baseUrl + "/file/log/trace1",
// action: 'ACTION_CLICK',
// component_tag: `200#${_this.tempId}#0#${_this.widgetId}`
// });
// if (isWeb) {
// // TODO: //如果在 web 中在这里写
// if (itemData.code == 'M300') {
// let paramList = setEventByModuleCode(itemData);
// if (
// paramList[0].value.search('crrspt.') != -1
// ) {
// // 患者招募
// paramList[0].value =
// paramList[0].value + '?' + this.paramString;
// }
// if (paramList[0].value.search('/wjdc/') != -1) {
// // 问卷调查
// //console.log(paramList[0].value + '&pageUrl=' + window.location.href)
// location.href =
// paramList[0].value +
// '&pageUrl=' +
// window.location.href;
// return;
// }
// location.href = paramList[0].value;
// } else {
// this.$dialog
// .confirm({
// message: '请下载最新app',
// confirmButtonText: '去下载',
// className: 'go-down-msg-box'
// })
// .then(() => {
// location.href =
// 'https://www.yunqueyi.com/mobile/share_pica.html?hideQrcode=true';
// })
// .catch(() => {});
// }
// } else {
// // 增加点击图片时候,是否有loginFlag参数,有,则校验并登录。如未登录去登录,已登录,老逻辑。
// const loginFlag = this.checkLoginFlag(itemData.paramList);
// if(loginFlag){
// _this.refreshFlag = true;
// _this.$rocNative.getToken().then(res => {
// const { userToken } = res;
// // alert('APP拿到的token=:'+userToken)
// checkToken({ token: userToken }).then(res=>{
// if(res.code == '200000' || res.code == '200006') {
// _this.$rocNative.gotoLogin();
// }else{
// _this.oldJumpHandle(itemData, userToken);
// }
// })
// });
// }else{
// _this.oldJumpHandle(itemData, _this.token);
// }
// }
// }
// },
>>>>>>> 58ce88329aa24db45f0add7a0135c1d68c96e1e3
getHeaderHeight(val){
this.padTop = val;
},
},
}
</script>>
</script>
<style lang="less">
@import '../assets/style/in-activity.less';
......
......@@ -99,8 +99,8 @@
}
},
methods: {
changeRanking() {
this.activeBtnType = !this.activeBtnType
changeRanking(val) {
this.activeBtnType = val;
this.getData();
},
handleRightBtn() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册