Commit b8369783 authored by liujiangnan's avatar liujiangnan

feat:到期日期

parent 010032cf
......@@ -82,6 +82,15 @@ export default class SceneComponent extends MyCocosSceneComponent_NJ_usercenter
const gameNames = userInfo.last_game_str.split("~!");
cc.find("Canvas/usercenter/view/content/scollpage/learning").getComponent(cc.RichText).string = `<color=#138977>当前正在学习</c> <color=#ef8d36>${gameNames[0]} - ${gameNames[1]}</color>`;
}
// 购买的有效期
const productRes: any = await asyncCallNetworkApiGet('/api/oxford/v1/product/list', {token: this.token});
const products = JSON.parse(productRes).rows;
if (products && products.length>0) {
const endDate = products[0].syll_end_date.split("T")[0].trim();
cc.find(`Canvas/usercenter/view/content/scollpage/user_center/enddate`).getComponent(cc.Label).string = `有效期至:${endDate}`;
}
}
// 学习小节
......
......@@ -4,5 +4,6 @@
"name": "play",
"id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231",
"version": "2.4.5",
"isNew": false
"isNew": false,
"description": ""
}
\ 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