绿满眶商城微信小程序-uniapp
peng
2 天以前 d50a3ed44e2edab2a7a661c43491c3aa42c57794
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * 活动相关API
 */
import { http, Method } from "@/utils/request.js";
 
import api from "@/config/api.js";
 
/**
 * 获取会话id
 * 
 * @param params
 */
 export function getSessionId() {
  return http.request({
    url: "/lmk/action-record/sessionId",
    method: Method.GET,
    needToken: true
  });
}
/**
 * 插入用户行为
 * 
 * @param params
 */
 export function userAction(data) {
  return http.request({
    url: "/lmk/action-record",
    method: Method.POST,
    needToken: true,
    data:data
  });
}