commission--yt-commit

This commit is contained in:
2025-06-19 14:13:59 +08:00
parent b360697a37
commit 2350346d95
5 changed files with 25 additions and 10 deletions

View File

@ -13,6 +13,10 @@ Page({
currentQrcode: '',
currentPromoLink: '',
globalImgUrl,
settlementDesc: '',
projectDesc: '',
projectFlow: '',
projectDescription: '',
},
onLoad(options) {
@ -50,7 +54,11 @@ Page({
projectDetail: detail,
notificationList: detail.projectNotificationVOList || [],
settlementDetailList: detail.projectAllDetailVOList || [],
promoCodeList: detail.promoCodeApplyVOList || []
promoCodeList: detail.promoCodeApplyVOList || [],
settlementDesc: this.decode64(detail.settlementDesc),
projectDesc: this.decode64(detail.projectDesc),
projectFlow: this.decode64(detail.projectFlow),
projectDescription: this.decode64(detail.projectDescription)
});
} else {
wx.showToast({
@ -68,6 +76,13 @@ Page({
});
},
// base64转为字符串
decode64(text) {
var decoder = new TextDecoder();
return new TextDecoder().decode(Uint8Array.from(atob(text), (c) => c.charCodeAt(0)));
// return decodeURIComponent(escape(String.fromCharCode(...[text])));
},
switchTab(e) {
const idx = +e.currentTarget.dataset.index;
this.setData({ activeTab: idx });