1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"miniprogramRoot": "dist/",
|
||||
"projectname": "playBallTogether",
|
||||
"description": "playBallTogether",
|
||||
"appid": "wx915ecf6c01bea4ec",
|
||||
"appid": "wx815b533167eb7b53",
|
||||
"setting": {
|
||||
"urlCheck": true,
|
||||
"es6": true,
|
||||
|
||||
@@ -40,6 +40,7 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => {
|
||||
}
|
||||
|
||||
const publishFlag = from === "publish";
|
||||
|
||||
// const posterRef = useRef();
|
||||
const { max_participants, participant_count } = detail || {};
|
||||
|
||||
@@ -49,6 +50,7 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => {
|
||||
// }
|
||||
// }, [id]);
|
||||
|
||||
|
||||
async function changeMessageType() {
|
||||
try {
|
||||
const res = await DetailService.getActivityId({
|
||||
@@ -61,6 +63,13 @@ export default forwardRef(({ id, from, detail, userInfo }, ref) => {
|
||||
withShareTicket: false, // 是否需要返回 shareTicket
|
||||
isUpdatableMessage: true, // 是否是动态消息(需要服务端配置过模版)
|
||||
activityId: res.data.activity_id, // 动态消息的活动 id
|
||||
templateInfo: {
|
||||
parameterList: [
|
||||
{ name: 'member_count', value: (participant_count ?? 0).toString() },
|
||||
{ name: 'room_limit', value: (max_participants ?? 0).toString() },
|
||||
],
|
||||
templateId: '666F374D69D16C932E45D7E7D9F10CEF6177F5F5'
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user