Commit 851f1a68 by 穆启卓

1

parent 47579fa5
......@@ -414,6 +414,16 @@ export function daka_status_detail(week, grade) {
})
}
// 比赛详情弹窗
export function pop_up_windows() {
return fetch({
url: api.pop_up_windows,
method: 'GET',
params: {
}
})
}
//有新接口的时候像上面那样再来一次
// //修改昵称接口
......
......@@ -87,4 +87,6 @@ export default {
select_user_signup: `${api}/api/v1/select_user_signup`,
// 比赛详情
daka_status_detail: `${api}/api/v1/daka_status/detail`,
// 比赛详情弹窗
pop_up_windows: `${api}/api/v1/pop_up_windows`,
}
......@@ -34,7 +34,7 @@
// alert(inviter + "test2")
this.$http
.post("/game-bsdk/api/v1/auth_login", {
.post("/game-bsdk/api/v1/oa_auth_login", {
js_code: code,
inviter_id: inviter || "",
from_type: from_type || ""
......
......@@ -107,7 +107,11 @@
this.isShowPayFail = !this.isShowPayFail
},
payToSign() {
dakaPay(1).then(response => {
let nextGame = 0;
if (this.$route.query.nextGame) {
nextGame = 2;
}
dakaPay(sessionStorage.getItem("bushuType"), nextGame).then(response => {
if (response.code == 1) {
this.showModal("温馨提示", response.msg);
return;
......
......@@ -23,8 +23,8 @@
</div>
</div>
<div class="card-container-list" @scroll="onScroll">
<div class="card-item" v-for="(item,index) in recordList.records" @click="toRecordDetail(item)">
<div class="card-title">{{item.period}}期-{{item.grade}}{{item.total_days}}日耐力赛(第{{item.days}}天)</div>
<div class="card-item" v-for="(item,index) in recordList.records" @click="goWhereDetail(item.week, item.grade)">
<div class="card-title">{{item.week}}期-{{item.target_steps}}{{item.total_days}}日耐力赛(第{{item.days}}天)</div>
<div class="card-detail-container">
<div class="detail-item">
<div class="item-title">累计奖励金(元)</div>
......@@ -85,6 +85,15 @@
sessionStorage.setItem("selectedRecord", JSON.stringify(item));
this.$router.push({name: "RecordDetail"})
},
goWhereDetail(week, grade) {
sessionStorage.setItem('bushuType', grade);
this.$router.push({
name: 'HaveJoinedGame',
query: {
week: week
}
});
},
onScroll(event) {
if (this.recordList.next_page && this.canScroll) {
let offsetHeight = event.currentTarget.offsetHeight,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment