Commit 10c8792c by Caiyijun

Merge remote-tracking branch 'remotes/origin/mutou' into dev_yijun

parents 50e56559 fcbc7169
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
}, },
// 立即报名 // 立即报名
joinFree() { joinFree() {
let days = this.days || 0 // let days = this.days || 0
// this.queryPayImage(); // this.queryPayImage();
// dakaPay(days, 1).then(response => { // dakaPay(days, 1).then(response => {
// console.log("报名状态", response); // console.log("报名状态", response);
......
...@@ -151,7 +151,7 @@ export function ocFollow() { //lookOption是你要调用接口的名字,issuer ...@@ -151,7 +151,7 @@ export function ocFollow() { //lookOption是你要调用接口的名字,issuer
} }
// 报名支付 // 报名支付
export function dakaPay(grade,days,use_contract) { export function dakaPay(days,use_contract) {
let now = new Date(); let now = new Date();
let year = now.getFullYear(); let year = now.getFullYear();
let month = now.getMonth() + 1; let month = now.getMonth() + 1;
...@@ -173,8 +173,7 @@ export function dakaPay(grade,days,use_contract) { ...@@ -173,8 +173,7 @@ export function dakaPay(grade,days,use_contract) {
use_contract: use_contract || 0, use_contract: use_contract || 0,
inviter_id: inviter || '', inviter_id: inviter || '',
from_type: from_type || '', from_type: from_type || '',
days: days || 0, days: days || 0
grade: grade || 0
} }
}) })
} }
...@@ -382,12 +381,11 @@ export function withdraw_log(page) { ...@@ -382,12 +381,11 @@ export function withdraw_log(page) {
} }
// 首页数据 // 首页数据
export function daka_index(grade) { export function daka_index() {
return fetch({ return fetch({
url: api.daka_index, url: api.daka_index,
method: 'GET', method: 'GET',
params: { params: {
grade: grade
} }
}) })
} }
...@@ -403,13 +401,12 @@ export function select_user_signup() { ...@@ -403,13 +401,12 @@ export function select_user_signup() {
} }
// 比赛详情 // 比赛详情
export function daka_status_detail(week, grade) { export function daka_status_detail(week) {
return fetch({ return fetch({
url: api.daka_status_detail, url: api.daka_status_detail,
method: 'GET', method: 'GET',
params: { params: {
week: week, week: week
grade: grade
} }
}) })
} }
...@@ -425,12 +422,11 @@ export function pop_up_windows() { ...@@ -425,12 +422,11 @@ export function pop_up_windows() {
} }
//参与挑战 //参与挑战
export function daka_info(grade){ export function daka_info(){
return fetch({ return fetch({
url: api.daka_info, url: api.daka_info,
method: 'GET', method: 'GET',
params: { params: {
grade: grade
} }
}) })
} }
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
if (this.$route.query.nextGame) { if (this.$route.query.nextGame) {
nextGame = 2 nextGame = 2
} }
dakaPay(sessionStorage.getItem("bushuType"), nextGame).then(response => { dakaPay(nextGame).then(response => {
if (response.code == 1) { if (response.code == 1) {
this.showModal("温馨提示", response.msg) this.showModal("温馨提示", response.msg)
return return
...@@ -196,12 +196,7 @@ ...@@ -196,12 +196,7 @@
this.argeement = !this.argeement this.argeement = !this.argeement
}, },
getPageData(){ getPageData(){
let grade = 1 daka_info().then(res=>{
if(sessionStorage.getItem('bushuType')){
grade = sessionStorage.getItem('bushuType')
}
console.log(grade)
daka_info(grade).then(res=>{
console.log('daka_info',res) console.log('daka_info',res)
if(res.code == 0){ if(res.code == 0){
console.log('立即参与',res) console.log('立即参与',res)
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
</div> </div>
<div class="card-container-list" @scroll="onScroll"> <div class="card-container-list" @scroll="onScroll">
<div class="card-item" v-for="(item,index) in recordList.records" @click="goWhereDetail(item.week, item.grade)"> <div class="card-item" v-for="(item,index) in recordList.records" @click="goWhereDetail(item.week)">
<div class="card-title">{{item.week}}期-{{item.target_steps}}{{item.total_days}}日耐力赛<template v-if="item.days">(第{{item.days}}天)</template></div> <div class="card-title">{{item.week}}期-{{item.target_steps}}{{item.total_days}}日耐力赛<template v-if="item.days">(第{{item.days}}天)</template></div>
<div class="card-detail-container"> <div class="card-detail-container">
<div class="detail-item"> <div class="detail-item">
...@@ -85,8 +85,7 @@ ...@@ -85,8 +85,7 @@
sessionStorage.setItem("selectedRecord", JSON.stringify(item)); sessionStorage.setItem("selectedRecord", JSON.stringify(item));
this.$router.push({name: "RecordDetail"}) this.$router.push({name: "RecordDetail"})
}, },
goWhereDetail(week, grade) { goWhereDetail(week) {
sessionStorage.setItem('bushuType', grade);
this.$router.push({ this.$router.push({
name: 'HaveJoinedGame', name: 'HaveJoinedGame',
query: { query: {
......
<template> <template>
<div class="rule-page"> <div class="rule-page">
<Title class="page-title" title="活动规则与协议" titleColor="#000" @goback="goback" show_back="true" arrowColor="black"></Title> <Title class="page-title" title="活动规则与协议" titleColor="#000" @goback="goback" show_back="true" arrowColor="black"></Title>
<div class="section-title">挑战玩法:</div>
<img class="game-way-img" v-if="bushuType == 1" src="../images/Rule/img_rule_0.png">
<img class="game-way-img" v-if="bushuType == 2" src="../images/Rule/img_rule_1.png">
<img class="game-way-img" v-if="bushuType == 3" src="../images/Rule/img_rule_2.png">
<div class="section-title">参赛须知:</div> <div class="section-title">参赛须知:</div>
<div class="content1-container"> <div class="content1-container">
<div class="content1-item">• 为督促大家运动,每位用户报名均需提供契约金</div> <div class="content1-item">• 为督促大家运动,每位用户报名均需提供契约金</div>
...@@ -25,49 +21,36 @@ ...@@ -25,49 +21,36 @@
<div class="content2-item">奖金派发时仅派发到小数点后两位,由此可能造成的奖金结余将在合并至本组下期比赛奖金中一并派发;</div> <div class="content2-item">奖金派发时仅派发到小数点后两位,由此可能造成的奖金结余将在合并至本组下期比赛奖金中一并派发;</div>
<div class="content2-item">由于不可抗力因素导致当期比赛因故无法进行的,平台有权取消当期比赛’并将在指定时间内将运动契约金原路退还给报名成功用户;</div> <div class="content2-item">由于不可抗力因素导致当期比赛因故无法进行的,平台有权取消当期比赛’并将在指定时间内将运动契约金原路退还给报名成功用户;</div>
<div class="ps">注:Apple不是本赛事赞助者</div> <div class="ps">注:Apple不是本赛事赞助者</div>
<br>
</div> </div>
</template> </template>
<script> <script>
import Title from "@/components/Title.vue" import Title from "@/components/Title.vue";
export default { export default {
name: "Rule", name: "Rule",
components: { components: {
Title, Title
}, },
data() { data() {
return { return {};
bushuType: 0
}
},
mounted() {
if (this.$route.params.level) {
this.bushuType = this.$route.params.level
} else {
let LastLevel = Number(sessionStorage.getItem('bushuType'))
if (LastLevel) {
this.bushuType = LastLevel
}
}
}, },
mounted() {},
methods: { methods: {
goback() { goback() {
history.go(-1) history.go(-1);
},
} }
} }
};
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.rule-page { .rule-page {
width: 100%; width: 100%;
background: #fff; background: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-top: .96rem; padding-top: 0.96rem;
.page-title { .page-title {
font-weight: bold; font-weight: bold;
...@@ -80,62 +63,55 @@ ...@@ -80,62 +63,55 @@
.section-title { .section-title {
width: 6.72rem; width: 6.72rem;
font-size: .3rem; font-size: 0.3rem;
line-height: 1; line-height: 1;
color: #333; color: #333;
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
margin-top: .44rem; margin-top: 0.44rem;
}
.game-way-img {
width: 6.15rem;
height: 1.09rem;
margin-top: .3rem;
margin-bottom: .14rem;
} }
.content1-container { .content1-container {
width: 6.7rem; width: 6.7rem;
margin-top: .2rem; margin-top: 0.2rem;
.content1-item { .content1-item {
font-size: .26rem; font-size: 0.26rem;
line-height: .44rem; line-height: 0.44rem;
color: #5a5a5a; color: #5a5a5a;
} }
} }
.section2-title { .section2-title {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: 0.26rem;
line-height: 1; line-height: 1;
color: #333; color: #333;
margin-top: .4rem; margin-top: 0.4rem;
} }
.content2-title { .content2-title {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: 0.26rem;
line-height: .44rem; line-height: 0.44rem;
color: #333; color: #333;
margin-top: .2rem; margin-top: 0.2rem;
} }
.content2-item { .content2-item {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: 0.26rem;
line-height: .44rem; line-height: 0.44rem;
color: #5a5a5a; color: #5a5a5a;
margin-top: .14rem; margin-top: 0.14rem;
} }
.ps { .ps {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: 0.26rem;
line-height: 1; line-height: 1;
color: #A5A5A5; color: #a5a5a5;
margin: .4rem 0 .26rem; margin: 0.4rem 0 0.6rem;
}
} }
}
</style> </style>
\ No newline at end of file
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