Commit 70b5e8da by Caiyijun

完成

parent 423aa038
...@@ -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>
......
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