提交 3a391f4c 编写于 作者: chengxiang.li's avatar chengxiang.li

添加昨日获得奖品弹窗

上级 a7a54c32
......@@ -187,6 +187,17 @@
<p class="title">打卡成功</p>
<p class="message">已获得: {{clockAward.mark}}勤奋分, {{clockAward.bean}}云鹊豆</p>
<div @click="hideClockModal" class="bottom-btn">我知道了</div>
</div>
</div>
<!--昨日个人排名获奖啦 弹窗 -->
<div v-if="yesterdayWinVisible" class="toast-wrap" @touchmove.prevent>
<div class="full-screen-mask"></div>
<div class="content-wrap">
<img class="back-image" src="../assets/img/stage-two/win-award-bg.png" alt="">
<p class="title" style="color: #EC592B;">昨日个人排名获奖啦!</p>
<p class="message">恭喜您获得了小米电视1台</p>
<div class="bottom-btn">xxxxxx</div>
<div class="close-btn"></div>
</div>
</div>
......@@ -207,7 +218,7 @@
</template>
<script>
import { getActivityId, getUserScoreInfo, getInviteList, getClockStatus, goToUpdateClock, getTimsActivityInfo, selectAppModuleParam, checkToken, getRole, sayHello } from '@/service/activityMainpage';
import { getActivityId, getUserScoreInfo, getInviteList, getClockStatus, goToUpdateClock, getTimsActivityInfo, selectAppModuleParam, checkToken, getRole, sayHello, getEncryptId } from '@/service/activityMainpage';
import { checkHospitalStatus } from '@/service';
import h5header from '@/components/h5header';
import { getShareUrl } from '@/utils/index';
......@@ -282,6 +293,7 @@
clockSuccessVisible: false, // 是否显示 打卡成功 弹窗
activityEndVisible: false, // 是否显示 活动结束 弹窗
yesterdayWinVisible: false,
inviteList: [], // 已邀请的用户列表
notInviteShowList: [], // 未邀请的默认显示
......@@ -316,6 +328,9 @@
returnBeanImg() {
let hospitalScore = vm.doctorInfo.hospitalScore;
let arr = vm.doctorInfo.hospitalLevelScore;
if(arr && arr.length < 1){
return;
}
if( hospitalScore < arr[0]){
return require(`../assets/img/stage-two/bean-stage-0.png`);
}else if( ((arr[0] == hospitalScore) || (arr[0] < hospitalScore)) && (hospitalScore < arr[1]) ){
......@@ -350,7 +365,13 @@
},
mounted() {
// 取服务器时间,切换不同时间段的显示
// 这里需要删掉!!!
vm.getUserActivityInfo();
// 这里需要删掉!!!
vm.isWeb = vm.$rocNative.isWeb;
// 取服务器时间,切换不同时间段的显示
vm.getServerTime();
// 请求接口获取activityId (经与后端产品确认,默认没传id的话,就取接口;默认有的话就不取接口)
if( !vm.activityId ){
......@@ -368,14 +389,6 @@
})
}
},
mounted() {
// 这里需要删掉!!!
vm.getUserActivityInfo();
// 这里需要删掉!!!
vm.isWeb = vm.$rocNative.isWeb;
vm.$rocNative.appInit();
vm.getUserInfo(); // 判断是否登录
......@@ -462,6 +475,10 @@
loginCallback() {
vm.getUserActivityInfo();
vm.goToCheckJoin();
getEncryptId().then(res => {
alert('获取加密过后的id');
alert(JSON.stringify(res))
})
},
getUserActivityInfo() { // 获取用户及参加活动的具体信息
getUserScoreInfo().then(res => {
......@@ -885,8 +902,6 @@
}
return text;
},
<<<<<<< HEAD
async jumpPage(url, id) {
const _this = this;
if (!!url) {
......
......@@ -52,7 +52,7 @@ export const getActivityId = () => {
return request({
url: `contents/commonComstant/selectByTypeCode?code=C015`,
method: 'get',
withCredentials: true,
// withCredentials: true,
})
}
......@@ -100,3 +100,12 @@ export const sayHello = async ({ token }) => {
url: `/diplomat/oauth/sayhello?app_id=pica-crrs`
});
}
// 获取加密过后的id
export const getEncryptId = () => {
return request({
url: `campaign/inviteDetail/vinci`,
method: 'get',
withCredentials: true,
})
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册