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,4 +1,5 @@
const { baseUrl } = require('../../../request');
import { decodeBase64 } from '../../../utils/decodebase64'
Page({
data: {
@ -12,7 +13,7 @@ Page({
onLoad(options) {
this.setData({
projectId: options.id || '',
promoCodeDesc: decodeURIComponent(options.desc || ''),
promoCodeDesc: decodeBase64(options.desc),
mode: options.mode || 'add',
salespersonName: options.name ? decodeURIComponent(options.name) : '',
salespersonPhone: options.phone ? decodeURIComponent(options.phone) : ''
@ -34,6 +35,7 @@ Page({
// 申请资料报备
onApply() {
console.log('---->',this.data.promoCodeDesc);
// 如果是查看模式,阻止提交
if (this.data.mode === 'view') return;

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 });