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

拉取代码解决merge冲突

...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
<div <div
class="btn left" class="btn left"
:class="{'active-btn':activeBtnType}" :class="{'active-btn':activeBtnType}"
@click="headBtnClick"> @click="headBtnClick(true)">
{{headBtn.leftName}} {{headBtn.leftName}}
</div> </div>
<div class="line"></div> <div class="line"></div>
<div <div
class="btn right" class="btn right"
:class="{'active-btn':!activeBtnType}" :class="{'active-btn':!activeBtnType}"
@click="headBtnClick"> @click="headBtnClick(false)">
{{headBtn.rightName}} {{headBtn.rightName}}
</div> </div>
</div> </div>
...@@ -74,8 +74,8 @@ ...@@ -74,8 +74,8 @@
this.$rocNative.goBack() this.$rocNative.goBack()
} }
}, },
headBtnClick() { headBtnClick(val) {
this.$emit('handleBtn') this.$emit('handleBtn', val)
}, },
rightBtnClick() { rightBtnClick() {
this.$emit('handleRightBtn') this.$emit('handleRightBtn')
......
...@@ -160,4 +160,33 @@ ...@@ -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 @@ ...@@ -49,7 +49,7 @@
</div> </div>
</div> </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-h" v-if="activeBtnType"><span>{{dealRankName(hospitalRanking.hospitalType)}}</span>排行实时刷新,部分原因存在几分钟延迟</div>
<div class="description description-d" v-else>排行实时刷新,部分原因存在几分钟延迟</div> <div class="description description-d" v-else>排行实时刷新,部分原因存在几分钟延迟</div>
<div class="ranking-title"> <div class="ranking-title">
...@@ -74,11 +74,19 @@ ...@@ -74,11 +74,19 @@
<p class="num">{{itemD.score}}</p> <p class="num">{{itemD.score}}</p>
</div> </div>
</div> </div>
<footer-button
:btnText="btnText"
:btnType="btnType">
</footer-button>
</div> </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> </section>
</template> </template>
...@@ -105,7 +113,8 @@ ...@@ -105,7 +113,8 @@
hospitalRanking: {}, hospitalRanking: {},
contributionRanking: {}, contributionRanking: {},
btnText: '助力机构 创造佳绩', btnText: '助力机构 创造佳绩',
btnType: true btnType: true,
noContributionRanking: false //是否有人员贡献榜单数据
}; };
}, },
computed: { computed: {
...@@ -115,8 +124,11 @@ ...@@ -115,8 +124,11 @@
this.getRankData(); this.getRankData();
}, },
methods: { methods: {
changeRanking() { goInActivity() {
this.activeBtnType = !this.activeBtnType; this.$router.push('/in-activity')
},
changeRanking(val) {
this.activeBtnType = val;
this.getRankData() this.getRankData()
}, },
dealRankName(hospitalType) { dealRankName(hospitalType) {
...@@ -140,6 +152,7 @@ ...@@ -140,6 +152,7 @@
} }
}, },
getHospitalRanking() { getHospitalRanking() {
this.noContributionRanking = false;
getHospitalRanking().then(res => { getHospitalRanking().then(res => {
if(res.code == '000000') { if(res.code == '000000') {
this.hospitalRanking = res.data; this.hospitalRanking = res.data;
...@@ -150,6 +163,11 @@ ...@@ -150,6 +163,11 @@
getContributionRanking().then(res => { getContributionRanking().then(res => {
if(res.code == '000000') { if(res.code == '000000') {
this.contributionRanking = res.data; this.contributionRanking = res.data;
if(this.contributionRanking.topRankList.length) {
this.noContributionRanking = false;
} else {
this.noContributionRanking = true;
}
} }
}) })
......
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<div class="content-wrap activity-end"> <div class="content-wrap activity-end">
<p class="content-text">本次活动已结束,感谢您的参与,最终获奖排名将于12月30日10点公布,届时查看</p> <p class="content-text">本次活动已结束,感谢您的参与,最终获奖排名将于12月30日10点公布,届时查看</p>
<ul class="btn-list"> <ul class="btn-list">
<li>我知道了</li> <li @click="goBack">领奖</li>
<li @click="goToYesterdayPrize" class="high-light">查看昨日获奖</li> <li @click="goToYesterdayPrize" class="high-light">查看昨日获奖</li>
</ul> </ul>
</div> </div>
...@@ -221,7 +221,11 @@ ...@@ -221,7 +221,11 @@
export default { export default {
data () { data () {
return { return {
<<<<<<< HEAD
token: '', token: '',
=======
activeOverTimeStr: new Date('2019/12/27 00:00:00') , // 活动结束
>>>>>>> 58ce88329aa24db45f0add7a0135c1d68c96e1e3
activityId: 2, // 上线前等产品通知修改默认值 activityId: 2, // 上线前等产品通知修改默认值
serverTime: '', serverTime: '',
...@@ -262,8 +266,8 @@ ...@@ -262,8 +266,8 @@
hospitalLevelScore: [], // 三阶段达标分值, 数组返回 hospitalLevelScore: [], // 三阶段达标分值, 数组返回
targetRequiredScore: '', // 再获得多少分 // 再获得10勤奋分即可上升到前10名获得欧姆龙温度计 targetRequiredScore: '', // 再获得多少分 // 再获得10勤奋分即可上升到前10名获得欧姆龙温度计
targetRank: '', // 上升到多少名 targetRank: '', // 上升到多少名
todayDate: 0, todayDate: 0, // 今日服务器时间(用来展示对应奖项)
yesterdayDate: 0, yesterdayDate: 0, // 昨日服务器时间(用来展示对应奖项)
userYesterdayRank: 0, // 用戶昨日排名 userYesterdayRank: 0, // 用戶昨日排名
}, },
...@@ -287,7 +291,6 @@ ...@@ -287,7 +291,6 @@
id: '', id: '',
}, },
isWeb: false, isWeb: false,
shareObj: {},
padTop: 0 padTop: 0
} }
}, },
...@@ -349,6 +352,7 @@ ...@@ -349,6 +352,7 @@
} }
}) })
} }
<<<<<<< HEAD
vm.shareObj = { vm.shareObj = {
shareUrl: window.location.href, shareUrl: window.location.href,
...@@ -356,6 +360,13 @@ ...@@ -356,6 +360,13 @@
title2: '分享desc分享desc', title2: '分享desc分享desc',
shareImageUrl: 'https://file.yunqueyi.com/h5/nzhd19/share.png' shareImageUrl: 'https://file.yunqueyi.com/h5/nzhd19/share.png'
} }
=======
},
mounted() {
// 这里需要删掉!!!
vm.getUserActivityInfo();
// 这里需要删掉!!!
>>>>>>> 58ce88329aa24db45f0add7a0135c1d68c96e1e3
vm.isWeb = vm.$rocNative.isWeb; vm.isWeb = vm.$rocNative.isWeb;
...@@ -451,6 +462,9 @@ ...@@ -451,6 +462,9 @@
// alert('获取用户及分数信息。。。'); // alert('获取用户及分数信息。。。');
// alert(JSON.stringify(res)); // alert(JSON.stringify(res));
vm.doctorInfo = res.data; vm.doctorInfo = res.data;
if(vm.doctorInfo.userYesterdayRank>0 && vm.doctorInfo.userYesterdayRank<=10){
vm.clockSuccessVisible = true;
}
}); });
}, },
goToCheckJoin() { // 检查是否加入结构 goToCheckJoin() { // 检查是否加入结构
...@@ -588,6 +602,9 @@ ...@@ -588,6 +602,9 @@
name: 'hospital-ranking', name: 'hospital-ranking',
}); });
}, },
goBack(){
this.$rocNative.goBack();
},
// 昨日获奖 // 昨日获奖
goToYesterdayPrize() { goToYesterdayPrize() {
alert('跳转至 昨日获奖页面') alert('跳转至 昨日获奖页面')
...@@ -656,12 +673,8 @@ ...@@ -656,12 +673,8 @@
goToShare() { goToShare() {
alert('调app分享'); alert('调app分享');
// let id = vm.encryptDoctorId(); // let id = vm.encryptDoctorId();
let params = {
id: '',
taskId: '',
activityId: '',
};
// 调用APP分享 // 调用APP分享
this.$rocNative.shareWechat(this.shareObj);
}, },
encryptDoctorId() { encryptDoctorId() {
...@@ -726,9 +739,13 @@ ...@@ -726,9 +739,13 @@
getTasks() { getTasks() {
// debugger; // debugger;
getTimsActivityInfo(vm.activityId).then(res => { getTimsActivityInfo(vm.activityId).then(res => {
alert('^^^^^获取任务信息…………………………') // alert('^^^^^获取任务信息…………………………')
alert(JSON.stringify(res)) // alert(JSON.stringify(res))
if(res && res.code == '000000'){ if(res && res.code == '000000'){
if(!vm.checkTimeStatus(res.data)){
this.activityEndVisible = true;
return;
}
let data = res.data; let data = res.data;
let taskRuleData = data.taskRuleData || []; let taskRuleData = data.taskRuleData || [];
...@@ -787,6 +804,18 @@ ...@@ -787,6 +804,18 @@
vm.$toast(res.message); 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) { goToGetClockStatus(params) {
vm.isClockFinish = false; vm.isClockFinish = false;
...@@ -853,6 +882,7 @@ ...@@ -853,6 +882,7 @@
} }
return text; return text;
}, },
<<<<<<< HEAD
async jumpPage(url, id) { async jumpPage(url, id) {
const _this = this; const _this = this;
...@@ -996,12 +1026,87 @@ ...@@ -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){ getHeaderHeight(val){
this.padTop = val; this.padTop = val;
}, },
}, },
} }
</script>> </script>
<style lang="less"> <style lang="less">
@import '../assets/style/in-activity.less'; @import '../assets/style/in-activity.less';
......
...@@ -99,8 +99,8 @@ ...@@ -99,8 +99,8 @@
} }
}, },
methods: { methods: {
changeRanking() { changeRanking(val) {
this.activeBtnType = !this.activeBtnType this.activeBtnType = val;
this.getData(); this.getData();
}, },
handleRightBtn() { handleRightBtn() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册