Commit b596bd38 authored by Edwise's avatar Edwise 🍷

迭代ok了

parent ffbd7daf
...@@ -31,8 +31,8 @@ export default class StartItem extends eui.ItemRenderer { ...@@ -31,8 +31,8 @@ export default class StartItem extends eui.ItemRenderer {
location.href = this.data.activityUrl; location.href = this.data.activityUrl;
} else { } else {
let activityId = parseInt(this.data.activityId); let activityId = parseInt(this.data.activityId);
const { data } = DataManager.ins.getData('yyh_index'); // const { data } = DataManager.ins.getData('yyh_index');
if (activityId >= 3 && !isNaN(activityId) && data.lighten != 1) { if (activityId >= 3 && !isNaN(activityId)) {
getToken().then((token) => { getToken().then((token) => {
if (!token) { if (!token) {
showToast('网络异常,请稍后重试'); showToast('网络异常,请稍后重试');
...@@ -40,6 +40,7 @@ export default class StartItem extends eui.ItemRenderer { ...@@ -40,6 +40,7 @@ export default class StartItem extends eui.ItemRenderer {
} }
NetManager.ins.yyh_light({ activityId: this.data.activityId, token: token }, (success, res) => { NetManager.ins.yyh_light({ activityId: this.data.activityId, token: token }, (success, res) => {
console.log("调接口跳转了,,,-->>", res) console.log("调接口跳转了,,,-->>", res)
// alert(`调接口跳转了,,,-->>${JSON.stringify(res)}`)
if (!success) { if (!success) {
showToast('网络异常,请稍后重试') showToast('网络异常,请稍后重试')
return; return;
......
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