Commit 2bfbc5ff authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

修改

See merge request !69
parents eb1f295b ae7b24b2
...@@ -33,7 +33,8 @@ export default { ...@@ -33,7 +33,8 @@ export default {
"AirDrop", "AirDrop",
"Invite", "Invite",
"AboutUs", "AboutUs",
"customerService" "customerService",
"Wallet"
]; ];
if (whiteList.indexOf(currentPage) > -1) { if (whiteList.indexOf(currentPage) > -1) {
try { try {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<script> <script>
export default { export default {
name: "instructions" name: "AboutUs"
}; };
</script> </script>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
name="arrow-left" name="arrow-left"
size="20" size="20"
class="nav-left" class="nav-left"
@click="$router.go(-1)" @click="handlerBack"
/> />
<span class="nav-title">空投池</span> <span class="nav-title">空投池</span>
</div> </div>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<script> <script>
import { queryAerialDelivery } from "@/api/airDropPool"; import { queryAerialDelivery } from "@/api/airDropPool";
export default { export default {
name: "leagueNums", name: "AirDrop",
data() { data() {
return { return {
total: 0, total: 0,
...@@ -52,6 +52,14 @@ export default { ...@@ -52,6 +52,14 @@ export default {
this.queryData(); this.queryData();
}, },
methods: { methods: {
handlerBack() {
try {
this.$bridgeToAppFun.navigateBack();
} catch {
console.log("不能和App交互");
this.$router.go(-1);
}
},
queryData() { queryData() {
const _this = this; const _this = this;
queryAerialDelivery().then(res => { queryAerialDelivery().then(res => {
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
import { getWithdrawalAmount } from "@/api/wallet"; import { getWithdrawalAmount } from "@/api/wallet";
export default { export default {
name: "leagueNums", name: "CanCashOut",
data() { data() {
return { return {
preNum: "125", preNum: "125",
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
import { getCustomer } from "@/api/customer"; import { getCustomer } from "@/api/customer";
export default { export default {
name: "customerService", name: "CustomerService",
data() { data() {
return { return {
imageUrl: "" imageUrl: ""
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
name="arrow-left" name="arrow-left"
size="20" size="20"
class="nav-left" class="nav-left"
@click="$router.go(-1)" @click="handlerBack"
/> />
<span class="nav-title">森林状态</span> <span class="nav-title">森林状态</span>
</div> </div>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<van-progress :percentage="perenct * 100" /> <van-progress :percentage="perenct * 100" />
<div class="level-num">Lv.{{ nextLevel }}</div> <div class="level-num">Lv.{{ nextLevel }}</div>
</div> </div>
<div class="relegation">保级还需增加¥{{ relegationNum }} 业绩</div> <!-- <div class="relegation">保级还需增加¥{{ relegationNum }} 业绩</div> -->
</div> </div>
<div class="forest-list"> <div class="forest-list">
<div class="forest-item" v-for="(item, index) in list" :key="index"> <div class="forest-item" v-for="(item, index) in list" :key="index">
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
import { getForestStatus } from "@/api/grade"; import { getForestStatus } from "@/api/grade";
import { getLevelDes, getNextLevel, diffrentOflevel } from "@/config/grade"; import { getLevelDes, getNextLevel, diffrentOflevel } from "@/config/grade";
export default { export default {
name: "grade", name: "Grade",
data() { data() {
return { return {
userLevel: "", userLevel: "",
...@@ -103,6 +103,14 @@ export default { ...@@ -103,6 +103,14 @@ export default {
this.getstatus(); this.getstatus();
}, },
methods: { methods: {
handlerBack() {
try {
this.$bridgeToAppFun.navigateBack();
} catch {
console.log("不能和App交互");
this.$router.go(-1);
}
},
handleUrl(urlName) { handleUrl(urlName) {
this.$router.push({ name: urlName }); this.$router.push({ name: urlName });
}, },
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<script> <script>
export default { export default {
name: "instructions" name: "Instructions"
}; };
</script> </script>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<script> <script>
import { inviteCode } from "@/api/invite"; import { inviteCode } from "@/api/invite";
export default { export default {
name: "Invite",
data() { data() {
return { return {
imgSrc: "" imgSrc: ""
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<script> <script>
import { getMyTeam } from "@/api/grade"; import { getMyTeam } from "@/api/grade";
export default { export default {
name: "leagueNums", name: "LeagueNums",
data() { data() {
return { return {
list: [ list: [
......
...@@ -30,8 +30,7 @@ export default { ...@@ -30,8 +30,7 @@ export default {
type: Object, type: Object,
default: () => {} default: () => {}
} }
}, }
data() {}
}; };
</script> </script>
......
...@@ -168,7 +168,6 @@ export default { ...@@ -168,7 +168,6 @@ export default {
for (const key in res.data.myRecommed) { for (const key in res.data.myRecommed) {
this.Tabs.forEach(el => { this.Tabs.forEach(el => {
if (el.keyName === key) { if (el.keyName === key) {
console.log(key);
el.num = res.data.myRecommed[key]; el.num = res.data.myRecommed[key];
} }
}); });
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
import { smsCode } from "@/api/base"; import { smsCode } from "@/api/base";
import { register } from "@/api/user"; import { register } from "@/api/user";
export default { export default {
name: "register", name: "Register",
data() { data() {
return { return {
form: { form: {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
name="arrow-left" name="arrow-left"
size="20" size="20"
class="nav-left" class="nav-left"
@click="$router.go(-1)" @click="handlerBack"
/> />
<span class="nav-title">月度奖励</span> <span class="nav-title">月度奖励</span>
</div> </div>
...@@ -100,6 +100,14 @@ export default { ...@@ -100,6 +100,14 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
handlerBack() {
try {
this.$bridgeToAppFun.navigateBack();
} catch {
console.log("不能和App交互");
this.$router.go(-1);
}
},
getData() { getData() {
const params = { const params = {
userId: this.$userId userId: this.$userId
......
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