commission--yt-commit

This commit is contained in:
2025-06-23 10:03:08 +08:00
parent 2350346d95
commit 0e20be0425
22 changed files with 553 additions and 25 deletions

View File

@ -1,5 +1,6 @@
const { baseUrl } = require('../../../request');
import { globalImgUrl } from '../../../request';
import { decodeBase64 } from '../../../utils/decodebase64'
Page({
data: {
@ -55,10 +56,10 @@ Page({
notificationList: detail.projectNotificationVOList || [],
settlementDetailList: detail.projectAllDetailVOList || [],
promoCodeList: detail.promoCodeApplyVOList || [],
settlementDesc: this.decode64(detail.settlementDesc),
projectDesc: this.decode64(detail.projectDesc),
projectFlow: this.decode64(detail.projectFlow),
projectDescription: this.decode64(detail.projectDescription)
settlementDesc: decodeBase64(detail.settlementDesc),
projectDesc: decodeBase64(detail.projectDesc),
projectFlow: decodeBase64(detail.projectFlow),
projectDescription: decodeBase64(detail.projectDescription)
});
} else {
wx.showToast({
@ -76,13 +77,6 @@ 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 });