Commit 8d780488 by 穆启卓

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

parents 9680b380 d826183e
...@@ -235,7 +235,7 @@ export function track(key) { ...@@ -235,7 +235,7 @@ export function track(key) {
method: 'GET', method: 'GET',
params: { params: {
//传过去的参数 //传过去的参数
p: `study`, p: `bsdk`,
k: `${key}`, k: `${key}`,
u: window['userData'] ? window['userData'].id : '' u: window['userData'] ? window['userData'].id : ''
} }
......
...@@ -30,16 +30,16 @@ export function fetch(options) { ...@@ -30,16 +30,16 @@ export function fetch(options) {
resolve(response.data);//把请求到的数据发到引用请求的地方 resolve(response.data);//把请求到的数据发到引用请求的地方
}) })
.catch(error => { .catch(error => {
console.log('请求异常信息:', error); // console.log('请求异常信息:', error);
console.log(error); // console.log(error);
if (error.response.status == 401) { // if (error.response.status == 401) {
localStorage.setItem('last_url', location.hash.slice(1)); // localStorage.setItem('last_url', location.hash.slice(1));
localStorage.setItem('walk_userData', ''); // localStorage.setItem('walk_userData', '');
location.replace('#/Author'); // location.replace('#/Author');
// this.$router.push({name:"Author"}) // // this.$router.push({name:"Author"})
} else { // } else {
reject(error); // reject(error);
} // }
}); });
}); });
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="bonus-title" v-else>达标奖励金(元)</div> <div class="bonus-title" v-else>达标奖励金(元)</div>
<div class="bonus-amount">{{pageData.bet_bonus}}</div> <div class="bonus-amount">{{pageData.bet_bonus}}</div>
</div> </div>
<div class="game-title">{{pageData.target_step}}日耐力赛</div> <div class="game-title">{{pageData.target_step}}3日耐力赛</div>
<div class="game-time">开赛时间:{{pageData.start_format}}{{pageData.end_format}}</div> <div class="game-time">开赛时间:{{pageData.start_format}}{{pageData.end_format}}</div>
<div class="hr"></div> <div class="hr"></div>
<div class="game-info-container"> <div class="game-info-container">
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
if (window["userData"]) { if (window["userData"]) {
this.userData = window["userData"] this.userData = window["userData"]
} else { } else {
let localUserData = localStorage.getItem("bs_userData") let localUserData = localStorage.getItem("walk_userData")
if (localUserData) { if (localUserData) {
window["userData"] = JSON.parse(localUserData) window["userData"] = JSON.parse(localUserData)
this.userData = window["userData"] this.userData = window["userData"]
...@@ -135,9 +135,11 @@ ...@@ -135,9 +135,11 @@
imgUrl: result.img_url, // 分享图标 imgUrl: result.img_url, // 分享图标
success: function (res) { success: function (res) {
console.log("option4Success", res) console.log("option4Success", res)
this.showShareModal = false
}, },
fail: err => { fail: err => {
console.log("option4error", err) console.log("option4error", err)
this.showShareModal = false
} }
} }
// wx.onMenuShareTimeline(option4); // wx.onMenuShareTimeline(option4);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
</div> </div>
<div class="tip-title">如何完成打卡?</div> <div class="tip-title">如何完成打卡?</div>
<div class="tip-content">1、识别上方二维码,打开「运动打卡」小程序</div> <div class="tip-content">1、识别上方二维码,打开「步步运动赚」小程序</div>
<div class="tip-content">2、在小程序中授权获取每日微信运动步数</div> <div class="tip-content">2、在小程序中授权获取每日微信运动步数</div>
<div class="tip-content">3、退出小程序中,返回打卡页面</div> <div class="tip-content">3、退出小程序中,返回打卡页面</div>
<div class="tip-content">4、成功获取每日微信运动步数,打卡成功</div> <div class="tip-content">4、成功获取每日微信运动步数,打卡成功</div>
......
<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> <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 == 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 == 2" src="../images/Rule/img_rule_1.png">
...@@ -15,21 +16,29 @@ ...@@ -15,21 +16,29 @@
</div> </div>
<div class="section2-title">参赛须知详情:</div> <div class="section2-title">参赛须知详情:</div>
<div class="content2-title">一、比赛规则</div> <div class="content2-title">一、比赛规则</div>
<div class="content2-item">每期比赛于比赛日00:00:00正式开始统计,到比赛日23: 59:59正式结束;用户缴纳当期比赛契约金后即可成功报名;比赛结束后达标用户将收到运动奖励金(奖励金等于达标用户本人运动契约金,加上均分未达标用户契约金的30%);</div> <div class="content2-item">每期比赛于比赛日00:00:00正式开始统计,到比赛日23:59:59正式结束;用户缴纳当期比赛契约金后即可成功报名;比赛结束后达标用户将收到运动奖励金(奖励金等于达标用户本人运动契约金,加上均分未达标用户契约金的30%);
</div>
<div class="content2-item">运动达标奖励金将于比赛结束后24小时内发放到达标用户账户中;</div> <div class="content2-item">运动达标奖励金将于比赛结束后24小时内发放到达标用户账户中;</div>
<div class="content2-title">二、用户确认报名即认可平台判定结果,不再对该结果进行任何 形式抗辩</div> <div class="content2-title">二、用户确认报名即认可平台判定结果,不再对该结果进行任何形式抗辩</div>
<div class="content2-item">每场比赛的判定结果,由平台根据比赛结束时(当期比赛最后一曰的23:59:59)的服务器后台获取的用户步数来判定,该步数会显示在当期比赛结束后的比赛详情页;用户报名成功即表示对平台 的判定结果表示认可,不再对该结果进行任何形式抗辩;</div> <div class="content2-item">
每场比赛的判定结果,由平台根据比赛结束时(当期比赛最后一日的23:59:59)的服务器后台获取的用户步数来判定,该步数会显示在当期比赛结束后的比赛详情页;用户报名成功即表示对平台
的判定结果表示认可,不再对该结果进行任何形式抗辩;
</div>
<div class="content2-title">三、用户应保证设备的可靠性,以保证运动数据准确性</div> <div class="content2-title">三、用户应保证设备的可靠性,以保证运动数据准确性</div>
<div class="content2-item">报名赛事的用户应保证自己设备的可靠性,例如保证电源电量充 足,保证计步服务在设备系统的运行白名单内,网络链接正常 等;为了更好的保证运动数据的可靠性,比赛期间请保证一定频次的手机微信登录;由于用户个人设备缺乏可靠性导致的投诉,平台不予处理;</div> <div class="content2-item">报名赛事的用户应保证自己设备的可靠性,例如保证电源电量充足,保证计步服务在设备系统的运行白名单内,网络链接正常
等;为了更好的保证运动数据的可靠性,比赛期间请保证一定频次的手机微信登录;由于用户个人设备缺乏可靠性导致的投诉,平台不予处理;
</div>
<div class="content2-title">四、其他说明</div> <div class="content2-title">四、其他说明</div>
<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: {
...@@ -38,17 +47,22 @@ ...@@ -38,17 +47,22 @@
data() { data() {
return { return {
bushuType: 0 bushuType: 0
}; }
}, },
mounted(){ mounted() {
if (this.$route.params.level) {
this.bushuType = this.$route.params.level
} else {
let LastLevel = Number(sessionStorage.getItem('bushuType')) let LastLevel = Number(sessionStorage.getItem('bushuType'))
if(LastLevel){ if (LastLevel) {
this.bushuType = LastLevel this.bushuType = LastLevel
} }
}
}, },
methods: { methods: {
goback() { goback() {
history.go(-1); history.go(-1)
}, },
} }
} }
...@@ -61,6 +75,7 @@ ...@@ -61,6 +75,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-top: .96rem; padding-top: .96rem;
.page-title { .page-title {
font-weight: bold; font-weight: bold;
width: 100%; width: 100%;
...@@ -69,6 +84,7 @@ ...@@ -69,6 +84,7 @@
left: 0; left: 0;
top: 0; top: 0;
} }
.section-title { .section-title {
width: 6.72rem; width: 6.72rem;
font-size: .3rem; font-size: .3rem;
...@@ -78,21 +94,25 @@ ...@@ -78,21 +94,25 @@
text-align: left; text-align: left;
margin-top: .44rem; margin-top: .44rem;
} }
.game-way-img { .game-way-img {
width: 6.15rem; width: 6.15rem;
height: 1.09rem; height: 1.09rem;
margin-top: .3rem; margin-top: .3rem;
margin-bottom: .14rem; margin-bottom: .14rem;
} }
.content1-container { .content1-container {
width: 6.7rem; width: 6.7rem;
margin-top: .2rem; margin-top: .2rem;
.content1-item { .content1-item {
font-size: .26rem; font-size: .26rem;
line-height: .44rem; line-height: .44rem;
color: #5a5a5a; color: #5a5a5a;
} }
} }
.section2-title { .section2-title {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: .26rem;
...@@ -100,6 +120,7 @@ ...@@ -100,6 +120,7 @@
color: #333; color: #333;
margin-top: .4rem; margin-top: .4rem;
} }
.content2-title { .content2-title {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: .26rem;
...@@ -107,6 +128,7 @@ ...@@ -107,6 +128,7 @@
color: #333; color: #333;
margin-top: .2rem; margin-top: .2rem;
} }
.content2-item { .content2-item {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: .26rem;
...@@ -114,6 +136,7 @@ ...@@ -114,6 +136,7 @@
color: #5a5a5a; color: #5a5a5a;
margin-top: .14rem; margin-top: .14rem;
} }
.ps { .ps {
width: 6.72rem; width: 6.72rem;
font-size: .26rem; font-size: .26rem;
......
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