推广分佣功能开发
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user