mall-uniapp/sheep/components/s-share-modal/canvas-poster/poster/index.js

15 lines
323 B
JavaScript

import user from './user';
import goods from './goods';
import groupon from './groupon';
export function getPosterData(options) {
switch (options.shareInfo.poster.type) {
case 'user':
return user(options);
case 'goods':
return goods(options);
case 'groupon':
return groupon(options);
}
}