推广分佣功能开发

This commit is contained in:
Dev
2026-10-14 14:44:01 +08:00
parent da26eb5306
commit 1754df972d
34 changed files with 1414 additions and 16 deletions
+11 -1
View File
@@ -6,6 +6,7 @@ import {
} from '../../../services/good/fetchGoodsDetailsComments';
import { cdnBase } from '../../../config/index';
import { withPromoter, promoterQuery } from '../../../utils/promoter';
const imgPrefix = `${cdnBase}/`;
@@ -350,11 +351,20 @@ Page({
const customInfo = {
imageUrl: this.data.details.primaryImage,
title: this.data.details.title + shareSubTitle,
path: `/pages/goods/details/index?spuId=${this.data.spuId}`,
path: withPromoter(`/pages/goods/details/index?spuId=${this.data.spuId}`),
};
return customInfo;
},
onShareTimeline() {
const query = promoterQuery();
return {
title: this.data.details.title,
imageUrl: this.data.details.primaryImage,
query: `spuId=${this.data.spuId}${query ? `&${query}` : ''}`,
};
},
/** 获取评价统计 */
async getCommentsStatistics() {
try {