commission--yt-commit
This commit is contained in:
@ -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 });
|
||||
|
Reference in New Issue
Block a user