Explorar o código

更新埋点数据类型

tremble %!s(int64=3) %!d(string=hai) anos
pai
achega
13eb02f159
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      src/apis/index.js
  2. 1 0
      src/components/Tags/goods-list.vue

+ 1 - 0
src/apis/index.js

@@ -38,5 +38,6 @@ export const burying_point = (data) => {
     isMiniApp: browser.getURLParam("isMiniApp")||'h5',
     whereUrl: url,
     type: data.type,
+    productId: data.productId,
   });
 };

+ 1 - 0
src/components/Tags/goods-list.vue

@@ -122,6 +122,7 @@ const addCart = async (item) => {
 
   Loading.hide();
   if (result.code === 0) {
+    apis.burying_point({ type: 7, productId: item.id});
     return Dialog.toast({ content: `添加成功`, type: "success" });
   } else {
     let callbackUrl = `${window.location.origin}${window.location.pathname}?m=${browser.getURLParam("m")}&${getApp().Camera.getPoseUrlParams()}`;